NetBSD-Bugs archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
Re: kern/53261: kernel crash during test run
The following reply was made to PR kern/53261; it has been noted by GNATS.
From: Martin Husemann <martin%duskware.de@localhost>
To: gnats-bugs%NetBSD.org@localhost
Cc:
Subject: Re: kern/53261: kernel crash during test run
Date: Wed, 23 May 2018 15:53:20 +0200
On Wed, May 23, 2018 at 01:45:01PM +0000, Kamil Rytarowski wrote:
> Syscall6 is a wrapper for RawSyscall that is a wrapper for syscall(2).
> We should just fix the ARM panic and be done with it.
You do not understand. Read the syscall(2) man page.
Using syscall(2) instead of __syscall(2) for any of the calls I listed
is illegal.
If it works, it is by pure luck. You typically may have such luck on
_LP64 platforms (all args passed in 64bit registers) and i386 (args
passed on stack) - but usually the wrong arguments will be passed to
the kernel. The sparc case that uwe cited will still fail the call
(but at least not panic the kernel like arm).
Martin
Home |
Main Index |
Thread Index |
Old Index