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(ffffffff830bf34a) at panic+0x1cf sys/kern/subr_prf.c:198 __assert(ffffffff83075919,ffffffff83047ca5,bc,ffffffff82ffb411) at __assert+0x29 unveil_destroy(ffff8000327f48a8) at unveil_destroy+0x1dd sys/kern/kern_unveil.c:188 exit1(ffff80002a4d1bf8,0,0,1) at exit1+0x60f sys/kern/kern_exit.c:233 sys_exit(ffff80002a4d1bf8,ffff80002a5bdbc0,ffff80002a5bdb10) at sys_exit+0x1a syscall(ffff80002a5bdbc0) at syscall+0x97e sys/arch/amd64/amd64/trap.c:577 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x7c319d44e400, 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(ffffffff830bf34a) at panic+0x1cf sys/kern/subr_prf.c:198 __assert(ffffffff83075919,ffffffff83047ca5,bc,ffffffff82ffb411) at __assert+0x29 unveil_destroy(ffff8000327f48a8) at unveil_destroy+0x1dd sys/kern/kern_unveil.c:188 exit1(ffff80002a4d1bf8,0,0,1) at exit1+0x60f sys/kern/kern_exit.c:233 sys_exit(ffff80002a4d1bf8,ffff80002a5bdbc0,ffff80002a5bdb10) at sys_exit+0x1a syscall(ffff80002a5bdbc0) at syscall+0x97e sys/arch/amd64/amd64/trap.c:577 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x7c319d44e400, count: -8 ddb> show registers rdi 0 rsi 0x1 rbp 0xffff80002a5bd910 rbx 0xffff8000327f48a8 rdx 0 rcx 0 rax 0xffff80002a4d1bf8 r8 0 r9 0x8080808080808080 r10 0x3a6a192ac59a3088 r11 0xcb578739bb2d472d r12 0 r13 0x3 r14 0 r15 0x1 rip 0xffffffff82f9e745 db_enter+0x25 cs 0x8 rflags 0x246 rsp 0xffff80002a5bd900 ss 0x10 db_enter+0x25: addq $0x8,%rsp ddb> show proc PROC (syz-executor) tid=31305 pid=73801 tcnt=0 stat=onproc flags process=1008 proc=2000 runpri=32, usrpri=50, slppri=32, nice=20 wchan=0x0, wmesg=, ps_single=0xffff80002a4d1bf8 scnt=-1 ecnt=1 forw=0xffffffffffffffff, list=0xffff80002a4a2018,0xffffffff834fedc0 process=0xffff8000327f48a8 user=0xffff80002a5b8000, vmspace=0xfffffd806c2182d0 estcpu=36, cpticks=1, pctcpu=0.0, user=0, sys=1, intr=0 ddb> ps PID TID PPID UID S FLAGS WAIT COMMAND 34984 282818 32200 0 3 0x80 nanoslp syz-executor 34984 241571 32200 0 3 0x4000080 fsleep syz-executor 34984 289626 32200 0 3 0x4000080 kqread syz-executor 34984 222168 32200 0 3 0x4000080 fsleep syz-executor 32200 256884 58269 0 3 0x82 nanoslp syz-executor 11830 72193 27744 0 3 0x80 fsleep syz-executor 11830 358492 27744 0 3 0x4000080 sbwait syz-executor 86504 507157 50401 0 3 0x80 fsleep syz-executor 86504 152716 50401 0 3 0x4000080 ttyout syz-executor 86504 215306 50401 0 3 0x4000080 fsleep syz-executor 82175 490523 51299 0 3 0x80 fsleep syz-executor 82175 127152 51299 0 3 0x4000080 ttyin syz-executor 44977 365333 25659 -1 3 0x90 fsleep syz-executor 44977 52117 25659 -1 3 0x4000090 sbwait syz-executor 47728 303924 0 0 3 0x14200 acct acct 76808 447947 80040 0 3 0x80 fsleep syz-executor 76808 342754 80040 0 3 0x4000080 fsleep syz-executor 76808 374145 80040 0 3 0x4000080 kqpoll syz-executor 42887 370129 86559 0 3 0x80 fsleep syz-executor 42887 417601 86559 0 3 0x4000080 bell syz-executor 86559 478072 58269 0 2 0x482 syz-executor 80040 367784 58269 0 2 0x482 syz-executor 27744 240068 58269 0 3 0x82 nanoslp syz-executor 38060 394065 0 0 3 0x14200 bored sosplice 25659 111503 58269 0 2 0x482 syz-executor 50401 75728 58269 0 3 0x82 nanoslp syz-executor 51299 251160 58269 0 2 0x482 syz-executor 87433 287457 58269 0 2 0x482 syz-executor 58269 456482 99182 0 3 0x82 kqread syz-executor 99182 166319 73914 0 3 0x10008a sigsusp ksh 73914 387790 48321 0 3 0x98 kqread sshd-session 48321 150548 74574 0 3 0x92 kqread sshd-session 15343 242712 1 0 3 0x100083 ttyin getty 74574 486913 1 0 3 0x88 kqread sshd 62205 246347 90515 73 3 0x1100090 kqread syslogd 90515 107760 1 0 3 0x100082 sbwait syslogd 16985 273712 1 0 3 0x100080 kqread resolvd 84163 246047 1640 77 3 0x100092 kqread dhcpleased 83741 264303 1640 77 3 0x100092 kqread dhcpleased 1640 42027 1 0 3 0x80 kqread dhcpleased 25492 288819 0 0 3 0x14200 bored smr 31244 496415 0 0 3 0x14200 pgzero zerothread 54917 408224 0 0 3 0x14200 aiodoned aiodoned 31900 437326 0 0 3 0x14200 syncer update 94660 293639 0 0 3 0x14200 cleaner cleaner 91507 452622 0 0 2 0x14200 reaper 39681 80791 0 0 3 0x14200 pgdaemon pagedaemon 92234 80521 0 0 3 0x14200 bored viomb 73669 245804 0 0 3 0x40014200 acpi0 acpi0 64317 186884 0 0 3 0x14200 bored softnet3 91453 472411 0 0 3 0x14200 bored softnet2 16957 190785 0 0 3 0x14200 bored softnet1 52799 281933 0 0 3 0x14200 bored softnet0 45786 366478 0 0 3 0x14200 bored systqmp 16087 129723 0 0 3 0x14200 bored systq 59074 429495 0 0 2 0x40014200 softclock 51274 159589 0 0 3 0x40014200 idle0 1 500129 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 10210 11057K 11449K 166960K 14205 0 pcb 17 18K 20K 166960K 590 0 rtable 188 8K 10K 166960K 876 0 pf 34 14K 269K 166960K 322 0 ifaddr 33 6K 9K 166960K 158 0 ifgroup 46 2K 2K 166960K 263 0 sysctl 4 1K 1K 166960K 6 0 counters 29 17K 17K 166960K 109 0 ioctlops 0 0K 4K 166960K 534 0 iov 1 4K 28K 166960K 180 0 mount 1 1K 1K 166960K 1 0 log 0 0K 0K 166960K 4 0 vnodes 1484 93K 94K 166960K 3804 0 UFS quota 1 32K 32K 166960K 1 0 UFS mount 5 36K 36K 166960K 5 0 shm 3 6K 10K 166960K 41 0 VM map 2 1K 1K 166960K 2 0 sem 12 0K 0K 166960K 121 0 dirhash 12 2K 2K 166960K 63 0 ACPI 1690 195K 286K 166960K 12468 0 file desc 17 61K 97K 166960K 2884 0 sigio 0 0K 0K 166960K 89 0 proc 64 75K 116K 166960K 847 0 subproc 104 6K 6K 166960K 195 0 NFS srvsock 1 0K 0K 166960K 1 0 NFS daemon 1 16K 16K 166960K 1 0 ip_moptions 0 0K 0K 166960K 268 0 in_multi 72 5K 7K 166960K 245 0 ether_multi 1 0K 0K 166960K 17 0 mrt 2 0K 0K 166960K 14 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 950 0 fusefs mount 1 32K 32K 166960K 1 0 pfkey data 0 0K 0K 166960K 6 0 tdb 3 0K 0K 166960K 3 0 VM swap 8 62K 64K 166960K 10 0 UVM amap 231 72K 88K 166960K 27086 0 UVM aobj 15 2K 4K 166960K 22 0 pinsyscall 39 78K 100K 166960K 4089 0 memdesc 1 4K 4K 166960K 1 0 crypto data 1 1K 1K 166960K 1 0 ip6_options 0 0K 0K 166960K 151 0 NDP 12 0K 1K 166960K 126 0 temp 81 6824K 6900K 166960K 60425 0 kqueue 18 26K 30K 166960K 407 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 418 0 415 3 2 1 3 0 8 0 rtentry 112 248 0 169 4 0 4 4 0 8 0 unpcb 144 2145 0 2121 11 7 4 5 0 8 3 syncache 336 3 0 3 1 1 0 1 0 8 0 tcpcb 808 1021 0 1017 12 11 1 8 0 8 0 arp 88 40 0 24 1 0 1 1 0 8 0 ipq 40 11 0 11 1 0 1 1 0 8 1 ipqe 40 103 0 103 1 0 1 1 0 8 1 inpcb 336 3502 0 3493 23 20 3 13 0 8 1 nd6 104 64 0 46 1 0 1 1 0 8 0 pkpcb 40 20 0 20 3 2 1 1 0 8 1 kcovpl 48 15 0 7 1 0 1 1 0 8 0 ppxss 1072 57 0 57 3 2 1 1 0 8 1 pfstscr 40 4 0 4 2 1 1 1 0 8 1 pfrktable 1344 6 0 3 1 0 1 1 0 8 0 pfanchor 1288 8 0 0 1 0 1 1 0 8 0 pftag 88 4 0 2 1 0 1 1 0 8 0 pfstitem 24 4 0 0 1 0 1 1 0 8 0 pfstkey 128 7 0 3 1 0 1 1 0 8 0 pfstate 344 5 0 3 1 0 1 1 0 8 0 pfrule 1344 10 0 9 1 0 1 1 0 8 0 art_heap8 4096 4 0 0 4 0 4 4 0 8 0 art_heap4 256 1012 0 652 32 8 24 31 0 8 1 art_table 32 1016 0 652 4 0 4 4 0 8 0 art_node 16 241 0 170 1 0 1 1 0 8 0 sysvmsgpl 40 9 0 2 1 0 1 1 0 8 0 semupl 112 3 0 3 1 1 0 1 0 8 0 semapl 112 117 0 107 1 0 1 1 0 8 0 shmpl 112 19 0 7 1 0 1 1 0 8 0 dirhash 1024 51 0 34 3 0 3 3 0 8 0 dino2pl 256 6769 0 5272 95 0 95 95 0 8 0 ffsino 240 6769 0 5272 89 0 89 89 0 8 0 nchpl 144 10765 0 10223 64 31 33 64 0 8 8 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 37156 0 37156 3 2 1 2 0 8 1 pfiaddrpl 120 3 0 2 1 0 1 1 0 8 0 kstatmem 264 180 0 160 2 0 2 2 0 8 0 acpiwqpl 32 2 0 2 1 0 1 1 1 8 1 scsiplug 72 15 0 15 3 2 1 1 0 8 1 scxspl 216 30142 0 30142 14 12 2 8 1 8 2 plimitpl 152 544 0 527 1 0 1 1 0 8 0 sigapl 424 3156 0 3108 7 1 6 7 0 8 0 futexpl 64 36695 0 36685 2 1 1 1 0 8 0 knotepl 120 114459 0 114409 35 25 10 17 0 8 5 kqueuepl 184 883 0 868 7 6 1 4 0 8 0 pipepl 288 382 0 355 6 3 3 5 0 8 0 fdescpl 432 3134 0 3105 5 1 4 5 0 8 0 filepl 120 21573 0 21314 18 8 10 15 0 8 0 lockfpl 104 990 0 988 2 1 1 2 0 8 0 lockfspl 48 318 0 316 1 0 1 1 0 8 0 sessionpl 144 28 0 20 1 0 1 1 0 8 0 pgrppl 48 69 0 53 1 0 1 1 0 8 0 ucredpl 104 4511 0 4498 1 0 1 1 0 8 0 zombiepl 144 3406 0 3405 3 2 1 1 0 8 0 processpl 1096 3156 0 3108 4 0 4 4 0 8 0 procpl 648 7042 0 6981 6 0 6 6 0 8 0 sosppl 168 13 0 13 2 1 1 1 0 8 1 sockpl 504 6159 0 6124 81 69 12 22 0 8 7 mcl64k 65536 113 0 113 3 2 1 1 0 8 1 mcl16k 16384 81 0 81 3 2 1 1 0 8 1 mcl12k 12288 23 0 23 3 3 0 1 0 8 0 mcl9k 9216 12 0 12 3 2 1 1 0 8 1 mcl8k 8192 63 0 63 4 3 1 1 0 8 1 mcl4k 4096 6600 0 6547 17 9 8 16 0 8 1 mcl2k2 2112 4 0 4 2 2 0 1 0 8 0 mcl2k 2048 2579 0 2571 7 5 2 4 0 8 0 mtagpl 96 154 0 57 4 1 3 3 0 8 0 mbufpl 256 33667 0 33426 39 16 23 25 0 8 6 bufpl 280 8386 0 2139 447 0 447 447 0 8 0 anonpl 24 421701 0 418359 90 38 52 52 0 187 23 amapchunkpl 152 96830 0 96323 56 22 34 34 0 158 14 amappl16 200 9316 0 9288 60 45 15 18 0 8 10 amappl15 192 11 0 11 1 1 0 1 0 8 0 amappl14 184 122 0 112 1 0 1 1 0 8 0 amappl13 176 34 0 34 1 1 0 1 0 8 0 amappl12 168 3860 0 3830 3 1 2 3 0 8 0 amappl11 160 70 0 60 1 0 1 1 0 8 0 amappl10 152 8 0 8 2 2 0 1 0 8 0 amappl9 144 137 0 137 1 1 0 1 0 8 0 amappl8 136 21 0 20 1 0 1 1 0 8 0 amappl7 128 128 0 117 1 0 1 1 0 8 0 amappl6 120 251 0 249 1 0 1 1 0 8 0 amappl5 112 152 0 142 1 0 1 1 0 8 0 amappl4 104 386 0 372 1 0 1 1 0 8 0 amappl3 96 16633 0 16534 3 0 3 3 0 8 0 amappl2 88 3417 0 3337 2 0 2 2 0 8 0 amappl1 80 15971 0 15451 13 1 12 13 0 8 0 amappl 88 26518 0 26341 5 0 5 5 0 92 0 dma65536 65536 1 0 1 1 1 0 1 0 8 0 dma4096 4096 1 0 1 1 1 0 1 0 8 0 dma1024 1024 2 0 1 1 0 1 1 0 8 0 dma256 256 7 0 7 2 2 0 1 0 8 0 dma128 128 257 0 257 2 2 0 1 0 8 0 dma64 64 6 0 6 1 1 0 1 0 8 0 dma32 32 8 0 8 2 2 0 1 0 8 0 dma16 16 18 0 17 1 0 1 1 0 8 0 aobjpl 72 21 0 7 1 0 1 1 0 8 0 uaddrrnd 24 3134 0 3104 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 3134 0 3104 1 0 1 1 0 8 0 vmmpekpl 168 20790 0 20741 3 0 3 3 0 8 0 vmmpepl 168 189228 0 187440 102 13 89 89 0 357 6 vmsppl 352 3133 0 3104 4 1 3 4 0 8 0 rwobjpl 24 52320 0 45520 44 1 43 43 0 8 0 pdppl 4096 6275 0 6208 131 62 69 83 0 8 2 pvpl 32 1264712 0 1255553 159 38 121 121 0 265 30 pmappl 216 3133 0 3104 3 0 3 3 0 8 0 extentpl 40 55 0 38 1 0 1 1 0 8 0 phpool 112 558 0 217 11 0 11 11 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(ffffffff830bf34a) at panic+0x1cf sys/kern/subr_prf.c:198 __assert(ffffffff83075919,ffffffff83047ca5,bc,ffffffff82ffb411) at __assert+0x29 unveil_destroy(ffff8000327f48a8) at unveil_destroy+0x1dd sys/kern/kern_unveil.c:188 exit1(ffff80002a4d1bf8,0,0,1) at exit1+0x60f sys/kern/kern_exit.c:233 sys_exit(ffff80002a4d1bf8,ffff80002a5bdbc0,ffff80002a5bdb10) at sys_exit+0x1a syscall(ffff80002a5bdbc0) at syscall+0x97e sys/arch/amd64/amd64/trap.c:577 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x7c319d44e400, 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(ffffffff830bf34a) at panic+0x1cf sys/kern/subr_prf.c:198 __assert(ffffffff83075919,ffffffff83047ca5,bc,ffffffff82ffb411) at __assert+0x29 unveil_destroy(ffff8000327f48a8) at unveil_destroy+0x1dd sys/kern/kern_unveil.c:188 exit1(ffff80002a4d1bf8,0,0,1) at exit1+0x60f sys/kern/kern_exit.c:233 sys_exit(ffff80002a4d1bf8,ffff80002a5bdbc0,ffff80002a5bdb10) at sys_exit+0x1a syscall(ffff80002a5bdbc0) at syscall+0x97e sys/arch/amd64/amd64/trap.c:577 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x7c319d44e400, count: -8