login: panic: kernel diagnostic assertion "ps->ps_uvncount == 0" failed: file "/syzkaller/managers/multicore/kernel/sys/kern/kern_unveil.c", line 196 Stopped at db_enter+0x18: addq $0x8,%rsp TID PID UID PRFLAGS PFLAGS CPU COMMAND 470045 60972 0 0x14000 0x200 0 reaper db_enter() at db_enter+0x18 sys/arch/amd64/amd64/db_interface.c:398 panic() at panic+0x15c sys/kern/subr_prf.c:212 __assert(ffffffff81f98711,ffffffff81f9cd8c,c4,ffffffff81f5c06e) at __assert+0x2e sys/kern/subr_prf.c:159 unveil_destroy(ffff800020b8c6a8) at unveil_destroy+0x19f sys/kern/kern_unveil.c:196 exit1(ffff800020b38978,0,1) at exit1+0x354 sys/kern/kern_exit.c:216 sys_exit(ffff800020b38978,ffff800020c1eed0,ffff800020c1ef40) at sys_exit+0x17 sys/kern/kern_exit.c:94 syscall(ffff800020c1efb0) at syscall+0x552 mi_syscall sys/sys/syscall_mi.h:99 [inline] syscall(ffff800020c1efb0) at syscall+0x552 sys/arch/amd64/amd64/trap.c:574 Xsyscall(6,1,0,1,431bde82d7b634db,7f7ffffc0938) at Xsyscall+0x128 end trace frame: 0x0, count: 7 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 "ps->ps_uvncount == 0" failed: file "/syzkaller/managers/multicore/kernel/sys/kern/kern_unveil.c", line 196 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:212 __assert(ffffffff81f98711,ffffffff81f9cd8c,c4,ffffffff81f5c06e) at __assert+0x2e sys/kern/subr_prf.c:159 unveil_destroy(ffff800020b8c6a8) at unveil_destroy+0x19f sys/kern/kern_unveil.c:196 exit1(ffff800020b38978,0,1) at exit1+0x354 sys/kern/kern_exit.c:216 sys_exit(ffff800020b38978,ffff800020c1eed0,ffff800020c1ef40) at sys_exit+0x17 sys/kern/kern_exit.c:94 syscall(ffff800020c1efb0) at syscall+0x552 mi_syscall sys/sys/syscall_mi.h:99 [inline] syscall(ffff800020c1efb0) at syscall+0x552 sys/arch/amd64/amd64/trap.c:574 Xsyscall(6,1,0,1,431bde82d7b634db,7f7ffffc0938) at Xsyscall+0x128 end trace frame: 0x0, count: -8 ddb{1}> show registers rdi 0 rsi 0x1 rbp 0xffff800020c1ecd0 rbx 0xffff800020c1ed80 rdx 0xffff800020b38978 rcx 0 rax 0 r8 0xffffffff812d2ac3 kprintf+0x173 r9 0x1 r10 0x25 r11 0x1635c3462299bea1 r12 0x3000000008 r13 0xffff800020c1ece0 r14 0x100 r15 0x1 rip 0xffffffff816ce868 db_enter+0x18 cs 0x8 rflags 0x246 rsp 0xffff800020c1ecc0 ss 0x10 db_enter+0x18: addq $0x8,%rsp ddb{1}> show proc PROC (syz-executor.1) pid=196078 stat=onproc flags process=1008 proc=2000 pri=50, usrpri=86, nice=20 forw=0xffffffffffffffff, list=0xffff800020b39788,0xffff800020b38280 process=0xffff800020b8c6a8 user=0xffff800020c1a000, vmspace=0xfffffd807effe870 estcpu=36, cpticks=12, pctcpu=0.0 user=0, sys=1, intr=0 ddb{1}> ps PID TID PPID UID S FLAGS WAIT COMMAND 74567 102088 22175 0 3 0x80 nanosleep syz-executor.0 74567 293943 22175 0 3 0x4000080 ttyout syz-executor.0 74567 253801 22175 0 3 0x4000080 fsleep syz-executor.0 74567 346610 22175 0 3 0x4000080 fsleep syz-executor.0 88939 277422 1 0 3 0x100083 ttyin getty 8409 140693 67768 0 3 0x82 nanosleep syz-executor.1 22175 400378 67768 0 3 0x82 nanosleep syz-executor.0 42198 110777 0 0 3 0x14200 bored sosplice 67768 240179 65958 0 3 0x82 thrsleep syz-fuzzer 67768 424905 65958 0 3 0x4000082 thrsleep syz-fuzzer 67768 308436 65958 0 3 0x4000082 thrsleep syz-fuzzer 67768 520838 65958 0 3 0x4000082 thrsleep syz-fuzzer 67768 508369 65958 0 3 0x4000082 kqread syz-fuzzer 67768 303752 65958 0 3 0x4000082 thrsleep syz-fuzzer 67768 359942 65958 0 3 0x4000082 thrsleep syz-fuzzer 67768 477958 65958 0 3 0x4000082 thrsleep syz-fuzzer 67768 142477 65958 0 3 0x4000082 thrsleep syz-fuzzer 67768 180663 65958 0 3 0x4000082 thrsleep syz-fuzzer 65958 22282 9541 0 3 0x10008a pause ksh 9541 235473 94577 0 3 0x92 select sshd 94577 234043 1 0 3 0x80 select sshd 46797 88700 97447 74 3 0x100092 bpf pflogd 97447 47197 1 0 3 0x80 netio pflogd 83532 279823 52964 73 3 0x100090 kqread syslogd 52964 195068 1 0 3 0x100082 netio syslogd 14744 511072 1 77 3 0x100090 poll dhclient 90682 210377 1 0 3 0x80 poll dhclient 86279 261741 0 0 3 0x14200 pgzero zerothread 74078 296734 0 0 3 0x14200 aiodoned aiodoned 77796 462587 0 0 3 0x14200 syncer update 74324 135890 0 0 3 0x14200 cleaner cleaner 60972 470045 0 0 7 0x14200 reaper 28819 481779 0 0 3 0x14200 pgdaemon pagedaemon 83781 24963 0 0 3 0x14200 bored crynlk 34043 314146 0 0 3 0x14200 bored crypto 81559 93962 0 0 3 0x40014200 acpi0 acpi0 60048 8325 0 0 3 0x40014200 idle1 6024 237527 0 0 3 0x14200 bored softnet 32761 110955 0 0 3 0x14200 bored systqmp 53298 110455 0 0 3 0x14200 bored systq 23044 479250 0 0 3 0x40014200 bored softclock 29202 125419 0 0 3 0x40014200 idle0 38857 508943 0 0 3 0x14200 bored smr 1 113203 0 0 3 0x82 wait init 0 0 -1 0 3 0x10200 scheduler swapper ddb{1}> show all locks ddb{1}> show malloc Type InUse MemUse HighUse Limit Requests Type Lim Kern Lim devbuf 9557 6426K 7065K 78643K 13246 0 0 pcb 25 9K 12K 78643K 569 0 0 rtable 108 4K 4K 78643K 714 0 0 ifaddr 71 15K 15K 78643K 198 0 0 counters 39 33K 33K 78643K 39 0 0 ioctlops 0 0K 4K 78643K 1518 0 0 iov 0 0K 20K 78643K 151 0 0 mount 1 1K 1K 78643K 1 0 0 vnodes 1197 75K 76K 78643K 2238 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 13 0 0 VM map 2 1K 1K 78643K 2 0 0 sem 12 0K 0K 78643K 170 0 0 dirhash 12 2K 2K 78643K 12 0 0 ACPI 1808 196K 290K 78643K 12628 0 0 file desc 5 13K 25K 78643K 1228 0 0 sigio 0 0K 0K 78643K 15 0 0 proc 58 63K 91K 78643K 824 0 0 subproc 64 65538K 69634K 78643K 340 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 128 0 0 in_multi 33 2K 2K 78643K 181 0 0 ether_multi 1 0K 0K 78643K 9 0 0 mrt 0 0K 0K 78643K 2 0 0 ISOFS mount 1 32K 32K 78643K 1 0 0 MSDOSFS mount 1 16K 16K 78643K 1 0 0 ttys 90 397K 397K 78643K 90 0 0 exec 0 0K 1K 78643K 371 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 96 21K 30K 78643K 4897 0 0 UVM aobj 40 2K 2K 78643K 50 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 67 0 0 NDP 16 0K 0K 78643K 64 0 0 temp 200 2732K 2860K 78643K 10202 0 0 kqueue 0 0K 0K 78643K 7 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 22 0 16 1 0 1 1 0 8 0 inpcbpl 280 546 0 539 1 0 1 1 0 8 0 plimitpl 152 71 0 63 1 0 1 1 0 8 0 plcache 128 20 0 0 1 0 1 1 0 8 0 rtentry 112 133 0 89 2 0 2 2 0 8 0 syncache 264 4 0 4 1 1 0 1 0 8 0 tcpcb 544 169 0 165 1 0 1 1 0 8 0 nd6 48 30 0 24 1 0 1 1 0 8 0 ppxss 1128 17 0 17 4 4 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 28 0 19 1 0 1 1 0 8 0 pfstkey 112 28 0 19 1 0 1 1 0 8 0 pfstate 328 28 0 19 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 549 0 358 13 1 12 13 0 8 0 art_table 32 550 0 358 2 0 2 2 0 8 0 art_node 16 132 0 92 1 0 1 1 0 8 0 sysvmsgpl 40 9 0 5 1 0 1 1 0 8 0 semapl 112 166 0 156 1 0 1 1 0 8 0 shmpl 112 48 0 10 2 0 2 2 0 8 0 dirhash 1024 17 0 0 3 0 3 3 0 8 0 dino1pl 128 3210 0 1750 48 0 48 48 0 8 0 ffsino 272 3210 0 1750 98 0 98 98 0 8 0 nchpl 144 5025 0 3362 62 0 62 62 0 8 0 uvmvnodes 72 3981 0 0 73 0 73 73 0 8 0 vnodes 200 3981 0 0 210 0 210 210 0 8 0 namei 1024 15956 0 15956 2 1 1 1 0 8 1 percpumem 16 30 0 0 1 0 1 1 0 8 0 scsiplug 64 2 0 2 2 2 0 1 0 8 0 scxspl 192 28132 0 28132 10 7 3 6 0 8 3 sigapl 432 1405 0 1389 3 1 2 3 0 8 0 futexpl 56 13573 0 13571 1 0 1 1 0 8 0 knotepl 112 407 0 388 2 1 1 2 0 8 0 kqueuepl 104 291 0 289 1 0 1 1 0 8 0 pipepl 112 800 0 781 4 3 1 2 0 8 0 fdescpl 488 1406 0 1390 3 0 3 3 0 8 0 filepl 152 8139 0 8037 7 2 5 7 0 8 0 lockfpl 104 455 0 455 2 1 1 1 0 8 1 lockfspl 48 134 0 134 2 1 1 1 0 8 1 sessionpl 112 28 0 17 1 0 1 1 0 8 0 pgrppl 48 30 0 19 1 0 1 1 0 8 0 ucredpl 96 1510 0 1501 1 0 1 1 0 8 0 zombiepl 144 1390 0 1389 2 1 1 1 0 8 0 processpl 840 1422 0 1389 4 0 4 4 0 8 0 procpl 600 3798 0 3752 4 0 4 4 0 8 0 srpgc 64 48 0 48 5 5 0 1 0 8 0 sosppl 128 4 0 4 2 2 0 1 0 8 0 sockpl 384 1030 0 1011 6 3 3 5 0 8 1 mcl64k 65536 378 0 0 48 0 48 48 0 8 1 mcl16k 16384 4 0 0 1 0 1 1 0 8 0 mcl12k 12288 12 0 0 2 0 2 2 0 8 0 mcl9k 9216 7 0 0 1 0 1 1 0 8 0 mcl8k 8192 8 0 0 1 0 1 1 0 8 0 mcl4k 4096 16 0 0 2 0 2 2 0 8 0 mcl2k2 2112 2 0 0 1 0 1 1 0 8 0 mcl2k 2048 123 0 0 15 0 15 15 0 8 0 mtagpl 80 1 0 0 1 0 1 1 0 8 0 mbufpl 256 517 0 0 28 0 28 28 0 8 0 bufpl 256 28302 0 22091 390 0 390 390 0 8 1 anonpl 16 152755 0 141497 83 21 62 62 0 125 16 amapchunkpl 152 9082 0 8957 15 9 6 10 0 158 0 amappl16 192 6482 0 5868 60 21 39 43 0 8 8 amappl15 184 92 0 91 1 0 1 1 0 8 0 amappl14 176 349 0 345 2 1 1 1 0 8 0 amappl13 168 129 0 129 4 4 0 1 0 8 0 amappl12 160 26 0 24 1 0 1 1 0 8 0 amappl11 152 326 0 308 1 0 1 1 0 8 0 amappl10 144 262 0 257 1 0 1 1 0 8 0 amappl9 136 909 0 904 1 0 1 1 0 8 0 amappl8 128 453 0 430 1 0 1 1 0 8 0 amappl7 120 246 0 238 1 0 1 1 0 8 0 amappl6 112 308 0 300 1 0 1 1 0 8 0 amappl5 104 187 0 172 1 0 1 1 0 8 0 amappl4 96 1663 0 1628 2 1 1 2 0 8 0 amappl3 88 162 0 157 1 0 1 1 0 8 0 amappl2 80 10735 0 10669 2 0 2 2 0 8 0 amappl1 72 41368 0 40905 25 15 10 20 0 8 0 amappl 72 4200 0 4156 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 49 0 10 1 0 1 1 0 8 0 uaddrrnd 24 1406 0 1389 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 1406 0 1389 1 0 1 1 0 8 0 vmmpekpl 168 15278 0 15252 2 0 2 2 0 8 0 vmmpepl 168 156554 0 154828 148 62 86 110 0 357 10 vmsppl 360 1405 0 1389 2 0 2 2 0 8 0 pdppl 4096 2820 0 2778 6 0 6 6 0 8 0 pvpl 32 437404 0 422835 195 44 151 154 0 265 31 pmappl 232 1405 0 1389 2 1 1 2 0 8 0 extentpl 40 39 0 25 1 0 1 1 0 8 0 phpool 112 613 0 5 18 0 18 18 0 8 0