All of lore.kernel.org
 help / color / mirror / Atom feed
From: Andy Lutomirski <luto@kernel.org>
To: x86@kernel.org
Cc: linux-kernel@vger.kernel.org, linux-arch@vger.kernel.org,
	Borislav Petkov <bp@alien8.de>, Nadav Amit <nadav.amit@gmail.com>,
	Kees Cook <keescook@chromium.org>,
	Brian Gerst <brgerst@gmail.com>,
	"kernel-hardening@lists.openwall.com" 
	<kernel-hardening@lists.openwall.com>,
	Linus Torvalds <torvalds@linux-foundation.org>,
	Josh Poimboeuf <jpoimboe@redhat.com>, Jann Horn <jann@thejh.net>,
	Heiko Carstens <heiko.carstens@de.ibm.com>,
	Andy Lutomirski <luto@kernel.org>
Subject: [PATCH v4 27/29] x86: Move thread_info into task_struct
Date: Sun, 26 Jun 2016 14:55:49 -0700	[thread overview]
Message-ID: <ddf4847e6f114c522fefb24c16fc7a1d75138f9f.1466974736.git.luto@kernel.org> (raw)
In-Reply-To: <cover.1466974736.git.luto@kernel.org>
In-Reply-To: <cover.1466974736.git.luto@kernel.org>

Now that most of the thread_info users have been cleaned up,
this is straightforward.

Most of this code was written by Linus.

Signed-off-by: Andy Lutomirski <luto@kernel.org>
---
 arch/x86/Kconfig                   |  1 +
 arch/x86/entry/entry_64.S          |  9 +++++---
 arch/x86/include/asm/switch_to.h   |  6 ++---
 arch/x86/include/asm/thread_info.h | 46 --------------------------------------
 arch/x86/kernel/asm-offsets.c      |  4 +---
 arch/x86/kernel/irq_64.c           |  3 +--
 arch/x86/kernel/process.c          |  6 ++---
 7 files changed, 13 insertions(+), 62 deletions(-)

diff --git a/arch/x86/Kconfig b/arch/x86/Kconfig
index afdcf96ef109..b3002c8efde2 100644
--- a/arch/x86/Kconfig
+++ b/arch/x86/Kconfig
@@ -155,6 +155,7 @@ config X86
 	select SPARSE_IRQ
 	select SRCU
 	select SYSCTL_EXCEPTION_TRACE
+	select THREAD_INFO_IN_TASK
 	select USER_STACKTRACE_SUPPORT
 	select VIRT_TO_BUS
 	select X86_DEV_DMA_OPS			if X86_64
diff --git a/arch/x86/entry/entry_64.S b/arch/x86/entry/entry_64.S
index b846875aeea6..efeb1c9f64f4 100644
--- a/arch/x86/entry/entry_64.S
+++ b/arch/x86/entry/entry_64.S
@@ -179,7 +179,8 @@ GLOBAL(entry_SYSCALL_64_after_swapgs)
 	 * If we need to do entry work or if we guess we'll need to do
 	 * exit work, go straight to the slow path.
 	 */
-	testl	$_TIF_WORK_SYSCALL_ENTRY|_TIF_ALLWORK_MASK, ASM_THREAD_INFO(TI_flags, %rsp, SIZEOF_PTREGS)
+	movq	%gs:current_task, %r11
+	testl	$_TIF_WORK_SYSCALL_ENTRY|_TIF_ALLWORK_MASK, TASK_TI_flags(%r11)
 	jnz	entry_SYSCALL64_slow_path
 
 entry_SYSCALL_64_fastpath:
@@ -217,7 +218,8 @@ entry_SYSCALL_64_fastpath:
 	 */
 	DISABLE_INTERRUPTS(CLBR_NONE)
 	TRACE_IRQS_OFF
-	testl	$_TIF_ALLWORK_MASK, ASM_THREAD_INFO(TI_flags, %rsp, SIZEOF_PTREGS)
+	movq	%gs:current_task, %r11
+	testl	$_TIF_ALLWORK_MASK, TASK_TI_flags(%r11)
 	jnz	1f
 
 	LOCKDEP_SYS_EXIT
@@ -368,9 +370,10 @@ END(ptregs_\func)
  * A newly forked process directly context switches into this address.
  *
  * rdi: prev task we switched from
+ * rsi: task we're switching to
  */
 ENTRY(ret_from_fork)
-	LOCK ; btr $TIF_FORK, TI_flags(%r8)
+	LOCK ; btr $TIF_FORK, TASK_TI_flags(%rsi)
 
 	call	schedule_tail			/* rdi: 'prev' task parameter */
 
