panic: kernel diagnostic assertion "ps->ps_uvncount == 0" failed: file "/syzkaller/managers/main/kernel/sys/kern/kern_unveil.c", line 188 Stopped at db_enter+0x25: addq $0x8,%rsp TID PID UID PRFLAGS PFLAGS CPU COMMAND db_enter() at db_enter+0x25 sys/arch/amd64/amd64/db_interface.c:437 panic(ffffffff83103a00) at panic+0x1cf sys/kern/subr_prf.c:198 __assert(ffffffff830b5f87,ffffffff830883c7,bc,ffffffff8303af61) at __assert+0x29 unveil_destroy(ffff8000ffff99c0) at unveil_destroy+0x1dd sys/kern/kern_unveil.c:188 exit1(ffff80002a4d0cc8,0,0,1) at exit1+0x60f sys/kern/kern_exit.c:233 sys_exit(ffff80002a4d0cc8,ffff800034013150,ffff8000340130a0) at sys_exit+0x1a syscall(ffff800034013150) at syscall+0x97e sys/arch/amd64/amd64/trap.c:577 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x7d505ccd19f0, 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 *cpu0: kernel diagnostic assertion "ps->ps_uvncount == 0" failed: file "/syzkaller/managers/main/kernel/sys/kern/kern_unveil.c", line 188 ddb> trace db_enter() at db_enter+0x25 sys/arch/amd64/amd64/db_interface.c:437 panic(ffffffff83103a00) at panic+0x1cf sys/kern/subr_prf.c:198 __assert(ffffffff830b5f87,ffffffff830883c7,bc,ffffffff8303af61) at __assert+0x29 unveil_destroy(ffff8000ffff99c0) at unveil_destroy+0x1dd sys/kern/kern_unveil.c:188 exit1(ffff80002a4d0cc8,0,0,1) at exit1+0x60f sys/kern/kern_exit.c:233 sys_exit(ffff80002a4d0cc8,ffff800034013150,ffff8000340130a0) at sys_exit+0x1a syscall(ffff800034013150) at syscall+0x97e sys/arch/amd64/amd64/trap.c:577 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x7d505ccd19f0, count: -8 ddb> show registers rdi 0 rsi 0x1 rbp 0xffff800034012ea0 rbx 0xffff8000ffff99c0 rdx 0 rcx 0 rax 0xffff80002a4d0cc8 r8 0 r9 0x8080808080808080 r10 0x70603d7af8a7d349 r11 0x9e3f8d20938f02b9 r12 0 r13 0x2 r14 0 r15 0x1 rip 0xffffffff81e36145 db_enter+0x25 cs 0x8 rflags 0x246 rsp 0xffff800034012e90 ss 0x10 db_enter+0x25: addq $0x8,%rsp ddb> show proc PROC (syz-executor) tid=273879 pid=95876 tcnt=0 stat=onproc flags process=1008 proc=2000 runpri=17, usrpri=86, slppri=17, nice=20 wchan=0x0, wmesg=, ps_single=0xffff80002a4d0cc8 scnt=-1 ecnt=1 forw=0xffffffffffffffff, list=0xffff80002a4d11d8,0xffff80002a4d0f60 process=0xffff8000ffff99c0 user=0xffff80003400e000, vmspace=0xfffffd8064152018 estcpu=36, cpticks=42, pctcpu=0.43, user=0, sys=20, intr=0 ddb> ps PID TID PPID UID S FLAGS WAIT COMMAND 60383 130160 85168 0 2 0 syz-executor 60383 218502 85168 0 3 0x4000000 futex syz-executor 51264 251717 68038 0 2 0 syz-executor 51264 340689 68038 0 3 0x4000080 fsleep syz-executor 51264 11729 68038 0 2 0x4000000 syz-executor 14815 250086 66848 0 2 0 syz-executor 38163 185954 28440 0 3 0 futex syz-executor 38163 373652 28440 0 3 0x4000080 fsleep syz-executor 38163 487311 28440 0 3 0x4000080 fsleep syz-executor 7582 358325 50552 0 2 0 syz-executor 7582 231434 50552 0 2 0x4000000 syz-executor 7582 304759 50552 0 3 0x4000000 inode syz-executor 7582 76557 50552 0 2 0x4000000 syz-executor 37077 137555 82590 0 2 0x480 syz-executor 37077 432895 82590 0 3 0x4000080 kqsel syz-executor 37077 297805 82590 0 3 0x4000080 fsleep syz-executor 37077 479263 82590 0 3 0x4000080 fsleep syz-executor 72560 462884 0 0 3 0x14200 acct acct 99491 365814 1 0 3 0x100083 ttyin getty 82590 452734 82091 0 2 0x482 syz-executor 66848 380275 82091 0 2 0x482 syz-executor 32916 522229 0 0 3 0x14280 nfsidl nfsio 37627 137175 0 0 3 0x14280 nfsidl nfsio 4904 128350 0 0 3 0x14280 nfsidl nfsio 66241 5582 0 0 3 0x14280 nfsidl nfsio 45187 486192 0 0 3 0x14280 nfsidl nfsio 37033 227238 0 0 3 0x14280 nfsidl nfsio 79161 162251 0 0 3 0x14280 nfsidl nfsio 90444 234010 0 0 3 0x14280 nfsidl nfsio 45165 180248 0 0 3 0x14280 nfsidl nfsio 68841 488079 0 0 3 0x14280 nfsidl nfsio 98708 338333 0 0 3 0x14280 nfsidl nfsio 67770 108407 0 0 3 0x14280 nfsidl nfsio 11725 204603 0 0 3 0x14280 nfsidl nfsio 13277 465778 0 0 3 0x14280 nfsidl nfsio 36054 502003 0 0 3 0x14280 nfsidl nfsio 42232 351317 0 0 3 0x14280 nfsidl nfsio 44027 236264 0 0 3 0x14280 nfsidl nfsio 23980 476612 0 0 3 0x14280 nfsidl nfsio 35012 375295 0 0 3 0x14280 nfsidl nfsio 53982 421838 0 0 3 0x14280 nfsidl nfsio 43805 153645 0 0 3 0x14200 bored sosplice 28440 67610 82091 0 2 0x482 syz-executor 85168 324359 82091 0 2 0x482 syz-executor 50552 300334 82091 0 2 0x482 syz-executor 13180 196071 82091 0 2 0x2 syz-executor 15105 506510 82091 0 2 0x482 syz-executor 68038 450335 82091 0 2 0x482 syz-executor 82091 503137 14799 0 3 0x82 kqread syz-executor 14799 183595 93052 0 3 0x10008a sigsusp ksh 93052 434640 28873 0 3 0x98 kqread sshd-session 28873 257125 7551 0 3 0x92 kqread sshd-session 7551 39032 1 0 3 0x88 kqread sshd 21618 318307 27390 73 3 0x1100090 kqread syslogd 27390 520222 1 0 3 0x100082 sbwait syslogd 62665 506872 1 0 3 0x100080 kqread resolvd 11807 153199 89698 77 3 0x100092 kqread dhcpleased 86047 73328 89698 77 3 0x100092 kqread dhcpleased 89698 248293 1 0 3 0x80 kqread dhcpleased 93327 81110 0 0 3 0x14200 bored smr 58868 299709 0 0 2 0x14200 zerothread 9743 474724 0 0 3 0x14200 aiodoned aiodoned 84375 502277 0 0 3 0x14200 syncer update 43618 38875 0 0 3 0x14200 cleaner cleaner 87474 9371 0 0 3 0x14200 reaper reaper 2011 87786 0 0 3 0x14200 pgdaemon pagedaemon 47051 266413 0 0 3 0x14200 bored viomb 10685 23985 0 0 3 0x40014200 acpi0 acpi0 54543 453717 0 0 3 0x14200 bored softnet3 82520 232242 0 0 3 0x14200 bored softnet2 46394 35333 0 0 3 0x14200 bored softnet1 56320 69310 0 0 3 0x14200 bored softnet0 64652 86458 0 0 3 0x14200 bored systqmp 80106 112582 0 0 3 0x14200 bored systq 25976 93977 0 0 2 0x40014200 softclock 46333 275522 0 0 3 0x40014200 idle0 1 288368 0 0 3 0x80082 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 devbuf 10200 11051K 11435K 166960K 13065 0 pcb 19 15K 17K 166960K 323 0 rtable 181 6K 7K 166960K 520 0 pf 29 13K 15K 166960K 70 0 ifaddr 32 5K 7K 166960K 70 0 ifgroup 45 2K 2K 166960K 99 0 sysctl 3 1K 1K 166960K 5 0 counters 28 17K 17K 166960K 42 0 ioctlops 0 0K 4K 166960K 233 0 iov 0 0K 28K 166960K 86 0 mount 1 1K 1K 166960K 1 0 log 0 0K 0K 166960K 4 0 vnodes 1461 92K 92K 166960K 2369 0 UFS quota 1 32K 32K 166960K 1 0 UFS mount 5 36K 36K 166960K 5 0 shm 2 1K 9K 166960K 20 0 VM map 2 1K 1K 166960K 2 0 sem 26 32K 42K 166960K 41 0 dirhash 12 2K 2K 166960K 24 0 ACPI 1690 195K 286K 166960K 12468 0 file desc 16 57K 89K 166960K 1172 0 sigio 0 0K 0K 166960K 23 0 proc 65 75K 91K 166960K 633 0 subproc 104 6K 6K 166960K 130 0 NFS srvsock 1 0K 0K 166960K 1 0 NFS daemon 1 16K 16K 166960K 1 0 ip_moptions 0 0K 0K 166960K 184 0 in_multi 67 5K 7K 166960K 162 0 ether_multi 1 0K 0K 166960K 4 0 mrt 0 0K 0K 166960K 2 0 ISOFS mount 1 32K 32K 166960K 1 0 MSDOSFS mount 1 16K 16K 166960K 1 0 ttys 241 1076K 1076K 166960K 241 0 exec 0 0K 1K 166960K 534 0 fusefs mount 1 32K 32K 166960K 1 0 pfkey data 0 0K 0K 166960K 4 0 tdb 3 0K 0K 166960K 3 0 VM swap 8 62K 64K 166960K 10 0 UVM amap 223 72K 90K 166960K 12528 0 UVM aobj 23 4K 4K 166960K 26 0 pinsyscall 38 76K 93K 166960K 2255 0 memdesc 1 4K 4K 166960K 1 0 crypto data 1 1K 1K 166960K 1 0 ip6_options 0 0K 1K 166960K 55 0 NDP 9 0K 2K 166960K 49 0 temp 79 6820K 6932K 166960K 29699 0 kqueue 13 20K 28K 166960K 217 0 SYN cache 2 16K 16K 166960K 2 0 ddb> show all pools Name Size Requests Fail Releases Pgreq Pgrel Npage Hiwat Minpg Maxpg Idle rtpcb 120 112 0 109 1 0 1 1 0 8 0 rtentry 112 159 0 80 4 0 4 4 0 8 0 unpcb 144 746 0 727 6 0 6 6 0 8 5 syncache 336 6 0 6 2 1 1 1 0 8 1 tcpqe 32 3 0 3 2 1 1 1 0 8 1 tcpcb 808 343 0 339 12 4 8 8 0 8 7 arp 88 26 0 10 1 0 1 1 0 8 0 ipq 40 6 0 3 1 0 1 1 0 8 0 ipqe 40 8 0 5 1 0 1 1 0 8 0 inpcb 336 1469 0 1457 12 4 8 8 0 8 6 nd6 104 36 0 20 1 0 1 1 0 8 0 pkpcb 40 9 0 9 2 1 1 1 0 8 1 kcovpl 48 10 0 2 1 0 1 1 0 8 0 ppxss 1072 5 0 5 2 1 1 1 0 8 1 pfstitem 24 2 0 0 1 0 1 1 0 8 0 pfstkey 128 4 0 2 2 1 1 1 0 8 0 pfstate 344 2 0 1 2 1 1 1 0 8 0 pfrule 1344 2 0 2 2 1 1 1 0 8 1 art_heap8 4096 4 0 0 4 0 4 4 0 8 0 art_heap4 256 663 0 336 30 6 24 30 0 8 1 art_table 32 667 0 336 4 0 4 4 0 8 0 art_node 16 156 0 87 1 0 1 1 0 8 0 sysvmsgpl 40 2 0 0 1 0 1 1 0 8 0 semupl 112 3 0 3 1 1 0 1 0 8 0 semapl 112 32 0 8 1 0 1 1 0 8 0 shmpl 112 23 0 3 1 0 1 1 0 8 0 dirhash 1024 25 0 8 3 0 3 3 0 8 0 dino2pl 256 3494 0 2000 95 0 95 95 0 8 0 ffsino 240 3494 0 2000 89 0 89 89 0 8 0 nchpl 144 5120 0 3436 63 0 63 63 0 8 0 uvmvnodes 80 4174 0 0 86 0 86 86 0 8 0 vnodes 216 4174 0 0 232 0 232 232 0 8 0 namei 1024 18101 0 18098 3 1 2 2 0 8 1 kstatmem 264 46 0 28 2 0 2 2 0 8 0 acpiwqpl 32 1 0 1 1 0 1 1 1 8 1 scsiplug 72 5 0 5 3 2 1 1 0 8 1 scxspl 216 14686 0 14686 10 2 8 8 1 8 8 plimitpl 152 341 0 325 1 0 1 1 0 8 0 sigapl 424 1473 0 1406 8 0 8 8 0 8 0 futexpl 64 16648 0 16642 1 0 1 1 0 8 0 knotepl 120 43070 0 43023 30 20 10 16 0 8 8 kqueuepl 184 330 0 319 1 0 1 1 0 8 0 pipepl 288 183 0 156 4 1 3 3 0 8 0 fdescpl 432 1433 0 1405 5 1 4 5 0 8 0 filepl 120 9251 0 9001 14 0 14 14 0 8 4 lockfpl 104 720 0 718 3 1 2 2 0 8 1 lockfspl 48 191 0 189 1 0 1 1 0 8 0 sessionpl 144 27 0 19 1 0 1 1 0 8 0 pgrppl 48 113 0 97 1 0 1 1 0 8 0 ucredpl 104 1893 0 1881 1 0 1 1 0 8 0 zombiepl 144 1915 0 1914 1 0 1 1 0 8 0 processpl 1096 1473 0 1406 5 0 5 5 0 8 0 procpl 648 3242 0 3163 8 0 8 8 0 8 0 sosppl 168 10 0 10 2 1 1 1 0 8 1 sockpl 504 2416 0 2383 36 24 12 21 0 8 7 mcl64k 65536 18 0 18 3 2 1 1 0 8 1 mcl16k 16384 2 0 2 1 0 1 1 0 8 1 mcl12k 12288 3 0 3 1 0 1 1 0 8 1 mcl8k 8192 22 0 22 3 2 1 1 0 8 1 mcl4k 4096 3912 0 3859 17 9 8 15 0 8 0 mcl2k 2048 1283 0 1282 3 1 2 2 0 8 1 mtagpl 96 27 0 13 1 0 1 1 0 8 0 mbufpl 256 17485 0 17310 18 1 17 17 0 8 4 bufpl 280 5156 0 106 361 0 361 361 0 8 0 anonpl 24 176002 0 172743 61 3 58 58 0 187 29 amapchunkpl 152 42220 0 41746 60 27 33 40 0 158 14 amappl16 200 2765 0 2735 23 11 12 15 0 8 8 amappl15 192 4 0 4 1 1 0 1 0 8 0 amappl14 184 137 0 127 1 0 1 1 0 8 0 amappl13 176 4 0 4 1 1 0 1 0 8 0 amappl12 168 2071 0 2042 2 0 2 2 0 8 0 amappl11 160 53 0 43 1 0 1 1 0 8 0 amappl10 152 6 0 6 2 1 1 1 0 8 1 amappl9 144 159 0 159 1 1 0 1 0 8 0 amappl8 136 24 0 23 1 0 1 1 0 8 0 amappl7 128 98 0 88 1 0 1 1 0 8 0 amappl6 120 178 0 177 1 0 1 1 0 8 0 amappl5 112 133 0 124 1 0 1 1 0 8 0 amappl4 104 301 0 285 1 0 1 1 0 8 0 amappl3 96 7594 0 7504 3 0 3 3 0 8 0 amappl2 88 1720 0 1641 2 0 2 2 0 8 0 amappl1 80 10795 0 10278 13 1 12 13 0 8 0 amappl 88 12070 0 11902 5 0 5 5 0 92 0 dma4096 4096 1 0 1 1 1 0 1 0 8 0 dma1024 1024 1 0 0 1 0 1 1 0 8 0 dma256 256 6 0 6 1 1 0 1 0 8 0 dma128 128 255 0 255 2 1 1 1 0 8 1 dma64 64 6 0 6 1 1 0 1 0 8 0 dma32 32 7 0 7 1 1 0 1 0 8 0 dma16 16 18 0 17 1 0 1 1 0 8 0 aobjpl 72 25 0 3 1 0 1 1 0 8 0 uaddrrnd 24 1433 0 1404 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 1433 0 1404 1 0 1 1 0 8 0 vmmpekpl 168 12184 0 12141 3 0 3 3 0 8 0 vmmpepl 168 90591 0 88845 94 5 89 89 0 357 6 vmsppl 352 1432 0 1404 4 1 3 4 0 8 0 rwobjpl 24 28297 0 23250 31 0 31 31 0 8 0 pdppl 4096 2873 0 2808 109 42 67 79 0 8 2 pvpl 32 558620 0 549808 137 8 129 129 0 265 47 pmappl 216 1432 0 1404 2 0 2 2 0 8 0 extentpl 40 55 0 38 1 0 1 1 0 8 0 phpool 112 447 0 100 10 0 10 10 0 8 0 ddb> machine ddbcpu 0 No such command ddb> trace db_enter() at db_enter+0x25 sys/arch/amd64/amd64/db_interface.c:437 panic(ffffffff83103a00) at panic+0x1cf sys/kern/subr_prf.c:198 __assert(ffffffff830b5f87,ffffffff830883c7,bc,ffffffff8303af61) at __assert+0x29 unveil_destroy(ffff8000ffff99c0) at unveil_destroy+0x1dd sys/kern/kern_unveil.c:188 exit1(ffff80002a4d0cc8,0,0,1) at exit1+0x60f sys/kern/kern_exit.c:233 sys_exit(ffff80002a4d0cc8,ffff800034013150,ffff8000340130a0) at sys_exit+0x1a syscall(ffff800034013150) at syscall+0x97e sys/arch/amd64/amd64/trap.c:577 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x7d505ccd19f0, count: -8 ddb> machine ddbcpu 1 No such command ddb> trace db_enter() at db_enter+0x25 sys/arch/amd64/amd64/db_interface.c:437 panic(ffffffff83103a00) at panic+0x1cf sys/kern/subr_prf.c:198 __assert(ffffffff830b5f87,ffffffff830883c7,bc,ffffffff8303af61) at __assert+0x29 unveil_destroy(ffff8000ffff99c0) at unveil_destroy+0x1dd sys/kern/kern_unveil.c:188 exit1(ffff80002a4d0cc8,0,0,1) at exit1+0x60f sys/kern/kern_exit.c:233 sys_exit(ffff80002a4d0cc8,ffff800034013150,ffff8000340130a0) at sys_exit+0x1a syscall(ffff800034013150) at syscall+0x97e sys/arch/amd64/amd64/trap.c:577 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x7d505ccd19f0, count: -8