login: panic: kernel diagnostic assertion "ps->ps_uvncount == 0" failed: file "/syzkaller/managers/multicore/kernel/sys/kern/kern_unveil.c", line 200 Stopped at db_enter+0x18: addq $0x8,%rsp TID PID UID PRFLAGS PFLAGS CPU COMMAND 103022 62643 0 0x2 0x4000000 1 syz-fuzzer db_enter() at db_enter+0x18 sys/arch/amd64/amd64/db_interface.c:398 panic() at panic+0x15c sys/kern/subr_prf.c:207 __assert(ffffffff82204504,ffffffff822053e4,c8,ffffffff821bcec4) at __assert+0x2b sys/kern/subr_prf.c:154 unveil_destroy(ffff800020adc380) at unveil_destroy+0x19f sys/kern/kern_unveil.c:200 exit1(ffff800020ab0290,0,1) at exit1+0x38f sys/kern/kern_exit.c:218 sys_exit(ffff800020ab0290,ffff800020abf730,ffff800020abf780) at sys_exit+0x17 sys/kern/kern_exit.c:94 syscall(ffff800020abf800) at syscall+0x4a4 mi_syscall sys/sys/syscall_mi.h:92 [inline] syscall(ffff800020abf800) at syscall+0x4a4 sys/arch/amd64/amd64/trap.c:555 Xsyscall(0,1,0,1,0,7f7ffffe67b4) at Xsyscall+0x128 end of kernel end trace frame: 0x7f7ffffe6780, 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{0}> ddb{0}> set $lines = 0 ddb{0}> set $maxwidth = 0 ddb{0}> show panic kernel diagnostic assertion "ps->ps_uvncount == 0" failed: file "/syzkaller/managers/multicore/kernel/sys/kern/kern_unveil.c", line 200 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:207 __assert(ffffffff82204504,ffffffff822053e4,c8,ffffffff821bcec4) at __assert+0x2b sys/kern/subr_prf.c:154 unveil_destroy(ffff800020adc380) at unveil_destroy+0x19f sys/kern/kern_unveil.c:200 exit1(ffff800020ab0290,0,1) at exit1+0x38f sys/kern/kern_exit.c:218 sys_exit(ffff800020ab0290,ffff800020abf730,ffff800020abf780) at sys_exit+0x17 sys/kern/kern_exit.c:94 syscall(ffff800020abf800) at syscall+0x4a4 mi_syscall sys/sys/syscall_mi.h:92 [inline] syscall(ffff800020abf800) at syscall+0x4a4 sys/arch/amd64/amd64/trap.c:555 Xsyscall(0,1,0,1,0,7f7ffffe67b4) at Xsyscall+0x128 end of kernel end trace frame: 0x7f7ffffe6780, count: -8 ddb{0}> show registers rdi 0 rsi 0x1 rbp 0xffff800020abf540 rbx 0xffff800020abf5f0 rdx 0xffff800020ab0290 rcx 0 rax 0 r8 0xffffffff81436e6f kprintf+0x16f r9 0x1 r10 0x25 r11 0x84cd0af7ef30dd4d r12 0x3000000008 r13 0xffff800020abf550 r14 0x100 r15 0x1 rip 0xffffffff81a91c98 db_enter+0x18 cs 0x8 rflags 0x246 rsp 0xffff800020abf530 ss 0x10 db_enter+0x18: addq $0x8,%rsp ddb{0}> show proc PROC (syz-executor.0) pid=72532 stat=onproc flags process=1008 proc=2000 pri=32, usrpri=81, nice=20 forw=0xffffffffffffffff, list=0xffff800020ab0ee8,0xffffffff82660568 process=0xffff800020adc380 user=0xffff800020aba000, vmspace=0xfffffd807f00bcf0 estcpu=36, cpticks=6, pctcpu=0.0 user=0, sys=1, intr=0 ddb{0}> ps PID TID PPID UID S FLAGS WAIT COMMAND 18933 140766 1 0 3 0x100083 ttyin getty 98525 312511 62643 0 2 0x482 syz-executor.0 50154 192708 0 0 3 0x14200 bored sosplice 62643 472908 72033 0 3 0x82 thrsleep syz-fuzzer 62643 54657 72033 0 3 0x4000082 nanosleep syz-fuzzer 62643 443204 72033 0 3 0x4000082 thrsleep syz-fuzzer 62643 86349 72033 0 3 0x4000082 thrsleep syz-fuzzer 62643 63351 72033 0 3 0x4000082 thrsleep syz-fuzzer 62643 103022 72033 0 7 0x4000002 syz-fuzzer 62643 174601 72033 0 3 0x4000082 thrsleep syz-fuzzer 62643 116462 72033 0 3 0x4000082 thrsleep syz-fuzzer 62643 339118 72033 0 3 0x4000082 kqread syz-fuzzer 62643 43102 72033 0 3 0x4000082 thrsleep syz-fuzzer 72033 449295 57344 0 3 0x10008a pause ksh 57344 248720 15206 0 3 0x92 select sshd 15206 503065 1 0 3 0x80 select sshd 91092 190122 58499 74 3 0x100092 bpf pflogd 58499 348181 1 0 3 0x80 netio pflogd 63676 131256 27159 73 3 0x100090 kqread syslogd 27159 49629 1 0 3 0x100082 netio syslogd 74309 504731 1 77 3 0x100090 poll dhclient 49455 51818 1 0 3 0x80 poll dhclient 30665 307875 0 0 2 0x14200 zerothread 63586 394753 0 0 3 0x14200 aiodoned aiodoned 82115 222549 0 0 3 0x14200 syncer update 18985 498615 0 0 3 0x14200 cleaner cleaner 58457 252784 0 0 3 0x14200 reaper reaper 97973 28360 0 0 3 0x14200 pgdaemon pagedaemon 67017 402841 0 0 3 0x14200 bored crynlk 46443 306616 0 0 3 0x14200 bored crypto 28961 476828 0 0 3 0x40014200 acpi0 acpi0 63629 42006 0 0 3 0x40014200 idle1 9200 494866 0 0 3 0x14200 bored softnet 52237 440494 0 0 3 0x14200 bored systqmp 7230 269006 0 0 3 0x14200 bored systq 18173 131646 0 0 3 0x40014200 bored softclock 55604 22514 0 0 3 0x40014200 idle0 68218 401565 0 0 3 0x14200 bored smr 1 18207 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 9607 6468K 14771K 78643K 32450 0 0 pcb 13 8K 8K 78643K 1126 0 0 rtable 103 12K 13K 78643K 2461 0 0 ifaddr 81 18K 21K 78643K 915 0 0 counters 39 33K 33K 78643K 39 0 0 ioctlops 0 0K 4K 78643K 1914 0 0 iov 0 0K 24K 78643K 837 0 0 mount 1 1K 1K 78643K 1 0 0 vnodes 1199 75K 77K 78643K 9236 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 107 0 0 VM map 2 1K 1K 78643K 19 0 0 sem 12 0K 1K 78643K 950 0 0 dirhash 12 2K 2K 78643K 12 0 0 ACPI 1809 196K 290K 78643K 12843 0 0 file desc 3 5K 25K 78643K 8626 0 0 sigio 0 0K 0K 78643K 102 0 0 proc 64 75K 91K 78643K 2086 0 0 subproc 16 1K 2K 78643K 397 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 730 0 0 in_multi 22 1K 2K 78643K 539 0 0 ether_multi 1 0K 0K 78643K 41 0 0 mrt 0 0K 0K 78643K 32 0 0 ISOFS mount 1 32K 32K 78643K 1 0 0 MSDOSFS mount 1 16K 16K 78643K 1 0 0 ttys 120 530K 530K 78643K 120 0 0 exec 0 0K 1K 78643K 1415 0 0 pfkey data 0 0K 4K 78643K 2 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 115 14K 32K 78643K 28959 0 0 UVM aobj 130 4K 4K 78643K 152 0 0 memdesc 1 4K 4K 78643K 1 0 0 crypto data 1 1K 1K 78643K 1 0 0 ip6_options 0 0K 1K 78643K 1170 0 0 NDP 20 0K 0K 78643K 278 0 0 temp 214 3556K 4196K 78643K 120959 0 0 kqueue 0 0K 0K 78643K 67 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 54 0 49 1 0 1 1 0 8 0 plcache 128 20 0 0 1 0 1 1 0 8 0 rtpcb 80 389 0 387 1 0 1 1 0 8 0 rtentry 112 281 0 246 2 0 2 2 0 8 0 unpcb 120 2671 0 2661 1 0 1 1 0 8 0 syncache 264 4 0 4 1 1 0 1 0 8 0 tcpqe 32 5784 0 5784 2 2 0 2 0 8 0 tcpcb 544 1734 0 1730 1 0 1 1 0 8 0 inpcb 280 5104 0 5094 21 19 2 2 0 8 1 rttmr 72 7 0 7 6 6 0 1 0 8 0 nd6 48 46 0 44 1 0 1 1 0 8 0 pkpcb 40 33 0 33 10 10 0 1 0 8 0 swfcl 56 6 0 0 1 0 1 1 0 8 0 ppxss 1128 151 0 151 28 28 0 1 0 8 0 pffrag 232 5 0 5 3 3 0 1 0 482 0 pffrnode 88 5 0 5 3 3 0 1 0 8 0 pffrent 40 14 0 14 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 224 0 209 1 0 1 1 0 8 0 pfstkey 112 224 0 209 2 0 2 2 0 8 0 pfstate 328 224 0 209 5 2 3 4 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 1239 0 1065 19 5 14 15 0 8 0 art_table 32 1240 0 1065 2 0 2 2 0 8 0 art_node 16 267 0 235 1 0 1 1 0 8 0 sysvmsgpl 40 24 0 17 3 2 1 1 0 8 0 semapl 112 946 0 936 1 0 1 1 0 8 0 shmpl 112 150 0 22 4 0 4 4 0 8 0 dirhash 1024 17 0 0 3 0 3 3 0 8 0 dino1pl 128 15059 0 13652 46 0 46 46 0 8 0 ffsino 272 15059 0 13652 95 0 95 95 0 8 0 nchpl 144 27336 0 25739 61 0 61 61 0 8 0 uvmvnodes 72 5926 0 0 108 0 108 108 0 8 0 vnodes 208 5926 0 0 312 0 312 312 0 8 0 namei 1024 88447 0 88447 2 1 1 1 0 8 1 percpumem 16 30 0 0 1 0 1 1 0 8 0 vmpool 552 17 0 17 9 9 0 1 0 8 0 scsiplug 64 13 0 13 9 8 1 1 0 8 1 scxspl 192 78674 0 78674 31 30 1 7 0 8 1 plimitpl 152 835 0 828 1 0 1 1 0 8 0 sigapl 432 8774 0 8760 3 1 2 3 0 8 0 futexpl 56 111191 0 111191 1 0 1 1 0 8 1 knotepl 112 1915 0 1902 1 0 1 1 0 8 0 kqueuepl 104 1876 0 1874 1 0 1 1 0 8 0 pipepl 112 4646 0 4633 12 10 2 2 0 8 1 fdescpl 488 8775 0 8761 3 0 3 3 0 8 0 filepl 152 52513 0 52436 17 11 6 7 0 8 2 lockfpl 104 3110 0 3108 1 0 1 1 0 8 0 lockfspl 48 1127 0 1125 1 0 1 1 0 8 0 sessionpl 112 50 0 40 1 0 1 1 0 8 0 pgrppl 48 126 0 116 1 0 1 1 0 8 0 ucredpl 96 10066 0 10056 1 0 1 1 0 8 0 zombiepl 144 8762 0 8761 2 1 1 1 0 8 0 processpl 896 8792 0 8761 4 0 4 4 0 8 0 procpl 632 27004 0 26964 9 4 5 5 0 8 1 srpgc 64 51 0 51 21 20 1 1 0 8 1 sosppl 128 111 0 111 29 28 1 1 0 8 1 sockpl 384 8272 0 8253 13 9 4 4 0 8 2 mcl64k 65536 270 0 0 34 19 15 34 0 8 1 mcl16k 16384 17 0 0 3 0 3 3 0 8 1 mcl12k 12288 41 0 0 2 0 2 2 0 8 0 mcl9k 9216 25 0 0 2 0 2 2 0 8 0 mcl8k 8192 17 0 0 3 0 3 3 0 8 0 mcl4k 4096 34 0 0 4 1 3 3 0 8 0 mcl2k2 2112 12 0 0 1 0 1 1 0 8 0 mcl2k 2048 215 0 0 23 4 19 23 0 8 0 mtagpl 80 63 0 0 1 0 1 1 0 8 0 mbufpl 256 601 0 0 22 1 21 21 0 8 0 bufpl 256 25638 0 18590 441 0 441 441 0 8 0 anonpl 16 809581 0 796853 229 160 69 70 0 124 8 amapchunkpl 152 52563 0 52453 62 54 8 12 0 158 3 amappl16 192 43649 0 42932 258 213 45 50 0 8 8 amappl15 184 1926 0 1925 1 0 1 1 0 8 0 amappl14 176 1727 0 1726 1 0 1 1 0 8 0 amappl13 168 1236 0 1236 4 4 0 1 0 8 0 amappl12 160 677 0 676 5 4 1 1 0 8 0 amappl11 152 1753 0 1738 1 0 1 1 0 8 0 amappl10 144 1300 0 1295 1 0 1 1 0 8 0 amappl9 136 1281 0 1276 1 0 1 1 0 8 0 amappl8 128 822 0 783 3 1 2 2 0 8 0 amappl7 120 1412 0 1402 1 0 1 1 0 8 0 amappl6 112 1727 0 1714 1 0 1 1 0 8 0 amappl5 104 969 0 955 1 0 1 1 0 8 0 amappl4 96 7773 0 7739 1 0 1 1 0 8 0 amappl3 88 3425 0 3420 1 0 1 1 0 8 0 amappl2 80 70444 0 70374 3 1 2 3 0 8 0 amappl1 72 197014 0 196580 25 15 10 20 0 8 0 amappl 80 27635 0 27598 2 0 2 2 0 84 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 151 0 22 3 0 3 3 0 8 0 uaddrrnd 24 8792 0 8760 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 8792 0 8760 1 0 1 1 0 8 0 vmmpekpl 168 64224 0 64192 2 0 2 2 0 8 0 vmmpepl 168 1066667 0 1064866 419 323 96 112 0 357 9 vmsppl 368 8774 0 8760 2 0 2 2 0 8 0 pdppl 4096 17591 0 17554 7 1 6 6 0 8 0 pvpl 32 2160117 0 2144238 503 336 167 174 0 265 34 pmappl 232 8791 0 8777 6 5 1 2 0 8 0 extentpl 40 38 0 22 1 0 1 1 0 8 0 phpool 112 664 0 35 19 0 19 19 0 8 0