Skip to contentSkip to conversation

x86/core changes for v6.3

GIT PULL Merged Ingo Molnar 2 participants 2 messages Feb 20, 2023 – Feb 21, 2023 x86

lore
Share & tools
lore
#0 lore raw

Linus,

Please pull the latest x86/core git tree from:

git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip.git x86-core-2023-02-20

# HEAD: ce3ba2af9695e4bd64d797e0026321e5dca29dd3 x86: Suppress KMSAN reports in arch_within_stack_frames()

Changes in this cycle:

- Clean up the signal frame layout tests

- Suppress KMSAN false positive reports in arch_within_stack_frames()

Thanks,

Ingo

------------------>
Alexander Potapenko (1):
x86: Suppress KMSAN reports in arch_within_stack_frames()

Brian Gerst (2):
x86/signal: Move siginfo field tests x86/signal/compat: Move sigaction_compat_abi() to signal_64.c

 arch/x86/include/asm/thread_info.h |   5 +
 arch/x86/kernel/Makefile           |   1 -
 arch/x86/kernel/signal_32.c        | 127 ++++++++++++++++++++++++
 arch/x86/kernel/signal_64.c        | 127 ++++++++++++++++++++++++
 arch/x86/kernel/signal_compat.c    | 191 -------------------------------------
 5 files changed, 259 insertions(+), 192 deletions(-)
 delete mode 100644 arch/x86/kernel/signal_compat.c
arch/x86/include/asm/thread_info.h +5 -0
index f0cb881c1d69..f1cccba52eb9 100644
@@ -163,7 +163,12 @@ struct thread_info {
  *	GOOD_FRAME	if within a frame
  *	BAD_STACK	if placed across a frame boundary (or outside stack)
  *	NOT_STACK	unable to determine (no frame pointers, etc)
+ *
+ * This function reads pointers from the stack and dereferences them. The
+ * pointers may not have their KMSAN shadow set up properly, which may result
+ * in false positive reports. Disable instrumentation to avoid those.
  */
+__no_kmsan_checks
 static inline int arch_within_stack_frames(const void * const stack,
 					   const void * const stackend,
 					   const void *obj, unsigned long len)
arch/x86/kernel/Makefile +0 -1
index 96d51bbc2bd4..dd61752f4c96 100644
@@ -45,7 +45,6 @@ obj-y			+= head$(BITS).o
 obj-y			+= ebda.o
 obj-y			+= platform-quirks.o
 obj-y			+= process_$(BITS).o signal.o signal_$(BITS).o
-obj-$(CONFIG_COMPAT)	+= signal_compat.o
 obj-y			+= traps.o idt.o irq.o irq_$(BITS).o dumpstack_$(BITS).o
 obj-y			+= time.o ioport.o dumpstack.o nmi.o
 obj-$(CONFIG_MODIFY_LDT_SYSCALL)	+= ldt.o
arch/x86/kernel/signal_32.c +127 -0

142 lines not on this page · raw message

arch/x86/kernel/signal_64.c +127 -0

130 lines not on this page · raw message

arch/x86/kernel/signal_compat.c deleted +0 -191

191 lines not on this page · raw message