panic: 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 175176 38854 0 0 0 1 syz-executor.1 *156821 55960 0 0x14000 0x200 0 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(ffffffff81f8d574,ffffffff81f8855b,434,ffffffff81f97a51) at __assert+0x2e sys/kern/subr_prf.c:155 knote_enqueue(fffffd806eb19c40) at knote_enqueue+0x216 sys/kern/kern_event.c:1076 knote(ffffffff8234bf68,1000000) at knote+0xbd sys/kern/kern_event.c:957 selwakeup(ffffffff8234bf68) at selwakeup+0x3b sys/kern/sys_generic.c:795 logwakeup() at logwakeup+0x3b sys/kern/subr_log.c:310 printf(ffffffff81f837b0) at printf+0x9f sys/kern/subr_prf.c:519 smr_thread(ffff800020ac1518) 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{0}> ddb{0}> set $lines = 0 ddb{0}> set $maxwidth = 0 ddb{0}> show panic kernel diagnostic assertion "_kernel_lock_held()" failed: file "/syzkaller/managers/multicore/kernel/sys/kern/kern_event.c", line 1076 ddb{0}> 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(ffffffff81f8d574,ffffffff81f8855b,434,ffffffff81f97a51) at __assert+0x2e sys/kern/subr_prf.c:155 knote_enqueue(fffffd806eb19c40) at knote_enqueue+0x216 sys/kern/kern_event.c:1076 knote(ffffffff8234bf68,1000000) at knote+0xbd sys/kern/kern_event.c:957 selwakeup(ffffffff8234bf68) at selwakeup+0x3b sys/kern/sys_generic.c:795 logwakeup() at logwakeup+0x3b sys/kern/subr_log.c:310 printf(ffffffff81f837b0) at printf+0x9f sys/kern/subr_prf.c:519 smr_thread(ffff800020ac1518) at smr_thread+0x335 sys/kern/kern_smr.c:114 end trace frame: 0x0, count: -9 ddb{0}> show registers rdi 0 rsi 0x1 rbp 0xffff800020ac9490 rbx 0xffff800020ac9540 rdx 0xffff800020ac1518 rcx 0 rax 0 r8 0xffffffff8100bbb3 kprintf+0x173 r9 0x1 r10 0x25 r11 0xba22a94f8a554170 r12 0x3000000008 r13 0xffff800020ac94a0 r14 0x100 r15 0x1 rip 0xffffffff8137a588 db_enter+0x18 cs 0x8 rflags 0x246 rsp 0xffff800020ac9480 ss 0 db_enter+0x18: addq $0x8,%rsp ddb{0}> show proc PROC (smr) pid=156821 stat=onproc flags process=14000 proc=200 pri=50, usrpri=50, nice=20 forw=0xffffffffffffffff, list=0xffff800020ac19c8,0xffff800020ac12d0 process=0xffff800020ac3068 user=0xffff800020ac4000, vmspace=0xffffffff82389a28 estcpu=0, cpticks=0, pctcpu=0.0 user=0, sys=0, intr=0 ddb{0}> ps PID TID PPID UID S FLAGS WAIT COMMAND 38854 175176 86025 0 7 0 syz-executor.1 38854 138052 86025 0 2 0x4000000 syz-executor.1 38854 104787 86025 0 2 0x4000000 syz-executor.1 86025 54668 40321 0 2 0x2 syz-executor.1 84717 289688 40321 0 2 0x2 syz-executor.0 40321 381250 26403 0 2 0x2 syz-fuzzer 40321 349056 26403 0 3 0x4000082 nanosleep syz-fuzzer 40321 449846 26403 0 3 0x4000082 thrsleep syz-fuzzer 40321 186943 26403 0 3 0x4000082 thrsleep syz-fuzzer 40321 478414 26403 0 3 0x4000082 kqread syz-fuzzer 40321 397099 26403 0 3 0x4000082 thrsleep syz-fuzzer 40321 403139 26403 0 2 0x4000082 syz-fuzzer 40321 491881 26403 0 3 0x4000082 thrsleep syz-fuzzer 40321 123467 26403 0 3 0x4000082 thrsleep syz-fuzzer 40321 20486 26403 0 3 0x4000082 thrsleep syz-fuzzer 26403 197776 50746 0 3 0x10008a pause ksh 50746 185536 21342 0 3 0x92 select sshd 32134 186980 1 0 3 0x100083 ttyin getty 21342 269757 1 0 3 0x80 select sshd 59996 445092 86985 74 3 0x100092 bpf pflogd 86985 298461 1 0 3 0x80 netio pflogd 31170 63020 19679 73 3 0x100090 kqread syslogd 19679 251251 1 0 3 0x100082 netio syslogd 78423 188773 1 77 3 0x100090 poll dhclient 5197 128822 1 0 3 0x80 poll dhclient 89299 154442 0 0 2 0x14200 zerothread 86755 127581 0 0 3 0x14200 aiodoned aiodoned 26631 459366 0 0 3 0x14200 syncer update 62555 511843 0 0 3 0x14200 cleaner cleaner 7728 260063 0 0 3 0x14200 reaper reaper 55622 483241 0 0 3 0x14200 pgdaemon pagedaemon 71172 274986 0 0 3 0x14200 bored crynlk 18277 361677 0 0 3 0x14200 bored crypto 79802 216842 0 0 3 0x40014200 acpi0 acpi0 10604 271509 0 0 3 0x40014200 idle1 99516 129301 0 0 3 0x14200 bored softnet 3125 459856 0 0 3 0x14200 bored systqmp 30226 210085 0 0 3 0x14200 bored systq 49163 358193 0 0 3 0x40014200 bored softclock 27213 177530 0 0 3 0x40014200 idle0 *55960 156821 0 0 7 0x14200 smr 1 108284 0 0 3 0x82 wait init 0 0 -1 0 3 0x10200 scheduler swapper ddb{0}> show all locks ddb{0}> show malloc Type InUse MemUse HighUse Limit Requests Type Lim Kern Lim devbuf 9482 6393K 6649K 78643K 10635 0 0 pcb 25 9K 10K 78643K 93 0 0 rtable 105 3K 3K 78643K 205 0 0 ifaddr 45 11K 11K 78643K 47 0 0 counters 39 33K 33K 78643K 39 0 0 ioctlops 0 0K 4K 78643K 1469 0 0 iov 0 0K 10K 78643K 6 0 0 mount 1 1K 1K 78643K 1 0 0 vnodes 1203 75K 75K 78643K 1233 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 4 0 0 VM map 2 1K 1K 78643K 2 0 0 sem 12 0K 0K 78643K 24 0 0 dirhash 12 2K 2K 78643K 12 0 0 ACPI 1808 196K 290K 78643K 12628 0 0 file desc 5 13K 25K 78643K 77 0 0 sigio 0 0K 0K 78643K 4 0 0 proc 53 50K 71K 78643K 367 0 0 subproc 64 65538K 67586K 78643K 68 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 2 0 0 in_multi 33 2K 2K 78643K 33 0 0 ether_multi 1 0K 0K 78643K 1 0 0 ISOFS mount 1 32K 32K 78643K 1 0 0 MSDOSFS mount 1 16K 16K 78643K 1 0 0 ttys 48 212K 212K 78643K 48 0 0 exec 0 0K 1K 78643K 216 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 86 20K 21K 78643K 1078 0 0 UVM aobj 6 2K 2K 78643K 6 0 0 memdesc 1 4K 4K 78643K 1 0 0 crypto data 1 1K 1K 78643K 1 0 0 NDP 8 0K 0K 78643K 12 0 0 temp 111 2707K 2774K 78643K 3424 0 0 SYN cache 2 16K 16K 78643K 2 0 0 ddb{0}> show all pools Name Size Requests Fail Releases Pgreq Pgrel Npage Hiwat Minpg Maxpg Idle arp 64 6 0 0 1 0 1 1 0 8 0 inpcbpl 280 65 0 58 1 0 1 1 0 8 0 plimitpl 152 17 0 9 1 0 1 1 0 8 0 plcache 128 20 0 0 1 0 1 1 0 8 0 rtentry 112 45 0 1 2 0 2 2 0 8 0 syncache 264 4 0 4 1 1 0 1 0 8 0 tcpcb 544 16 0 12 1 0 1 1 0 8 0 nd6 48 6 0 0 1 0 1 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 13 0 2 1 0 1 1 0 8 0 pfstkey 112 13 0 2 1 0 1 1 0 8 0 pfstate 328 13 0 2 1 0 1 1 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 188 0 0 12 0 12 12 0 8 0 art_table 32 189 0 0 2 0 2 2 0 8 0 art_node 16 44 0 4 1 0 1 1 0 8 0 sysvmsgpl 40 2 0 0 1 0 1 1 0 8 0 semupl 112 2 0 2 1 1 0 1 0 8 0 semapl 112 21 0 11 1 0 1 1 0 8 0 shmpl 112 4 0 0 1 0 1 1 0 8 0 dirhash 1024 17 0 0 3 0 3 3 0 8 0 dino1pl 128 1519 0 99 46 0 46 46 0 8 0 ffsino 272 1519 0 99 95 0 95 95 0 8 0 nchpl 144 1830 0 193 61 0 61 61 0 8 0 uvmvnodes 72 1577 0 0 29 0 29 29 0 8 0 vnodes 200 1577 0 0 83 0 83 83 0 8 0 namei 1024 4802 0 4802 1 1 0 1 0 8 0 percpumem 16 30 0 0 1 0 1 1 0 8 0 scxspl 192 4598 0 4596 9 8 1 6 0 8 0 sigapl 432 276 0 261 3 1 2 3 0 8 0 futexpl 56 715 0 715 1 1 0 1 0 8 0 knotepl 112 53 0 34 1 0 1 1 0 8 0 kqueuepl 104 8 0 6 1 0 1 1 0 8 0 pipepl 112 174 0 155 2 1 1 1 0 8 0 fdescpl 488 277 0 261 4 1 3 3 0 8 0 filepl 152 1371 0 1271 5 1 4 5 0 8 0 lockfpl 104 24 0 24 2 2 0 1 0 8 0 lockfspl 32 8 0 8 2 2 0 1 0 8 0 sessionpl 112 18 0 7 1 0 1 1 0 8 0 pgrppl 48 18 0 7 1 0 1 1 0 8 0 ucredpl 96 107 0 98 1 0 1 1 0 8 0 zombiepl 144 261 0 261 2 2 0 1 0 8 0 processpl 840 292 0 261 4 0 4 4 0 8 0 procpl 600 389 0 347 4 0 4 4 0 8 0 sockpl 384 133 0 114 3 1 2 3 0 8 0 mcl64k 65536 259 0 0 33 0 33 33 0 8 0 mcl9k 9216 1 0 0 1 0 1 1 0 8 0 mcl8k 8192 1 0 0 1 0 1 1 0 8 0 mcl4k 4096 2 0 0 1 0 1 1 0 8 0 mcl2k2 2112 2 0 0 1 0 1 1 0 8 0 mcl2k 2048 141 0 0 17 0 17 17 0 8 0 mtagpl 80 1 0 0 1 0 1 1 0 8 0 mbufpl 256 347 0 0 21 0 21 21 0 8 0 bufpl 256 5782 0 1165 289 0 289 289 0 8 0 anonpl 16 39163 0 24984 59 2 57 57 0 125 0 amapchunkpl 152 1200 0 1051 7 1 6 7 0 158 0 amappl16 192 1096 0 331 40 1 39 39 0 8 0 amappl14 176 49 0 46 2 1 1 1 0 8 0 amappl13 168 6 0 6 1 1 0 1 0 8 0 amappl12 160 32 0 29 1 0 1 1 0 8 0 amappl11 152 53 0 33 1 0 1 1 0 8 0 amappl10 144 72 0 70 1 0 1 1 0 8 0 amappl9 136 599 0 596 1 0 1 1 0 8 0 amappl8 128 138 0 124 1 0 1 1 0 8 0 amappl7 120 33 0 31 1 0 1 1 0 8 0 amappl6 112 56 0 50 1 0 1 1 0 8 0 amappl5 104 143 0 127 1 0 1 1 0 8 0 amappl4 96 475 0 447 2 1 1 2 0 8 0 amappl3 88 176 0 168 1 0 1 1 0 8 0 amappl2 80 1143 0 1084 2 0 2 2 0 8 0 amappl1 72 15836 0 15392 25 15 10 20 0 8 0 amappl 72 646 0 601 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 5 0 0 1 0 1 1 0 8 0 uaddrrnd 24 277 0 261 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 277 0 261 1 0 1 1 0 8 0 vmmpekpl 168 6279 0 6255 3 1 2 2 0 8 0 vmmpepl 168 37201 0 35439 96 13 83 84 0 357 6 vmsppl 360 276 0 261 2 0 2 2 0 8 0 pdppl 4096 561 0 522 6 0 6 6 0 8 0 pvpl 32 133559 0 116279 143 3 140 140 0 265 0 pmappl 232 276 0 261 2 1 1 2 0 8 0 extentpl 40 39 0 25 1 0 1 1 0 8 0 phpool 112 485 0 4 14 0 14 14 0 8 0