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(ffffffff830b2cf8) at panic+0x1cf sys/kern/subr_prf.c:198 __assert(ffffffff83067aec,ffffffff83033caf,bc,ffffffff82fe6f08) at __assert+0x29 unveil_destroy(ffff8000327f59c8) at unveil_destroy+0x1dd sys/kern/kern_unveil.c:188 exit1(ffff80002a4d07b8,b,0,1) at exit1+0x60f sys/kern/kern_exit.c:233 sys_exit(ffff80002a4d07b8,ffff80002a55d120,ffff80002a55d070) at sys_exit+0x1a syscall(ffff80002a55d120) at syscall+0x97e sys/arch/amd64/amd64/trap.c:577 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x732ac5e30af0, 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(ffffffff830b2cf8) at panic+0x1cf sys/kern/subr_prf.c:198 __assert(ffffffff83067aec,ffffffff83033caf,bc,ffffffff82fe6f08) at __assert+0x29 unveil_destroy(ffff8000327f59c8) at unveil_destroy+0x1dd sys/kern/kern_unveil.c:188 exit1(ffff80002a4d07b8,b,0,1) at exit1+0x60f sys/kern/kern_exit.c:233 sys_exit(ffff80002a4d07b8,ffff80002a55d120,ffff80002a55d070) at sys_exit+0x1a syscall(ffff80002a55d120) at syscall+0x97e sys/arch/amd64/amd64/trap.c:577 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x732ac5e30af0, count: -8 ddb> show registers rdi 0 rsi 0x1 rbp 0xffff80002a55ce70 rbx 0xffff8000327f59c8 rdx 0 rcx 0 rax 0xffff80002a4d07b8 r8 0 r9 0x8080808080808080 r10 0x1e917370d0d77537 r11 0x573efd58a3417011 r12 0 r13 0x2 r14 0 r15 0x1 rip 0xffffffff8143fa95 db_enter+0x25 cs 0x8 rflags 0x246 rsp 0xffff80002a55ce60 ss 0x10 db_enter+0x25: addq $0x8,%rsp ddb> show proc PROC (syz-executor) tid=16285 pid=85331 tcnt=0 stat=onproc flags process=1008 proc=2000 runpri=32, usrpri=50, slppri=32, nice=20 wchan=0x0, wmesg=, ps_single=0xffff80002a4d07b8 scnt=-1 ecnt=1 forw=0xffffffffffffffff, list=0xffff80003765b470,0xffffffff835c6118 process=0xffff8000327f59c8 user=0xffff80002a558000, vmspace=0xfffffd806c13fad0 estcpu=36, cpticks=1, pctcpu=0.0, user=0, sys=1, intr=0 ddb> ps PID TID PPID UID S FLAGS WAIT COMMAND 74810 448779 78025 0 3 0x80 fsleep syz-executor 74810 372453 78025 0 3 0x4000080 fifow syz-executor 73145 8850 78948 0 3 0x80 fsleep syz-executor 73145 341255 78948 0 3 0x4000080 piperd syz-executor 76430 201255 71964 0 3 0x80 fsleep syz-executor 76430 389338 71964 0 3 0x4000080 ttyin syz-executor 36542 175602 94244 0 3 0x80 fsleep syz-executor 36542 432765 94244 0 3 0x4000080 sbwait syz-executor 36893 348681 51158 0 3 0x400090 fsleep syz-executor 36893 211843 51158 0 3 0x4400090 pipewr syz-executor 27911 411050 92384 0 3 0x80 fsleep syz-executor 27911 304945 92384 0 3 0x4000080 pppxread syz-executor 44723 99301 40351 0 3 0x80 fsleep syz-executor 44723 326109 40351 0 3 0x4000080 kqsel syz-executor 58920 400277 0 0 3 0x14200 acct acct 40351 448853 76965 0 3 0x82 nanoslp syz-executor 71964 360878 76965 0 3 0x82 nanoslp syz-executor 94244 172219 76965 0 2 0x482 syz-executor 78025 34819 76965 0 2 0x482 syz-executor 51158 280011 76965 0 2 0x482 syz-executor 92384 125736 76965 0 3 0x82 nanoslp syz-executor 85140 56648 76965 0 2 0x482 syz-executor 78948 93766 76965 0 2 0x482 syz-executor 2021 187783 1 0 3 0x100083 ttyin getty 50288 203228 0 0 3 0x14280 nfsidl nfsio 42319 197932 0 0 3 0x14280 nfsidl nfsio 59741 178103 0 0 3 0x14280 nfsidl nfsio 44604 203687 0 0 3 0x14280 nfsidl nfsio 99185 414958 0 0 3 0x14280 nfsidl nfsio 45309 187819 0 0 3 0x14280 nfsidl nfsio 51380 2125 0 0 3 0x14280 nfsidl nfsio 76390 380898 0 0 3 0x14280 nfsidl nfsio 49814 124776 0 0 3 0x14280 nfsidl nfsio 65816 495262 0 0 3 0x14280 nfsidl nfsio 27002 59170 0 0 3 0x14280 nfsidl nfsio 17556 292516 0 0 3 0x14280 nfsidl nfsio 73920 141231 0 0 3 0x14280 nfsidl nfsio 23459 484349 0 0 3 0x14280 nfsidl nfsio 16381 153841 0 0 3 0x14280 nfsidl nfsio 87555 77660 0 0 3 0x14280 nfsidl nfsio 82489 42792 0 0 3 0x14280 nfsidl nfsio 82846 371156 0 0 3 0x14280 nfsidl nfsio 76153 366634 0 0 3 0x14280 nfsidl nfsio 8226 7968 0 0 3 0x14280 nfsidl nfsio 87975 511293 0 0 3 0x14200 bored sosplice 76965 396854 49426 0 3 0x82 kqread syz-executor 49426 455271 3281 0 3 0x10008a sigsusp ksh 3281 124838 72870 0 3 0x98 kqread sshd-session 72870 191781 58131 0 3 0x92 kqread sshd-session 58131 165669 1 0 3 0x88 kqread sshd 94488 383180 85522 73 3 0x1100090 kqread syslogd 85522 214902 1 0 3 0x100082 sbwait syslogd 61001 9476 1 0 3 0x100080 kqread resolvd 82632 6112 48126 77 3 0x100092 kqread dhcpleased 61966 218063 48126 77 3 0x100092 kqread dhcpleased 48126 250712 1 0 3 0x80 kqread dhcpleased 79784 365939 0 0 3 0x14200 bored smr 46232 119459 0 0 2 0x14200 zerothread 16869 259178 0 0 3 0x14200 aiodoned aiodoned 48152 174043 0 0 3 0x14200 syncer update 58812 60283 0 0 3 0x14200 cleaner cleaner 65050 220433 0 0 2 0x14200 reaper 57696 307704 0 0 3 0x14200 pgdaemon pagedaemon 93843 333390 0 0 3 0x14200 bored viomb 84998 18154 0 0 3 0x40014200 acpi0 acpi0 47068 347362 0 0 3 0x14200 bored softnet3 21364 375749 0 0 3 0x14200 bored softnet2 91372 237695 0 0 3 0x14200 bored softnet1 25925 193077 0 0 3 0x14200 bored softnet0 55114 120084 0 0 3 0x14200 bored systqmp 12602 387717 0 0 3 0x14200 bored systq 42376 66553 0 0 2 0x40014200 softclock 87413 253113 0 0 3 0x40014200 idle0 1 460868 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 10197 11080K 11474K 166960K 14970 0 pcb 17 20K 24K 166960K 822 0 rtable 167 6K 9K 166960K 5711 0 pf 37 14K 271K 166960K 535 0 ifaddr 33 7K 9K 166960K 751 0 ifgroup 50 2K 2K 166960K 819 0 sysctl 4 1K 1K 166960K 16 0 counters 30 17K 17K 166960K 234 0 ioctlops 0 0K 4K 166960K 693 0 iov 1 8K 28K 166960K 359 0 mount 1 1K 1K 166960K 1 0 log 0 0K 0K 166960K 4 0 vnodes 1510 95K 95K 166960K 5699 0 UFS quota 1 32K 32K 166960K 1 0 UFS mount 5 36K 36K 166960K 5 0 shm 2 68K 80K 166960K 47 0 VM map 2 1K 1K 166960K 2 0 sem 23 10K 11K 166960K 41 0 dirhash 15 2K 3K 166960K 36 0 ACPI 1690 195K 286K 166960K 12468 0 file desc 17 61K 97K 166960K 5549 0 sigio 0 0K 0K 166960K 127 0 proc 64 75K 124K 166960K 5305 0 subproc 104 6K 7K 166960K 2203 0 NFS srvsock 1 0K 0K 166960K 1 0 NFS daemon 1 16K 16K 166960K 1 0 ip_moptions 2 0K 0K 166960K 437 0 in_multi 69 5K 7K 166960K 1950 0 ether_multi 1 0K 0K 166960K 16 0 mrt 0 0K 0K 166960K 9 0 ISOFS mount 1 32K 32K 166960K 1 0 MSDOSFS mount 1 16K 16K 166960K 1 0 ttys 103 466K 466K 166960K 103 0 exec 0 0K 2K 166960K 3414 0 pfkey data 0 0K 0K 166960K 8 0 tdb 3 0K 0K 166960K 3 0 VM swap 8 62K 64K 166960K 10 0 UVM amap 228 72K 94K 166960K 42726 0 UVM aobj 23 2K 2K 166960K 26 0 pinsyscall 39 78K 104K 166960K 10761 0 memdesc 1 4K 4K 166960K 1 0 crypto data 1 1K 1K 166960K 1 0 ip6_options 0 0K 1K 166960K 209 0 NDP 11 0K 2K 166960K 557 0 temp 83 6816K 6956K 166960K 222301 0 kqueue 13 20K 32K 166960K 534 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 814 0 811 7 4 3 3 0 8 2 rtentry 112 1976 0 1905 4 0 4 4 0 8 0 unpcb 144 3534 0 3510 15 11 4 7 0 8 3 syncache 336 16 0 16 3 2 1 1 0 8 1 sackhl 24 2 0 2 1 1 0 1 0 8 0 tcpqe 32 9 0 9 3 2 1 1 0 8 1 tcpcb 808 1355 0 1348 20 12 8 8 0 8 7 arp 88 361 0 348 1 0 1 1 0 8 0 ipq 40 28 0 26 1 0 1 1 0 8 0 ipqe 40 337 0 335 1 0 1 1 0 8 0 inpcb 336 5218 0 5207 38 31 7 15 0 8 5 nd6 104 534 0 518 1 0 1 1 0 8 0 pkpcb 40 21 0 21 3 2 1 1 0 8 1 kcovpl 48 169 0 161 1 0 1 1 0 8 0 ppxss 1072 31 0 31 2 1 1 1 0 8 1 pfstscr 40 14 0 12 1 0 1 1 0 8 0 pftag 88 3 0 1 1 0 1 1 0 8 0 pfstitem 24 6 0 0 1 0 1 1 0 8 0 pfstkey 128 25 0 19 1 0 1 1 0 8 0 pfstate 344 14 0 11 1 0 1 1 0 8 0 pfrule 1344 30 0 29 3 2 1 1 0 8 0 art_heap8 4096 4 0 0 4 0 4 4 0 8 0 art_heap4 256 7874 0 7549 35 7 28 31 0 8 2 art_table 32 7878 0 7549 4 0 4 4 0 8 0 art_node 16 1967 0 1904 1 0 1 1 0 8 0 sysvmsgpl 40 23 0 12 1 0 1 1 0 8 0 semupl 112 2 0 2 1 1 0 1 0 8 0 semapl 112 33 0 12 1 0 1 1 0 8 0 shmpl 112 23 0 3 1 0 1 1 0 8 0 dirhash 1024 34 0 14 3 0 3 3 0 8 0 dino2pl 256 7316 0 5505 114 0 114 114 0 8 0 ffsino 240 7316 0 5505 107 0 107 107 0 8 0 nchpl 144 11917 0 10009 71 0 71 71 0 8 0 uvmvnodes 80 7562 0 0 155 0 155 155 0 8 0 vnodes 216 7562 0 0 421 0 421 421 0 8 0 namei 1024 58163 0 58163 5 2 3 3 0 8 3 kstatmem 264 430 0 408 2 0 2 2 0 8 0 scsiplug 72 7 0 7 3 2 1 1 0 8 1 scxspl 216 116884 0 116884 10 9 1 8 1 8 1 plimitpl 152 1152 0 1135 1 0 1 1 0 8 0 sigapl 424 5530 0 5462 8 0 8 8 0 8 0 futexpl 64 45588 0 45581 1 0 1 1 0 8 0 knotepl 120 118904 0 118857 38 28 10 16 0 8 8 kqueuepl 184 1124 0 1113 8 6 2 4 0 8 1 pipepl 288 1069 0 1040 12 6 6 7 0 8 3 fdescpl 432 5489 0 5460 5 1 4 5 0 8 0 filepl 120 31126 0 30867 32 16 16 17 0 8 7 lockfpl 104 1104 0 1101 2 1 1 2 0 8 0 lockfspl 48 391 0 388 1 0 1 1 0 8 0 sessionpl 144 189 0 181 1 0 1 1 0 8 0 pgrppl 48 460 0 444 1 0 1 1 0 8 0 ucredpl 104 4156 0 4142 1 0 1 1 0 8 0 zombiepl 144 5924 0 5923 2 1 1 1 0 8 0 processpl 1096 5530 0 5462 6 0 6 6 0 8 0 procpl 648 10073 0 9994 10 2 8 8 0 8 1 sosppl 168 12 0 12 3 2 1 1 0 8 1 sockpl 504 9643 0 9605 127 113 14 33 0 8 8 mcl64k 65536 141 0 141 3 2 1 1 0 8 1 mcl16k 16384 84 0 84 3 2 1 1 0 8 1 mcl12k 12288 26 0 26 3 2 1 1 0 8 1 mcl9k 9216 8 0 8 3 2 1 1 0 8 1 mcl8k 8192 76 0 76 3 2 1 1 0 8 1 mcl4k 4096 7748 0 7698 15 7 8 13 0 8 1 mcl2k2 2112 6 0 6 3 2 1 1 0 8 1 mcl2k 2048 6647 0 6640 13 8 5 8 0 8 2 mtagpl 96 143 0 141 4 3 1 2 0 8 0 mbufpl 256 58502 0 58341 54 35 19 37 0 8 1 bufpl 280 18978 0 11529 541 0 541 541 0 8 0 anonpl 24 756926 0 753520 178 79 99 102 0 187 52 amapchunkpl 152 139514 0 139013 91 40 51 51 0 158 31 amappl16 200 12880 0 12854 104 94 10 22 0 8 8 amappl15 192 4 0 4 1 1 0 1 0 8 0 amappl14 184 441 0 431 1 0 1 1 0 8 0 amappl13 176 13 0 13 2 2 0 1 0 8 0 amappl12 168 8650 0 8620 3 1 2 3 0 8 0 amappl11 160 50 0 40 1 0 1 1 0 8 0 amappl10 152 10 0 10 1 1 0 1 0 8 0 amappl9 144 124 0 124 1 1 0 1 0 8 0 amappl8 136 21 0 18 1 0 1 1 0 8 0 amappl7 128 431 0 421 1 0 1 1 0 8 0 amappl6 120 1769 0 1768 1 0 1 1 0 8 0 amappl5 112 777 0 768 1 0 1 1 0 8 0 amappl4 104 848 0 833 1 0 1 1 0 8 0 amappl3 96 27061 0 26947 5 1 4 4 0 8 0 amappl2 88 2959 0 2896 2 0 2 2 0 8 0 amappl1 80 34342 0 33829 17 3 14 14 0 8 1 amappl 88 40890 0 40716 5 0 5 5 0 92 0 dma65536 65536 5 0 5 3 2 1 1 0 8 1 dma32768 32768 1 0 1 1 0 1 1 0 8 1 dma16384 16384 3 0 3 2 1 1 1 0 8 1 dma8192 8192 1 0 1 1 1 0 1 0 8 0 dma4096 4096 3 0 3 2 2 0 1 0 8 0 dma1024 1024 1 0 0 1 0 1 1 0 8 0 dma256 256 9 0 9 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 19 0 18 1 0 1 1 0 8 0 aobjpl 72 25 0 3 1 0 1 1 0 8 0 uaddrrnd 24 5489 0 5459 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 5489 0 5459 1 0 1 1 0 8 0 vmmpekpl 168 40384 0 40321 4 0 4 4 0 8 0 vmmpepl 168 334098 0 332326 120 31 89 94 0 357 9 vmsppl 344 5488 0 5459 5 1 4 4 0 8 1 rwobjpl 24 95302 0 86869 53 0 53 53 0 8 0 pdppl 4096 10984 0 10918 342 274 68 82 0 8 2 pvpl 32 2899477 0 2888947 724 393 331 386 0 265 221 pmappl 216 5488 0 5459 3 1 2 3 0 8 0 extentpl 40 55 0 38 1 0 1 1 0 8 0 phpool 112 912 0 510 13 0 13 13 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(ffffffff830b2cf8) at panic+0x1cf sys/kern/subr_prf.c:198 __assert(ffffffff83067aec,ffffffff83033caf,bc,ffffffff82fe6f08) at __assert+0x29 unveil_destroy(ffff8000327f59c8) at unveil_destroy+0x1dd sys/kern/kern_unveil.c:188 exit1(ffff80002a4d07b8,b,0,1) at exit1+0x60f sys/kern/kern_exit.c:233 sys_exit(ffff80002a4d07b8,ffff80002a55d120,ffff80002a55d070) at sys_exit+0x1a syscall(ffff80002a55d120) at syscall+0x97e sys/arch/amd64/amd64/trap.c:577 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x732ac5e30af0, 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(ffffffff830b2cf8) at panic+0x1cf sys/kern/subr_prf.c:198 __assert(ffffffff83067aec,ffffffff83033caf,bc,ffffffff82fe6f08) at __assert+0x29 unveil_destroy(ffff8000327f59c8) at unveil_destroy+0x1dd sys/kern/kern_unveil.c:188 exit1(ffff80002a4d07b8,b,0,1) at exit1+0x60f sys/kern/kern_exit.c:233 sys_exit(ffff80002a4d07b8,ffff80002a55d120,ffff80002a55d070) at sys_exit+0x1a syscall(ffff80002a55d120) at syscall+0x97e sys/arch/amd64/amd64/trap.c:577 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x732ac5e30af0, count: -8