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 13:43:47 +0200
While the usefullness of syscall(2) and __syscall(2) is unclear, and its
use in sanitizer sounds like a bug, we should still make the kernel
reject the invalid calls in syscall(2).
Grepping through syscalls.master it would seem that we should have a
switch (code) {
case SYS_pwritev:
case SYS_mknodat:
case SYS_truncate:
case SYS_ftruncate:
case SYS_preadv:
case SYS_lseek:
case SYS_fsync_range:
case SYS_mmap:
case SYS_pwrite:
case SYS___posix_fadvise50:
case SYS_posix_fallocate:
case SYS_pread:
case SYS_fdiscard:
return EINVAL;
}
or similar, at least if emul == netbsd.
Martin
Home |
Main Index |
Thread Index |
Old Index