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:16:04 +0200

 On Wed, May 23, 2018 at 01:10:01PM +0000, Kamil Rytarowski wrote:
 >  This code works reliably on i386 in 32-bit mode. This includes more
 >  advanced sanitizer ASan that allocates a lot of memory.
 
 Doing something like:
 
 	void *p = syscall(SYS_mmap, 0, 4, PROT_WRITE, MAP_PRIVATE,
 	    fileno(f), 0);
 
 may work by pure chance on some ABIs, but it *NEVER* is the right thing
 to do.
 
 So making syscall() fail if passed SYS_mmap is a good thing, IMHO.
 
 Martin
 


Home | Main Index | Thread Index | Old Index