linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 0/2]: ARM: Enable THREAD_INFO_IN_TASK
@ 2021-09-02 15:54 Keith Packard
  2021-09-02 15:54 ` [PATCH 1/2] ARM: Add per-cpu variable holding cpu number Keith Packard
                   ` (4 more replies)
  0 siblings, 5 replies; 36+ messages in thread
From: Keith Packard @ 2021-09-02 15:54 UTC (permalink / raw)
  To: linux-kernel
  Cc: Abbott Liu, Alexander Sverdlin, Al Viro, Andrew Morton,
	Anshuman Khandual, Ard Biesheuvel, Arnd Bergmann,
	Bjorn Andersson, Florian Fainelli, Geert Uytterhoeven,
	Hartley Sweeten, Jens Axboe, Jian Cai, Joe Perches,
	Keith Packard, Linus Walleij, linux-arm-kernel, Maninder Singh,
	Manivannan Sadhasivam, Marc Zyngier, Masahiro Yamada,
	Mike Rapoport, Nick Desaulniers, Nick Desaulniers, Nicolas Pitre,
	Peter Zijlstra, Russell King, Thomas Gleixner,
	Uwe Kleine-König, Valentin Schneider, Vaneet Narang,
	Wolfram Sang (Renesas),
	YiFei Zhu, Keith Packard

Placing thread_info in the kernel stack leaves it vulnerable to stack
overflow attacks. This short series addresses that by using the
existing THREAD_INFO_IN_TASK infrastructure.

As this is my first patch in this part of the kernel, I'm looking for
feedback about the general approach as well as specific comments on
places where I've missed something.

I've only run this on armhf running under qemu, so while I've tried to
make patches for other code paths, I haven't been able to test those.

(yes, I know checkpatch.pl complains about whitespace in asm-offsets.c, I
decided to leave the existing whitespace alone)

Signed-off-by: Keith Packard <keithpac@amazon.com>


^ permalink raw reply	[flat|nested] 36+ messages in thread

end of thread, other threads:[~2021-09-09 13:58 UTC | newest]

Thread overview: 36+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-09-02 15:54 [PATCH 0/2]: ARM: Enable THREAD_INFO_IN_TASK Keith Packard
2021-09-02 15:54 ` [PATCH 1/2] ARM: Add per-cpu variable holding cpu number Keith Packard
2021-09-02 15:54 ` [PATCH 2/2] ARM: Move thread_info into task_struct Keith Packard
2021-09-02 16:07 ` [PATCH 0/2]: ARM: Enable THREAD_INFO_IN_TASK Kees Cook
2021-09-02 16:18   ` Ard Biesheuvel
2021-09-02 17:37     ` Kees Cook
2021-09-02 16:54   ` Russell King (Oracle)
2021-09-02 16:53 ` Russell King (Oracle)
2021-09-02 17:35   ` Kees Cook
2021-09-02 17:58   ` Keith Packard
2021-09-04  6:09 ` [PATCH 0/2] ARM: support THREAD_INFO_IN_TASK (v7 only) (v2) Keith Packard
2021-09-04  6:09   ` [PATCH 1/3] ARM: Pass cpu number to secondary_start_kernel Keith Packard
2021-09-05 20:25     ` Ard Biesheuvel
2021-09-04  6:09   ` [PATCH 2/3] ARM: Move thread_info into task_struct (v7 only) Keith Packard
2021-09-05 20:56     ` Ard Biesheuvel
2021-09-06  6:14       ` Keith Packard
2021-09-06  7:49         ` Ard Biesheuvel
2021-09-07 15:24           ` Keith Packard
2021-09-07 16:05             ` Ard Biesheuvel
2021-09-07 22:17               ` Keith Packard
2021-09-06  6:20       ` Keith Packard
2021-09-04  6:09   ` [PATCH 3/3] ARM: Add per-cpu variable cpu_number " Keith Packard
2021-09-07 22:00   ` [PATCH 0/7] ARM: support THREAD_INFO_IN_TASK (v3) Keith Packard
2021-09-07 22:00     ` [PATCH 1/7] ARM: Pass cpu number to secondary_start_kernel Keith Packard
2021-09-07 22:00     ` [PATCH 2/7] ARM: Pass task " Keith Packard
2021-09-07 22:00     ` [PATCH 3/7] ARM: Use smp_processor_id() in vfp_pm_suspend instead of ti->cpu Keith Packard
2021-09-07 22:00     ` [PATCH 4/7] ARM: Use hack from powerpc to get current cpu number Keith Packard
2021-09-08  7:45       ` Ard Biesheuvel
2021-09-07 22:00     ` [PATCH 5/7] ARM: Stop using TPIDRPRW to hold per_cpu_offset Keith Packard
2021-09-09 13:54       ` Ard Biesheuvel
2021-09-07 22:00     ` [PATCH 6/7] ARM: Use TPIDRPRW for current Keith Packard
2021-09-09 13:56       ` Ard Biesheuvel
2021-09-07 22:00     ` [PATCH 7/7] ARM: Move thread_info into task_struct (v7 only) Keith Packard
2021-09-08  7:01     ` [PATCH 0/7] ARM: support THREAD_INFO_IN_TASK (v3) Krzysztof Kozlowski
2021-09-08  7:47       ` Ard Biesheuvel
2021-09-08  7:50         ` Geert Uytterhoeven

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).