Skip to content

per_cpu() fixes

Andrew Cooper xen-devel 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest3 patches 3 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/3x86/idle: Fix get_cpu_idle_time()'s interaction with offline pcpus.xen/arch/x86/platform_hypercall.c xen/common/schedule.c+10 -70 replies
2/3x86/percpu: Force INVALID_PERCPU_AREA into the non-canonical address regionxen/arch/x86/percpu.c+8 -11 reply
3/3DO NOT APPLY - debugging code for gpf when accessing invalid per_cpu() dataxen/common/schedule.c+25 -00 replies

Reviews trailers per patch

None of the 3 patches has a Reviewed-by or Acked-by of their own; the series has one for all of them.

PatchKeir Fraser
SeriesA-b
1/3
2/3
3/3

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v1 thread

Cover letter [PATCH 0/3] per_cpu() fixes

This patch series is two independent but related changes to the use of per_cpu() with offline pcpus.

The first patch is a fix for use of get_cpu_idle_time() whereby toolstack hypercalls could cause an effective NULL structure dereference.

The second patch is a forward looking fix to try and prevent similar issues in the future. It causes uses of per_cpu() against an offline pcpu to cause a #GF rather than to try and dereference a very low address.

The third patch is debugging code to demonstrate the effects of patch 2.

CC Keir Fraser <[email protected]>
CC Jan Beulich <[email protected]>
CC Tim Deegan <[email protected]>
CC Ian Campbell <[email protected]>
CC Ian Jackson <[email protected]>
Signature · 1 line
1.7.10.4