panic: kernel diagnostic assertion "ps->ps_uvncount == 0" faile d: 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(ffffffff830b4120) at panic+0x1cf sys/kern/subr_prf.c:198 __assert(ffffffff83068a43,ffffffff83037d30,bc,ffffffff82fead27) at __assert+0x29 unveil_destroy(ffff80002a4659b8) at unveil_destroy+0x1dd sys/kern/kern_unveil.c:188 exit1(ffff80002a4d0ce8,0,0,1) at exit1+0x60f sys/kern/kern_exit.c:233 sys_exit(ffff80002a4d0ce8,ffff80002a585a70,ffff80002a5859c0) at sys_exit+0x1a syscall(ffff80002a585a70) at syscall+0x97e sys/arch/amd64/amd64/trap.c:577 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x72d15a78fc10, count: 7 https://www.openbsd.org/ddb.html describes the minimum info req uired in bug reports. Insufficient info makes it difficult to find and fix b ugs. 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(ffffffff830b4120) at panic+0x1cf sys/kern/subr_prf.c:198 __assert(ffffffff83068a43,ffffffff83037d30,bc,ffffffff82fead27) at __assert+0x29 unveil_destroy(ffff80002a4659b8) at unveil_destroy+0x1dd sys/kern/kern_unveil.c:188 exit1(ffff80002a4d0ce8,0,0,1) at exit1+0x60f sys/kern/kern_exit.c:233 sys_exit(ffff80002a4d0ce8,ffff80002a585a70,ffff80002a5859c0) at sys_exit+0x1a syscall(ffff80002a585a70) at syscall+0x97e sys/arch/amd64/amd64/trap.c:577 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x72d15a78fc10, count: -8 ddb> show registers rdi 0 rsi 0x1 rbp 0xffff80002a5857c0 rbx 0xffff80002a4659b8 rdx 0 rcx 0 rax 0xffff80002a4d0ce8 r8 0 r9 0x8080808080808080 r10 0x254c8dfdd4cea58b r11 0x71e9b5e324a804a r12 0 r13 0x2 r14 0 r15 0x1 rip 0xffffffff81cf7a65 db_enter+0x25 cs 0x8 rflags 0x246 rsp 0xffff80002a5857b0 ss 0 db_enter+0x25: addq $0x8,%rsp ddb> show proc PROC (syz-executor) tid=258928 pid=37441 tcnt=0 stat=onproc flags process=1008 proc=2000 runpri=32, usrpri=83, slppri=32, nice=20 wchan=0x0, wmesg=, ps_single=0xffff80002a4d0ce8 scnt=-1 ecnt=1 forw=0xffffffffffffffff, list=0xffff80002a4a2a58,0xffff80002a4d07e8 process=0xffff80002a4659b8 user=0xffff80002a580000, vmspace=0xfffffd8071edf2b8 estcpu=33, cpticks=1, pctcpu=0.20, user=0, sys=1, intr=0 ddb> ps PID TID PPID UID S FLAGS WAIT COMMAND 22743 8981 2647 0 2 0 syz-executor 22743 172985 2647 0 3 0x4000080 fsleep syz-executor 79632 522649 71508 0 2 0 syz-executor 79632 287433 71508 0 3 0x4000080 sbwait syz-executor 79632 125216 71508 0 2 0x4000000 syz-executor 5743 32408 27323 0 2 0 syz-executor 5743 116817 27323 0 3 0x4000080 fsleep syz-executor 27005 87180 67113 0 2 0x480 syz-executor 27005 26181 67113 0 3 0x4000080 sbwait syz-executor 27005 347912 67113 0 3 0x4000080 sbwait syz-executor 73671 13852 0 0 3 0x14280 nfsidl nfsio 70510 300572 0 0 3 0x14280 nfsidl nfsio 99769 364380 0 0 3 0x14280 nfsidl nfsio 59106 387015 0 0 3 0x14280 nfsidl nfsio 4007 238397 0 0 3 0x14280 nfsidl nfsio 12564 419278 0 0 3 0x14280 nfsidl nfsio 91909 413392 0 0 3 0x14280 nfsidl nfsio 45456 359300 0 0 3 0x14280 nfsidl nfsio 80040 30466 0 0 3 0x14280 nfsidl nfsio 52834 25189 0 0 3 0x14280 nfsidl nfsio 14974 446324 0 0 3 0x14280 nfsidl nfsio 49463 121877 0 0 3 0x14280 nfsidl nfsio 60162 96120 0 0 3 0x14280 nfsidl nfsio 48119 268733 0 0 3 0x14280 nfsidl nfsio 9951 81888 0 0 3 0x14280 nfsidl nfsio 53378 105871 0 0 3 0x14280 nfsidl nfsio 41817 354303 0 0 3 0x14280 nfsidl nfsio 6894 416568 0 0 3 0x14280 nfsidl nfsio 8862 321766 0 0 3 0x14280 nfsidl nfsio 79802 473109 0 0 3 0x14280 nfsidl nfsio 81762 471520 0 0 3 0x14200 acct acct 58660 102818 79608 0 2 0x2 syz-executor 2647 315429 79608 0 2 0x482 syz-executor 2005 210774 79608 0 3 0x82 wait syz-executor 71508 217317 79608 0 2 0x482 syz-executor 27323 276907 79608 0 2 0x482 syz-executor 45827 73580 79608 0 2 0x2 syz-executor 79255 443017 79608 0 2 0x482 syz-executor 67113 9426 79608 0 2 0x482 syz-executor 79838 11041 1 0 3 0x100083 ttyin getty 98570 470868 0 0 3 0x14200 bored sosplice 79608 188144 54567 0 3 0x82 kqread syz-executor 54567 206570 49576 0 3 0x10008a sigsusp ksh 49576 301921 34258 0 3 0x98 kqread sshd-session 34258 201557 69880 0 3 0x92 kqread sshd-session 69880 345774 1 0 3 0x88 kqread sshd 34335 495474 79220 73 2 0x1100010 syslogd 79220 372697 1 0 3 0x100082 sbwait syslogd 51155 457475 1 0 3 0x100080 kqread resolvd 28336 178046 58860 77 3 0x100092 kqread dhcpleased 1469 331787 58860 77 3 0x100092 kqread dhcpleased 58860 322166 1 0 3 0x80 kqread dhcpleased 45001 208779 0 0 3 0x14200 bored smr 66556 35672 0 0 2 0x14200 zerothread 7976 396818 0 0 3 0x14200 aiodoned aiodoned 8322 149390 0 0 3 0x14200 syncer update 9635 264675 0 0 3 0x14200 cleaner cleaner 31822 469158 0 0 2 0x14200 reaper 29880 366022 0 0 3 0x14200 pgdaemon pagedaemon 6875 323805 0 0 3 0x14200 bored viomb 48223 502562 0 0 3 0x40014200 acpi0 acpi0 69987 64047 0 0 3 0x14200 bored softnet3 23149 341320 0 0 3 0x14200 bored softnet2 45857 380678 0 0 3 0x14200 bored softnet1 79385 508804 0 0 3 0x14200 bored softnet0 50929 199395 0 0 3 0x14200 bored systqmp 23443 360994 0 0 3 0x14200 bored systq 63634 132235 0 0 2 0x40014200 softclock 49951 202651 0 0 3 0x40014200 idle0 1 462698 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 10205 11060K 11369K 166960K 14194 0 pcb 17 16K 18K 166960K 476 0 rtable 205 9K 10K 166960K 3845 0 pf 34 13K 268K 166960K 370 0 ifaddr 40 8K 9K 166960K 508 0 ifgroup 50 2K 2K 166960K 540 0 sysctl 4 1K 1K 166960K 6 0 counters 30 17K 17K 166960K 153 0 ioctlops 0 0K 4K 166960K 634 0 iov 1 2K 28K 166960K 311 0 mount 1 1K 1K 166960K 1 0 log 0 0K 0K 166960K 4 0 vnodes 1546 97K 98K 166960K 4805 0 UFS quota 1 32K 32K 166960K 1 0 UFS mount 5 36K 36K 166960K 5 0 shm 2 1K 9K 166960K 25 0 VM map 2 1K 1K 166960K 2 0 sem 12 0K 0K 166960K 73 0 dirhash 18 3K 3K 166960K 42 0 ACPI 1690 195K 286K 166960K 12468 0 file desc 15 53K 93K 166960K 3464 0 sigio 0 0K 0K 166960K 181 0 proc 64 75K 100K 166960K 3572 0 subproc 104 6K 6K 166960K 1469 0 NFS srvsock 1 0K 0K 166960K 1 0 NFS daemon 1 16K 16K 166960K 1 0 ip_moptions 2 0K 0K 166960K 284 0 in_multi 89 6K 7K 166960K 1350 0 ether_multi 1 0K 0K 166960K 15 0 mrt 1 0K 0K 166960K 7 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 2170 0 pfkey data 0 0K 0K 166960K 3 0 tdb 3 0K 0K 166960K 3 0 VM swap 8 62K 64K 166960K 10 0 UVM amap 216 72K 101K 166960K 27166 0 UVM aobj 57 4K 6K 166960K 62 0 pinsyscall 37 74K 94K 166960K 7240 0 memdesc 1 4K 4K 166960K 1 0 crypto data 1 1K 1K 166960K 1 0 ip6_options 0 0K 0K 166960K 247 0 NDP 11 0K 1K 166960K 370 0 temp 76 6816K 6904K 166960K 124908 0 kqueue 13 20K 31K 166960K 325 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 365 0 361 1 0 1 1 0 8 0 rtentry 112 1375 0 1286 4 1 3 4 0 8 0 unpcb 144 1627 0 1606 9 7 2 8 0 8 1 syncache 336 8 0 8 2 2 0 1 0 8 0 tcpqe 32 2 0 2 1 1 0 1 0 8 0 tcpcb 808 677 0 672 11 7 4 8 0 8 3 arp 88 246 0 229 1 0 1 1 0 8 0 ipq 40 8 0 7 1 0 1 1 0 8 0 ipqe 40 15 0 14 1 0 1 1 0 8 0 inpcb 336 2833 0 2824 16 9 7 10 0 8 5 nd6 104 368 0 347 1 0 1 1 0 8 0 pkpcb 40 47 0 47 2 1 1 1 0 8 1 kcovpl 48 113 0 105 1 0 1 1 0 8 0 ppxss 1072 7 0 7 2 1 1 1 0 8 1 pfstscr 40 67 0 65 2 1 1 1 0 8 0 pfrktable 1344 2 0 2 1 1 0 1 0 8 0 pfanchor 1288 3 0 3 1 1 0 1 0 8 0 pftag 88 4 0 3 1 0 1 1 0 8 0 pfstitem 24 10 0 0 1 0 1 1 0 8 0 pfstkey 128 150 0 142 1 0 1 1 0 8 0 pfstate 344 75 0 70 1 0 1 1 0 8 0 pfrule 1344 85 0 85 2 1 1 1 0 8 1 art_heap8 4096 3 0 0 3 0 3 3 0 8 0 art_heap4 256 5507 0 5108 32 2 30 30 0 8 2 art_table 32 5510 0 5108 4 0 4 4 0 8 0 art_node 16 1367 0 1288 1 0 1 1 0 8 0 sysvmsgpl 40 24 0 13 1 0 1 1 0 8 0 semupl 112 1 0 1 1 1 0 1 0 8 0 semapl 112 71 0 61 1 0 1 1 0 8 0 shmpl 112 59 0 5 2 0 2 2 0 8 0 dirhash 1024 37 0 16 3 0 3 3 0 8 0 dino2pl 256 5108 0 3403 107 0 107 107 0 8 0 ffsino 240 5108 0 3403 101 0 101 101 0 8 0 nchpl 144 7887 0 6071 68 0 68 68 0 8 0 uvmvnodes 80 7308 0 0 150 0 150 150 0 8 0 vnodes 216 7308 0 0 406 0 406 406 0 8 0 namei 1024 37524 0 37523 3 2 1 2 0 8 0 kstatmem 264 268 0 246 2 0 2 2 0 8 0 acpiwqpl 32 1 0 1 1 0 1 1 1 8 1 scsiplug 72 3 0 3 1 1 0 1 0 8 0 scxspl 216 64174 0 64174 10 9 1 8 1 8 1 plimitpl 152 837 0 821 1 0 1 1 0 8 0 sigapl 424 3585 0 3519 10 2 8 8 0 8 0 futexpl 64 28388 0 28386 1 0 1 1 0 8 0 knotepl 120 63707 0 63660 37 28 9 24 0 8 7 kqueuepl 184 796 0 787 7 3 4 4 0 8 3 pipepl 288 793 0 765 8 5 3 7 0 8 0 fdescpl 432 3523 0 3496 5 1 4 5 0 8 0 filepl 120 19318 0 19068 20 6 14 14 0 8 6 lockfpl 104 680 0 677 2 1 1 2 0 8 0 lockfspl 48 287 0 284 1 0 1 1 0 8 0 sessionpl 144 131 0 123 1 0 1 1 0 8 0 pgrppl 48 271 0 255 1 0 1 1 0 8 0 ucredpl 104 3098 0 3087 1 0 1 1 0 8 0 zombiepl 144 3803 0 3801 3 2 1 1 0 8 0 processpl 1096 3585 0 3519 6 1 5 6 0 8 0 procpl 648 6365 0 6292 9 2 7 7 0 8 0 sosppl 168 7 0 7 1 1 0 1 0 8 0 sockpl 504 4911 0 4877 50 38 12 29 0 8 7 mcl64k 65536 27 0 26 2 1 1 1 0 8 0 mcl16k 16384 3 0 3 2 1 1 1 0 8 1 mcl12k 12288 3 0 3 2 1 1 1 0 8 1 mcl9k 9216 4 0 4 2 1 1 1 0 8 1 mcl8k 8192 97 0 97 3 2 1 1 0 8 1 mcl4k 4096 5413 0 5359 18 9 9 16 0 8 1 mcl2k 2048 4201 0 4193 6 3 3 5 0 8 2 mtagpl 96 284 0 284 5 3 2 3 0 8 2 mbufpl 256 35461 0 35272 49 30 19 41 0 8 6 bufpl 280 11071 0 3453 545 0 545 545 0 8 0 anonpl 24 470804 0 467581 101 21 80 80 0 187 41 amapchunkpl 152 89309 0 88846 56 15 41 41 0 158 21 amappl16 200 7403 0 7386 51 39 12 15 0 8 8 amappl15 192 7 0 7 1 1 0 1 0 8 0 amappl14 184 333 0 323 1 0 1 1 0 8 0 amappl13 176 6 0 6 1 1 0 1 0 8 0 amappl12 168 5804 0 5776 2 0 2 2 0 8 0 amappl11 160 63 0 53 1 0 1 1 0 8 0 amappl10 152 10 0 9 2 1 1 1 0 8 0 amappl9 144 159 0 158 1 0 1 1 0 8 0 amappl8 136 36 0 35 1 0 1 1 0 8 0 amappl7 128 313 0 302 1 0 1 1 0 8 0 amappl6 120 1209 0 1207 1 0 1 1 0 8 0 amappl5 112 551 0 540 1 0 1 1 0 8 0 amappl4 104 624 0 606 1 0 1 1 0 8 0 amappl3 96 16917 0 16812 5 1 4 4 0 8 0 amappl2 88 2159 0 2097 2 0 2 2 0 8 0 amappl1 80 24376 0 23869 13 1 12 13 0 8 0 amappl 88 25838 0 25676 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 7 0 7 2 2 0 1 0 8 0 dma128 128 254 0 254 2 2 0 1 0 8 0 dma64 64 7 0 7 2 2 0 1 0 8 0 dma32 32 7 0 7 1 1 0 1 0 8 0 dma16 16 19 0 18 1 0 1 1 0 8 0 aobjpl 72 61 0 5 2 0 2 2 0 8 0 uaddrrnd 24 3523 0 3495 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 3523 0 3495 1 0 1 1 0 8 0 vmmpekpl 168 28466 0 28412 3 0 3 3 0 8 0 vmmpepl 168 216272 0 214604 101 15 86 89 0 357 8 vmsppl 344 3522 0 3495 4 1 3 4 0 8 0 rwobjpl 24 65627 0 57426 51 0 51 51 0 8 1 pdppl 4096 7052 0 6990 272 206 66 80 0 8 4 pvpl 32 1687921 0 1677726 480 132 348 348 0 265 247 pmappl 216 3522 0 3495 3 1 2 3 0 8 0 extentpl 40 55 0 38 1 0 1 1 0 8 0 phpool 112 692 0 320 12 1 11 12 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(ffffffff830b4120) at panic+0x1cf sys/kern/subr_prf.c:198 __assert(ffffffff83068a43,ffffffff83037d30,bc,ffffffff82fead27) at __assert+0x29 unveil_destroy(ffff80002a4659b8) at unveil_destroy+0x1dd sys/kern/kern_unveil.c:188 exit1(ffff80002a4d0ce8,0,0,1) at exit1+0x60f sys/kern/kern_exit.c:233 sys_exit(ffff80002a4d0ce8,ffff80002a585a70,ffff80002a5859c0) at sys_exit+0x1a syscall(ffff80002a585a70) at syscall+0x97e sys/arch/amd64/amd64/trap.c:577 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x72d15a78fc10, 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(ffffffff830b4120) at panic+0x1cf sys/kern/subr_prf.c:198 __assert(ffffffff83068a43,ffffffff83037d30,bc,ffffffff82fead27) at __assert+0x29 unveil_destroy(ffff80002a4659b8) at unveil_destroy+0x1dd sys/kern/kern_unveil.c:188 exit1(ffff80002a4d0ce8,0,0,1) at exit1+0x60f sys/kern/kern_exit.c:233 sys_exit(ffff80002a4d0ce8,ffff80002a585a70,ffff80002a5859c0) at sys_exit+0x1a syscall(ffff80002a585a70) at syscall+0x97e sys/arch/amd64/amd64/trap.c:577 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x72d15a78fc10, count: -8