diff --git a/arch/x86/include/asm/switch_to.h b/arch/x86/include/asm/switch_to.h
index 14e4b20f0aaf..5194f4a680ab 100644
--- a/arch/x86/include/asm/switch_to.h
+++ b/arch/x86/include/asm/switch_to.h
@@ -136,18 +136,16 @@ do {									\
 	     "call __switch_to\n\t"					  \
 	     "movq "__percpu_arg([current_task])",%%rsi\n\t"		  \
 	     __switch_canary						  \
-	     "movq %P[thread_info](%%rsi),%%r8\n\t"			  \
 	     "movq %%rax,%%rdi\n\t" 					  \
-	     "testl  %[_tif_fork],%P[ti_flags](%%r8)\n\t"		  \
+	     "testl  %[_tif_fork],%P[ti_flags](%%rsi)\n\t"		  \
 	     "jnz   ret_from_fork\n\t"					  \
 	     RESTORE_CONTEXT						  \
 	     : "=a" (last)					  	  \
 	       __switch_canary_oparam					  \
 	     : [next] "S" (next), [prev] "D" (prev),			  \
 	       [threadrsp] "i" (offsetof(struct task_struct, thread.sp)), \
-	       [ti_flags] "i" (offsetof(struct thread_info, flags)),	  \
+	       [ti_flags] "i" (offsetof(struct task_struct, thread_info.flags)),	  \
 	       [_tif_fork] "i" (_TIF_FORK),			  	  \
-	       [thread_info] "i" (offsetof(struct task_struct, stack)),   \
 	       [current_task] "m" (current_task)			  \
 	       __switch_canary_iparam					  \
 	     : "memory", "cc" __EXTRA_CLOBBER)
diff --git a/arch/x86/include/asm/thread_info.h b/arch/x86/include/asm/thread_info.h
index 7b42c1e462ac..0afc37654ad1 100644
--- a/arch/x86/include/asm/thread_info.h
+++ b/arch/x86/include/asm/thread_info.h
@@ -52,20 +52,6 @@ struct task_struct;
 #include <asm/cpufeature.h>
 #include <linux/atomic.h>
 
-struct thread_info {
-	struct task_struct	*task;		/* main task structure */
-	__u32			flags;		/* low level flags */
-	__u32			cpu;		/* current CPU */
-};
-
-#define INIT_THREAD_INFO(tsk)			\
-{						\
-	.task		= &tsk,			\
-	.flags		= 0,			\
-	.cpu		= 0,			\
-}
-
-#define init_thread_info	(init_thread_union.thread_info)
 #define init_stack		(init_thread_union.stack)
 
 #else /* !__ASSEMBLY__ */
