oL‹vöŻr¯OYcoL‹vöŻr¯OYcoL‹vöŻr¯OYcoL‹vöŻr¯OYcpanic: 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(ffffffff81f80b54,ffffffff81f31c32,c4,ffffffff81f46342) at __assert+0x2e sys/kern/subr_prf.c:159 unveil_destroy(ffff8000ffffaa00) at unveil_destroy+0x19f sys/kern/kern_unveil.c:196 exit1(ffff80001491fc48,0,1) at exit1+0x38f sys/kern/kern_exit.c:218 sys_exit(ffff80001491fc48,ffff8000159e8160,ffff8000159e81d0) at sys_exit+0x17 sys/kern/kern_exit.c:94 syscall(ffff8000159e8230) at syscall+0x508 Xsyscall(0,1,0,1,0,7f7fffff1504) at Xsyscall+0x128 end of kernel end trace frame: 0x7f7fffff14d0, 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(ffffffff81f80b54,ffffffff81f31c32,c4,ffffffff81f46342) at __assert+0x2e sys/kern/subr_prf.c:159 unveil_destroy(ffff8000ffffaa00) at unveil_destroy+0x19f sys/kern/kern_unveil.c:196 exit1(ffff80001491fc48,0,1) at exit1+0x38f sys/kern/kern_exit.c:218 sys_exit(ffff80001491fc48,ffff8000159e8160,ffff8000159e81d0) at sys_exit+0x17 sys/kern/kern_exit.c:94 syscall(ffff8000159e8230) at syscall+0x508 Xsyscall(0,1,0,1,0,7f7fffff1504) at Xsyscall+0x128 end of kernel end trace frame: 0x7f7fffff14d0, count: -8 ddb> show registers rdi 0 rsi 0x1 rbp 0xffff8000159e7f70 rbx 0xffff8000159e8020 rdx 0x2 rcx 0 rax 0 r8 0xffff8000159e7f30 r9 0x1 r10 0 r11 0x11567287d249ac09 r12 0x3000000008 r13 0xffff8000159e7f80 r14 0x100 r15 0x1 rip 0xffffffff81d1cd08 db_enter+0x18 cs 0x8 rflags 0x246 rsp 0xffff8000159e7f60 ss 0x10 db_enter+0x18: addq $0x8,%rsp ddb> show proc PROC (syz-executor.0) pid=114816 stat=onproc flags process=1008 proc=2000 pri=50, usrpri=86, nice=20 forw=0xffffffffffffffff, list=0xffff80001496feb0,0xffffffff822b2de0 process=0xffff8000ffffaa00 user=0xffff8000159e3000, vmspace=0xfffffd803f014bb0 estcpu=36, cpticks=15, pctcpu=0.0 user=0, sys=1, intr=0 ddb> ps PID TID PPID UID S FLAGS WAIT COMMAND 61079 387173 1 0 3 0x100083 ttyin getty 85993 233607 0 0 3 0x14200 bored sosplice 68552 50351 34029 0 2 0x482 syz-executor.0 27047 284805 34029 0 3 0x82 piperd syz-executor.1 34029 372505 41772 0 3 0x82 thrsleep syz-fuzzer 34029 123675 41772 0 3 0x4000082 thrsleep syz-fuzzer 34029 410996 41772 0 3 0x4000082 thrsleep syz-fuzzer 34029 262934 41772 0 3 0x4000082 kqread syz-fuzzer 34029 335337 41772 0 3 0x4000082 thrsleep syz-fuzzer 34029 420161 41772 0 3 0x4000082 thrsleep syz-fuzzer 34029 453155 41772 0 3 0x4000082 thrsleep syz-fuzzer 41772 341260 48977 0 3 0x10008a pause ksh 48977 383320 56469 0 3 0x92 select sshd 56469 369829 1 0 3 0x80 select sshd 91286 136190 76970 73 3 0x100090 kqread syslogd 76970 337773 1 0 3 0x100082 netio syslogd 26291 127088 1 77 3 0x100090 poll dhclient 75244 41146 1 0 3 0x80 poll dhclient 64292 3635 0 0 3 0x14200 pgzero zerothread 64442 393210 0 0 3 0x14200 aiodoned aiodoned 320 328478 0 0 3 0x14200 syncer update 78261 434508 0 0 3 0x14200 cleaner cleaner 47990 150825 0 0 3 0x14200 reaper reaper 98533 66556 0 0 3 0x14200 pgdaemon pagedaemon 45794 142562 0 0 3 0x14200 bored crynlk 57389 308707 0 0 3 0x14200 bored crypto 50379 214741 0 0 3 0x40014200 acpi0 acpi0 16303 330558 0 0 3 0x14200 bored softnet 17627 268288 0 0 3 0x14200 bored systqmp 59394 205174 0 0 3 0x14200 bored systq 60664 423282 0 0 3 0x40014200 bored softclock 68929 221362 0 0 3 0x40014200 idle0 42961 72552 0 0 3 0x14200 bored smr 1 220048 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 9491 6359K 6999K 78643K 15149 0 0 pcb 23 9K 10K 78643K 1234 0 0 rtable 111 4K 4K 78643K 467 0 0 ifaddr 53 13K 13K 78643K 199 0 0 counters 19 16K 16K 78643K 19 0 0 ioctlops 0 0K 2K 78643K 93 0 0 iov 0 0K 16K 78643K 185 0 0 mount 1 1K 1K 78643K 1 0 0 vnodes 1205 76K 77K 78643K 3001 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 23 0 0 VM map 2 0K 0K 78643K 2 0 0 sem 12 0K 0K 78643K 140 0 0 dirhash 12 2K 2K 78643K 12 0 0 ACPI 1793 195K 288K 78643K 12645 0 0 file desc 4 9K 25K 78643K 1791 0 0 sigio 0 0K 0K 78643K 26 0 0 proc 44 38K 54K 78643K 452 0 0 subproc 32 2K 2K 78643K 36 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 62 0 0 ether_multi 1 0K 0K 78643K 2 0 0 mrt 1 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 66 291K 291K 78643K 66 0 0 exec 0 0K 1K 78643K 570 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 90 20K 38K 78643K 5125 0 0 UVM aobj 63 3K 3K 78643K 65 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 50 0 0 NDP 10 0K 0K 78643K 51 0 0 temp 157 2719K 3349K 78643K 8382 0 0 kqueue 0 0K 0K 78643K 10 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 640 0 633 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 tcpqe 32 101 0 101 1 1 0 1 0 8 0 tcpcb 544 230 0 226 1 0 1 1 0 8 0 nd6 48 6 0 0 1 0 1 1 0 8 0 ppxss 1128 32 0 32 7 6 1 1 0 8 1 art_heap8 4096 1 0 0 1 0 1 1 0 8 0 art_heap4 256 188 0 0 12 0 12 12 0 8 0 art_table 32 189 0 0 2 0 2 2 0 8 0 art_node 16 44 0 4 1 0 1 1 0 8 0 sysvmsgpl 40 8 0 2 1 0 1 1 0 8 0 semupl 112 3 0 3 1 1 0 1 0 8 0 semapl 112 138 0 128 1 0 1 1 0 8 0 shmpl 112 63 0 2 2 0 2 2 0 8 0 dirhash 1024 17 0 0 3 0 3 3 0 8 0 dino1pl 128 4605 0 3182 46 0 46 46 0 8 0 ffsino 240 4605 0 3182 84 0 84 84 0 8 0 nchpl 144 7217 0 5578 61 0 61 61 0 8 0 uvmvnodes 72 5693 0 0 104 0 104 104 0 8 0 vnodes 200 5693 0 0 300 0 300 300 0 8 0 namei 1024 21873 0 21873 2 1 1 1 0 8 1 scsiplug 64 3 0 3 3 3 0 1 0 8 0 scxspl 192 19498 0 19498 14 13 1 6 0 8 1 plimitpl 152 67 0 60 1 0 1 1 0 8 0 sigapl 432 1963 0 1950 2 0 2 2 0 8 0 futexpl 56 28111 0 28111 1 0 1 1 0 8 1 knotepl 112 350 0 331 1 0 1 1 0 8 0 kqueuepl 104 387 0 385 1 0 1 1 0 8 0 pipepl 112 986 0 967 3 2 1 2 0 8 0 fdescpl 424 1964 0 1951 2 0 2 2 0 8 0 filepl 120 11623 0 11529 4 0 4 4 0 8 0 lockfpl 104 1013 0 1013 2 1 1 1 0 8 1 lockfspl 48 413 0 413 2 1 1 1 0 8 1 sessionpl 112 18 0 8 1 0 1 1 0 8 0 pgrppl 48 24 0 14 1 0 1 1 0 8 0 ucredpl 96 2366 0 2359 1 0 1 1 0 8 0 zombiepl 144 1951 0 1950 2 1 1 1 0 8 0 processpl 848 1979 0 1950 4 0 4 4 0 8 0 procpl 624 4391 0 4356 4 0 4 4 0 8 0 sosppl 128 16 0 16 3 3 0 1 0 8 0 sockpl 384 1765 0 1748 3 0 3 3 0 8 1 mcl64k 65536 1073 0 1073 133 42 91 97 0 8 91 mcl16k 16384 7 0 7 5 5 0 1 0 8 0 mcl12k 12288 30 0 30 8 7 1 1 0 8 1 mcl9k 9216 17 0 17 10 9 1 1 0 8 1 mcl8k 8192 20 0 20 8 8 0 1 0 8 0 mcl4k 4096 88 0 88 4 3 1 1 0 8 1 mcl2k2 2112 14 0 14 4 4 0 1 0 8 0 mcl2k 2048 54568 0 54523 15 8 7 13 0 8 1 mtagpl 80 4 0 2 2 1 1 1 0 8 0 mbufpl 256 95119 0 95058 70 61 9 53 0 8 3 bufpl 256 11120 0 4344 424 0 424 424 0 8 0 anonpl 16 178490 0 167459 119 64 55 61 0 62 10 amapchunkpl 152 8853 0 8744 44 38 6 18 0 158 1 amappl16 192 9812 0 9201 97 64 33 42 0 8 2 amappl15 184 10 0 9 1 0 1 1 0 8 0 amappl14 176 38 0 35 2 1 1 1 0 8 0 amappl13 168 857 0 856 2 1 1 1 0 8 0 amappl12 160 9 0 8 1 0 1 1 0 8 0 amappl11 152 50 0 36 1 0 1 1 0 8 0 amappl10 144 964 0 962 2 1 1 1 0 8 0 amappl9 136 552 0 547 1 0 1 1 0 8 0 amappl8 128 129 0 113 1 0 1 1 0 8 0 amappl7 120 933 0 926 1 0 1 1 0 8 0 amappl6 112 52 0 45 1 0 1 1 0 8 0 amappl5 104 148 0 137 1 0 1 1 0 8 0 amappl4 96 2097 0 2077 1 0 1 1 0 8 0 amappl3 88 237 0 227 1 0 1 1 0 8 0 amappl2 80 14938 0 14871 4 2 2 3 0 8 0 amappl1 72 43869 0 43455 25 15 10 19 0 8 0 amappl 80 4631 0 4593 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 64 0 2 1 0 1 1 0 8 0 uaddrrnd 24 1964 0 1950 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 1964 0 1950 1 0 1 1 0 8 0 vmmpekpl 168 14709 0 14679 2 0 2 2 0 8 0 vmmpepl 168 233320 0 231686 150 69 81 89 0 357 4 vmsppl 272 1963 0 1950 2 1 1 2 0 8 0 pdppl 4096 3934 0 3900 6 1 5 6 0 8 0 pvpl 32 642100 0 627617 324 110 214 243 0 265 95 pmappl 200 1963 0 1950 1 0 1 1 0 8 0 extentpl 40 41 0 26 1 0 1 1 0 8 0 phpool 112 776 0 132 20 0 20 20 0 8 0