NetBSD-Bugs archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

kern/55025: COMPAT_09 Syscall Failures on NetBSD 9.0 i386 (Change from 8.0)



>Number:         55025
>Category:       kern
>Synopsis:       COMPAT_09 Fails Calling COMPAT_43 Syscalls on 9.0
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    kern-bug-people
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Wed Feb 26 21:50:00 +0000 2020
>Originator:     Dan Plassche
>Release:        NetBSD 9.0
>Environment:
	System:	NetBSD 9.0 (GENERIC) #0: Fri Feb 14 00:06:28 UTC 2020 
		mkrepro%mkrepro.NetBSD.org@localhost:/usr/src/sys/arch/i386/compile/
		GENERIC i386
	Architecture: i386
	Machine: i386
>Description:
Running NetBSD 0.9 binaries on Release 8 worked and now fails with errors 
when attempting to use COMPAT_43 syscalls.

 Examples:

 # ktrace /emul/nbsd-09/bin/ls; kdump
 [1]   Bad system call (core dumped) ktrace /emul/nbsd-09/bin/ls
    41      1 ktrace   EMUL  "netbsd"
    41      1 ktrace   CALL  execve(0xbfaffbdf,0xbfaff710,0xbfaff718)
    41      1 ktrace   NAMI  "/emul/nbsd-09/bin/ls"
    41      1 ls       EMUL  "netbsd"
    41      1 ls       RET   execve JUSTRETURN
    41      1 ls       CALL  ioctl(1,TIOCGETA,0xbfbfed60)
    41      1 ls       GIO   fd 1 read 44 bytes
       "\^B+\0\0\a\0\0\0\0K\0\0\M-K\^E\0 \^D\M^?\M^?\^?\^W\^U\^R\M^?\^C\^\\^Z\
        \^Y\^Q\^S\^V\^O\^A\0\^T\M^?\0\M^V\0\0\0\M^V\0\0"
    41      1 ls       RET   ioctl 0
    41      1 ls       CALL  ioctl(1,TIOCGWINSZ,0xbfbfeda4)
    41      1 ls       GIO   fd 1 read 8 bytes
       "0\0P\0\0\0\0\0"
    41      1 ls       RET   ioctl 0
    41      1 ls       CALL  getuid
    41      1 ls       RET   getuid 0
    41      1 ls       CALL  compat_43_stat43(0xbfbfeda2,0xbfbfed48)
    41      1 ls       RET   compat_43_stat43 -1 errno 78 Function not 
 implemented
    41      1 ls       PSIG  SIGSYS SIG_DFL: code=SI_NOINFO
    41      1 ls       NAMI  "ls.core"
 
 # ktrace /emul/nbsd-09/bin/echo test; kdump
 [1]   Bad system call (core dumped) ktrace /emul/nbsd-09/bin/echo test
   332      1 ktrace   EMUL  "netbsd"
   332      1 ktrace   CALL  execve(0xbfbad76f,0xbfbad29c,0xbfbad2a8)
   332      1 ktrace   NAMI  "/emul/nbsd-09/bin/echo"
   332      1 echo     EMUL  "netbsd"
   332      1 echo     RET   execve JUSTRETURN
   332      1 echo     CALL  compat_43_fstat43(1,0xbfbfeab0)
   332      1 echo     RET   compat_43_fstat43 -1 errno 78 Function not 
 implemented
   332      1 echo     PSIG  SIGSYS SIG_DFL: code=SI_NOINFO
   332      1 echo     NAMI  "echo.core"

I could not test other Net/2 derived i386 BSD releases that would rely on 
43_COMPAT syscalls on 9.0 (386BSD 0.1, NetBSD 0.8, and BSD/OS 1.0) because 
they fail with an executable format error starting with release NetBSD 8.0.  
Those binaries and NetBSD 0.9 binaries ran on release 7.  

>How-To-Repeat:
Run NetBSD 0.9 binaries using the default options in GENERIC or MONOLITHIC 
kernels.

Both kernels failed with the errors above, although COMPAT_43 is included by 
the /usr/src/sys/conf/compat_netbsd.config that's included from /usr/src/sys/
conf/compat_netbsd09.config by default. 

>Fix:

Unknown
>Unformatted:
 



Home | Main Index | Thread Index | Old Index