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(ffff8000ffffb370) at unveil_destroy+0x1dd sys/kern/kern_unveil.c:188 exit1(ffff80002a4c27b0,0,0,1) at exit1+0x60f sys/kern/kern_exit.c:233 sys_exit(ffff80002a4c27b0,ffff80002a5a1300,ffff80002a5a1250) at sys_exit+0x1a syscall(ffff80002a5a1300) at syscall+0x97e sys/arch/amd64/amd64/trap.c:577 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x6f8984079d30, 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> 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(ffff8000ffffb370) at unveil_destroy+0x1dd sys/kern/kern_unveil.c:188 exit1(ffff80002a4c27b0,0,0,1) at exit1+0x60f sys/kern/kern_exit.c:233 sys_exit(ffff80002a4c27b0,ffff80002a5a1300,ffff80002a5a1250) at sys_exit+0x1a syscall(ffff80002a5a1300) at syscall+0x97e sys/arch/amd64/amd64/trap.c:577 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x6f8984079d30, count: -8 ddb> show registers rdi 0 rsi 0x1 rbp 0xffff80002a5a1050 rbx 0xffff8000ffffb370 rdx 0 rcx 0 rax 0xffff80002a4c27b0 r8 0 r9 0x8080808080808080 r10 0x70e85182e65e5687 r11 0xcc05e262a7d9f590 r12 0 r13 0x2 r14 0 r15 0x1 rip 0xffffffff81cf7a65 db_enter+0x25 cs 0x8 rflags 0x246 rsp 0xffff80002a5a1040 ss 0 db_enter+0x25: addq $0x8,%rsp ddb> show proc PROC (syz-executor) tid=64474 pid=3888 tcnt=0 stat=onproc flags process=1008 proc=2000 runpri=84, usrpri=86, slppri=17, nice=20 wchan=0x0, wmesg=, ps_single=0xffff80002a4c27b0 scnt=-1 ecnt=1 forw=0xffffffffffffffff, list=0xffff80002a4c31d0,0xffff80002a4c2cd0 process=0xffff8000ffffb370 user=0xffff80002a59c000, vmspace=0xfffffd806c187820 estcpu=36, cpticks=21, pctcpu=0.36, user=0, sys=21, intr=0 ddb> ps PID TID PPID UID S FLAGS WAIT COMMAND 23165 473386 90971 0 2 0 syz-executor 23165 120571 90971 0 2 0x4000000 syz-executor 23165 203261 90971 0 3 0x4000080 fsleep syz-executor 50066 225308 96502 0 2 0 syz-executor 50066 325326 96502 0 3 0x4000080 fsleep syz-executor 50066 60323 96502 0 3 0x4000080 fsleep syz-executor 1455 83052 58126 0 2 0 syz-executor 1455 308230 58126 0 3 0x4000080 fsleep syz-executor 1455 255093 58126 0 3 0x4000080 fsleep syz-executor 27875 320444 11976 0 2 0x2 syz-executor 9870 83766 11976 0 2 0x482 syz-executor 58126 127217 11976 0 2 0x482 syz-executor 48568 403376 11976 0 2 0x2 syz-executor 90971 394987 11976 0 2 0x482 syz-executor 96502 349284 11976 0 2 0x482 syz-executor 42701 459222 11976 0 2 0x2 syz-executor 24663 387235 11976 0 2 0x2 syz-executor 56799 60408 0 0 3 0x14200 acct acct 5846 82759 0 0 3 0x14280 nfsidl nfsio 91725 501546 0 0 3 0x14280 nfsidl nfsio 54112 221862 0 0 3 0x14280 nfsidl nfsio 74031 247270 0 0 3 0x14280 nfsidl nfsio 62877 137577 0 0 3 0x14280 nfsidl nfsio 66849 288353 0 0 3 0x14280 nfsidl nfsio 5032 31344 0 0 3 0x14280 nfsidl nfsio 98460 379865 0 0 3 0x14280 nfsidl nfsio 81015 70104 0 0 3 0x14280 nfsidl nfsio 39552 284851 0 0 3 0x14280 nfsidl nfsio 12027 422410 0 0 3 0x14280 nfsidl nfsio 14190 113494 0 0 3 0x14280 nfsidl nfsio 80934 280987 0 0 3 0x14280 nfsidl nfsio 90807 118419 0 0 3 0x14280 nfsidl nfsio 48977 298910 0 0 3 0x14280 nfsidl nfsio 7292 292454 0 0 3 0x14280 nfsidl nfsio 24448 87337 0 0 3 0x14280 nfsidl nfsio 68372 182804 0 0 3 0x14280 nfsidl nfsio 78609 191472 0 0 3 0x14280 nfsidl nfsio 57357 131824 0 0 3 0x14280 nfsidl nfsio 19897 131029 1 0 2 0x100083 getty 36109 54022 0 0 3 0x14200 bored sosplice 11976 178189 37120 0 3 0x82 kqread syz-executor 37120 181014 48211 0 3 0x10008a sigsusp ksh 48211 133883 70092 0 3 0x98 kqread sshd-session 70092 210430 1 0 3 0x92 kqread sshd-session 51277 454745 54642 73 3 0x1100090 kqread syslogd 54642 183928 1 0 3 0x100082 sbwait syslogd 56736 430014 1 0 3 0x100080 kqread resolvd 89254 23424 68073 77 3 0x100092 kqread dhcpleased 2659 142957 68073 77 3 0x100092 kqread dhcpleased 68073 485255 1 0 3 0x80 kqread dhcpleased 5209 313891 0 0 3 0x14200 bored smr 80198 325889 0 0 2 0x14200 zerothread 82132 274249 0 0 3 0x14200 aiodoned aiodoned 7164 343310 0 0 3 0x14200 syncer update 30611 396517 0 0 3 0x14200 cleaner cleaner 53104 436263 0 0 3 0x14200 reaper reaper 30015 67143 0 0 3 0x14200 pgdaemon pagedaemon 24905 357531 0 0 3 0x14200 bored viomb 61508 8433 0 0 3 0x40014200 acpi0 acpi0 71887 257891 0 0 3 0x14200 bored softnet3 50595 491193 0 0 3 0x14200 bored softnet2 52040 116174 0 0 3 0x14200 bored softnet1 7090 216935 0 0 2 0x14200 softnet0 12463 50324 0 0 3 0x14200 bored systqmp 32843 465876 0 0 3 0x14200 bored systq 97138 70105 0 0 2 0x40014200 softclock 54918 254984 0 0 3 0x40014200 idle0 1 338092 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 10206 11060K 11513K 166960K 14740 0 pcb 18 18K 20K 166960K 754 0 rtable 183 8K 10K 166960K 5130 0 pf 36 14K 270K 166960K 432 0 ifaddr 34 7K 9K 166960K 674 0 ifgroup 50 2K 2K 166960K 710 0 sysctl 3 0K 2K 166960K 9 0 counters 30 17K 17K 166960K 201 0 ioctlops 0 0K 4K 166960K 617 0 iov 0 0K 24K 166960K 265 0 mount 1 1K 1K 166960K 1 0 log 0 0K 0K 166960K 4 0 vnodes 1445 91K 91K 166960K 5150 0 UFS quota 1 32K 32K 166960K 1 0 UFS mount 5 36K 36K 166960K 5 0 shm 2 1K 9K 166960K 43 0 VM map 2 1K 1K 166960K 2 0 sem 26 32K 32K 166960K 160 0 dirhash 15 2K 3K 166960K 54 0 ACPI 1690 195K 286K 166960K 12468 0 file desc 13 45K 97K 166960K 4585 0 sigio 0 0K 0K 166960K 80 0 proc 64 75K 124K 166960K 4803 0 subproc 104 6K 7K 166960K 2028 0 NFS srvsock 1 0K 0K 166960K 1 0 NFS daemon 1 16K 16K 166960K 1 0 ip_moptions 0 0K 0K 166960K 419 0 in_multi 70 5K 7K 166960K 1836 0 ether_multi 1 0K 0K 166960K 7 0 mrt 1 0K 0K 166960K 6 0 ISOFS mount 1 32K 32K 166960K 1 0 MSDOSFS mount 1 16K 16K 166960K 1 0 ttys 235 1049K 1049K 166960K 235 0 exec 0 0K 1K 166960K 2782 0 pfkey data 0 0K 4K 166960K 3 0 tdb 3 0K 0K 166960K 3 0 VM swap 8 62K 64K 166960K 10 0 UVM amap 192 71K 105K 166960K 34761 0 UVM aobj 44 2K 4K 166960K 53 0 pinsyscall 33 66K 96K 166960K 9420 0 memdesc 1 4K 4K 166960K 1 0 crypto data 1 1K 1K 166960K 1 0 ip6_options 1 0K 0K 166960K 111 0 NDP 11 0K 2K 166960K 500 0 temp 75 6816K 6954K 166960K 135546 0 kqueue 19 23K 35K 166960K 434 0 SYN cache 2 2352K 2360K 166960K 3 0 ddb> show all pools Name Size Requests Fail Releases Pgreq Pgrel Npage Hiwat Minpg Maxpg Idle rtpcb 120 572 0 568 3 1 2 2 0 8 1 rtentry 112 1805 0 1728 4 0 4 4 0 8 0 unpcb 144 2676 0 2657 9 5 4 6 0 8 3 syncache 336 10 0 10 1 1 0 1 0 8 0 tcpqe 32 3 0 3 1 1 0 1 0 8 0 tcpcb 808 1031 0 1028 11 9 2 11 0 8 1 arp 88 326 0 309 1 0 1 1 0 8 0 ipq 40 14 0 13 1 0 1 1 0 8 0 ipqe 40 170 0 169 1 0 1 1 0 8 0 inpcb 336 4208 0 4200 14 7 7 9 0 8 5 nd6 104 486 0 469 1 0 1 1 0 8 0 pkpcb 40 80 0 80 2 1 1 1 0 8 1 kcovpl 48 156 0 148 1 0 1 1 0 8 0 ppxss 1072 14 0 14 2 1 1 1 0 8 1 pfstscr 40 12 0 10 1 0 1 1 0 8 0 pfrktable 1344 2 0 1 2 1 1 1 0 8 0 pfanchor 1288 6 0 6 1 1 0 1 0 8 0 pftag 88 4 0 2 1 0 1 1 0 8 0 pfstitem 24 14 0 4 1 0 1 1 0 8 0 pfstkey 128 38 0 27 1 0 1 1 0 8 0 pfstate 344 19 0 14 1 0 1 1 0 8 0 pfrule 1344 15 0 14 2 1 1 1 0 8 0 art_heap8 4096 2 0 0 2 0 2 2 0 8 0 art_heap4 256 7339 0 7012 32 7 25 31 0 8 2 art_table 32 7341 0 7012 4 0 4 4 0 8 0 art_node 16 1802 0 1734 1 0 1 1 0 8 0 sysvmsgpl 40 17 0 12 1 0 1 1 0 8 0 semupl 112 2 0 2 1 1 0 1 0 8 0 semapl 112 155 0 131 1 0 1 1 0 8 0 shmpl 112 50 0 9 2 0 2 2 0 8 0 dirhash 1024 47 0 27 3 0 3 3 0 8 0 dino2pl 256 6025 0 4245 112 0 112 112 0 8 0 ffsino 240 6026 0 4245 106 0 106 106 0 8 0 nchpl 144 9622 0 8900 66 38 28 65 0 8 0 uvmvnodes 80 7449 0 0 153 0 153 153 0 8 0 vnodes 216 7449 0 0 414 0 414 414 0 8 0 namei 1024 49732 0 49727 3 2 1 2 0 8 0 kstatmem 264 364 0 342 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 79635 0 79635 8 7 1 8 1 8 1 plimitpl 152 1059 0 1043 1 0 1 1 0 8 0 sigapl 424 4598 0 4535 8 0 8 8 0 8 0 futexpl 64 35543 0 35538 1 0 1 1 0 8 0 knotepl 120 85027 0 84970 52 43 9 24 0 8 7 kqueuepl 184 829 0 817 6 5 1 6 0 8 0 pipepl 288 888 0 859 7 2 5 5 0 8 2 fdescpl 432 4556 0 4532 5 1 4 5 0 8 0 filepl 120 26597 0 26346 18 8 10 17 0 8 2 lockfpl 104 855 0 853 1 0 1 1 0 8 0 lockfspl 48 287 0 285 1 0 1 1 0 8 0 sessionpl 144 173 0 166 1 0 1 1 0 8 0 pgrppl 48 365 0 350 1 0 1 1 0 8 0 ucredpl 104 4562 0 4551 1 0 1 1 0 8 0 zombiepl 144 4720 0 4719 2 1 1 1 0 8 0 processpl 1096 4598 0 4535 5 0 5 5 0 8 0 procpl 648 8089 0 8020 9 1 8 8 0 8 1 sosppl 168 13 0 13 1 1 0 1 0 8 0 sockpl 504 7570 0 7540 105 93 12 26 0 8 8 mcl64k 65536 49 0 48 2 1 1 1 0 8 0 mcl16k 16384 7 0 7 2 1 1 1 0 8 1 mcl12k 12288 11 0 11 2 1 1 1 0 8 1 mcl9k 9216 5 0 5 1 1 0 1 0 8 0 mcl8k 8192 34 0 34 2 1 1 1 0 8 1 mcl4k 4096 6297 0 6242 16 8 8 15 0 8 1 mcl2k2 2112 3 0 3 2 1 1 1 0 8 1 mcl2k 2048 5533 0 5528 7 5 2 6 0 8 1 mtagpl 96 76 0 71 2 1 1 1 0 8 0 mbufpl 256 45873 0 45666 102 81 21 76 0 8 3 bufpl 280 13813 0 6364 533 0 533 533 0 8 0 anonpl 24 648734 0 645760 157 113 44 151 0 187 6 amapchunkpl 152 114700 0 114300 80 44 36 61 0 158 15 amappl16 200 10667 0 10643 81 71 10 15 0 8 8 amappl15 192 38 0 38 1 1 0 1 0 8 0 amappl14 184 440 0 430 1 0 1 1 0 8 0 amappl13 176 6 0 6 1 1 0 1 0 8 0 amappl12 168 7484 0 7459 2 0 2 2 0 8 0 amappl11 160 47 0 37 1 0 1 1 0 8 0 amappl10 152 21 0 20 1 0 1 1 0 8 0 amappl9 144 119 0 119 1 1 0 1 0 8 0 amappl8 136 33 0 30 1 0 1 1 0 8 0 amappl7 128 392 0 382 1 0 1 1 0 8 0 amappl6 120 1621 0 1619 1 0 1 1 0 8 0 amappl5 112 725 0 716 1 0 1 1 0 8 0 amappl4 104 747 0 733 1 0 1 1 0 8 0 amappl3 96 21594 0 21506 5 1 4 4 0 8 1 amappl2 88 2741 0 2686 2 0 2 2 0 8 0 amappl1 80 29804 0 29377 13 1 12 13 0 8 0 amappl 88 33067 0 32924 6 1 5 5 0 92 0 dma32768 32768 1 0 1 1 1 0 1 0 8 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 1 1 0 1 0 8 0 dma128 128 257 0 257 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 52 0 9 1 0 1 1 0 8 0 uaddrrnd 24 4556 0 4531 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 4556 0 4531 1 0 1 1 0 8 0 vmmpekpl 168 36069 0 36026 3 0 3 3 0 8 0 vmmpepl 168 278120 0 276671 99 18 81 89 0 357 8 vmsppl 344 4555 0 4531 4 1 3 4 0 8 0 rwobjpl 24 81950 0 73727 52 0 52 52 0 8 0 pdppl 4096 9118 0 9062 332 268 64 82 0 8 8 pvpl 32 2316955 0 2308271 479 370 109 462 0 265 15 pmappl 216 4555 0 4531 3 1 2 3 0 8 0 extentpl 40 55 0 38 1 0 1 1 0 8 0 phpool 112 863 0 489 14 0 14 14 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(ffff8000ffffb370) at unveil_destroy+0x1dd sys/kern/kern_unveil.c:188 exit1(ffff80002a4c27b0,0,0,1) at exit1+0x60f sys/kern/kern_exit.c:233 sys_exit(ffff80002a4c27b0,ffff80002a5a1300,ffff80002a5a1250) at sys_exit+0x1a syscall(ffff80002a5a1300) at syscall+0x97e sys/arch/amd64/amd64/trap.c:577 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x6f8984079d30, 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(ffff8000ffffb370) at unveil_destroy+0x1dd sys/kern/kern_unveil.c:188 exit1(ffff80002a4c27b0,0,0,1) at exit1+0x60f sys/kern/kern_exit.c:233 sys_exit(ffff80002a4c27b0,ffff80002a5a1300,ffff80002a5a1250) at sys_exit+0x1a syscall(ffff80002a5a1300) at syscall+0x97e sys/arch/amd64/amd64/trap.c:577 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x6f8984079d30, count: -8