]> git.baikalelectronics.ru Git - kernel.git/commit
ptrace: in PEEK_SIGINFO, check syscall bitness, not task bitness
authorAndy Lutomirski <luto@kernel.org>
Tue, 22 Mar 2016 21:24:55 +0000 (14:24 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Tue, 22 Mar 2016 22:36:02 +0000 (15:36 -0700)
commit0c7b349550d9957c213698feb07013763aa158a1
treeed55ab6ea3ba72ce135c9ba6a971b347f991a685
parent2b61f1ad35b40d8dfe1da961e2f2004d336d50ab
ptrace: in PEEK_SIGINFO, check syscall bitness, not task bitness

Users of the 32-bit ptrace() ABI expect the full 32-bit ABI.  siginfo
translation should check ptrace() ABI, not caller task ABI.

This is an ABI change on SPARC.  Let's hope that no one relied on the
old buggy ABI.

Signed-off-by: Andy Lutomirski <luto@kernel.org>
Cc: Oleg Nesterov <oleg@redhat.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
kernel/ptrace.c