Actions
Bug #3346
openkernel panic when evdev device is detached
Start date:
02/24/2023
Due date:
% Done:
0%
Estimated time:
Description
Systems affected: all kernels with evdev.
Description: kernel panic when an usb mouse or keyboard is detached.
How to reproduce: detach a usb device (e.g. mouse, keyboard). However, difficult to reproduce since apparently involves a race, so happens infrequently.
Kernel Backtrace:
#0 _get_mycpu () at ./machine/thread.h:69 #1 panic (fmt=fmt@entry=0xffffffff80c42d28 "%s") at /usr/src/sys/kern/kern_shutdown.c:869 #2 0xffffffff80bda181 in trap_fatal (frame=frame@entry=0xfffff8036a1916a8, eva=eva@entry=0) at /usr/src/sys/platform/pc64/x86_64/trap.c:1100 #3 0xffffffff80bdafa7 in trap (frame=0xfffff8036a1916a8) at /usr/src/sys/platform/pc64/x86_64/trap.c:786 #4 0xffffffff80b9e3ba in calltrap () at /usr/src/sys/platform/pc64/x86_64/exception.S:319 #5 0xffffffff80645bdd in lockmgr_exclusive (lkp=0x2f3c6d756e766564, flags=flags@entry=2) at /usr/src/sys/kern/kern_lock.c:295 #6 0xffffffff809c7510 in lockmgr (flags=2, lkp=<optimized out>) at /usr/src/sys/sys/lock.h:271 #7 evdev_dtor (data=0xfffff80154636880) at /usr/src/sys/dev/misc/evdev/cdev.c:158 #8 0xffffffff8091b350 in devfs_clear_cdevpriv (fp=0xfffff8034e599100) at /usr/src/sys/vfs/devfs/devfs_core.c:3002 #9 0xffffffff8091d4bc in devfs_fo_close (fp=0xfffff8034e599100) at /usr/src/sys/vfs/devfs/devfs_vnops.c:1234 #10 0xffffffff8062ffcf in fo_close (fp=0xfffff8034e599100) at /usr/src/sys/sys/file2.h:103 #11 fdrop (fp=0xfffff8034e599100) at /usr/src/sys/kern/kern_descrip.c:3103 #12 0xffffffff80630912 in closef (fp=0xfffff8034e599100, p=p@entry=0xfffff801545ff480) at /usr/src/sys/kern/kern_descrip.c:3016 #13 0xffffffff80630b1f in kern_close (fd=19) at /usr/src/sys/kern/kern_descrip.c:1455 #14 0xffffffff80bdbb0e in syscall2 (frame=0xfffff8036a1919f8) at /usr/src/sys/platform/pc64/x86_64/trap.c:1284 #15 0xffffffff80b9ebcd in Xfast_syscall () at /usr/src/sys/platform/pc64/x86_64/exception.S:448 #16 0x000000000000002b in ?? ()
No data to display
Actions