The Linux Kernel Mailing List
 help / color / mirror / Atom feed
* [PATCH 0/2] microblaze: fix signal-frame handling for NPTL
@ 2026-06-04 15:37 Ramin Moussavi
  2026-06-04 15:37 ` [PATCH 1/2] microblaze: wire up sigaltstack Ramin Moussavi
                   ` (2 more replies)
  0 siblings, 3 replies; 9+ messages in thread
From: Ramin Moussavi @ 2026-06-04 15:37 UTC (permalink / raw)
  To: Michal Simek; +Cc: linux-kernel, Ramin Moussavi

Two independent fixes to the microblaze signal-delivery path, both found
while bringing the uClibc-ng NPTL test suite up on microblazeel under
qemu-system (petalogix-s3adsp1800).

Patch 1 wires up sigaltstack(), which is currently routed to
sys_ni_syscall even though the signal code fully supports an alternate
stack - microblaze is the only architecture leaving it unimplemented.

Patch 2 reserves the ABI argument-home area at the top of the signal
frame.  The MicroBlaze calling convention lets a handler store its
incoming register arguments into [r1+4]..[r1+28]; since r1 points at
struct rt_sigframe on entry, those stores land in siginfo/ucontext and
corrupt the signal state.  An eight-word leading gap moves them into
scratch space.

Both were tested with the uClibc-ng NPTL tests; the affected tests
(tst-cancel20/21, tst-cancelx20/21, tst-signal6, tst-timer4/5,
tst-mqueue5) now pass.  checkpatch --strict is clean and both apply to
current linux-next.

Ramin Moussavi (2):
  microblaze: wire up sigaltstack
  microblaze: reserve the ABI argument-home area in the signal frame

 arch/microblaze/kernel/signal.c             | 7 +++++++
 arch/microblaze/kernel/syscalls/syscall.tbl | 2 +-
 2 files changed, 8 insertions(+), 1 deletion(-)

-- 
2.53.0


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

end of thread, other threads:[~2026-06-05  8:34 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-06-04 15:37 [PATCH 0/2] microblaze: fix signal-frame handling for NPTL Ramin Moussavi
2026-06-04 15:37 ` [PATCH 1/2] microblaze: wire up sigaltstack Ramin Moussavi
2026-06-04 15:37 ` [PATCH 2/2] microblaze: reserve the ABI argument-home area in the signal frame Ramin Moussavi
2026-06-05  6:42   ` Michal Simek
     [not found]     ` <CAJxQxNCFym69FGxuDh_1gt+v91btBq3bvEnc=5eSApfMP=3pAA@mail.gmail.com>
2026-06-05  7:54       ` Michal Simek
2026-06-05  8:20 ` [PATCH v2 0/2] microblaze: fix signal-frame handling for NPTL Ramin Moussavi
2026-06-05  8:20   ` [PATCH v2 1/2] microblaze: wire up sigaltstack Ramin Moussavi
2026-06-05  8:20   ` [PATCH v2 2/2] microblaze: reserve the ABI argument-home area in the signal frame Ramin Moussavi
2026-06-05  8:34   ` [PATCH v2 0/2] microblaze: fix signal-frame handling for NPTL Michal Simek

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