From mboxrd@z Thu Jan 1 00:00:00 1970 From: ebiederm@xmission.com (Eric W. Biederman) Subject: [PATCH 0/2] alpha/ptrace: Improved switch_stack handling Date: Wed, 16 Jun 2021 13:29:38 -0500 Message-ID: <87pmwlek8d.fsf_-_@disp2133> References: <87sg1p30a1.fsf@disp2133> <87pmwsytb3.fsf@disp2133> <87sg1lwhvm.fsf@disp2133> <6e47eff8-d0a4-8390-1222-e975bfbf3a65@gmail.com> <924ec53c-2fd9-2e1c-bbb1-3fda49809be4@gmail.com> <87eed4v2dc.fsf@disp2133> <5929e116-fa61-b211-342a-c706dcb834ca@gmail.com> <87fsxjorgs.fsf@disp2133> <87zgvqor7d.fsf_-_@disp2133> <87mtrpg47k.fsf@disp2133> Mime-Version: 1.0 Return-path: In-Reply-To: <87mtrpg47k.fsf@disp2133> (Eric W. Biederman's message of "Wed, 16 Jun 2021 11:32:47 -0500") List-ID: Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: Linus Torvalds Cc: Michael Schmitz , linux-arch , Jens Axboe , Oleg Nesterov , Al Viro , Linux Kernel Mailing List , Richard Henderson , Ivan Kokshaysky , Matt Turner , alpha , Geert Uytterhoeven , linux-m68k , Arnd Bergmann , Ley Foon Tan , Tejun Heo , Kees Cook This pair of changes has not received anything beyond build and boot testing. I am posting these changes as they do a much better job of warning of problems and shutting down the security hole. Making them a much better pattern than the my last patch. I hope to get the test cases soon. arch/alpha/include/asm/thread_info.h | 2 ++ arch/alpha/kernel/entry.S | 62 ++++++++++++++++++++++++++-------- arch/alpha/kernel/process.c | 3 ++ arch/alpha/kernel/ptrace.c | 13 +++++-- arch/alpha/kernel/syscalls/syscall.tbl | 8 ++--- 5 files changed, 67 insertions(+), 21 deletions(-) Eric W. Biederman (2): alpha/ptrace: Record and handle the absence of switch_stack alpha/ptrace: Add missing switch_stack frames