[DragonFlyBSD - Bug #3346] (New) kernel panic when evdev device is detached
bugtracker-admin at leaf.dragonflybsd.org
bugtracker-admin at leaf.dragonflybsd.org
Fri Feb 24 02:35:57 PST 2023
Issue #3346 has been reported by peeter.
----------------------------------------
Bug #3346: kernel panic when evdev device is detached
http://bugs.dragonflybsd.org/issues/3346
* Author: peeter
* Status: New
* Priority: Normal
* Target version: 6.6
* Start date: 2023-02-24
----------------------------------------
*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*:
<pre>
#0 _get_mycpu () at ./machine/thread.h:69
#1 panic (fmt=fmt at entry=0xffffffff80c42d28 "%s") at /usr/src/sys/kern/kern_shutdown.c:869
#2 0xffffffff80bda181 in trap_fatal (frame=frame at entry=0xfffff8036a1916a8, eva=eva at 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 at 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 at 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 ?? ()
</pre>
--
You have received this notification because you have either subscribed to it, or are involved in it.
To change your notification preferences, please click here: http://bugs.dragonflybsd.org/my/account
More information about the Bugs
mailing list