panic: kernel diagnostic assertion "pr->ps_threadcnt == 0" failed: file "/syzkaller/managers/main/kernel/sys/kern/kern_exit.c", line 886 Stopped at db_enter+0x25: addq $0x8,%rsp TID PID UID PRFLAGS PFLAGS CPU COMMAND * 32812 45843 0 0x14000 0x200 0 reaper db_enter() at db_enter+0x25 sys/arch/amd64/amd64/db_interface.c:438 panic(ffffffff8337d550) at panic+0x1cf sys/kern/subr_prf.c:198 __assert(ffffffff833b8254,ffffffff833db852,376,ffffffff833db887) at __assert+0x29 sys/kern/subr_prf.c:-1 process_zap(ffff8000318fb618) at process_zap+0x31d sys/kern/kern_exit.c:887 reaper(ffff80002a72ccf8) at reaper+0x270 sys/kern/kern_exit.c:521 end trace frame: 0x0, count: 10 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> ddb> set $lines = 0 ddb> set $maxwidth = 0 ddb> show panic *cpu0: kernel diagnostic assertion "pr->ps_threadcnt == 0" failed: file "/syzkaller/managers/main/kernel/sys/kern/kern_exit.c", line 886 ddb> trace db_enter() at db_enter+0x25 sys/arch/amd64/amd64/db_interface.c:438 panic(ffffffff8337d550) at panic+0x1cf sys/kern/subr_prf.c:198 __assert(ffffffff833b8254,ffffffff833db852,376,ffffffff833db887) at __assert+0x29 sys/kern/subr_prf.c:-1 process_zap(ffff8000318fb618) at process_zap+0x31d sys/kern/kern_exit.c:887 reaper(ffff80002a72ccf8) at reaper+0x270 sys/kern/kern_exit.c:521 end trace frame: 0x0, count: -5 ddb> show registers rdi 0 rsi 0x1 rbp 0xffff80002a763340 rbx 0x40000 acpi_pdirpa+0x2be71 rdx 0 rcx 0 rax 0xffff80002a72ccf8 r8 0x101010101010101 r9 0x8080808080808080 r10 0x8ab0d15c64da95a7 r11 0xa3a65ed3edf9532b r12 0 r13 0 r14 0 r15 0x1 rip 0xffffffff8271fba5 db_enter+0x25 cs 0x8 rflags 0x246 rsp 0xffff80002a763330 ss 0x10 db_enter+0x25: addq $0x8,%rsp ddb> show proc PROC (reaper) tid=32812 pid=45843 tcnt=1 stat=onproc flags process=14000 proc=200 runpri=32, usrpri=50, slppri=32, nice=20 wchan=0x0, wmesg=, ps_single=0x0 scnt=0 ecnt=0 forw=0xffffffffffffffff, list=0xffff80002a72c000,0xffff80002a72cfa0 process=0xffff8000ffffd680 user=0xffff80002a75e000, vmspace=0xffffffff83962238 estcpu=0, cpticks=8, pctcpu=0.0, user=0, sys=0, intr=0 ddb> ps PID TID PPID UID S FLAGS WAIT COMMAND 87501 282729 22283 0 2 0 syz-executor 87501 10186 22283 0 2 0x4000000 syz-executor 81737 182816 15739 0 2 0 syz-executor 81737 289152 15739 0 3 0x4000080 fsleep syz-executor 14145 294266 38471 0 2 0 syz-executor 14145 7566 38471 0 3 0x4000080 fsleep syz-executor 37900 354823 0 0 3 0x14280 nfsidl nfsio 36233 153231 87973 0 2 0x82000 syz-executor 36233 7856 87973 0 3 0x4002000 suspend syz-executor 36233 307721 87973 0 4 0x4082000 syz-executor 36233 333252 87973 0 4 0x4082000 syz-executor 80514 26959 46267 0 2 0 syz-executor 80514 154532 46267 0 3 0x4000080 fsleep syz-executor 80514 42510 46267 0 3 0x4000080 fsleep syz-executor 80514 38950 46267 0 3 0x4000080 fsleep syz-executor 94805 7518 70681 0 2 0 syz-executor 94805 225384 70681 0 2 0x4000000 syz-executor 94805 214554 70681 0 3 0x4000080 fsleep syz-executor 70681 11257 20328 0 3 0x82 nanoslp syz-executor 38471 141491 20328 0 2 0x2 syz-executor 58447 34531 20328 0 3 0x82 nanoslp syz-executor 22283 523143 20328 0 3 0x2 kqpsl syz-executor 15739 509768 20328 0 3 0x2 kqpsl syz-executor 83248 5986 20328 0 2 0x2 syz-executor 87973 251158 20328 0 3 0x82 nanoslp syz-executor 46267 237578 20328 0 3 0x82 nanoslp syz-executor 20328 511635 79149 0 3 0x82 kqread syz-executor 79149 147833 6245 0 3 0x10008a sigsusp ksh 6245 76294 84991 0 3 0x98 kqread sshd-session 84991 400273 29885 0 3 0x92 kqread sshd-session 16480 252975 1 0 3 0x100083 ttyin getty 29885 296208 1 0 3 0x88 kqread sshd 76381 5449 70816 73 3 0x1100090 kqread syslogd 70816 231470 1 0 3 0x100082 sbwait syslogd 9077 399576 1 0 3 0x100080 kqread resolvd 39235 199348 61022 77 3 0x100092 kqread dhcpleased 19452 352555 61022 77 3 0x100092 kqread dhcpleased 61022 182330 1 0 3 0x80 kqread dhcpleased 63499 246284 0 0 3 0x14200 bored smr 34376 140540 0 0 2 0x14200 zerothread 51042 426432 0 0 3 0x14200 aiodoned aiodoned 88810 479610 0 0 3 0x14200 syncer update 42664 285516 0 0 3 0x14200 cleaner cleaner *45843 32812 0 0 7 0x14200 reaper 53836 347848 0 0 3 0x14200 pgdaemon pagedaemon 49917 139260 0 0 3 0x14200 bored viomb 21808 152043 0 0 3 0x40014200 acpi0 acpi0 76658 95594 0 0 3 0x14200 bored softnet0 70889 465188 0 0 3 0x14200 smrbar systqmp 3629 107084 0 0 3 0x14200 bored systq 70482 326655 0 0 2 0x40014200 softclock 25736 27667 0 0 3 0x40014200 idle0 1 354809 0 0 3 0x82 wait init 0 0 -1 0 3 0x10010200 scheduler swapper ddb> show all locks No such command ddb> show malloc Type InUse MemUse HighUse Limit Requests Type Lim devbuf 10168 11056K 11642K 166960K 12348 0 pcb 17 12K 12K 166960K 187 0 rtable 180 7K 8K 166960K 445 0 pf 25 12K 17K 166960K 93 0 ifaddr 31 5K 7K 166960K 74 0 ifgroup 38 1K 2K 166960K 110 0 sysctl 4 1K 9K 166960K 13 0 counters 30 17K 18K 166960K 63 0 ioctlops 0 0K 4K 166960K 243 0 iov 0 0K 16K 166960K 41 0 mount 1 1K 1K 166960K 1 0 log 0 0K 0K 166960K 4 0 vnodes 1421 89K 90K 166960K 2046 0 UFS quota 1 32K 32K 166960K 1 0 UFS mount 5 36K 36K 166960K 5 0 shm 2 1K 5K 166960K 6 0 VM map 2 1K 1K 166960K 2 0 sem 12 0K 1K 166960K 38 0 dirhash 12 2K 2K 166960K 21 0 ACPI 1692 195K 286K 166960K 12470 0 file desc 17 61K 110K 166960K 761 0 sigio 0 0K 0K 166960K 12 0 proc 63 67K 83K 166960K 540 0 subproc 72 4K 4K 166960K 72 0 NFS srvsock 1 0K 0K 166960K 1 0 NFS daemon 1 16K 16K 166960K 1 0 ip_moptions 0 0K 0K 166960K 206 0 in_multi 66 4K 7K 166960K 130 0 ether_multi 1 0K 0K 166960K 9 0 mrt 0 0K 0K 166960K 6 0 ISOFS mount 1 32K 32K 166960K 1 0 MSDOSFS mount 1 16K 16K 166960K 1 0 ttys 85 387K 387K 166960K 85 0 exec 0 0K 1K 166960K 483 0 fusefs mount 1 32K 32K 166960K 1 0 tdb 3 0K 0K 166960K 3 0 VM swap 8 62K 64K 166960K 10 0 UVM amap 240 161K 175K 166960K 8898 0 UVM aobj 20 4K 4K 166960K 21 0 pinsyscall 38 76K 92K 166960K 1827 0 memdesc 1 4K 4K 166960K 1 0 crypto data 1 1K 1K 166960K 1 0 ip6_options 0 0K 0K 166960K 36 0 NDP 8 0K 2K 166960K 46 0 temp 76 8672K 8738K 166960K 22594 0 kqueue 16 22K 30K 166960K 152 0 SYN cache 2 16K 16K 166960K 2 0 ddb> show all pools Name Size Requests Fail Releases Pgreq Pgrel Npage Hiwat Minpg Maxpg Idle rtpcb 120 152 0 148 3 0 3 3 0 8 2 rtentry 136 134 0 62 4 0 4 4 0 8 0 unpcb 144 512 0 496 6 3 3 4 0 8 2 syncache 336 5 0 5 2 1 1 1 0 8 1 tcpqe 32 3 0 3 2 1 1 1 0 8 1 tcpcb 736 268 0 261 9 7 2 7 0 8 1 arp 96 19 0 7 1 0 1 1 0 8 0 ipq 40 4 0 3 1 0 1 1 0 8 0 ipqe 40 5 0 4 1 0 1 1 0 8 0 inpcb 328 672 0 662 8 6 2 7 0 8 0 ip6q 72 4 0 3 1 0 1 1 0 8 0 ip6af 40 7 0 6 1 0 1 1 0 8 0 nd6 112 30 0 13 1 0 1 1 0 8 0 pkpcb 40 1 0 1 1 1 0 1 0 8 0 kcovpl 48 8 0 0 1 0 1 1 0 8 0 mppekey 1024 2 0 2 2 1 1 1 0 8 1 ppxss 1072 22 0 22 3 2 1 1 0 8 1 pppxif 1384 7 0 7 2 1 1 1 0 8 1 pfrktable 1344 1 0 1 1 0 1 1 0 8 1 pfrule 1344 2 0 2 1 1 0 1 0 8 0 art_heap8 4096 3 0 0 3 0 3 3 0 8 0 art_heap4 256 587 0 267 29 4 25 29 0 8 3 art_table 40 590 0 267 5 0 5 5 0 8 0 art_node 32 134 0 68 1 0 1 1 0 8 0 sysvmsgpl 40 3 0 0 1 0 1 1 0 8 0 semupl 112 3 0 3 1 1 0 1 0 8 0 semapl 112 31 0 21 1 0 1 1 0 8 0 shmpl 112 17 0 1 1 0 1 1 0 8 0 dirhash 1024 23 0 6 3 0 3 3 0 8 0 dino2pl 256 2823 0 1333 95 0 95 95 0 8 0 ffsino 256 2823 0 1333 95 0 95 95 0 8 0 nchpl 144 3922 0 2228 65 1 64 64 0 8 0 rtmask 32 5 0 5 3 2 1 1 0 8 1 vnodes 216 3287 0 0 183 0 183 183 0 8 0 namei 1024 12956 0 12955 4 3 1 2 0 8 0 vcpupl 3904 1 0 0 1 0 1 1 0 8 0 vmpool 800 1 0 0 1 0 1 1 0 8 0 kstatmem 264 58 0 42 2 0 2 2 0 8 0 scsiplug 72 3 0 3 2 1 1 1 0 8 1 scxspl 216 11601 0 11601 9 1 8 8 1 8 8 plimitpl 152 178 0 161 1 0 1 1 0 8 0 sigapl 424 1063 0 1020 9 1 8 8 0 8 3 knotepl 120 25774 0 25723 17 9 8 11 0 8 6 kqueuepl 184 260 0 247 3 0 3 3 0 8 2 pipepl 304 163 0 136 3 0 3 3 0 8 0 fdescpl 448 1028 0 999 5 1 4 5 0 8 0 filepl 120 6120 0 5903 13 4 9 11 0 8 1 lockfpl 104 375 0 373 1 0 1 1 0 8 0 lockfspl 48 109 0 107 1 0 1 1 0 8 0 sessionpl 144 22 0 14 1 0 1 1 0 8 0 pgrppl 48 34 0 18 1 0 1 1 0 8 0 ucredpl 104 1003 0 991 1 0 1 1 0 8 0 zombiepl 144 1333 0 1332 1 0 1 1 0 8 0 processpl 1152 1063 0 1020 5 0 5 5 0 8 1 procpl 664 2122 0 2068 8 0 8 8 0 8 3 sosppl 176 2 0 2 1 1 0 1 0 8 0 sockpl 552 1420 0 1390 13 5 8 8 0 8 4 mcl64k 65536 88 0 88 2 1 1 2 0 8 1 mcl9k 9216 1 0 1 1 0 1 1 0 8 1 mcl8k 8192 74 0 74 3 2 1 1 0 8 1 mcl4k 4096 3322 0 3269 16 8 8 15 0 8 0 mcl2k 2048 1144 0 1137 3 1 2 2 0 8 1 mtagpl 96 20 0 8 1 0 1 1 0 8 0 mbufpl 256 13618 0 13436 23 0 23 23 0 8 8 bufpl 280 5453 0 120 381 0 381 381 0 8 0 anonpl 24 182554 0 177989 91 45 46 57 0 187 8 amapchunkpl 152 28898 0 28340 38 9 29 29 0 158 5 amappl16 200 3692 0 3632 42 31 11 15 0 8 7 amappl15 192 6 0 6 2 1 1 1 0 8 1 amappl14 184 8 0 8 1 1 0 1 0 8 0 amappl13 176 404 0 403 1 0 1 1 0 8 0 amappl12 168 1367 0 1329 2 0 2 2 0 8 0 amappl11 160 24 0 24 1 1 0 1 0 8 0 amappl10 152 42 0 31 1 0 1 1 0 8 0 amappl9 144 250 0 249 2 1 1 1 0 8 0 amappl8 136 25 0 24 1 0 1 1 0 8 0 amappl7 128 83 0 82 1 0 1 1 0 8 0 amappl6 120 261 0 249 1 0 1 1 0 8 0 amappl5 112 73 0 66 1 0 1 1 0 8 0 amappl4 104 404 0 380 1 0 1 1 0 8 0 amappl3 96 5535 0 5428 4 0 4 4 0 8 1 amappl2 88 509 0 455 2 0 2 2 0 8 0 amappl1 80 11532 0 10994 14 1 13 13 0 8 0 amappl 88 8090 0 7919 5 0 5 5 0 92 0 uvmvnodes 80 117 0 0 3 0 3 3 0 8 0 dma4096 4096 1 0 1 1 1 0 1 0 8 0 dma1024 1024 1 0 0 1 0 1 1 0 8 0 dma256 256 6 0 6 1 1 0 1 0 8 0 dma128 128 253 0 253 1 1 0 1 0 8 0 dma64 64 7 0 7 2 2 0 1 0 8 0 dma32 32 7 0 7 1 1 0 1 0 8 0 dma16 16 18 0 17 1 0 1 1 0 8 0 aobjpl 72 20 0 1 1 0 1 1 0 8 0 uaddrrnd 24 1028 0 999 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 1028 0 999 1 0 1 1 0 8 0 vmmpekpl 168 9799 0 9771 2 0 2 2 0 8 0 vmmpepl 168 71523 0 69710 108 17 91 91 0 357 9 vmsppl 368 1027 0 999 4 1 3 4 0 8 0 rwobjpl 40 21702 0 20692 14 1 13 13 0 8 0 pdppl 4096 2065 0 1999 103 35 68 79 0 8 2 pvpl 32 466837 0 456626 195 75 120 140 0 265 21 pmappl 216 1028 0 999 2 0 2 2 0 8 0 extentpl 40 45 0 27 1 0 1 1 0 8 0 phpool 112 404 0 67 10 0 10 10 0 8 0 ddb> machine ddbcpu 0 No such command ddb> trace db_enter() at db_enter+0x25 sys/arch/amd64/amd64/db_interface.c:438 panic(ffffffff8337d550) at panic+0x1cf sys/kern/subr_prf.c:198 __assert(ffffffff833b8254,ffffffff833db852,376,ffffffff833db887) at __assert+0x29 sys/kern/subr_prf.c:-1 process_zap(ffff8000318fb618) at process_zap+0x31d sys/kern/kern_exit.c:887 reaper(ffff80002a72ccf8) at reaper+0x270 sys/kern/kern_exit.c:521 end trace frame: 0x0, count: -5 ddb> machine ddbcpu 1 No such command ddb> trace db_enter() at db_enter+0x25 sys/arch/amd64/amd64/db_interface.c:438 panic(ffffffff8337d550) at panic+0x1cf sys/kern/subr_prf.c:198 __assert(ffffffff833b8254,ffffffff833db852,376,ffffffff833db887) at __assert+0x29 sys/kern/subr_prf.c:-1 process_zap(ffff8000318fb618) at process_zap+0x31d sys/kern/kern_exit.c:887 reaper(ffff80002a72ccf8) at reaper+0x270 sys/kern/kern_exit.c:521 end trace frame: 0x0, count: -5