kernel crash by linux.ko module with nooptions COMPAT_FREEBSD32 How-To-Repeat: have kernel from kernel config like: -- include GENERIC ident GENERIC-NOCOMPAT_FREEBSD32 nooptions COMPAT_FREEBSD32 # Compatible with i386 binaries -- and linux_load="YES" in /boot/loader.conf then try to boot.
Responsible Changed From-To: freebsd-bugs->freebsd-emulation Over to maintainer(s).
State Changed From-To: open->analyzed We have two possibilities in order to fix this issue: 1) Add something like the following somewhere in sys/amd/linux32: #ifndef COMPAT_FREEBSD32 #error "linux emulation requires COMPAT_FREEBSD32 option for non 32 bit architectures" #endif 2) Find a way to avoid the freebsd32_exec_copyin_args() call in linux32_machdep.c. I believe this is the only place in the sys/amd/linux32 code that depends on sys/amd64/ia32 code. NB: I've removed the panic tag from this PR. I was able to reproduce the issue, however a panic didn't occur. The problem is that freebsd32_exec_copyin_args() wasn't compiled into the kernel and loading the linux kernel module thus fails.
this patch should solve the issue. cheers. alex -- a13x
Responsible Changed From-To: freebsd-emulation->dchagin Take it.
State Changed From-To: analyzed->closed The linux module depends on COMPAT_FREEBSD32 since r205014.