O92O92panic: kernel diagnostic assertion "_kernel_lock_held()" failed: file "/syzkaller/managers/multicore/kernel/sys/kern/kern_event.c", line 1076 Stopped at db_enter+0x18: addq $0x8,%rsp TID PID UID PRFLAGS PFLAGS CPU COMMAND 152926 45576 0 0x14000 0x200 0 reaper *397050 60956 0 0x14000 0x200 1 smr db_enter() at db_enter+0x18 sys/arch/amd64/amd64/db_interface.c:398 panic() at panic+0x15c sys/kern/subr_prf.c:208 __assert(ffffffff81f8db24,ffffffff81f88754,434,ffffffff81f985fd) at __assert+0x2e sys/kern/subr_prf.c:155 knote_enqueue(fffffd806ec59e00) at knote_enqueue+0x216 sys/kern/kern_event.c:1076 knote(ffffffff82383f58,1000000) at knote+0xbd sys/kern/kern_event.c:957 selwakeup(ffffffff82383f58) at selwakeup+0x3b sys/kern/sys_generic.c:795 logwakeup() at logwakeup+0x3b sys/kern/subr_log.c:310 printf(ffffffff81f80366) at printf+0x9f sys/kern/subr_prf.c:519 smr_thread(ffff800020ac1770) at smr_thread+0x335 sys/kern/kern_smr.c:114 end trace frame: 0x0, count: 6 https://www.openbsd.org/ddb.html describes the minimum info required in bug reports. Insufficient info makes it difficult to find and fix bugs. ddb{1}> ddb{1}> set $lines = 0 ddb{1}> set $maxwidth = 0 ddb{1}> show panic kernel diagnostic assertion "_kernel_lock_held()" failed: file "/syzkaller/managers/multicore/kernel/sys/kern/kern_event.c", line 1076 ddb{1}> trace db_enter() at db_enter+0x18 sys/arch/amd64/amd64/db_interface.c:398 panic() at panic+0x15c sys/kern/subr_prf.c:208 __assert(ffffffff81f8db24,ffffffff81f88754,434,ffffffff81f985fd) at __assert+0x2e sys/kern/subr_prf.c:155 knote_enqueue(fffffd806ec59e00) at knote_enqueue+0x216 sys/kern/kern_event.c:1076 knote(ffffffff82383f58,1000000) at knote+0xbd sys/kern/kern_event.c:957 selwakeup(ffffffff82383f58) at selwakeup+0x3b sys/kern/sys_generic.c:795 logwakeup() at logwakeup+0x3b sys/kern/subr_log.c:310 printf(ffffffff81f80366) at printf+0x9f sys/kern/subr_prf.c:519 smr_thread(ffff800020ac1770) at smr_thread+0x335 sys/kern/kern_smr.c:114 end trace frame: 0x0, count: -9 ddb{1}> show registers rdi 0 rsi 0x1 rbp 0xffff800020ac98b0 rbx 0xffff800020ac9960 rdx 0xffff800020ac1770 rcx 0 rax 0 r8 0xffffffff81722d13 kprintf+0x173 r9 0x1 r10 0x25 r11 0x32f7719132ff7ba r12 0x3000000008 r13 0xffff800020ac98c0 r14 0x100 r15 0x1 rip 0xffffffff813f9008 db_enter+0x18 cs 0x8 rflags 0x246 rsp 0xffff800020ac98a0 ss 0x10 db_enter+0x18: addq $0x8,%rsp ddb{1}> show proc PROC (smr) pid=397050 stat=onproc flags process=14000 proc=200 pri=50, usrpri=50, nice=20 forw=0xffffffffffffffff, list=0xffff800020ac1c20,0xffff800020ac1078 process=0xffff800020ac33b0 user=0xffff800020ac4000, vmspace=0xffffffff8234acc8 estcpu=0, cpticks=0, pctcpu=0.0 user=0, sys=0, intr=0 ddb{1}> ps PID TID PPID UID S FLAGS WAIT COMMAND 28578 348603 65968 0 2 0 syz-executor.1 28578 157012 65968 0 2 0x4000000 syz-executor.1 28578 213517 65968 0 2 0x4000000 syz-executor.1 61116 283066 21197 0 3 0x82 wait syz-executor.0 65968 292285 21197 0 2 0x2 syz-executor.1 79539 172979 1 0 3 0x100083 ttyin getty 47014 252778 0 0 3 0x14200 bored sosplice 21197 479099 35241 0 3 0x82 thrsleep syz-fuzzer 21197 486591 35241 0 3 0x4000082 nanosleep syz-fuzzer 21197 227723 35241 0 3 0x4000082 thrsleep syz-fuzzer 21197 373684 35241 0 2 0x4000082 syz-fuzzer 21197 345254 35241 0 3 0x4000082 kqread syz-fuzzer 21197 407462 35241 0 3 0x4000082 thrsleep syz-fuzzer 21197 152733 35241 0 3 0x4000082 thrsleep syz-fuzzer 21197 2716 35241 0 3 0x4000082 thrsleep syz-fuzzer 21197 457010 35241 0 2 0x4000482 syz-fuzzer 21197 21633 35241 0 3 0x4000082 thrsleep syz-fuzzer 35241 126268 86252 0 3 0x10008a pause ksh 86252 295210 2595 0 3 0x92 select sshd 2595 209026 1 0 3 0x80 select sshd 56771 479894 28061 74 3 0x100092 bpf pflogd 28061 47668 1 0 3 0x80 netio pflogd 67994 124447 33161 73 3 0x100090 kqread syslogd 33161 397939 1 0 3 0x100082 netio syslogd 62298 490529 1 77 3 0x100090 poll dhclient 48527 155043 1 0 3 0x80 poll dhclient 80116 97199 0 0 2 0x14200 zerothread 95129 279744 0 0 3 0x14200 aiodoned aiodoned 59673 372265 0 0 3 0x14200 syncer update 91298 287686 0 0 3 0x14200 cleaner cleaner 45576 152926 0 0 7 0x14200 reaper 32819 342909 0 0 3 0x14200 pgdaemon pagedaemon 69246 51315 0 0 3 0x14200 bored crynlk 59276 44154 0 0 3 0x14200 bored crypto 62968 238450 0 0 3 0x40014200 acpi0 acpi0 74884 195415 0 0 3 0x40014200 idle1 36622 424968 0 0 2 0x14200 softnet 82981 6345 0 0 3 0x14200 bored systqmp 39342 504432 0 0 3 0x14200 bored systq 11158 509089 0 0 3 0x40014200 bored softclock 56492 171100 0 0 3 0x40014200 idle0 *60956 397050 0 0 7 0x14200 smr 1 216948 0 0 3 0x82 wait init 0 0 -1 0 3 0x10200 scheduler swapper ddb{1}> show all locks Process 45576 (reaper) thread 0xffff800020ac19c8 (152926) exclusive rwlock vmmaplk r = 0 (0xffffffff8223fb70) #0 witness_lock+0x52e sys/kern/subr_witness.c:1161 #1 rw_enter+0x414 sys/kern/kern_rwlock.c:278 #2 vm_map_lock_ln+0x10d sys/uvm/uvm_map.c:5260 #3 uvm_unmap+0x6b sys/uvm/uvm_map.c:1947 #4 uvm_uarea_free+0x36 sys/uvm/uvm_glue.c:287 #5 reaper+0x140 sys/kern/kern_exit.c:420 #6 proc_trampoline+0x1c exclusive kernel_lock &kernel_lock r = 0 (0xffffffff82361c68) #0 witness_lock+0x52e sys/kern/subr_witness.c:1161 #1 reaper+0x138 sys/kern/kern_exit.c:419 #2 proc_trampoline+0x1c ddb{1}> show malloc Type InUse MemUse HighUse Limit Requests Type Lim Kern Lim devbuf 9555 6448K 6964K 78643K 17195 0 0 pcb 25 9K 11K 78643K 1536 0 0 rtable 108 4K 4K 78643K 8190 0 0 ifaddr 68 17K 18K 78643K 1329 0 0 counters 39 33K 33K 78643K 39 0 0 ioctlops 0 0K 4K 78643K 1727 0 0 iov 0 0K 24K 78643K 251 0 0 mount 1 1K 1K 78643K 1 0 0 vnodes 1194 75K 76K 78643K 6692 0 0 UFS quota 1 32K 32K 78643K 1 0 0 UFS mount 5 36K 36K 78643K 5 0 0 shm 2 1K 5K 78643K 38 0 0 VM map 2 1K 1K 78643K 2 0 0 sem 12 0K 1K 78643K 404 0 0 dirhash 15 2K 2K 78643K 18 0 0 ACPI 1808 196K 290K 78643K 12628 0 0 file desc 6 17K 25K 78643K 6668 0 0 sigio 0 0K 0K 78643K 42 0 0 proc 55 51K 83K 78643K 7515 0 0 subproc 64 65538K 67586K 78643K 5922 0 0 NFS srvsock 1 0K 0K 78643K 1 0 0 NFS daemon 1 16K 16K 78643K 1 0 0 ip_moptions 0 0K 0K 78643K 258 0 0 in_multi 33 2K 2K 78643K 2030 0 0 ether_multi 1 0K 0K 78643K 28 0 0 mrt 0 0K 0K 78643K 9 0 0 ISOFS mount 1 32K 32K 78643K 1 0 0 MSDOSFS mount 1 16K 16K 78643K 1 0 0 ttys 102 450K 450K 78643K 102 0 0 exec 0 0K 1K 78643K 2609 0 0 pfkey data 0 0K 0K 78643K 7 0 0 pagedep 1 8K 8K 78643K 1 0 0 inodedep 1 32K 32K 78643K 1 0 0 newblk 1 0K 0K 78643K 1 0 0 VM swap 7 26K 26K 78643K 7 0 0 UVM amap 119 23K 31K 78643K 21989 0 0 UVM aobj 130 6K 6K 78643K 138 0 0 memdesc 1 4K 4K 78643K 1 0 0 crypto data 1 1K 1K 78643K 1 0 0 ip6_options 0 0K 0K 78643K 138 0 0 NDP 15 0K 0K 78643K 596 0 0 temp 193 2716K 2784K 78643K 39815 0 0 kqueue 0 0K 0K 78643K 17 0 0 SYN cache 2 16K 16K 78643K 2 0 0 ddb{1}> show all pools Name Size Requests Fail Releases Pgreq Pgrel Npage Hiwat Minpg Maxpg Idle arp 64 350 0 344 1 0 1 1 0 8 0 inpcbpl 280 1784 0 1777 1 0 1 1 0 8 0 plimitpl 152 321 0 313 1 0 1 1 0 8 0 plcache 128 20 0 0 1 0 1 1 0 8 0 rtentry 112 1938 0 1894 3 1 2 2 0 8 0 syncache 264 4 0 4 1 1 0 1 0 8 0 tcpcb 544 405 0 401 1 0 1 1 0 8 0 rttmr 72 1 0 1 1 1 0 1 0 8 0 nd6 48 522 0 516 1 0 1 1 0 8 0 ppxss 1128 48 0 48 16 16 0 1 0 8 0 pffrag 232 1 0 1 1 1 0 1 0 482 0 pffrnode 88 1 0 1 1 1 0 1 0 8 0 pffrent 40 3 0 3 2 2 0 1 0 8 0 pfosfp 40 846 0 423 5 0 5 5 0 8 0 pfosfpen 112 1428 0 714 21 0 21 21 0 8 0 pfstitem 24 49 0 40 1 0 1 1 0 8 0 pfstkey 112 49 0 40 1 0 1 1 0 8 0 pfstate 328 49 0 40 2 0 2 2 0 8 0 pfrule 1360 21 0 16 2 1 1 2 0 8 0 art_heap8 4096 1 0 0 1 0 1 1 0 8 0 art_heap4 256 8219 0 8025 17 4 13 13 0 8 0 art_table 32 8220 0 8025 2 0 2 2 0 8 0 art_node 16 1937 0 1897 1 0 1 1 0 8 0 sysvmsgpl 40 42 0 20 1 0 1 1 0 8 0 semupl 112 2 0 2 1 1 0 1 0 8 0 semapl 112 398 0 388 1 0 1 1 0 8 0 shmpl 112 136 0 8 4 0 4 4 0 8 0 dirhash 1024 22 0 2 3 0 3 3 0 8 0 dino1pl 128 9015 0 6958 67 0 67 67 0 8 0 ffsino 272 9015 0 6958 138 0 138 138 0 8 0 nchpl 144 15870 0 13647 84 0 84 84 0 8 0 uvmvnodes 72 5926 0 0 108 0 108 108 0 8 0 vnodes 200 5926 0 0 312 0 312 312 0 8 0 namei 1024 65140 0 65140 4 4 0 1 0 8 0 percpumem 16 30 0 0 1 0 1 1 0 8 0 scsiplug 64 3 0 3 2 2 0 1 0 8 0 scxspl 192 43062 0 43062 19 19 0 6 0 8 0 sigapl 432 6353 0 6337 3 1 2 3 0 8 0 futexpl 56 48544 0 48544 1 1 0 1 0 8 0 knotepl 112 3935 0 3916 3 2 1 2 0 8 0 kqueuepl 104 1455 0 1453 1 0 1 1 0 8 0 pipepl 112 3166 0 3147 7 6 1 2 0 8 0 fdescpl 488 6354 0 6337 3 0 3 3 0 8 0 filepl 152 31483 0 31383 24 19 5 7 0 8 1 lockfpl 104 600 0 600 12 12 0 1 0 8 0 lockfspl 32 217 0 217 12 12 0 1 0 8 0 sessionpl 112 192 0 181 1 0 1 1 0 8 0 pgrppl 48 216 0 205 1 0 1 1 0 8 0 ucredpl 96 2493 0 2484 1 0 1 1 0 8 0 zombiepl 144 6338 0 6337 4 3 1 1 0 8 0 processpl 840 6370 0 6337 4 0 4 4 0 8 0 procpl 600 14359 0 14315 4 0 4 4 0 8 0 srpgc 64 1033 0 1033 8 8 0 1 0 8 0 sosppl 128 33 0 33 11 11 0 1 0 8 0 sockpl 384 3173 0 3154 13 10 3 4 0 8 1 mcl64k 65536 443 0 0 48 15 33 33 0 8 0 mcl16k 16384 4 0 0 1 0 1 1 0 8 0 mcl12k 12288 25 0 0 2 0 2 2 0 8 0 mcl9k 9216 21 0 0 2 0 2 2 0 8 0 mcl8k 8192 6 0 0 1 0 1 1 0 8 0 mcl4k 4096 17 0 0 3 0 3 3 0 8 0 mcl2k2 2112 12 0 0 1 0 1 1 0 8 0 mcl2k 2048 144 0 0 15 0 15 15 0 8 0 mtagpl 80 3 0 0 1 0 1 1 0 8 0 mbufpl 256 608 0 0 25 0 25 25 0 8 0 bufpl 256 13119 0 6099 439 0 439 439 0 8 0 anonpl 16 495286 0 479681 140 77 63 63 0 125 0 amapchunkpl 152 51379 0 51245 51 45 6 25 0 158 0 amappl16 192 21579 0 20722 122 79 43 43 0 8 0 amappl15 184 1105 0 1104 1 0 1 1 0 8 0 amappl14 176 1218 0 1213 2 1 1 1 0 8 0 amappl13 168 735 0 735 10 10 0 1 0 8 0 amappl12 160 707 0 705 1 0 1 1 0 8 0 amappl11 152 1431 0 1410 1 0 1 1 0 8 0 amappl10 144 562 0 557 1 0 1 1 0 8 0 amappl9 136 4421 0 4416 1 0 1 1 0 8 0 amappl8 128 3373 0 3332 2 0 2 2 0 8 0 amappl7 120 766 0 759 1 0 1 1 0 8 0 amappl6 112 1006 0 993 1 0 1 1 0 8 0 amappl5 104 1752 0 1737 1 0 1 1 0 8 0 amappl4 96 6443 0 6407 2 1 1 2 0 8 0 amappl3 88 495 0 488 1 0 1 1 0 8 0 amappl2 80 39016 0 38947 2 0 2 2 0 8 0 amappl1 72 172474 0 172013 25 15 10 20 0 8 0 amappl 72 17276 0 17235 1 0 1 1 0 75 0 dma4096 4096 1 0 1 1 1 0 1 0 8 0 dma256 256 6 0 6 1 1 0 1 0 8 0 dma64 64 259 0 259 1 1 0 1 0 8 0 dma32 32 7 0 7 1 1 0 1 0 8 0 dma16 16 17 0 17 1 1 0 1 0 8 0 aobjpl 64 137 0 8 3 0 3 3 0 8 0 uaddrrnd 24 6354 0 6337 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 6354 0 6337 1 0 1 1 0 8 0 vmmpekpl 168 49040 0 49013 2 0 2 2 0 8 0 vmmpepl 168 728349 0 726355 201 114 87 98 0 357 0 vmsppl 360 6353 0 6337 2 0 2 2 0 8 0 pdppl 4096 12716 0 12674 6 0 6 6 0 8 0 pvpl 32 1618576 0 1599692 312 159 153 157 0 265 0 pmappl 232 6353 0 6337 6 5 1 2 0 8 0 extentpl 40 39 0 25 1 0 1 1 0 8 0 phpool 112 706 0 26 20 0 20 20 0 8 0