Skip to content

x86/smp: fix send_IPI_mask usage of scratch_cpumask

Roger Pau Monne xen-devel 4 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v4 Latest4 patches 4 repliesIn review
  2. v35 patches 11 repliesSuperseded
  3. v26 patches 25 repliesSuperseded
Earlier versions · 1
VersionPostedPatchesRepliesStatus
v13 patches17 repliesSuperseded

Patches in v4 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/4x86: introduce a nmi_count tracking variablexen/arch/x86/nmi.c xen/arch/x86/traps.c xen/include/asm-x86/hardirq.h +2 more+10 -91 reply
2/4x86: track when in NMI contextxen/arch/x86/traps.c xen/include/asm-x86/hardirq.h+12 -01 reply
3/4x86: track when in #MC contextxen/arch/x86/cpu/mcheck/mce.c xen/include/asm-x86/hardirq.h+8 -01 reply
4/4x86/smp: do not use scratch_cpumask when in interrupt or exception contextxen/arch/x86/smp.c+12 -04 replies

Reviews trailers per patch

All 4 patches have a Reviewed-by or Acked-by.

PatchJan Beulich
1/4R-b
2/4R-b
3/4R-b
4/4R-b

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

Read the v4 thread

Cover letter [Xen-devel] [PATCH v4 0/4] x86/smp: fix send_IPI_mask usage of scratch_cpumask

Hello,

Commit:

5500d265a2a8fa63d60c08beb549de8ec82ff7a5
x86/smp: use APIC ALLBUT destination shorthand when possible

Introduced a bogus usage of the scratch cpumask: it was used in a function that could be called from interrupt context, and hence using the scratch cpumask there is not safe. Patch #4 is a fix for that usage, together with also preventing the usage of any per-CPU variables when send_IPI_mask is called from #MC or NMI context. Previous patches are preparatory changes.

Thanks, Roger.

Roger Pau Monne (4):
x86: introduce a nmi_count tracking variable
x86: track when in NMI context
x86: track when in #MC context
x86/smp: do not use scratch_cpumask when in interrupt or exception
context

 xen/arch/x86/cpu/mcheck/mce.c |  2 ++
 xen/arch/x86/nmi.c            | 11 +++++------
 xen/arch/x86/smp.c            | 12 ++++++++++++
 xen/arch/x86/traps.c          | 10 +++++++++-
 xen/include/asm-x86/hardirq.h | 13 ++++++++++++-
 xen/include/asm-x86/nmi.h     |  2 ++
 xen/include/xen/irq_cpustat.h |  1 -
 7 files changed, 42 insertions(+), 9 deletions(-)
Signature · 7 lines
2.25.0


_______________________________________________
Xen-devel mailing list
[email protected]
https://lists.xenproject.org/mailman/listinfo/xen-devel