login: 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 *379953 18427 0 0x14000 0x200 0 reaper db_enter() at db_enter+0x25 sys/arch/amd64/amd64/db_interface.c:438 panic(ffffffff83378b08) at panic+0x1cf sys/kern/subr_prf.c:198 __assert(ffffffff833b8f20,ffffffff833df059,376,ffffffff833df08e) at __assert+0x29 sys/kern/subr_prf.c:-1 process_zap(ffff8000ffffad18) at process_zap+0x31d sys/kern/kern_exit.c:887 reaper(ffff80002a72d4c0) at reaper+0x290 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(ffffffff83378b08) at panic+0x1cf sys/kern/subr_prf.c:198 __assert(ffffffff833b8f20,ffffffff833df059,376,ffffffff833df08e) at __assert+0x29 sys/kern/subr_prf.c:-1 process_zap(ffff8000ffffad18) at process_zap+0x31d sys/kern/kern_exit.c:887 reaper(ffff80002a72d4c0) at reaper+0x290 sys/kern/kern_exit.c:521 end trace frame: 0x0, count: -5 ddb> show registers rdi 0 rsi 0x1 rbp 0xffff80002a763830 rbx 0x40000 acpi_pdirpa+0x2be71 rdx 0 rcx 0 rax 0xffff80002a72d4c0 r8 0x101010101010101 r9 0x8080808080808080 r10 0x4e0dc59afdd728cb r11 0x29c8cb63fa14e551 r12 0 r13 0 r14 0 r15 0x1 rip 0xffffffff83049175 db_enter+0x25 cs 0x8 rflags 0x246 rsp 0xffff80002a763820 ss 0 db_enter+0x25: addq $0x8,%rsp ddb> show proc PROC (reaper) tid=379953 pid=18427 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=0xffff80002a72c7c8,0xffff80002a72da00 process=0xffff8000ffffc000 user=0xffff80002a75e000, vmspace=0xffffffff838cc8b0 estcpu=0, cpticks=8, pctcpu=0.1, user=0, sys=0, intr=0 ddb> ps PID TID PPID UID S FLAGS WAIT COMMAND 659 87069 1970 0 2 0 syz-executor 659 167959 1970 0 3 0x4000080 fsleep syz-executor 36583 408474 0 0 3 0x14280 nfsidl nfsio 39187 513551 12840 0 2 0 syz-executor 39187 388559 12840 0 3 0x4000080 fsleep syz-executor 55638 165675 78473 0 2 0 syz-executor 55638 24942 78473 0 3 0x4000080 fsleep syz-executor 91789 68654 23379 0 2 0 syz-executor 91789 517396 23379 0 2 0x4000000 syz-executor 86257 244468 18315 0 2 0xc80 syz-executor 86257 474362 18315 0 3 0x4000080 netacc syz-executor 86257 335921 18315 0 3 0x4000080 fsleep syz-executor 86257 333731 18315 0 3 0x4000080 fsleep syz-executor 87702 240799 99474 0 2 0 syz-executor 87702 302329 99474 0 2 0x4000000 syz-executor 87702 120611 99474 0 3 0x4000080 fsleep syz-executor 29855 81421 0 0 3 0x14200 acct acct 56903 279860 1 0 3 0x100083 ttyin getty 18315 522422 94691 0 2 0xc82 syz-executor 87489 185536 94691 0 3 0x82 nanoslp syz-executor 12840 362419 94691 0 2 0xc82 syz-executor 1970 470115 94691 0 2 0x2 syz-executor 99474 499467 94691 0 3 0x82 nanoslp syz-executor 52459 274476 94691 0 2 0x2 syz-executor 78473 98355 94691 0 3 0x82 nanoslp syz-executor 23379 325960 94691 0 2 0xc82 syz-executor 94691 204704 19897 0 3 0x82 kqread syz-executor 19897 266375 9656 0 3 0x10008a sigsusp ksh 9656 445168 65090 0 3 0x98 kqread sshd-session 65090 478643 36369 0 3 0x92 kqread sshd-session 36369 454753 1 0 3 0x88 kqread sshd 99174 93305 68922 73 3 0x1100090 kqread syslogd 68922 327762 1 0 3 0x100082 sbwait syslogd 20722 183400 1 0 3 0x100080 kqread resolvd 65727 189815 50805 77 3 0x100092 kqread dhcpleased 27146 5822 50805 77 3 0x100092 kqread dhcpleased 50805 252052 1 0 3 0x80 kqread dhcpleased 33224 269492 0 0 3 0x14200 bored smr 9867 393815 0 0 2 0x14200 zerothread 51013 523160 0 0 3 0x14200 aiodoned aiodoned 56162 519054 0 0 3 0x14200 syncer update 37342 413897 0 0 3 0x14200 cleaner cleaner *18427 379953 0 0 7 0x14200 reaper 35336 316367 0 0 3 0x14200 pgdaemon pagedaemon 94287 162896 0 0 3 0x14200 bored viomb 4692 258766 0 0 3 0x40014200 acpi0 acpi0 96410 90082 0 0 3 0x14200 bored softnet0 80121 189015 0 0 3 0x14200 bored systqmp 77586 360552 0 0 3 0x14200 bored systq 20549 380337 0 0 3 0x40014200 tmoslp softclock 92209 316203 0 0 3 0x40014200 idle0 1 247840 0 0 3 0x82 wait init 0 0 -1 0 3 0x10200 scheduler swapper ddb> show all locks No such command ddb> show malloc Type InUse MemUse HighUse Limit Requests Type Lim devbuf 11076 12253K 12395K 166960K 13334 0 pcb 20 13K 14K 166960K 170 0 rtable 255 10K 10K 166960K 525 0 pf 34 13K 15K 166960K 49 0 ifaddr 41 7K 7K 166960K 55 0 ifgroup 56 2K 2K 166960K 71 0 sysctl 3 1K 9K 166960K 8 0 counters 35 18K 18K 166960K 43 0 ioctlops 0 0K 4K 166960K 151 0 iov 0 0K 12K 166960K 29 0 mount 1 1K 1K 166960K 1 0 log 0 0K 0K 166960K 4 0 vnodes 1440 91K 91K 166960K 1906 0 UFS quota 1 32K 32K 166960K 1 0 UFS mount 5 36K 36K 166960K 5 0 shm 2 1K 9K 166960K 7 0 VM map 2 1K 1K 166960K 2 0 sem 12 0K 0K 166960K 30 0 dirhash 12 2K 2K 166960K 24 0 ACPI 1692 195K 286K 166960K 12470 0 file desc 16 57K 97K 166960K 623 0 sigio 0 0K 0K 166960K 8 0 proc 60 59K 100K 166960K 537 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 66 0 in_multi 88 6K 7K 166960K 109 0 ether_multi 1 0K 0K 166960K 3 0 mrt 0 0K 0K 166960K 3 0 ISOFS mount 1 32K 32K 166960K 1 0 MSDOSFS mount 1 16K 16K 166960K 1 0 ttys 121 546K 546K 166960K 121 0 exec 0 0K 1K 166960K 540 0 fusefs mount 1 32K 32K 166960K 1 0 pfkey data 0 0K 0K 166960K 1 0 tdb 3 0K 0K 166960K 3 0 VM swap 8 62K 64K 166960K 10 0 UVM amap 223 159K 175K 166960K 7667 0 UVM aobj 15 8K 8K 166960K 16 0 pinsyscall 37 74K 94K 166960K 1715 0 memdesc 1 4K 4K 166960K 1 0 crypto data 1 1K 1K 166960K 1 0 ip6_options 2 0K 1K 166960K 41 0 NDP 13 0K 2K 166960K 35 0 temp 49 8665K 8734K 166960K 12662 0 kqueue 17 24K 32K 166960K 121 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 142 0 137 3 0 3 3 0 8 2 rtentry 136 119 0 17 4 0 4 4 0 8 0 unpcb 144 296 0 281 1 0 1 1 0 8 0 syncache 336 6 0 6 2 1 1 1 0 8 1 tcpqe 32 2 0 2 1 0 1 1 0 8 1 tcpcb 736 189 0 180 7 0 7 7 0 8 6 arp 96 19 0 3 1 0 1 1 0 8 0 ipq 40 5 0 2 2 1 1 1 0 8 0 ipqe 40 9 0 6 2 1 1 1 0 8 0 inpcb 328 569 0 550 7 0 7 7 0 8 5 ip6q 72 2 0 0 1 0 1 1 0 8 0 ip6af 40 2 0 0 1 0 1 1 0 8 0 nd6 112 28 0 5 1 0 1 1 0 8 0 pkpcb 40 3 0 3 1 0 1 1 0 8 1 kcovpl 48 8 0 0 1 0 1 1 0 8 0 ppxss 1072 8 0 7 1 0 1 1 0 8 0 art_heap8 4096 2 0 0 2 0 2 2 0 8 0 art_heap4 256 468 0 56 29 0 29 29 0 8 2 art_table 40 470 0 56 5 0 5 5 0 8 0 art_node 32 119 0 27 1 0 1 1 0 8 0 sysvmsgpl 40 7 0 4 1 0 1 1 0 8 0 semapl 112 27 0 17 1 0 1 1 0 8 0 shmpl 112 11 0 1 1 0 1 1 0 8 0 dirhash 1024 25 0 8 3 0 3 3 0 8 0 dino2pl 256 2569 0 1065 95 0 95 95 0 8 0 ffsino 256 2569 0 1065 95 0 95 95 0 8 0 nchpl 144 3482 0 1786 64 0 64 64 0 8 0 rtmask 32 1 0 1 1 0 1 1 0 8 1 vnodes 216 2959 0 0 165 0 165 165 0 8 0 namei 1024 11498 0 11497 2 1 1 2 0 8 0 vcpupl 3904 2 0 0 1 0 1 1 0 8 0 vmpool 808 2 0 0 1 0 1 1 0 8 0 kstatmem 264 38 0 12 2 0 2 2 0 8 0 acpiwqpl 32 1 0 1 1 0 1 1 1 8 1 scsiplug 72 4 0 4 1 0 1 1 0 8 1 scxspl 216 10742 0 10742 9 1 8 8 1 8 8 plimitpl 152 286 0 270 1 0 1 1 0 8 0 sigapl 424 917 0 873 6 1 5 6 0 8 0 knotepl 120 35736 0 35679 17 7 10 10 0 8 8 kqueuepl 184 306 0 295 4 0 4 4 0 8 3 pipepl 304 166 0 139 3 0 3 3 0 8 0 fdescpl 448 902 0 874 5 1 4 5 0 8 0 filepl 120 5401 0 5173 14 0 14 14 0 8 6 lockfpl 104 135 0 131 1 0 1 1 0 8 0 lockfspl 48 64 0 60 1 0 1 1 0 8 0 sessionpl 144 24 0 16 1 0 1 1 0 8 0 pgrppl 48 72 0 56 1 0 1 1 0 8 0 ucredpl 104 854 0 843 1 0 1 1 0 8 0 zombiepl 144 1216 0 1215 1 0 1 1 0 8 0 processpl 1152 917 0 873 4 0 4 4 0 8 0 procpl 664 1806 0 1752 8 0 8 8 0 8 2 sockpl 552 1026 0 987 9 1 8 8 0 8 5 mcl64k 65536 74 0 74 2 1 1 1 0 8 1 mcl16k 16384 7 0 7 2 1 1 1 0 8 1 mcl9k 9216 2 0 2 1 0 1 1 0 8 1 mcl8k 8192 17 0 17 2 1 1 1 0 8 1 mcl4k 4096 3134 0 3078 15 7 8 15 0 8 0 mcl2k 2048 1091 0 1086 7 0 7 7 0 8 6 mtagpl 96 154 0 70 4 0 4 4 0 8 0 mbufpl 256 9626 0 9379 22 0 22 22 0 8 3 bufpl 280 3276 0 121 226 0 226 226 0 8 0 anonpl 24 146636 0 140983 72 36 36 56 0 187 0 amapchunkpl 152 24677 0 24104 41 7 34 34 0 158 10 amappl16 200 2356 0 2297 16 12 4 14 0 8 0 amappl15 192 3 0 3 1 1 0 1 0 8 0 amappl14 184 2 0 2 1 1 0 1 0 8 0 amappl13 176 407 0 406 1 0 1 1 0 8 0 amappl12 168 1249 0 1212 2 0 2 2 0 8 0 amappl11 160 6 0 5 1 0 1 1 0 8 0 amappl10 152 46 0 35 1 0 1 1 0 8 0 amappl9 144 273 0 273 1 1 0 1 0 8 0 amappl8 136 27 0 25 1 0 1 1 0 8 0 amappl7 128 80 0 79 1 0 1 1 0 8 0 amappl6 120 269 0 257 1 0 1 1 0 8 0 amappl5 112 74 0 66 1 0 1 1 0 8 0 amappl4 104 389 0 364 1 0 1 1 0 8 0 amappl3 96 4743 0 4646 4 0 4 4 0 8 1 amappl2 88 564 0 508 2 0 2 2 0 8 0 amappl1 80 11407 0 10873 14 1 13 13 0 8 1 amappl 88 6875 0 6720 5 0 5 5 0 92 0 uvmvnodes 80 114 0 0 3 0 3 3 0 8 0 dma8192 8192 1 0 1 1 0 1 1 0 8 1 dma4096 4096 1 0 1 1 1 0 1 0 8 0 dma1024 1024 2 0 1 1 0 1 1 0 8 0 dma256 256 6 0 6 1 1 0 1 0 8 0 dma128 128 254 0 254 2 1 1 1 0 8 1 dma64 64 7 0 7 2 1 1 1 0 8 1 dma32 32 7 0 7 1 1 0 1 0 8 0 dma16 16 19 0 18 1 0 1 1 0 8 0 aobjpl 72 15 0 1 1 0 1 1 0 8 0 uaddrrnd 24 902 0 874 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 902 0 874 1 0 1 1 0 8 0 vmmpekpl 168 9096 0 9067 2 0 2 2 0 8 0 vmmpepl 168 64020 0 62258 98 11 87 90 0 357 5 vmsppl 368 901 0 873 4 1 3 4 0 8 0 rwobjpl 40 19623 0 18631 12 1 11 12 0 8 0 pdppl 4096 1814 0 1748 108 38 70 82 0 8 4 pvpl 32 397405 0 385534 160 56 104 134 0 265 1 pmappl 216 903 0 873 3 0 3 3 0 8 0 extentpl 40 45 0 27 1 0 1 1 0 8 0 phpool 112 407 0 54 11 0 11 11 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(ffffffff83378b08) at panic+0x1cf sys/kern/subr_prf.c:198 __assert(ffffffff833b8f20,ffffffff833df059,376,ffffffff833df08e) at __assert+0x29 sys/kern/subr_prf.c:-1 process_zap(ffff8000ffffad18) at process_zap+0x31d sys/kern/kern_exit.c:887 reaper(ffff80002a72d4c0) at reaper+0x290 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(ffffffff83378b08) at panic+0x1cf sys/kern/subr_prf.c:198 __assert(ffffffff833b8f20,ffffffff833df059,376,ffffffff833df08e) at __assert+0x29 sys/kern/subr_prf.c:-1 process_zap(ffff8000ffffad18) at process_zap+0x31d sys/kern/kern_exit.c:887 reaper(ffff80002a72d4c0) at reaper+0x290 sys/kern/kern_exit.c:521 end trace frame: 0x0, count: -5