Re: [PATCH] Set unknown_syscall differently on arm linux

Mike Frysinger
2016-07-04T02:20:09Z

[-- Attachment #1: Type: text/plain, Size: 752 bytes --]

On 30 Jun 2016 15:48, Yao Qi wrote:
> On Thu, Jun 30, 2016 at 1:58 PM, Mike Frysinger <vapier@gentoo.org> wrote:
> > wow, that code is messed up. can you raise a bug with them ? there's
> > even more code paths in there that result in SIGSEGV too. the history
> > predates 2.4.0 afaict.
>
> Sure, I can raise a bug somewhere or ask it in arm kernel mail list, but
> why do you think it is a bug that SIGILL is raised when an illegal/unknown
> syscall number is passed to syscall? because other archs don't behave
> this way?

correct -- i know of no other arch that behaves this way. the syscall
ABI is supposed to communicate errors via return values (which are errno
values), not by sending signals which kill the process.
-mike

[-- Attachment #2: Digital signature --]
[-- Type: application/pgp-signature, Size: 819 bytes --]