Created attachment 174220 [details] Suggested patch for audio/oss OSS causes following kernel panic when loaded: Sun Aug 28 16:20:42 CEST 2016 FreeBSD roosta.adl.cz.eu.org 10.3-STABLE FreeBSD 10.3-STABLE #1 r304804M: Fri Aug 26 21:49:50 CEST 2016 root@roosta.adl.cz.eu.org:/usr/obj/usr/src/sys/MYKERNEL amd64 panic: Unregistered use of FPU in kernel Unread portion of the kernel message buffer: panic: Unregistered use of FPU in kernel cpuid = 1 KDB: stack backtrace: #0 0xffffffff8087c380 at kdb_backtrace+0x60 #1 0xffffffff8083efc6 at vpanic+0x126 #2 0xffffffff8083ee93 at panic+0x43 #3 0xffffffff80c4851d at trap+0x71d #4 0xffffffff80c2e30c at calltrap+0x8 #5 0xffffffff81c6daf8 at oss_install_audiodev+0x38 #6 0xffffffff81cdb67e at oss_audigyls_attach+0x72e #7 0xffffffff81cde388 at osspci_probe+0x198 #8 0xffffffff808713f0 at device_probe_child+0x160 #9 0xffffffff80872060 at device_probe+0x40 #10 0xffffffff8087214e at device_probe_and_attach+0xe #11 0xffffffff806292da at pci_driver_added+0xea #12 0xffffffff808706ea at devclass_driver_added+0x7a #13 0xffffffff8087064c at devclass_add_driver+0x11c #14 0xffffffff808233db at module_register_init+0xfb #15 0xffffffff80818ab7 at linker_load_module+0xc17 #16 0xffffffff80819f03 at kern_kldload+0xc3 #17 0xffffffff80819fdb at sys_kldload+0x5b Steps to reproduce: 1. build kernel without sound(4) 2. install audio/oss port 3. service oss onestart I don't have any other OSS supported sound card, so I can't tell whether the problem is specific for audigyls module or not. Suggested solution: This discussion mentions the same kernel panic: https://forums.freebsd.org/threads/39858/ Using -mno-sse for compiling kernel modules, as suggested here, seems to resolve this issue.
I have the same kernel panic on 11.0-PRERELEASE r305587 no-sse patch fixes things for me. I'm loading osscore.ko and oss_cmi878x.ko for my soundcard.
A commit references this bug: Author: jbeich Date: Sat Mar 25 03:29:10 UTC 2017 New revision: 436874 URL: https://svnweb.freebsd.org/changeset/ports/436874 Log: audio/oss: update to 4.2.b2017 (maintenance release) - Add a note about origin to avoid users from Linux blaming FreeBSD for 4Front's bugs and vice versa - Disable SSE on amd64 to avoid kernel panic[1] Changes: http://opensound.com/forum/viewtopic.php?f=19&t=5841 PR: 212263 Submitted by: Jakub Adler <jakubadler@gmail.com> [1] MFH: 2017Q1 Changes: head/audio/oss/Makefile head/audio/oss/distinfo head/audio/oss/files/patch-setup_srcconf__freebsd.inc head/audio/oss/pkg-descr head/audio/oss/pkg-plist
A commit references this bug: Author: jbeich Date: Sun Mar 26 01:04:13 UTC 2017 New revision: 436927 URL: https://svnweb.freebsd.org/changeset/ports/436927 Log: MFH: r436874 audio/oss: update to 4.2.b2017 (maintenance release) - Add a note about origin to avoid users from Linux blaming FreeBSD for 4Front's bugs and vice versa - Disable SSE on amd64 to avoid kernel panic[1] Changes: http://opensound.com/forum/viewtopic.php?f=19&t=5841 PR: 212263 Submitted by: Jakub Adler <jakubadler@gmail.com> [1] Approved by: ports-secteam (junovitch) Changes: _U branches/2017Q1/ branches/2017Q1/audio/oss/Makefile branches/2017Q1/audio/oss/distinfo branches/2017Q1/audio/oss/files/patch-setup_srcconf__freebsd.inc branches/2017Q1/audio/oss/pkg-descr branches/2017Q1/audio/oss/pkg-plist