panic: kernel diagnostic assertion "ps->ps_uvncount == 0" failed: file "/syzkaller/managers/main/kernel/sys/kern/kern_unveil.c", line 196 Stopped at db_enter+0x18: addq $0x8,%rsp TID PID UID PRFLAGS PFLAGS CPU COMMAND 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(ffffffff81f82151,ffffffff81f2f0f7,c4,ffffffff81f43925) at __assert+0x2e sys/kern/subr_prf.c:159 unveil_destroy(ffff8000ffffb3f0) at unveil_destroy+0x19f sys/kern/kern_unveil.c:196 exit1(ffff8000149014e8,0,1) at exit1+0x38f sys/kern/kern_exit.c:218 sys_exit(ffff8000149014e8,ffff80001494cb70,ffff80001494cbe0) at sys_exit+0x17 sys/kern/kern_exit.c:94 syscall(ffff80001494cc40) at syscall+0x508 Xsyscall(6,1,0,1,0,7f7ffffc63e4) at Xsyscall+0x128 end of kernel end trace frame: 0x7f7ffffc63b0, 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> ddb> set $lines = 0 ddb> set $maxwidth = 0 ddb> show panic kernel diagnostic assertion "ps->ps_uvncount == 0" failed: file "/syzkaller/managers/main/kernel/sys/kern/kern_unveil.c", line 196 ddb> 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(ffffffff81f82151,ffffffff81f2f0f7,c4,ffffffff81f43925) at __assert+0x2e sys/kern/subr_prf.c:159 unveil_destroy(ffff8000ffffb3f0) at unveil_destroy+0x19f sys/kern/kern_unveil.c:196 exit1(ffff8000149014e8,0,1) at exit1+0x38f sys/kern/kern_exit.c:218 sys_exit(ffff8000149014e8,ffff80001494cb70,ffff80001494cbe0) at sys_exit+0x17 sys/kern/kern_exit.c:94 syscall(ffff80001494cc40) at syscall+0x508 Xsyscall(6,1,0,1,0,7f7ffffc63e4) at Xsyscall+0x128 end of kernel end trace frame: 0x7f7ffffc63b0, count: -8 ddb> show registers rdi 0 rsi 0x1 rbp 0xffff80001494c980 rbx 0xffff80001494ca30 rdx 0x2 rcx 0 rax 0 r8 0xffff80001494c940 r9 0x1 r10 0 r11 0x2198b0da54615d35 r12 0x3000000008 r13 0xffff80001494c990 r14 0x100 r15 0x1 rip 0xffffffff813f3388 db_enter+0x18 cs 0x8 rflags 0x246 rsp 0xffff80001494c970 ss 0x10 db_enter+0x18: addq $0x8,%rsp ddb> show proc PROC (syz-executor.0) pid=317066 stat=onproc flags process=1008 proc=2000 pri=50, usrpri=81, nice=20 forw=0xffffffffffffffff, list=0xffff800014902868,0xffffffff822a5810 process=0xffff8000ffffb3f0 user=0xffff800014947000, vmspace=0xfffffd803f013ee0 estcpu=31, cpticks=1, pctcpu=0.5 user=0, sys=1, intr=0 ddb> ps PID TID PPID UID S FLAGS WAIT COMMAND 77085 2231 1 0 3 0x100083 ttyin getty 61671 220429 0 0 3 0x14200 bored sosplice 76356 163480 44108 0 2 0x482 syz-executor.0 82722 464097 44108 0 2 0x482 syz-executor.1 44108 371909 97037 0 3 0x82 kqread syz-fuzzer 44108 192709 97037 0 2 0x4000482 syz-fuzzer 44108 192770 97037 0 3 0x4000082 thrsleep syz-fuzzer 44108 489234 97037 0 3 0x4000082 thrsleep syz-fuzzer 44108 58772 97037 0 3 0x4000082 thrsleep syz-fuzzer 44108 143673 97037 0 3 0x4000082 thrsleep syz-fuzzer 44108 46395 97037 0 3 0x4000082 thrsleep syz-fuzzer 97037 303097 74902 0 3 0x10008a pause ksh 74902 391944 65704 0 3 0x92 select sshd 65704 133185 1 0 3 0x80 select sshd 73667 123519 16179 73 3 0x100090 kqread syslogd 16179 77339 1 0 3 0x100082 netio syslogd 6588 396468 1 77 3 0x100090 poll dhclient 27838 409720 1 0 3 0x80 poll dhclient 77433 423618 0 0 3 0x14200 pgzero zerothread 1846 166906 0 0 3 0x14200 aiodoned aiodoned 20902 462860 0 0 3 0x14200 syncer update 27963 45449 0 0 3 0x14200 cleaner cleaner 74204 417413 0 0 3 0x14200 reaper reaper 90471 241580 0 0 3 0x14200 pgdaemon pagedaemon 31317 100400 0 0 3 0x14200 bored crynlk 87351 472839 0 0 3 0x14200 bored crypto 75849 510396 0 0 3 0x40014200 acpi0 acpi0 24872 273470 0 0 3 0x14200 bored softnet 16013 80566 0 0 3 0x14200 bored systqmp 5405 326174 0 0 3 0x14200 bored systq 31119 372132 0 0 3 0x40014200 bored softclock 34436 521326 0 0 3 0x40014200 idle0 25570 284701 0 0 3 0x14200 bored smr 1 110210 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 Kern Lim devbuf 9492 6987K 6996K 78643K 13687 0 0 pcb 23 9K 11K 78643K 2043 0 0 rtable 111 4K 4K 78643K 405 0 0 ifaddr 52 12K 13K 78643K 153 0 0 counters 19 16K 16K 78643K 19 0 0 ioctlops 0 0K 2K 78643K 109 0 0 iov 0 0K 24K 78643K 365 0 0 mount 1 1K 1K 78643K 1 0 0 vnodes 1208 76K 76K 78643K 2941 0 0 UFS quota 1 32K 32K 78643K 1 0 0 UFS mount 5 36K 36K 78643K 5 0 0 shm 2 1K 9K 78643K 640 0 0 VM map 2 0K 0K 78643K 2 0 0 sem 12 1K 1K 78643K 12 0 0 dirhash 12 2K 2K 78643K 12 0 0 ACPI 1793 195K 288K 78643K 12645 0 0 file desc 4 9K 25K 78643K 3020 0 0 sigio 0 0K 0K 78643K 50 0 0 proc 44 38K 62K 78643K 1172 0 0 subproc 32 2K 2K 78643K 34 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 115 0 0 in_multi 33 2K 2K 78643K 72 0 0 ether_multi 1 0K 0K 78643K 5 0 0 mrt 0 0K 0K 78643K 5 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 935 0 0 pfkey data 0 0K 4K 78643K 4 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 86 20K 25K 78643K 7730 0 0 UVM aobj 130 4K 4K 78643K 130 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 38 0 0 NDP 10 0K 0K 78643K 40 0 0 temp 156 2715K 3355K 78643K 10315 0 0 kqueue 0 0K 0K 78643K 4 0 0 SYN cache 2 16K 16K 78643K 2 0 0 ddb> show all pools Name Size Requests Fail Releases Pgreq Pgrel Npage Hiwat Minpg Maxpg Idle arp 64 6 0 0 1 0 1 1 0 8 0 inpcbpl 280 462 0 455 1 0 1 1 0 8 0 rtentry 112 45 0 1 2 0 2 2 0 8 0 syncache 264 4 0 4 1 1 0 1 0 8 0 sackhl 24 1 0 1 1 1 0 1 0 8 0 tcpcb 544 152 0 148 1 0 1 1 0 8 0 nd6 48 6 0 0 1 0 1 1 0 8 0 swfcl 56 1 0 0 1 0 1 1 0 8 0 ppxss 1128 23 0 23 6 6 0 1 0 8 0 art_heap8 4096 1 0 0 1 0 1 1 0 8 0 art_heap4 256 187 0 0 12 0 12 12 0 8 0 art_table 32 188 0 0 2 0 2 2 0 8 0 art_node 16 44 0 4 1 0 1 1 0 8 0 semapl 112 10 0 0 1 0 1 1 0 8 0 shmpl 112 128 0 0 4 0 4 4 0 8 0 dirhash 1024 17 0 0 3 0 3 3 0 8 0 dino1pl 128 6711 0 5276 47 0 47 47 0 8 0 ffsino 240 6711 0 5276 85 0 85 85 0 8 0 nchpl 144 10821 0 9187 61 0 61 61 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 31828 0 31828 2 1 1 1 0 8 1 scxspl 192 43651 0 43651 34 31 3 7 0 8 3 plimitpl 152 42 0 35 1 0 1 1 0 8 0 sigapl 432 3192 0 3179 2 0 2 2 0 8 0 futexpl 56 65445 0 65445 1 0 1 1 0 8 1 knotepl 112 197 0 178 1 0 1 1 0 8 0 kqueuepl 104 490 0 488 1 0 1 1 0 8 0 pipepl 112 4054 0 4035 5 4 1 2 0 8 0 fdescpl 424 3193 0 3180 2 0 2 2 0 8 0 filepl 120 17387 0 17293 9 5 4 5 0 8 1 lockfpl 104 885 0 885 2 1 1 1 0 8 1 lockfspl 48 362 0 362 2 1 1 1 0 8 1 sessionpl 112 18 0 8 1 0 1 1 0 8 0 pgrppl 48 34 0 24 1 0 1 1 0 8 0 ucredpl 96 1648 0 1641 1 0 1 1 0 8 0 zombiepl 144 3180 0 3178 2 1 1 1 0 8 0 processpl 848 3208 0 3178 4 0 4 4 0 8 0 procpl 624 6906 0 6870 5 1 4 4 0 8 1 sosppl 128 16 0 16 4 4 0 1 0 8 0 sockpl 384 2436 0 2419 8 5 3 4 0 8 1 mcl64k 65536 38 0 38 4 4 0 1 0 8 0 mcl16k 16384 6 0 6 5 5 0 1 0 8 0 mcl12k 12288 28 0 28 6 6 0 1 0 8 0 mcl9k 9216 20 0 20 5 5 0 1 0 8 0 mcl8k 8192 20 0 20 8 7 1 1 0 8 1 mcl4k 4096 399 0 399 4 3 1 1 0 8 1 mcl2k2 2112 406 0 406 4 4 0 1 0 8 0 mcl2k 2048 54974 0 54932 21 15 6 11 0 8 0 mtagpl 80 2 0 2 1 1 0 1 0 8 0 mbufpl 256 99020 0 98954 16 9 7 12 0 8 0 bufpl 256 17666 0 13117 285 0 285 285 0 8 0 anonpl 16 254584 0 243619 85 40 45 61 0 62 0 amapchunkpl 152 12377 0 12269 21 15 6 18 0 158 0 amappl16 192 16287 0 15685 69 38 31 43 0 8 0 amappl15 184 1 0 1 1 1 0 1 0 8 0 amappl14 176 39 0 37 2 1 1 1 0 8 0 amappl13 168 10 0 8 1 0 1 1 0 8 0 amappl12 160 7 0 6 2 1 1 1 0 8 0 amappl11 152 1531 0 1515 1 0 1 1 0 8 0 amappl10 144 66 0 64 1 0 1 1 0 8 0 amappl9 136 2064 0 2058 1 0 1 1 0 8 0 amappl8 128 1643 0 1627 1 0 1 1 0 8 0 amappl7 120 30 0 27 1 0 1 1 0 8 0 amappl6 112 1524 0 1519 1 0 1 1 0 8 0 amappl5 104 148 0 138 1 0 1 1 0 8 0 amappl4 96 3342 0 3317 1 0 1 1 0 8 0 amappl3 88 224 0 213 1 0 1 1 0 8 0 amappl2 80 24773 0 24708 4 2 2 3 0 8 0 amappl1 72 66083 0 65670 25 16 9 19 0 8 0 amappl 80 7153 0 7115 1 0 1 1 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 129 0 0 3 0 3 3 0 8 0 uaddrrnd 24 3193 0 3179 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 3193 0 3179 1 0 1 1 0 8 0 vmmpekpl 168 27294 0 27268 2 0 2 2 0 8 0 vmmpepl 168 374985 0 373352 153 76 77 104 0 357 2 vmsppl 272 3192 0 3179 2 1 1 2 0 8 0 pdppl 4096 6392 0 6358 6 1 5 6 0 8 0 pvpl 32 768536 0 754181 202 80 122 151 0 265 2 pmappl 200 3192 0 3179 1 0 1 1 0 8 0 extentpl 40 41 0 26 1 0 1 1 0 8 0 phpool 112 462 0 49 12 0 12 12 0 8 0