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: Valery Ushakov <uwe%stderr.spb.ru@localhost>
To: gnats-bugs%NetBSD.org@localhost
Cc: 
Subject: Re: kern/53261: kernel crash during test run
Date: Wed, 23 May 2018 17:34:45 +0300

 On Wed, May 23, 2018 at 13:45:01 +0000, Kamil Rytarowski wrote:
 
 >  Blacklisting these syscall break compat and perhaps existing programs,
 >  for example in Golang ARM:
 >  
 >  ./zsyscall_netbsd_arm.go:       _, _, e1 := Syscall6(SYS_FTRUNCATE,
 >  uintptr(fd), 0, uintptr(length), uintptr(length>>32), 0, 0)
 [...]
 >  Syscall6 is a wrapper for RawSyscall that is a wrapper for syscall(2).
 
 That will panic with misaligned access on armv5 too, won't it?
 
 Note also that this code doesn't actually pass a 64-bit argument at
 the language level, so the calling convention concerns for syscall
 vs. __syscall do not apply here.
 
 -uwe
 


Home | Main Index | Thread Index | Old Index