@@ -159,11 +145,6 @@ struct thread_info {
  */
 #ifndef __ASSEMBLY__
 
-static inline struct thread_info *current_thread_info(void)
-{
-	return (struct thread_info *)(current_top_of_stack() - THREAD_SIZE);
-}
-
 static inline unsigned long current_stack_pointer(void)
 {
 	unsigned long sp;
@@ -181,33 +162,6 @@ static inline unsigned long current_stack_pointer(void)
 # define cpu_current_top_of_stack (cpu_tss + TSS_sp0)
 #endif
 
-/*
- * ASM operand which evaluates to a 'thread_info' address of
- * the current task, if it is known that "reg" is exactly "off"
- * bytes below the top of the stack currently.
- *
- * ( The kernel stack's size is known at build time, it is usually
- *   2 or 4 pages, and the bottom  of the kernel stack contains
- *   the thread_info structure. So to access the thread_info very
- *   quickly from assembly code we can calculate down from the
- *   top of the kernel stack to the bottom, using constant,
- *   build-time calculations only. )
- *
- * For example, to fetch the current thread_info->flags value into %eax
- * on x86-64 defconfig kernels, in syscall entry code where RSP is
- * currently at exactly SIZEOF_PTREGS bytes away from the top of the
- * stack:
- *
- *      mov ASM_THREAD_INFO(TI_flags, %rsp, SIZEOF_PTREGS), %eax
- *
- * will translate to:
- *
- *      8b 84 24 b8 c0 ff ff      mov    -0x3f48(%rsp), %eax
- *
- * which is below the current RSP by almost 16K.
- */
-#define ASM_THREAD_INFO(field, reg, off) ((field)+(off)-THREAD_SIZE)(reg)
-
 #endif
 
 #ifndef __ASSEMBLY__
diff --git a/arch/x86/kernel/asm-offsets.c b/arch/x86/kernel/asm-offsets.c
index a91a6ead24a2..e900f5e13f22 100644
--- a/arch/x86/kernel/asm-offsets.c
+++ b/arch/x86/kernel/asm-offsets.c
@@ -29,9 +29,7 @@
 
 void common(void) {
 	BLANK();
-	OFFSET(TI_flags, thread_info, flags);
-
-	BLANK();
+	OFFSET(TASK_TI_flags, task_struct, thread_info.flags);
 	OFFSET(TASK_addr_limit, task_struct, thread.addr_limit);
 
 	BLANK();
diff --git a/arch/x86/kernel/irq_64.c b/arch/x86/kernel/irq_64.c
index 206d0b90a3ab..38f9f5678dc8 100644
--- a/arch/x86/kernel/irq_64.c
+++ b/arch/x86/kernel/irq_64.c
@@ -41,8 +41,7 @@ static inline void stack_overflow_check(struct pt_regs *regs)
 	if (user_mode(regs))
 		return;
 
-	if (regs->sp >= curbase + sizeof(struct thread_info) +
-				  sizeof(struct pt_regs) + STACK_TOP_MARGIN &&
+	if (regs->sp >= curbase + sizeof(struct pt_regs) + STACK_TOP_MARGIN &&
 	    regs->sp <= curbase + THREAD_SIZE)
 		return;
 
diff --git a/arch/x86/kernel/process.c b/arch/x86/kernel/process.c
index 96becbbb52e0..8f60f810a9e7 100644
--- a/arch/x86/kernel/process.c
+++ b/arch/x86/kernel/process.c
@@ -536,9 +536,7 @@ unsigned long get_wchan(struct task_struct *p)
 	 * PADDING
 	 * ----------- top = topmax - TOP_OF_KERNEL_STACK_PADDING
 	 * stack
-	 * ----------- bottom = start + sizeof(thread_info)
-	 * thread_info
-	 * ----------- start
+	 * ----------- bottom = start
 	 *
 	 * The tasks stack pointer points at the location where the
 	 * framepointer is stored. The data on the stack is:
@@ -549,7 +547,7 @@ unsigned long get_wchan(struct task_struct *p)
 	 */
 	top = start + THREAD_SIZE - TOP_OF_KERNEL_STACK_PADDING;
 	top -= 2 * sizeof(unsigned long);
-	bottom = start + sizeof(struct thread_info);
+	bottom = start;
 
 	sp = READ_ONCE(p->thread.sp);
 	if (sp < bottom || sp > top)
-- 
2.7.4

WARNING: multiple messages have this Message-ID (diff)
From: Andy Lutomirski <luto@kernel.org>
To: x86@kernel.org
Cc: linux-kernel@vger.kernel.org, linux-arch@vger.kernel.org,
	Borislav Petkov <bp@alien8.de>, Nadav Amit <nadav.amit@gmail.com>,
	Kees Cook <keescook@chromium.org>,
	Brian Gerst <brgerst@gmail.com>,
	"kernel-hardening@lists.openwall.com"
	<kernel-hardening@lists.openwall.com>,
	Linus Torvalds <torvalds@linux-foundation.org>,
	Josh Poimboeuf <jpoimboe@redhat.com>, Jann Horn <jann@thejh.net>,
	Heiko Carstens <heiko.carstens@de.ibm.com>,
	Andy Lutomirski <luto@kernel.org>
Subject: [kernel-hardening] [PATCH v4 27/29] x86: Move thread_info into task_struct
Date: Sun, 26 Jun 2016 14:55:49 -0700	[thread overview]
Message-ID: <ddf4847e6f114c522fefb24c16fc7a1d75138f9f.1466974736.git.luto@kernel.org> (raw)
In-Reply-To: <cover.1466974736.git.luto@kernel.org>
In-Reply-To: <cover.1466974736.git.luto@kernel.org>

Now that most of the thread_info users have been cleaned up,
this is straightforward.

Most of this code was written by Linus.

Signed-off-by: Andy Lutomirski <luto@kernel.org>
---
 arch/x86/Kconfig                   |  1 +
 arch/x86/entry/entry_64.S          |  9 +++++---
 arch/x86/include/asm/switch_to.h   |  6 ++---
 arch/x86/include/asm/thread_info.h | 46 --------------------------------------
 arch/x86/kernel/asm-offsets.c      |  4 +---
 arch/x86/kernel/irq_64.c           |  3 +--
 arch/x86/kernel/process.c          |  6 ++---
 7 files changed, 13 insertions(+), 62 deletions(-)

diff --git a/arch/x86/Kconfig b/arch/x86/Kconfig
index afdcf96ef109..b3002c8efde2 100644
--- a/arch/x86/Kconfig
+++ b/arch/x86/Kconfig
@@ -155,6 +155,7 @@ config X86
 	select SPARSE_IRQ
 	select SRCU
 	select SYSCTL_EXCEPTION_TRACE
+	select THREAD_INFO_IN_TASK
 	select USER_STACKTRACE_SUPPORT
 	select VIRT_TO_BUS
 	select X86_DEV_DMA_OPS			if X86_64
diff --git a/arch/x86/entry/entry_64.S b/arch/x86/entry/entry_64.S
index b846875aeea6..efeb1c9f64f4 100644
--- a/arch/x86/entry/entry_64.S
+++ b/arch/x86/entry/entry_64.S
@@ -179,7 +179,8 @@ GLOBAL(entry_SYSCALL_64_after_swapgs)
 	 * If we need to do entry work or if we guess we'll need to do
 	 * exit work, go straight to the slow path.
 	 */
-	testl	$_TIF_WORK_SYSCALL_ENTRY|_TIF_ALLWORK_MASK, ASM_THREAD_INFO(TI_flags, %rsp, SIZEOF_PTREGS)
+	movq	%gs:current_task, %r11
+	testl	$_TIF_WORK_SYSCALL_ENTRY|_TIF_ALLWORK_MASK, TASK_TI_flags(%r11)
 	jnz	entry_SYSCALL64_slow_path
 
 entry_SYSCALL_64_fastpath:
@@ -217,7 +218,8 @@ entry_SYSCALL_64_fastpath:
 	 */
 	DISABLE_INTERRUPTS(CLBR_NONE)
 	TRACE_IRQS_OFF
-	testl	$_TIF_ALLWORK_MASK, ASM_THREAD_INFO(TI_flags, %rsp, SIZEOF_PTREGS)
+	movq	%gs:current_task, %r11
+	testl	$_TIF_ALLWORK_MASK, TASK_TI_flags(%r11)
 	jnz	1f
 
 	LOCKDEP_SYS_EXIT
@@ -368,9 +370,10 @@ END(ptregs_\func)
  * A newly forked process directly context switches into this address.
  *
  * rdi: prev task we switched from
+ * rsi: task we're switching to
  */
 ENTRY(ret_from_fork)
-	LOCK ; btr $TIF_FORK, TI_flags(%r8)
+	LOCK ; btr $TIF_FORK, TASK_TI_flags(%rsi)
 
 	call	schedule_tail			/* rdi: 'prev' task parameter */
 
diff --git a/arch/x86/include/asm/switch_to.h b/arch/x86/include/asm/switch_to.h
index 14e4b20f0aaf..5194f4a680ab 100644
--- a/arch/x86/include/asm/switch_to.h
+++ b/arch/x86/include/asm/switch_to.h
@@ -136,18 +136,16 @@ do {									\
 	     "call __switch_to\n\t"					  \
 	     "movq "__percpu_arg([current_task])",%%rsi\n\t"		  \
 	     __switch_canary						  \
-	     "movq %P[thread_info](%%rsi),%%r8\n\t"			  \
 	     "movq %%rax,%%rdi\n\t" 					  \
-	     "testl  %[_tif_fork],%P[ti_flags](%%r8)\n\t"		  \
+	     "testl  %[_tif_fork],%P[ti_flags](%%rsi)\n\t"		  \
 	     "jnz   ret_from_fork\n\t"					  \
 	     RESTORE_CONTEXT						  \
 	     : "=a" (last)					  	  \
 	       __switch_canary_oparam					  \
 	     : [next] "S" (next), [prev] "D" (prev),			  \
 	       [threadrsp] "i" (offsetof(struct task_struct, thread.sp)), \
-	       [ti_flags] "i" (offsetof(struct thread_info, flags)),	  \
+	       [ti_flags] "i" (offsetof(struct task_struct, thread_info.flags)),	  \
 	       [_tif_fork] "i" (_TIF_FORK),			  	  \
-	       [thread_info] "i" (offsetof(struct task_struct, stack)),   \
 	       [current_task] "m" (current_task)			  \
 	       __switch_canary_iparam					  \
 	     : "memory", "cc" __EXTRA_CLOBBER)
diff --git a/arch/x86/include/asm/thread_info.h b/arch/x86/include/asm/thread_info.h
index 7b42c1e462ac..0afc37654ad1 100644
--- a/arch/x86/include/asm/thread_info.h
+++ b/arch/x86/include/asm/thread_info.h
@@ -52,20 +52,6 @@ struct task_struct;
 #include <asm/cpufeature.h>
 #include <linux/atomic.h>
 
-struct thread_info {
-	struct task_struct	*task;		/* main task structure */
-	__u32			flags;		/* low level flags */
-	__u32			cpu;		/* current CPU */
-};
-
-#define INIT_THREAD_INFO(tsk)			\
-{						\
-	.task		= &tsk,			\
-	.flags		= 0,			\
-	.cpu		= 0,			\
-}
-
-#define init_thread_info	(init_thread_union.thread_info)
 #define init_stack		(init_thread_union.stack)
 
 #else /* !__ASSEMBLY__ */
@@ -159,11 +145,6 @@ struct thread_info {
  */
 #ifndef __ASSEMBLY__
 
-static inline struct thread_info *current_thread_info(void)
-{
-	return (struct thread_info *)(current_top_of_stack() - THREAD_SIZE);
-}
-
 static inline unsigned long current_stack_pointer(void)
 {
 	unsigned long sp;
@@ -181,33 +162,6 @@ static inline unsigned long current_stack_pointer(void)
 # define cpu_current_top_of_stack (cpu_tss + TSS_sp0)
 #endif
 
-/*
- * ASM operand which evaluates to a 'thread_info' address of
- * the current task, if it is known that "reg" is exactly "off"
- * bytes below the top of the stack currently.
- *
- * ( The kernel stack's size is known at build time, it is usually
- *   2 or 4 pages, and the bottom  of the kernel stack contains
- *   the thread_info structure. So to access the thread_info very
- *   quickly from assembly code we can calculate down from the
- *   top of the kernel stack to the bottom, using constant,
- *   build-time calculations only. )
- *
- * For example, to fetch the current thread_info->flags value into %eax
- * on x86-64 defconfig kernels, in syscall entry code where RSP is
- * currently at exactly SIZEOF_PTREGS bytes away from the top of the
- * stack:
- *
- *      mov ASM_THREAD_INFO(TI_flags, %rsp, SIZEOF_PTREGS), %eax
- *
- * will translate to:
- *
- *      8b 84 24 b8 c0 ff ff      mov    -0x3f48(%rsp), %eax
- *
- * which is below the current RSP by almost 16K.
- */
-#define ASM_THREAD_INFO(field, reg, off) ((field)+(off)-THREAD_SIZE)(reg)
-
 #endif
 
 #ifndef __ASSEMBLY__
diff --git a/arch/x86/kernel/asm-offsets.c b/arch/x86/kernel/asm-offsets.c
index a91a6ead24a2..e900f5e13f22 100644
--- a/arch/x86/kernel/asm-offsets.c
+++ b/arch/x86/kernel/asm-offsets.c
@@ -29,9 +29,7 @@
 
 void common(void) {
 	BLANK();
-	OFFSET(TI_flags, thread_info, flags);
-
-	BLANK();
+	OFFSET(TASK_TI_flags, task_struct, thread_info.flags);
 	OFFSET(TASK_addr_limit, task_struct, thread.addr_limit);
 
 	BLANK();
diff --git a/arch/x86/kernel/irq_64.c b/arch/x86/kernel/irq_64.c
index 206d0b90a3ab..38f9f5678dc8 100644
--- a/arch/x86/kernel/irq_64.c
+++ b/arch/x86/kernel/irq_64.c
@@ -41,8 +41,7 @@ static inline void stack_overflow_check(struct pt_regs *regs)
 	if (user_mode(regs))
 		return;
 
-	if (regs->sp >= curbase + sizeof(struct thread_info) +
-				  sizeof(struct pt_regs) + STACK_TOP_MARGIN &&
+	if (regs->sp >= curbase + sizeof(struct pt_regs) + STACK_TOP_MARGIN &&
 	    regs->sp <= curbase + THREAD_SIZE)
 		return;
 
diff --git a/arch/x86/kernel/process.c b/arch/x86/kernel/process.c
index 96becbbb52e0..8f60f810a9e7 100644
--- a/arch/x86/kernel/process.c
+++ b/arch/x86/kernel/process.c
@@ -536,9 +536,7 @@ unsigned long get_wchan(struct task_struct *p)
 	 * PADDING
 	 * ----------- top = topmax - TOP_OF_KERNEL_STACK_PADDING
 	 * stack
-	 * ----------- bottom = start + sizeof(thread_info)
-	 * thread_info
-	 * ----------- start
+	 * ----------- bottom = start
 	 *
 	 * The tasks stack pointer points at the location where the
 	 * framepointer is stored. The data on the stack is:
@@ -549,7 +547,7 @@ unsigned long get_wchan(struct task_struct *p)
 	 */
 	top = start + THREAD_SIZE - TOP_OF_KERNEL_STACK_PADDING;
 	top -= 2 * sizeof(unsigned long);
-	bottom = start + sizeof(struct thread_info);
+	bottom = start;
 
 	sp = READ_ONCE(p->thread.sp);
 	if (sp < bottom || sp > top)
-- 
2.7.4

  parent reply	other threads:[~2016-06-26 21:59 UTC|newest]

Thread overview: 255+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-06-26 21:55 [PATCH v4 00/29] virtually mapped stacks and thread_info cleanup Andy Lutomirski
2016-06-26 21:55 ` [kernel-hardening] " Andy Lutomirski
2016-06-26 21:55 ` Andy Lutomirski
2016-06-26 21:55 ` [PATCH v4 01/29] bluetooth: Switch SMP to crypto_cipher_encrypt_one() Andy Lutomirski
2016-06-26 21:55   ` [kernel-hardening] " Andy Lutomirski
2016-06-26 21:55   ` Andy Lutomirski
2016-06-27  5:58   ` Marcel Holtmann
2016-06-27  5:58     ` [kernel-hardening] " Marcel Holtmann
2016-06-27  5:58     ` Marcel Holtmann
2016-06-27  5:58     ` Marcel Holtmann
2016-06-27  8:54     ` Ingo Molnar
2016-06-27  8:54       ` [kernel-hardening] " Ingo Molnar
2016-06-27  8:54       ` Ingo Molnar
2016-06-27 22:30       ` Marcel Holtmann
2016-06-27 22:30         ` [kernel-hardening] " Marcel Holtmann
2016-06-27 22:30         ` Marcel Holtmann
2016-06-27 22:33         ` Andy Lutomirski
2016-06-27 22:33           ` [kernel-hardening] " Andy Lutomirski
2016-06-27 22:33           ` Andy Lutomirski
2016-07-04 17:56           ` Marcel Holtmann
2016-07-04 17:56             ` [kernel-hardening] " Marcel Holtmann
2016-07-04 17:56             ` Marcel Holtmann
2016-07-06 13:17             ` Andy Lutomirski
2016-07-06 13:17               ` [kernel-hardening] " Andy Lutomirski
2016-07-06 13:17               ` Andy Lutomirski
2016-06-26 21:55 ` [PATCH v4 02/29] rxrpc: Avoid using stack memory in SG lists in rxkad Andy Lutomirski
2016-06-26 21:55   ` [kernel-hardening] " Andy Lutomirski
2016-06-26 21:55   ` Andy Lutomirski
2016-06-26 21:55 ` [PATCH v4 03/29] x86/mm/hotplug: Don't remove PGD entries in remove_pagetable() Andy Lutomirski
2016-06-26 21:55   ` [kernel-hardening] " Andy Lutomirski
2016-06-26 21:55   ` Andy Lutomirski
2016-06-26 21:55   ` Andy Lutomirski
2016-06-26 21:55 ` [PATCH v4 04/29] x86/cpa: In populate_pgd, don't set the pgd entry until it's populated Andy Lutomirski
2016-06-26 21:55   ` [kernel-hardening] " Andy Lutomirski
2016-06-26 21:55   ` Andy Lutomirski
2016-06-28 18:48   ` Borislav Petkov
2016-06-28 18:48     ` [kernel-hardening] " Borislav Petkov
2016-06-28 18:48     ` Borislav Petkov
2016-06-28 19:07     ` Andy Lutomirski
2016-06-28 19:07       ` [kernel-hardening] " Andy Lutomirski
2016-06-28 19:07       ` Andy Lutomirski
2016-06-26 21:55 ` [PATCH v4 05/29] x86/mm: Remove kernel_unmap_pages_in_pgd() and efi_cleanup_page_tables() Andy Lutomirski
2016-06-26 21:55   ` [kernel-hardening] " Andy Lutomirski
2016-06-26 21:55   ` Andy Lutomirski
2016-06-26 21:55   ` Andy Lutomirski
2016-06-27  7:19   ` Borislav Petkov
2016-06-27  7:19     ` [kernel-hardening] " Borislav Petkov
2016-06-27  7:19     ` Borislav Petkov
2016-06-26 21:55 ` [PATCH v4 06/29] mm: Track NR_KERNEL_STACK in KiB instead of number of stacks Andy Lutomirski
2016-06-26 21:55   ` [kernel-hardening] " Andy Lutomirski
2016-06-26 21:55   ` Andy Lutomirski
2016-06-26 21:55   ` Andy Lutomirski
2016-06-26 21:55 ` [PATCH v4 07/29] mm: Fix memcg stack accounting for sub-page stacks Andy Lutomirski
2016-06-26 21:55   ` [kernel-hardening] " Andy Lutomirski
2016-06-26 21:55   ` Andy Lutomirski
2016-06-26 21:55   ` Andy Lutomirski
2016-06-26 21:55 ` [PATCH v4 08/29] dma-api: Teach the "DMA-from-stack" check about vmapped stacks Andy Lutomirski
2016-06-26 21:55   ` [kernel-hardening] " Andy Lutomirski
2016-06-26 21:55   ` Andy Lutomirski
2016-06-30 19:37   ` Borislav Petkov
2016-06-30 19:37     ` [kernel-hardening] " Borislav Petkov
2016-06-30 19:37     ` Borislav Petkov
2016-07-06 13:20     ` Andy Lutomirski
2016-07-06 13:20       ` [kernel-hardening] " Andy Lutomirski
2016-07-06 13:20       ` Andy Lutomirski
2016-06-26 21:55 ` [PATCH v4 09/29] fork: Add generic vmalloced stack support Andy Lutomirski
2016-06-26 21:55   ` [kernel-hardening] " Andy Lutomirski
2016-06-26 21:55   ` Andy Lutomirski
2016-07-01 14:59   ` Borislav Petkov
2016-07-01 14:59     ` [kernel-hardening] " Borislav Petkov
2016-07-01 14:59     ` Borislav Petkov
2016-07-01 16:30     ` Andy Lutomirski
2016-07-01 16:30       ` [kernel-hardening] " Andy Lutomirski
2016-07-01 16:30       ` Andy Lutomirski
2016-06-26 21:55 ` [PATCH v4 10/29] x86/die: Don't try to recover from an OOPS on a non-default stack Andy Lutomirski
2016-06-26 21:55   ` [kernel-hardening] " Andy Lutomirski
2016-06-26 21:55   ` Andy Lutomirski
2016-07-02 17:24   ` Borislav Petkov
2016-07-02 17:24     ` [kernel-hardening] " Borislav Petkov
2016-07-02 17:24     ` Borislav Petkov
2016-07-02 18:34     ` Josh Poimboeuf
2016-07-02 18:34       ` [kernel-hardening] " Josh Poimboeuf
2016-07-02 18:34       ` Josh Poimboeuf
2016-07-03  9:40       ` Borislav Petkov
2016-07-03  9:40         ` [kernel-hardening] " Borislav Petkov
2016-07-03  9:40         ` Borislav Petkov
2016-07-03 14:25       ` Andy Lutomirski
2016-07-03 14:25         ` [kernel-hardening] " Andy Lutomirski
2016-07-03 14:25         ` Andy Lutomirski
2016-07-03 18:42         ` Borislav Petkov
2016-07-03 18:42           ` [kernel-hardening] " Borislav Petkov
2016-07-03 18:42           ` Borislav Petkov
2016-06-26 21:55 ` [PATCH v4 11/29] x86/dumpstack: When OOPSing, rewind the stack before do_exit Andy Lutomirski
2016-06-26 21:55   ` [kernel-hardening] " Andy Lutomirski
2016-06-26 21:55   ` Andy Lutomirski
2016-07-04 18:45   ` Borislav Petkov
2016-07-04 18:45     ` [kernel-hardening] " Borislav Petkov
2016-07-04 18:45     ` Borislav Petkov
2016-06-26 21:55 ` [PATCH v4 12/29] x86/dumpstack: When dumping stack bytes due to OOPS, start with regs->sp Andy Lutomirski
2016-06-26 21:55   ` [kernel-hardening] " Andy Lutomirski
2016-06-26 21:55   ` Andy Lutomirski
2016-06-26 21:55 ` [PATCH v4 13/29] x86/dumpstack: Try harder to get a call trace on stack overflow Andy Lutomirski
2016-06-26 21:55   ` [kernel-hardening] " Andy Lutomirski
2016-06-26 21:55   ` Andy Lutomirski
2016-06-26 21:55 ` [PATCH v4 14/29] x86/dumpstack/64: Handle faults when printing the "Stack:" part of an OOPS Andy Lutomirski
2016-06-26 21:55   ` [kernel-hardening] " Andy Lutomirski
2016-06-26 21:55   ` Andy Lutomirski
2016-06-26 21:55 ` [PATCH v4 15/29] x86/mm/64: Enable vmapped stacks Andy Lutomirski
2016-06-26 21:55   ` [kernel-hardening] " Andy Lutomirski
2016-06-26 21:55   ` Andy Lutomirski
2016-06-27 15:01   ` Brian Gerst
2016-06-27 15:01     ` [kernel-hardening] " Brian Gerst
2016-06-27 15:01     ` Brian Gerst
2016-06-27 15:12     ` Brian Gerst
2016-06-27 15:12       ` [kernel-hardening] " Brian Gerst
2016-06-27 15:12       ` Brian Gerst
2016-06-27 15:22       ` Andy Lutomirski
2016-06-27 15:22         ` [kernel-hardening] " Andy Lutomirski
2016-06-27 15:22         ` Andy Lutomirski
2016-06-27 15:54         ` Andy Lutomirski
2016-06-27 15:54           ` [kernel-hardening] " Andy Lutomirski
2016-06-27 15:54           ` Andy Lutomirski
2016-06-27 16:17           ` Brian Gerst
2016-06-27 16:17             ` [kernel-hardening] " Brian Gerst
2016-06-27 16:17             ` Brian Gerst
2016-06-27 16:35             ` Andy Lutomirski
2016-06-27 16:35               ` [kernel-hardening] " Andy Lutomirski
2016-06-27 16:35               ` Andy Lutomirski
2016-06-27 17:09               ` Brian Gerst
2016-06-27 17:09                 ` [kernel-hardening] " Brian Gerst
2016-06-27 17:09                 ` Brian Gerst
2016-06-27 17:23                 ` Brian Gerst
2016-06-27 17:23                   ` [kernel-hardening] " Brian Gerst
2016-06-27 17:23                   ` Brian Gerst
2016-06-27 17:28           ` Linus Torvalds
2016-06-27 17:28             ` [kernel-hardening] " Linus Torvalds
2016-06-27 17:28             ` Linus Torvalds
2016-06-27 17:30             ` Andy Lutomirski
2016-06-27 17:30               ` [kernel-hardening] " Andy Lutomirski
2016-06-27 17:30               ` Andy Lutomirski
2016-06-26 21:55 ` [PATCH v4 16/29] x86/mm: Improve stack-overflow #PF handling Andy Lutomirski
2016-06-26 21:55   ` [kernel-hardening] " Andy Lutomirski
2016-06-26 21:55   ` Andy Lutomirski
2016-06-26 21:55 ` [PATCH v4 17/29] x86: Move uaccess_err and sig_on_uaccess_err to thread_struct Andy Lutomirski
2016-06-26 21:55   ` [kernel-hardening] " Andy Lutomirski
2016-06-26 21:55   ` Andy Lutomirski
2016-06-26 21:55 ` [PATCH v4 18/29] x86: Move addr_limit " Andy Lutomirski
2016-06-26 21:55   ` [kernel-hardening] " Andy Lutomirski
2016-06-26 21:55   ` Andy Lutomirski
2016-06-26 21:55 ` [PATCH v4 19/29] signal: Consolidate {TS,TLF}_RESTORE_SIGMASK code Andy Lutomirski
2016-06-26 21:55   ` [kernel-hardening] " Andy Lutomirski
2016-06-26 21:55   ` Andy Lutomirski
2016-06-26 21:55   ` Andy Lutomirski
2016-06-26 21:55   ` Andy Lutomirski
2016-06-26 21:55 ` [PATCH v4 20/29] x86/smp: Remove stack_smp_processor_id() Andy Lutomirski
2016-06-26 21:55   ` [kernel-hardening] " Andy Lutomirski
2016-06-26 21:55   ` Andy Lutomirski
2016-06-26 21:55 ` [PATCH v4 21/29] x86/smp: Remove unnecessary initialization of thread_info::cpu Andy Lutomirski
2016-06-26 21:55   ` [kernel-hardening] " Andy Lutomirski
2016-06-26 21:55   ` Andy Lutomirski
2016-06-26 21:55 ` [PATCH v4 22/29] x86/asm: Move 'status' from struct thread_info to struct thread_struct Andy Lutomirski
2016-06-26 21:55   ` [kernel-hardening] " Andy Lutomirski
2016-06-26 21:55   ` Andy Lutomirski
2016-06-26 23:55   ` Brian Gerst
2016-06-26 23:55     ` [kernel-hardening] " Brian Gerst
2016-06-26 23:55     ` Brian Gerst
2016-06-27  0:23     ` Andy Lutomirski
2016-06-27  0:23       ` [kernel-hardening] " Andy Lutomirski
2016-06-27  0:23       ` Andy Lutomirski
2016-06-27  0:36       ` Brian Gerst
2016-06-27  0:36         ` [kernel-hardening] " Brian Gerst
2016-06-27  0:36         ` Brian Gerst
2016-06-27  0:40         ` Andy Lutomirski
2016-06-27  0:40           ` [kernel-hardening] " Andy Lutomirski
2016-06-27  0:40           ` Andy Lutomirski
2016-06-26 21:55 ` [PATCH v4 23/29] kdb: Use task_cpu() instead of task_thread_info()->cpu Andy Lutomirski
2016-06-26 21:55   ` [kernel-hardening] " Andy Lutomirski
2016-06-26 21:55   ` Andy Lutomirski
2016-06-26 21:55 ` [PATCH v4 24/29] x86/entry: Get rid of pt_regs_to_thread_info() Andy Lutomirski
2016-06-26 21:55   ` [kernel-hardening] " Andy Lutomirski
2016-06-26 21:55   ` Andy Lutomirski
2016-06-26 21:55 ` [PATCH v4 25/29] um: Stop conflating task_struct::stack with thread_info Andy Lutomirski
2016-06-26 21:55   ` [kernel-hardening] " Andy Lutomirski
2016-06-26 21:55   ` Andy Lutomirski
2016-06-26 23:40   ` Brian Gerst
2016-06-26 23:40     ` [kernel-hardening] " Brian Gerst
2016-06-26 23:40     ` Brian Gerst
2016-06-26 23:49     ` Andy Lutomirski
2016-06-26 23:49       ` [kernel-hardening] " Andy Lutomirski
2016-06-26 23:49       ` Andy Lutomirski
2016-06-26 21:55 ` [PATCH v4 26/29] sched: Allow putting thread_info into task_struct Andy Lutomirski
2016-06-26 21:55   ` [kernel-hardening] " Andy Lutomirski
2016-06-26 21:55   ` Andy Lutomirski
2016-07-11 10:08   ` [kernel-hardening] " Mark Rutland
2016-07-11 14:55     ` Andy Lutomirski
2016-07-11 14:55       ` Andy Lutomirski
2016-07-11 15:08       ` Mark Rutland
2016-07-11 15:08         ` Mark Rutland
2016-07-11 16:06       ` Linus Torvalds
2016-07-11 16:06         ` [kernel-hardening] " Linus Torvalds
2016-07-11 16:31         ` Mark Rutland
2016-07-11 16:31           ` Mark Rutland
2016-07-11 16:42           ` Linus Torvalds
2016-07-11 16:42             ` Linus Torvalds
2016-06-26 21:55 ` Andy Lutomirski [this message]
2016-06-26 21:55   ` [kernel-hardening] [PATCH v4 27/29] x86: Move " Andy Lutomirski
2016-06-26 21:55   ` Andy Lutomirski
2016-06-26 21:55 ` [PATCH v4 28/29] sched: Free the stack early if CONFIG_THREAD_INFO_IN_TASK Andy Lutomirski
2016-06-26 21:55   ` [kernel-hardening] " Andy Lutomirski
2016-06-26 21:55   ` Andy Lutomirski
2016-06-27  2:35   ` Andy Lutomirski
2016-06-27  2:35     ` [kernel-hardening] " Andy Lutomirski
2016-06-27  2:35     ` Andy Lutomirski
2016-06-26 21:55 ` [PATCH v4 29/29] fork: Cache two thread stacks per cpu if CONFIG_VMAP_STACK is set Andy Lutomirski
2016-06-26 21:55   ` [kernel-hardening] " Andy Lutomirski
2016-06-26 21:55   ` Andy Lutomirski
2016-06-28  7:32 ` [PATCH v4 02/29] rxrpc: Avoid using stack memory in SG lists in rxkad David Howells
2016-06-28  7:32   ` [kernel-hardening] " David Howells
2016-06-28  7:32   ` David Howells
2016-06-28  7:37   ` Herbert Xu
2016-06-28  7:37     ` [kernel-hardening] " Herbert Xu
2016-06-28  7:37     ` Herbert Xu
2016-06-28  9:07   ` David Howells
2016-06-28  9:07     ` [kernel-hardening] " David Howells
2016-06-28  9:07     ` David Howells
2016-06-28  9:45     ` Herbert Xu
2016-06-28  9:45       ` [kernel-hardening] " Herbert Xu
2016-06-28  9:45       ` Herbert Xu
2016-06-28  7:41 ` David Howells
2016-06-28  7:41   ` [kernel-hardening] " David Howells
2016-06-28  7:41   ` David Howells
2016-06-28  7:52 ` David Howells
2016-06-28  7:52   ` [kernel-hardening] " David Howells
2016-06-28  7:52   ` David Howells
2016-06-28  7:55   ` Herbert Xu
2016-06-28  7:55     ` [kernel-hardening] " Herbert Xu
2016-06-28  7:55     ` Herbert Xu
2016-06-28  8:54   ` David Howells
2016-06-28  8:54     ` [kernel-hardening] " David Howells
2016-06-28  8:54     ` David Howells
2016-06-28  9:43     ` Herbert Xu
2016-06-28  9:43       ` [kernel-hardening] " Herbert Xu
2016-06-28  9:43       ` Herbert Xu
2016-06-28 10:00     ` David Howells
2016-06-28 10:00       ` [kernel-hardening] " David Howells
2016-06-28 10:00       ` David Howells
2016-06-28 13:23     ` David Howells
2016-06-28 13:23       ` [kernel-hardening] " David Howells
2016-06-28 13:23       ` David Howells
2016-06-29  7:06 ` [PATCH v4 00/29] virtually mapped stacks and thread_info cleanup Mika Penttilä
2016-06-29  7:06   ` [kernel-hardening] " Mika Penttilä
2016-06-29  7:06   ` Mika Penttilä
2016-06-29 17:24   ` Mika Penttilä
2016-06-29 17:24     ` [kernel-hardening] " Mika Penttilä
2016-06-29 17:24     ` Mika Penttilä

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=ddf4847e6f114c522fefb24c16fc7a1d75138f9f.1466974736.git.luto@kernel.org \
    --to=luto@kernel.org \
    --cc=bp@alien8.de \
    --cc=brgerst@gmail.com \
    --cc=heiko.carstens@de.ibm.com \
    --cc=jann@thejh.net \
    --cc=jpoimboe@redhat.com \
    --cc=keescook@chromium.org \
    --cc=kernel-hardening@lists.openwall.com \
    --cc=linux-arch@vger.kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=nadav.amit@gmail.com \
    --cc=torvalds@linux-foundation.org \
    --cc=x86@kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.