public inbox for linux-m68k@lists.linux-m68k.org
 help / color / mirror / Atom feed
* [PATCH v3] m68k: improved switch stack handling
@ 2021-06-20  8:14 Michael Schmitz
  2021-06-20  8:14 ` [PATCH v3 1/3] m68k: save extra registers on more syscall entry points Michael Schmitz
                   ` (2 more replies)
  0 siblings, 3 replies; 6+ messages in thread
From: Michael Schmitz @ 2021-06-20  8:14 UTC (permalink / raw)
  To: geert, linux-arch, linux-m68k; +Cc: ebiederm, torvalds, schwab

m68k version of Eric's 'improved switch stack handling' patch for alpha. 

The first two patches address m68k missing saving switch_stack on
those syscalls that can may call ptrace_stop(), and adding a full stack
frame in kernel threads.

The last patch adds a 'status' field to m68k thread_info struct, and
stores information about whether a syscall trace is in progress, and
a full stack frame has been saved, in that field. This information can
be used in arch/m68k/kernel/ptrace.c by get/put_reg() to guard against
accessing incorrect information on the stack (haven't got around to
that bit yet). I'm quite certain I haven't picked the most efficient
implementation here - suggestions to optimize most welcome!

Cheers,

   Michael




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

end of thread, other threads:[~2021-06-21 16:06 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2021-06-20  8:14 [PATCH v3] m68k: improved switch stack handling Michael Schmitz
2021-06-20  8:14 ` [PATCH v3 1/3] m68k: save extra registers on more syscall entry points Michael Schmitz
2021-06-20  8:14 ` [PATCH v3 2/3] m68k: correctly handle IO worker stack frame set-up Michael Schmitz
2021-06-21  3:57   ` Finn Thain
2021-06-21 16:06     ` Linus Torvalds
2021-06-20  8:14 ` [PATCH v3 3/3] m68k: track syscalls being traced with shallow user context stack Michael Schmitz

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox