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 178916 71992 0 0x14000 0x200 1 reaper 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(ffffffff821fde5b,ffffffff82200cb3,c8,ffffffff821b8a04) at __assert+0x2e sys/kern/subr_prf.c:154 unveil_destroy(ffff800020a8b190) at unveil_destroy+0x19f sys/kern/kern_unveil.c:200 exit1(ffff800020acea08,0,1) at exit1+0x38f sys/kern/kern_exit.c:218 sys_exit(ffff800020acea08,ffff800022b5b160,ffff800022b5b1d0) at sys_exit+0x17 sys/kern/kern_exit.c:94 syscall(ffff800022b5b240) at syscall+0x552 mi_syscall sys/sys/syscall_mi.h:92 [inline] syscall(ffff800022b5b240) at syscall+0x552 sys/arch/amd64/amd64/trap.c:555 Xsyscall(0,1,0,1,0,7f7ffffbc924) at Xsyscall+0x128 end of kernel end trace frame: 0x7f7ffffbc8f0, 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(ffffffff821fde5b,ffffffff82200cb3,c8,ffffffff821b8a04) at __assert+0x2e sys/kern/subr_prf.c:154 unveil_destroy(ffff800020a8b190) at unveil_destroy+0x19f sys/kern/kern_unveil.c:200 exit1(ffff800020acea08,0,1) at exit1+0x38f sys/kern/kern_exit.c:218 sys_exit(ffff800020acea08,ffff800022b5b160,ffff800022b5b1d0) at sys_exit+0x17 sys/kern/kern_exit.c:94 syscall(ffff800022b5b240) at syscall+0x552 mi_syscall sys/sys/syscall_mi.h:92 [inline] syscall(ffff800022b5b240) at syscall+0x552 sys/arch/amd64/amd64/trap.c:555 Xsyscall(0,1,0,1,0,7f7ffffbc924) at Xsyscall+0x128 end of kernel end trace frame: 0x7f7ffffbc8f0, count: -8 ddb{0}> show registers rdi 0 rsi 0x1 rbp 0xffff800022b5af70 rbx 0xffff800022b5b020 rdx 0xffff800020acea08 rcx 0 rax 0 r8 0xffffffff81fff683 kprintf+0x173 r9 0x1 r10 0x25 r11 0x933db1999664d24a r12 0x3000000008 r13 0xffff800022b5af80 r14 0x100 r15 0x1 rip 0xffffffff81e85d98 db_enter+0x18 cs 0x8 rflags 0x246 rsp 0xffff800022b5af60 ss 0x10 db_enter+0x18: addq $0x8,%rsp ddb{0}> show proc PROC (syz-executor.0) pid=153959 stat=onproc flags process=1008 proc=2000 pri=32, usrpri=85, nice=20 forw=0xffffffffffffffff, list=0xffff800020ace2a0,0xffffffff8264d900 process=0xffff800020a8b190 user=0xffff800022b56000, vmspace=0xfffffd807f00b730 estcpu=35, cpticks=19, pctcpu=0.2 user=0, sys=2, intr=0 ddb{0}> ps PID TID PPID UID S FLAGS WAIT COMMAND 6761 446715 75023 0 2 0x482 syz-executor.0 47756 386543 75023 0 2 0x482 syz-executor.1 60200 467674 1 0 3 0x100083 ttyin getty 20324 200338 0 0 3 0x14200 acct acct 80148 288496 0 0 3 0x14200 bored sosplice 75023 507415 67669 0 3 0x82 thrsleep syz-fuzzer 75023 60001 67669 0 3 0x4000082 thrsleep syz-fuzzer 75023 216252 67669 0 3 0x4000082 thrsleep syz-fuzzer 75023 248641 67669 0 3 0x4000082 thrsleep syz-fuzzer 75023 155127 67669 0 3 0x4000082 kqread syz-fuzzer 75023 427805 67669 0 3 0x4000082 thrsleep syz-fuzzer 75023 315745 67669 0 3 0x4000082 thrsleep syz-fuzzer 75023 95790 67669 0 3 0x4000082 thrsleep syz-fuzzer 75023 126239 67669 0 3 0x4000082 thrsleep syz-fuzzer 75023 235177 67669 0 3 0x4000082 thrsleep syz-fuzzer 67669 176228 37731 0 3 0x10008a pause ksh 37731 33371 48547 0 3 0x92 select sshd 48547 504615 1 0 3 0x80 select sshd 53702 147362 79905 74 3 0x100092 bpf pflogd 79905 22725 1 0 3 0x80 netio pflogd 46059 287724 21805 73 3 0x100090 kqread syslogd 21805 341346 1 0 3 0x100082 netio syslogd 32328 475946 1 77 3 0x100090 poll dhclient 39507 264208 1 0 3 0x80 poll dhclient 85540 19021 0 0 2 0x14200 zerothread 38380 30347 0 0 3 0x14200 aiodoned aiodoned 72463 93023 0 0 3 0x14200 syncer update 91341 231898 0 0 3 0x14200 cleaner cleaner 71992 178916 0 0 7 0x14200 reaper 43348 411236 0 0 3 0x14200 pgdaemon pagedaemon 8421 451930 0 0 3 0x14200 bored crynlk 75389 395702 0 0 3 0x14200 bored crypto 82444 324380 0 0 3 0x40014200 acpi0 acpi0 38286 517917 0 0 3 0x40014200 idle1 63069 426793 0 0 3 0x14200 bored softnet 93774 291024 0 0 3 0x14200 bored systqmp 19598 42110 0 0 3 0x14200 bored systq 39674 383541 0 0 2 0x40014200 softclock 89337 28981 0 0 3 0x40014200 idle0 7783 507312 0 0 3 0x14200 bored smr 1 485362 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 9553 7083K 7831K 78643K 16346 0 0 pcb 13 8K 8K 78643K 198 0 0 rtable 111 4K 4K 78643K 782 0 0 ifaddr 69 16K 17K 78643K 273 0 0 counters 39 33K 33K 78643K 39 0 0 ioctlops 0 0K 4K 78643K 1577 0 0 iov 0 0K 32K 78643K 231 0 0 mount 1 1K 1K 78643K 1 0 0 vnodes 1212 76K 77K 78643K 3179 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 36 0 0 VM map 2 1K 1K 78643K 2 0 0 sem 12 0K 0K 78643K 257 0 0 dirhash 12 2K 2K 78643K 12 0 0 ACPI 1808 196K 290K 78643K 12765 0 0 file desc 4 9K 25K 78643K 2117 0 0 sigio 0 0K 0K 78643K 47 0 0 proc 58 63K 79K 78643K 885 0 0 subproc 32 2K 2K 78643K 119 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 187 0 0 in_multi 33 2K 2K 78643K 148 0 0 ether_multi 1 0K 0K 78643K 10 0 0 mrt 0 0K 0K 78643K 11 0 0 ISOFS mount 1 32K 32K 78643K 1 0 0 MSDOSFS mount 1 16K 16K 78643K 1 0 0 ttys 96 424K 424K 78643K 96 0 0 exec 0 0K 1K 78643K 464 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 111 22K 31K 78643K 7985 0 0 UVM aobj 111 4K 4K 78643K 113 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 75 0 0 NDP 15 0K 0K 78643K 80 0 0 temp 193 3544K 4179K 78643K 23404 0 0 kqueue 0 0K 0K 78643K 15 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 17 0 11 1 0 1 1 0 8 0 plcache 128 20 0 0 1 0 1 1 0 8 0 rtpcb 80 109 0 107 1 0 1 1 0 8 0 rtentry 112 103 0 59 2 0 2 2 0 8 0 unpcb 120 754 0 744 1 0 1 1 0 8 0 syncache 264 4 0 4 1 1 0 1 0 8 0 tcpqe 32 8335 0 8335 2 2 0 2 0 8 0 tcpcb 544 333 0 327 1 0 1 1 0 8 0 inpcb 280 1034 0 1027 4 2 2 2 0 8 1 rttmr 72 2 0 2 2 2 0 1 0 8 0 nd6 48 21 0 15 1 0 1 1 0 8 0 pkpcb 40 14 0 14 8 7 1 1 0 8 1 swfcl 56 3 0 0 1 0 1 1 0 8 0 ppxss 1128 35 0 35 7 6 1 1 0 8 1 pffrag 232 5 0 5 2 2 0 1 0 482 0 pffrnode 88 5 0 5 2 2 0 1 0 8 0 pffrent 40 10 0 10 2 2 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 69 0 59 1 0 1 1 0 8 0 pfstkey 112 69 0 59 1 0 1 1 0 8 0 pfstate 328 69 0 59 3 1 2 3 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 415 0 224 13 0 13 13 0 8 1 art_table 32 416 0 224 2 0 2 2 0 8 0 art_node 16 102 0 62 1 0 1 1 0 8 0 sysvmsgpl 40 17 0 12 1 0 1 1 0 8 0 semapl 112 253 0 243 1 0 1 1 0 8 0 shmpl 112 111 0 2 4 0 4 4 0 8 0 dirhash 1024 17 0 0 3 0 3 3 0 8 0 dino1pl 128 4604 0 3185 47 0 47 47 0 8 0 ffsino 272 4604 0 3185 96 0 96 96 0 8 0 nchpl 144 7788 0 6157 62 0 62 62 0 8 0 uvmvnodes 72 5926 0 0 108 0 108 108 0 8 0 vnodes 200 5926 0 0 312 0 312 312 0 8 0 namei 1024 25052 0 25052 3 2 1 1 0 8 1 percpumem 16 30 0 0 1 0 1 1 0 8 0 scsiplug 64 9 0 9 5 5 0 1 0 8 0 scxspl 192 24497 0 24497 21 20 1 7 0 8 1 plimitpl 152 223 0 215 1 0 1 1 0 8 0 sigapl 432 2306 0 2291 3 1 2 3 0 8 0 futexpl 56 25916 0 25916 2 1 1 1 0 8 1 knotepl 112 532 0 513 1 0 1 1 0 8 0 kqueuepl 104 517 0 515 1 0 1 1 0 8 0 pipepl 112 1472 0 1453 5 4 1 2 0 8 0 fdescpl 488 2307 0 2292 3 0 3 3 0 8 0 filepl 152 13883 0 13784 9 4 5 6 0 8 1 lockfpl 104 749 0 749 4 3 1 1 0 8 1 lockfspl 48 273 0 273 4 3 1 1 0 8 1 sessionpl 112 27 0 16 1 0 1 1 0 8 0 pgrppl 48 35 0 24 1 0 1 1 0 8 0 ucredpl 96 2364 0 2355 1 0 1 1 0 8 0 zombiepl 144 2292 0 2290 3 2 1 1 0 8 0 processpl 896 2324 0 2290 4 0 4 4 0 8 0 procpl 632 6922 0 6878 6 1 5 5 0 8 0 srpgc 64 12 0 12 5 4 1 1 0 8 1 sosppl 128 20 0 20 6 6 0 1 0 8 0 sockpl 384 1931 0 1912 6 3 3 4 0 8 1 mcl64k 65536 10 0 0 2 0 2 2 0 8 0 mcl16k 16384 3 0 0 1 0 1 1 0 8 0 mcl12k 12288 16 0 0 2 0 2 2 0 8 0 mcl9k 9216 13 0 0 1 0 1 1 0 8 0 mcl8k 8192 13 0 0 2 0 2 2 0 8 0 mcl4k 4096 17 0 0 3 0 3 3 0 8 0 mcl2k2 2112 6 0 0 1 0 1 1 0 8 0 mcl2k 2048 249 0 0 29 7 22 29 0 8 0 mtagpl 80 47 0 0 1 0 1 1 0 8 0 mbufpl 256 284 0 0 15 0 15 15 0 8 0 bufpl 256 11353 0 4334 439 0 439 439 0 8 0 anonpl 16 225049 0 214583 133 65 68 68 0 124 13 amapchunkpl 152 14280 0 14140 36 29 7 19 0 158 0 amappl16 192 11485 0 10803 101 59 42 46 0 8 7 amappl15 184 26 0 24 1 0 1 1 0 8 0 amappl14 176 127 0 118 1 0 1 1 0 8 0 amappl13 168 1714 0 1713 2 1 1 1 0 8 0 amappl12 160 56 0 55 2 1 1 1 0 8 0 amappl11 152 77 0 61 1 0 1 1 0 8 0 amappl10 144 100 0 96 1 0 1 1 0 8 0 amappl9 136 917 0 913 1 0 1 1 0 8 0 amappl8 128 437 0 414 1 0 1 1 0 8 0 amappl7 120 62 0 54 1 0 1 1 0 8 0 amappl6 112 67 0 57 1 0 1 1 0 8 0 amappl5 104 231 0 216 1 0 1 1 0 8 0 amappl4 96 3610 0 3581 1 0 1 1 0 8 0 amappl3 88 315 0 301 1 0 1 1 0 8 0 amappl2 80 17962 0 17888 4 2 2 3 0 8 0 amappl1 72 59575 0 59126 26 16 10 20 0 8 0 amappl 80 7268 0 7222 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 112 0 2 2 0 2 2 0 8 0 uaddrrnd 24 2307 0 2291 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 2307 0 2291 1 0 1 1 0 8 0 vmmpekpl 168 22287 0 22255 2 0 2 2 0 8 0 vmmpepl 168 286355 0 284518 193 90 103 103 0 357 17 vmsppl 368 2306 0 2291 2 0 2 2 0 8 0 pdppl 4096 4621 0 4582 7 1 6 6 0 8 0 pvpl 32 622942 0 608754 269 100 169 169 0 265 36 pmappl 232 2306 0 2291 2 1 1 2 0 8 0 extentpl 40 41 0 26 1 0 1 1 0 8 0 phpool 112 621 0 13 18 0 18 18 0 8 0