panic: kernel diagnostic assertion "ps->ps_uvncount == 0" failed: file "/syzkaller/managers/main/kernel/sys/kern/kern_unveil.c", line 191 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:437 panic(ffffffff82573396) at panic+0x161 sys/kern/subr_prf.c:202 __assert(ffffffff825eaaa3,ffffffff8256dfd4,bf,ffffffff8258cbf5) at __assert+0x25 sys/kern/subr_prf.c:161 unveil_destroy(ffff80002170a410) at unveil_destroy+0x1a4 sys/kern/kern_unveil.c:191 exit1(ffff800021785a50,0,0,1) at exit1+0x3b5 sys/kern/kern_exit.c:225 sys_exit(ffff800021785a50,ffff80002e7678e0,ffff80002e767940) at sys_exit+0x16 sys/kern/kern_exit.c:95 syscall(ffff80002e7679b0) at syscall+0x447 sys/arch/amd64/amd64/trap.c:585 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x7f7ffffcc160, 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 191 ddb> trace db_enter() at db_enter+0x18 sys/arch/amd64/amd64/db_interface.c:437 panic(ffffffff82573396) at panic+0x161 sys/kern/subr_prf.c:202 __assert(ffffffff825eaaa3,ffffffff8256dfd4,bf,ffffffff8258cbf5) at __assert+0x25 sys/kern/subr_prf.c:161 unveil_destroy(ffff80002170a410) at unveil_destroy+0x1a4 sys/kern/kern_unveil.c:191 exit1(ffff800021785a50,0,0,1) at exit1+0x3b5 sys/kern/kern_exit.c:225 sys_exit(ffff800021785a50,ffff80002e7678e0,ffff80002e767940) at sys_exit+0x16 sys/kern/kern_exit.c:95 syscall(ffff80002e7679b0) at syscall+0x447 sys/arch/amd64/amd64/trap.c:585 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x7f7ffffcc160, count: -8 ddb> show registers rdi 0 rsi 0x1 rbp 0xffff80002e767700 rbx 0x2 rdx 0 rcx 0 rax 0xffff800021785a50 r8 0x101010101010101 r9 0x8080808080808080 r10 0xeadf8fcc6ad8da1d r11 0x5e89931616b62ebe r12 0 r13 0xffff80002170a410 r14 0 r15 0x1 rip 0xffffffff815e76a8 db_enter+0x18 cs 0x8 rflags 0x246 rsp 0xffff80002e7676f0 ss 0x10 db_enter+0x18: addq $0x8,%rsp ddb> show proc PROC (syz-executor.7) pid=4627 stat=onproc flags process=1008 proc=2000 pri=32, usrpri=84, nice=20 forw=0xffffffffffffffff, list=0xffff800021785510,0xffff800024be57b8 process=0xffff80002170a410 user=0xffff80002e762000, vmspace=0xfffffd805f3a1330 estcpu=34, cpticks=12, pctcpu=0.0 user=0, sys=1, intr=0 ddb> ps PID TID PPID UID S FLAGS WAIT COMMAND 42343 243559 62680 0 2 0 syz-executor.6 42343 332874 62680 0 3 0x4000080 netio syz-executor.6 89627 183150 86535 0 2 0x480 syz-executor.2 89627 313816 86535 0 3 0x4000080 fsleep syz-executor.2 89627 226864 86535 0 3 0x4000080 fsleep syz-executor.2 86535 435199 25889 0 3 0x82 nanoslp syz-executor.2 55216 504344 25889 0 2 0x2 syz-executor.1 21327 290594 25889 0 3 0x82 nanoslp syz-executor.4 62680 279339 25889 0 3 0x82 nanoslp syz-executor.6 781 271739 0 0 3 0x14280 nfsidl nfsio 88497 202223 0 0 3 0x14280 nfsidl nfsio 33566 299623 0 0 3 0x14280 nfsidl nfsio 77782 146060 0 0 3 0x14280 nfsidl nfsio 81894 231920 0 0 3 0x14280 nfsidl nfsio 50570 191544 0 0 3 0x14280 nfsidl nfsio 4753 367552 0 0 3 0x14280 nfsidl nfsio 86201 442103 0 0 3 0x14280 nfsidl nfsio 22094 449975 0 0 3 0x14280 nfsidl nfsio 96105 444333 0 0 3 0x14280 nfsidl nfsio 34772 478450 0 0 3 0x14280 nfsidl nfsio 58541 500299 0 0 3 0x14280 nfsidl nfsio 46657 3203 0 0 3 0x14280 nfsidl nfsio 24603 209980 0 0 3 0x14280 nfsidl nfsio 51872 263158 0 0 3 0x14280 nfsidl nfsio 21868 286937 0 0 3 0x14280 nfsidl nfsio 74467 519180 0 0 3 0x14280 nfsidl nfsio 15113 200062 0 0 3 0x14280 nfsidl nfsio 25812 214164 0 0 3 0x14280 nfsidl nfsio 49633 335858 0 0 3 0x14280 nfsidl nfsio 18428 112273 25889 0 3 0x82 nanoslp syz-executor.7 76385 519586 25889 0 2 0x2 syz-executor.5 40500 337512 25889 0 2 0x2 syz-executor.0 4243 144634 25889 0 2 0x2 syz-executor.3 24904 213631 1 0 3 0x100083 ttyin getty 14281 157893 0 0 3 0x14200 bored sosplice 25889 358917 17591 0 3 0x82 kqread syz-fuzzer 25889 175132 17591 0 3 0x4000082 nanoslp syz-fuzzer 25889 296312 17591 0 3 0x4000082 thrsleep syz-fuzzer 25889 280213 17591 0 3 0x4000082 thrsleep syz-fuzzer 25889 109503 17591 0 3 0x4000082 wait syz-fuzzer 25889 292469 17591 0 3 0x4000082 wait syz-fuzzer 25889 506514 17591 0 3 0x4000082 wait syz-fuzzer 25889 397438 17591 0 3 0x4000082 wait syz-fuzzer 25889 54871 17591 0 3 0x4000082 thrsleep syz-fuzzer 25889 456145 17591 0 3 0x4000082 wait syz-fuzzer 25889 381310 17591 0 3 0x4000082 thrsleep syz-fuzzer 25889 256254 17591 0 3 0x4000082 wait syz-fuzzer 25889 2853 17591 0 3 0x4000082 wait syz-fuzzer 25889 155700 17591 0 3 0x4000082 wait syz-fuzzer 17591 26776 23501 0 3 0x10008a sigsusp ksh 23501 44880 4033 0 3 0x9a kqread sshd 4033 270745 1 0 3 0x88 kqread sshd 86520 293520 99104 73 3 0x1100090 kqread syslogd 99104 272906 1 0 3 0x100082 netio syslogd 95269 293096 1 0 3 0x100080 kqread resolvd 7092 20107 39677 77 3 0x100092 kqread dhcpleased 48096 109429 39677 77 3 0x100092 kqread dhcpleased 39677 234018 1 0 3 0x80 kqread dhcpleased 58332 459512 0 0 3 0x14200 bored smr 43016 70005 0 0 2 0x14200 zerothread 25305 436789 0 0 3 0x14200 aiodoned aiodoned 66687 343184 0 0 3 0x14200 syncer update 35675 254675 0 0 3 0x14200 cleaner cleaner 87549 174647 0 0 3 0x14200 reaper reaper 64710 118726 0 0 3 0x14200 pgdaemon pagedaemon 83787 161732 0 0 3 0x14200 bored viomb 27539 463437 0 0 3 0x40014200 acpi0 acpi0 11724 446919 0 0 3 0x14200 bored softnet 89265 361088 0 0 3 0x14200 bored softnet 90530 52184 0 0 3 0x14200 bored softnet 7445 224939 0 0 3 0x14200 bored softnet 16420 236649 0 0 3 0x14200 bored systqmp 55897 107739 0 0 3 0x14200 bored systq 9741 94990 0 0 3 0x40014200 bored softclock 84891 293318 0 0 3 0x40014200 idle0 1 103126 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 devbuf 10202 6419K 7206K 78643K 21013 0 pcb 13 18K 22K 78643K 5160 0 rtable 209 24K 25K 78643K 2787 0 ifaddr 107 21K 23K 78643K 1020 0 sysctl 2 0K 0K 78643K 2 0 counters 28 17K 17K 78643K 129 0 ioctlops 0 0K 4K 78643K 1436 0 iov 0 0K 16K 78643K 703 0 mount 1 1K 1K 78643K 1 0 log 0 0K 0K 78643K 4 0 vnodes 1432 89K 90K 78643K 5333 0 UFS quota 1 32K 32K 78643K 1 0 UFS mount 5 36K 36K 78643K 5 0 shm 2 1K 9K 78643K 95 0 VM map 2 0K 0K 78643K 2 0 sem 41 2K 2K 78643K 133 0 dirhash 12 2K 2K 78643K 12 0 ACPI 1697 195K 286K 78643K 12548 0 file desc 12 41K 73K 78643K 8668 0 sigio 0 0K 0K 78643K 169 0 proc 65 75K 83K 78643K 2100 0 subproc 104 6K 6K 78643K 676 0 NFS srvsock 1 0K 0K 78643K 1 0 NFS daemon 1 16K 16K 78643K 1 0 ip_moptions 0 0K 0K 78643K 293 0 in_multi 63 4K 6K 78643K 723 0 ether_multi 1 0K 0K 78643K 27 0 mrt 34 2K 2K 78643K 86 0 ISOFS mount 1 32K 32K 78643K 1 0 MSDOSFS mount 1 16K 16K 78643K 1 0 ttys 175 784K 784K 78643K 175 0 exec 0 0K 2K 78643K 2755 0 tdb 3 0K 0K 78643K 3 0 pagedep 1 8K 8K 78643K 1 0 inodedep 1 32K 32K 78643K 1 0 newblk 1 0K 0K 78643K 1 0 VM swap 8 62K 62K 78643K 8 0 UVM amap 403 787K 788K 78643K 47381 0 UVM aobj 86 3K 3K 78643K 111 0 memdesc 1 4K 4K 78643K 1 0 crypto data 1 1K 1K 78643K 1 0 ip6_options 0 0K 0K 78643K 338 0 NDP 16 0K 1K 78643K 233 0 temp 146 4718K 5742K 78643K 122230 0 kqueue 12 18K 24K 78643K 594 0 SYN cache 2 16K 16K 78643K 2 0 ddb> show all pools Name Size Requests Fail Releases Pgreq Pgrel Npage Hiwat Minpg Maxpg Idle rtpcb 120 823 0 820 11 10 1 3 0 8 0 rtentry 112 761 0 692 4 1 3 4 0 8 0 unpcb 144 5640 0 5625 66 60 6 10 0 8 5 syncache 296 33 0 33 10 10 0 1 0 8 0 sackhl 24 1 0 1 1 1 0 1 0 8 0 tcpqe 32 125 0 125 6 6 0 1 0 8 0 tcpcb 736 3435 0 3426 94 87 7 14 0 8 5 arp 88 123 0 111 1 0 1 1 0 8 0 ipq 40 40 0 40 3 3 0 1 0 8 0 ipqe 40 255 0 255 3 3 0 1 0 8 0 inpcb 320 11307 0 11298 122 116 6 15 0 8 5 nd6 48 170 0 155 1 0 1 1 0 8 0 pkpcb 40 15 0 15 3 3 0 1 0 8 0 kcovpl 48 52 0 44 1 0 1 1 0 8 0 ppxss 1160 42 0 42 7 7 0 1 0 8 0 pfstscr 40 16 0 16 1 1 0 1 0 8 0 pfosfp 40 1 0 0 1 0 1 1 0 8 0 pfosfpen 112 1 0 0 1 0 1 1 0 8 0 pfrktable 1344 176 0 157 7 5 2 2 0 8 0 pfanchor 1280 1318 0 1244 9 2 7 7 0 8 0 pftag 88 27 0 19 3 2 1 1 0 8 0 pfqueue 264 1 0 1 1 1 0 1 0 8 0 pfstitem 24 14 0 14 1 1 0 1 0 8 0 pfstkey 120 32 0 32 1 1 0 1 0 8 0 pfstate 336 16 0 16 1 1 0 1 0 8 0 pfrule 1360 385 0 327 8 3 5 5 0 8 0 rttmr 136 16 0 16 4 4 0 1 0 8 0 art_heap8 4096 5 0 4 3 2 1 3 0 8 0 art_heap4 256 3282 0 2994 47 27 20 29 0 8 0 art_table 32 3287 0 2998 4 0 4 4 0 8 0 art_node 16 756 0 697 1 0 1 1 0 8 0 sysvmsgpl 40 33 0 4 1 0 1 1 0 8 0 semupl 112 3 0 3 1 1 0 1 0 8 0 semapl 112 124 0 85 2 0 2 2 0 8 0 shmpl 112 108 0 25 3 0 3 3 0 8 0 dirhash 1024 17 0 0 3 0 3 3 0 8 0 dino2pl 256 12264 0 10795 92 0 92 92 0 8 0 ffsino 240 12265 0 10795 87 0 87 87 0 8 0 nchpl 144 23100 0 21465 63 0 63 63 0 8 0 uvmvnodes 80 5926 0 0 121 0 121 121 0 8 0 vnodes 216 5926 0 0 330 0 330 330 0 8 0 namei 1024 80374 0 80371 8 7 1 2 0 8 0 vcpupl 2048 81 0 0 11 0 11 11 0 8 0 vmpool 536 85 0 4 6 0 6 6 0 8 0 pfiaddrpl 120 70 0 41 2 1 1 1 0 8 0 kstatmem 264 234 0 202 7 4 3 3 0 8 0 scsiplug 72 23 0 23 7 7 0 1 0 8 0 scxspl 216 77362 0 77362 21 20 1 8 0 8 1 plimitpl 152 1097 0 1083 1 0 1 1 0 8 0 sigapl 424 8910 0 8848 10 2 8 8 0 8 0 futexpl 64 79516 0 79514 9 8 1 1 0 8 0 knotepl 120 88940 0 88860 53 50 3 16 0 8 0 kqueuepl 184 1418 0 1410 20 19 1 4 0 8 0 pipepl 288 1984 0 1956 37 34 3 7 0 8 0 fdescpl 432 8853 0 8830 4 0 4 4 0 8 0 filepl 120 55226 0 54988 86 74 12 16 0 8 4 lockfpl 104 2022 0 2020 6 5 1 3 0 8 0 lockfspl 48 566 0 564 2 1 1 2 0 8 0 sessionpl 144 70 0 54 1 0 1 1 0 8 0 pgrppl 48 106 0 90 1 0 1 1 0 8 0 ucredpl 104 7219 0 7209 1 0 1 1 0 8 0 zombiepl 144 8943 0 8941 1 0 1 1 0 8 0 processpl 1000 8910 0 8848 13 4 9 9 0 8 0 procpl 672 21169 0 21091 23 15 8 9 0 8 1 sosppl 168 68 0 68 7 7 0 1 0 8 0 sockpl 456 18000 0 17973 342 330 12 35 0 8 8 mcl64k 65536 273 0 273 16 15 1 1 0 8 1 mcl16k 16384 123 0 123 14 13 1 1 0 8 1 mcl12k 12288 291 0 291 15 14 1 1 0 8 1 mcl9k 9216 187 0 187 16 16 0 1 0 8 0 mcl8k 8192 406 0 405 14 13 1 1 0 8 0 mcl4k 4096 824 0 824 13 12 1 1 0 8 1 mcl2k2 2112 53 0 53 18 18 0 1 0 8 0 mcl2k 2048 87017 0 86955 33 23 10 19 0 8 0 mtagpl 96 766 0 749 10 9 1 5 0 8 0 mbufpl 256 213091 0 212862 1050 1028 22 546 0 8 0 bufpl 288 19087 0 12680 458 0 458 458 0 8 0 anonpl 24 1625581 0 1608455 232 112 120 162 0 188 0 amapchunkpl 152 153848 0 153156 139 109 30 55 0 158 0 amappl16 200 22236 0 21594 100 65 35 48 0 8 0 amappl15 192 1016 0 1010 1 0 1 1 0 8 0 amappl14 184 1072 0 1069 1 0 1 1 0 8 0 amappl13 176 2082 0 2080 1 0 1 1 0 8 0 amappl12 168 1303 0 1296 1 0 1 1 0 8 0 amappl11 160 1165 0 1151 1 0 1 1 0 8 0 amappl10 152 1004 0 998 2 1 1 1 0 8 0 amappl9 144 1998 0 1990 1 0 1 1 0 8 0 amappl8 136 1775 0 1685 4 0 4 4 0 8 0 amappl7 128 659 0 637 1 0 1 1 0 8 0 amappl6 120 2009 0 1992 2 1 1 2 0 8 0 amappl5 112 7428 0 7413 1 0 1 1 0 8 0 amappl4 104 3976 0 3945 3 2 1 2 0 8 0 amappl3 96 25846 0 25796 2 0 2 2 0 8 0 amappl2 88 3016 0 2981 2 0 2 2 0 8 0 amappl1 80 213778 0 213185 19 4 15 19 0 8 0 amappl 88 45957 0 45765 6 0 6 6 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 253 0 253 1 1 0 1 0 8 0 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 110 0 25 2 0 2 2 0 8 0 uaddrrnd 24 8938 0 8833 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 8938 0 8833 1 0 1 1 0 8 0 vmmpekpl 168 63276 0 63195 4 0 4 4 0 8 0 vmmpepl 168 866657 0 864134 250 119 131 153 0 357 0 vmsppl 272 8937 0 8833 10 2 8 8 0 8 0 rwobjpl 24 205221 0 197549 52 4 48 49 0 8 0 pdppl 4096 17882 0 17747 593 448 145 145 0 8 10 pvpl 32 3299905 0 3279896 414 227 187 286 0 265 0 pmappl 216 8937 0 8833 7 0 7 7 0 8 0 extentpl 40 56 0 38 1 0 1 1 0 8 0 phpool 112 2595 0 1717 51 25 26 40 0 8 0 ddb> machine ddbcpu 0 No such command ddb> trace db_enter() at db_enter+0x18 sys/arch/amd64/amd64/db_interface.c:437 panic(ffffffff82573396) at panic+0x161 sys/kern/subr_prf.c:202 __assert(ffffffff825eaaa3,ffffffff8256dfd4,bf,ffffffff8258cbf5) at __assert+0x25 sys/kern/subr_prf.c:161 unveil_destroy(ffff80002170a410) at unveil_destroy+0x1a4 sys/kern/kern_unveil.c:191 exit1(ffff800021785a50,0,0,1) at exit1+0x3b5 sys/kern/kern_exit.c:225 sys_exit(ffff800021785a50,ffff80002e7678e0,ffff80002e767940) at sys_exit+0x16 sys/kern/kern_exit.c:95 syscall(ffff80002e7679b0) at syscall+0x447 sys/arch/amd64/amd64/trap.c:585 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x7f7ffffcc160, count: -8 ddb> machine ddbcpu 1 No such command ddb> trace db_enter() at db_enter+0x18 sys/arch/amd64/amd64/db_interface.c:437 panic(ffffffff82573396) at panic+0x161 sys/kern/subr_prf.c:202 __assert(ffffffff825eaaa3,ffffffff8256dfd4,bf,ffffffff8258cbf5) at __assert+0x25 sys/kern/subr_prf.c:161 unveil_destroy(ffff80002170a410) at unveil_destroy+0x1a4 sys/kern/kern_unveil.c:191 exit1(ffff800021785a50,0,0,1) at exit1+0x3b5 sys/kern/kern_exit.c:225 sys_exit(ffff800021785a50,ffff80002e7678e0,ffff80002e767940) at sys_exit+0x16 sys/kern/kern_exit.c:95 syscall(ffff80002e7679b0) at syscall+0x447 sys/arch/amd64/amd64/trap.c:585 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x7f7ffffcc160, count: -8