All of lore.kernel.org
 help / color / mirror / Atom feed
* x32 is broken in 4.9-rc1 due to "x86/signal: Add SA_{X32,IA32}_ABI sa_flags"
@ 2016-10-19 17:19 ` Mikulas Patocka
  0 siblings, 0 replies; 17+ messages in thread
From: Mikulas Patocka @ 2016-10-19 17:19 UTC (permalink / raw)
  To: Dmitry Safonov
  Cc: 0x7f454c46, oleg, linux-mm, gorcunov, xemul, Thomas Gleixner,
	linux-kernel

[-- Attachment #1: Type: TEXT/PLAIN, Size: 995 bytes --]

Hi

In the kernel 4.9-rc1, the x32 support is seriously broken, a x32 process 
is killed with SIGKILL after returning from any signal handler.

I use Debian sid x64-64 distribution with x32 architecture added from 
debian-ports.

I bisected the bug and found out that it is caused by the patch 
6846351052e685c2d1428e80ead2d7ca3d7ed913 ("x86/signal: Add 
SA_{X32,IA32}_ABI sa_flags").

example (strace of a process after receiving the SIGWINCH signal):

epoll_wait(10, 0xef6890, 32, -1)        = -1 EINTR (Interrupted system call)
--- SIGWINCH {si_signo=SIGWINCH, si_code=SI_USER, si_pid=1772, si_uid=0} ---
poll([{fd=4, events=POLLOUT}], 1, 0)    = 1 ([{fd=4, revents=POLLOUT}])
write(4, "\0", 1)                       = 1
rt_sigreturn({mask=[INT QUIT ILL TRAP BUS KILL SEGV USR2 PIPE ALRM STKFLT TSTP TTOU URG XCPU XFSZ VTALRM IO PWR SYS RTMIN]}) = 0
--- SIGSEGV {si_signo=SIGSEGV, si_code=SI_KERNEL, si_addr=NULL} ---
+++ killed by SIGSEGV +++
Neopravniny poistup do pamiti (SIGSEGV)

Mikulas

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

end of thread, other threads:[~2016-10-21  5:50 UTC | newest]

Thread overview: 17+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-10-19 17:19 x32 is broken in 4.9-rc1 due to "x86/signal: Add SA_{X32,IA32}_ABI sa_flags" Mikulas Patocka
2016-10-19 17:19 ` Mikulas Patocka
2016-10-19 17:33 ` Mikulas Patocka
2016-10-19 17:33   ` Mikulas Patocka
2016-10-19 17:45   ` Dmitry Safonov
2016-10-19 17:45     ` Dmitry Safonov
2016-10-19 22:02   ` Dmitry Safonov
2016-10-20  3:13     ` Adam Borowski
2016-10-20  3:13       ` Adam Borowski
2016-10-20  9:21     ` [tip:x86/urgent] x86/signal: Remove bogus user_64bit_mode() check from sigaction_compat_abi() tip-bot for Dmitry Safonov
2016-10-20  9:24     ` x32 is broken in 4.9-rc1 due to "x86/signal: Add SA_{X32,IA32}_ABI sa_flags" Thomas Gleixner
2016-10-20  9:24       ` Thomas Gleixner
2016-10-20 11:00       ` Dmitry Safonov
2016-10-20 11:00         ` Dmitry Safonov
2016-10-20 15:22     ` Mikulas Patocka
2016-10-20 15:22       ` Mikulas Patocka
2016-10-21  5:49     ` [tip:x86/urgent] x86/signal: Remove bogus user_64bit_mode() check from sigaction_compat_abi() tip-bot for Dmitry Safonov

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.