panic: kernel diagnostic assertion "ps->ps_uvncount == 0" failed: file "/syzkaller/managers/multicore/kernel/sys/kern/kern_unveil.c", line 188 Stopped at db_enter+0x25: addq $0x8,%rsp TID PID UID PRFLAGS PFLAGS CPU COMMAND 197408 19270 0 0 0 0 syz-executor db_enter() at db_enter+0x25 sys/arch/amd64/amd64/db_interface.c:437 panic(ffffffff8343e9eb) at panic+0x1e5 sys/kern/subr_prf.c:198 __assert(ffffffff833e8586,ffffffff833a05c5,bc,ffffffff8335aada) at __assert+0x29 unveil_destroy(ffff80003c56ab60) at unveil_destroy+0x1dd sys/kern/kern_unveil.c:188 exit1(ffff80003c5acf98,b,0,1) at exit1+0x60f sys/kern/kern_exit.c:233 sys_exit(ffff80003c5acf98,ffff80002a47c670,ffff80002a47c5c0) at sys_exit+0x1a syscall(ffff80002a47c670) at syscall+0xb08 mi_syscall sys/sys/syscall_mi.h:176 [inline] syscall(ffff80002a47c670) at syscall+0xb08 sys/arch/amd64/amd64/trap.c:577 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x783836b07160, 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{1}> ddb{1}> set $lines = 0 ddb{1}> set $maxwidth = 0 ddb{1}> show panic *cpu1: kernel diagnostic assertion "ps->ps_uvncount == 0" failed: file "/syzkaller/managers/multicore/kernel/sys/kern/kern_unveil.c", line 188 ddb{1}> trace db_enter() at db_enter+0x25 sys/arch/amd64/amd64/db_interface.c:437 panic(ffffffff8343e9eb) at panic+0x1e5 sys/kern/subr_prf.c:198 __assert(ffffffff833e8586,ffffffff833a05c5,bc,ffffffff8335aada) at __assert+0x29 unveil_destroy(ffff80003c56ab60) at unveil_destroy+0x1dd sys/kern/kern_unveil.c:188 exit1(ffff80003c5acf98,b,0,1) at exit1+0x60f sys/kern/kern_exit.c:233 sys_exit(ffff80003c5acf98,ffff80002a47c670,ffff80002a47c5c0) at sys_exit+0x1a syscall(ffff80002a47c670) at syscall+0xb08 mi_syscall sys/sys/syscall_mi.h:176 [inline] syscall(ffff80002a47c670) at syscall+0xb08 sys/arch/amd64/amd64/trap.c:577 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x783836b07160, count: -8 ddb{1}> show registers rdi 0 rsi 0x1 rbp 0xffff80002a47c3b0 rbx 0xffff800029a9cdc7 rdx 0 rcx 0xffff80003c5acf98 rax 0xffff800029a9bff0 r8 0x101010101010101 r9 0x8080808080808080 r10 0x60d9771ec82544b6 r11 0x429a71cb3cb289d7 r12 0xffff800029a9cbc8 r13 0 r14 0 r15 0x1 rip 0xffffffff81cd1b05 db_enter+0x25 cs 0x8 rflags 0x246 rsp 0xffff80002a47c3a0 ss 0x10 db_enter+0x25: addq $0x8,%rsp ddb{1}> show proc PROC (syz-executor) tid=427996 pid=80458 tcnt=0 stat=onproc flags process=1008 proc=2000 runpri=32, usrpri=50, slppri=32, nice=20 wchan=0x0, wmesg=, ps_single=0xffff80003c5acf98 scnt=-1 ecnt=1 forw=0xffffffffffffffff, list=0xffff8000ffffdc38,0xffff80003c5ac7f8 process=0xffff80003c56ab60 user=0xffff80002a477000, vmspace=0xfffffd806bedf900 estcpu=36, cpticks=2, pctcpu=0.0, user=0, sys=2, intr=0 ddb{1}> ps PID TID PPID UID S FLAGS WAIT COMMAND 19270 197408 11203 0 7 0 syz-executor 75088 42021 53608 0 2 0 syz-executor 90402 167363 42689 0 2 0 syz-executor 90402 295326 42689 0 2 0x4000000 syz-executor 15188 349173 56542 0 2 0 syz-executor 15188 376450 56542 0 3 0x4000080 fsleep syz-executor 50423 329209 84202 0 2 0 syz-executor 50423 276821 84202 0 3 0x4000080 fsleep syz-executor 88718 327786 97418 0 3 0x80 nanoslp syz-executor 88718 263349 97418 0 3 0x4000080 ttyin syz-executor 88718 427494 97418 0 3 0x4000080 fsleep syz-executor 3304 231352 31375 0 2 0 syz-executor 3304 386708 31375 0 2 0x4000001 syz-executor 3304 401255 31375 0 3 0x4000080 fsleep syz-executor 3304 150591 31375 0 3 0x4000080 fsleep syz-executor 31375 164917 46335 0 3 0x82 nanoslp syz-executor 53608 168834 46335 0 3 0x82 nanoslp syz-executor 92894 45082 1 0 3 0x100083 ttyopn getty 31752 136127 0 0 3 0x14280 nfsidl nfsio 59612 208924 0 0 3 0x14280 nfsidl nfsio 91099 156855 0 0 3 0x14280 nfsidl nfsio 26288 334662 0 0 3 0x14280 nfsidl nfsio 83260 447112 0 0 3 0x14280 nfsidl nfsio 99263 181993 0 0 3 0x14280 nfsidl nfsio 65648 125905 0 0 3 0x14280 nfsidl nfsio 86925 6691 0 0 3 0x14280 nfsidl nfsio 39303 404223 0 0 3 0x14280 nfsidl nfsio 4393 102817 0 0 3 0x14280 nfsidl nfsio 93722 476821 0 0 3 0x14280 nfsidl nfsio 31703 104968 0 0 3 0x14280 nfsidl nfsio 94997 348920 0 0 3 0x14280 nfsidl nfsio 46007 254212 0 0 3 0x14280 nfsidl nfsio 82262 240104 0 0 3 0x14280 nfsidl nfsio 95463 60527 0 0 3 0x14280 nfsidl nfsio 79778 153939 0 0 3 0x14280 nfsidl nfsio 97533 93215 0 0 3 0x14280 nfsidl nfsio 92872 254921 0 0 3 0x14280 nfsidl nfsio 33368 501812 0 0 3 0x14280 nfsidl nfsio 57208 376902 0 0 3 0x14200 bored sosplice 42689 123465 46335 0 3 0x82 nanoslp syz-executor 11203 30673 46335 0 3 0x82 nanoslp syz-executor 61614 129471 46335 0 3 0x82 nanoslp syz-executor 97418 219732 46335 0 3 0x82 nanoslp syz-executor 56542 472136 46335 0 3 0x82 nanoslp syz-executor 84202 33521 46335 0 3 0x82 nanoslp syz-executor 46335 139562 43522 0 3 0x82 kqread syz-executor 43522 505557 10944 0 3 0x10008a sigsusp ksh 10944 370692 75719 0 3 0x98 kqread sshd-session 75719 497215 1 0 3 0x92 kqread sshd-session 34946 192576 49116 74 3 0x1100092 bpf pflogd 49116 500582 1 0 3 0x80 sbwait pflogd 443 416539 43554 73 3 0x1100090 kqread syslogd 43554 102489 1 0 3 0x100082 sbwait syslogd 64829 506810 1 0 3 0x100080 kqread resolvd 56185 182552 56688 77 3 0x100092 kqread dhcpleased 44855 515904 56688 77 3 0x100092 kqread dhcpleased 56688 183726 1 0 3 0x80 kqread dhcpleased 86040 59635 0 0 3 0x14200 bored smr 93007 234990 0 0 2 0x14200 zerothread 81822 364169 0 0 3 0x14200 aiodoned aiodoned 57421 169267 0 0 3 0x14200 syncer update 56761 203953 0 0 3 0x14200 cleaner cleaner 71440 182401 0 0 2 0x14200 reaper 26617 19744 0 0 3 0x14200 pgdaemon pagedaemon 57231 240952 0 0 3 0x14200 bored viomb 25402 334898 0 0 3 0x40014200 acpi0 acpi0 77905 504217 0 0 3 0x40014200 idle1 42522 210844 0 0 3 0x14200 bored softnet3 58608 378683 0 0 3 0x14200 bored softnet2 12379 404797 0 0 3 0x14200 bored softnet1 4067 142027 0 0 2 0x14200 softnet0 52738 491346 0 0 3 0x14200 bored systqmp 34273 389690 0 0 3 0x14200 bored systq 37182 208615 0 0 3 0x14200 tmoslp softclockmp 8386 418181 0 0 3 0x40014200 tmoslp softclock 23686 312602 0 0 3 0x40014200 idle0 1 331681 0 0 3 0x82 wait init 0 0 -1 0 3 0x10200 scheduler swapper ddb{1}> show all locks Process 75088 (syz-executor) thread 0xffff80003c5ac7e8 (42021) Process 3304 (syz-executor) thread 0xffff80003c52b9d0 (386708) Process 71440 (reaper) thread 0xffff8000ffffcf68 (182401) ddb{1}> show malloc Type InUse MemUse HighUse Limit Requests Type Lim devbuf 10210 11049K 11420K 166960K 13604 0 pcb 17 15K 16K 166960K 246 0 rtable 181 7K 8K 166960K 552 0 pf 39 18K 25K 166960K 120 0 ifaddr 36 6K 7K 166960K 91 0 ifgroup 57 2K 3K 166960K 156 0 sysctl 4 1K 2K 166960K 9 0 counters 66 36K 37K 166960K 138 0 ioctlops 0 0K 4K 166960K 1686 0 iov 0 0K 28K 166960K 217 0 mount 1 1K 1K 166960K 1 0 log 0 0K 0K 166960K 4 0 vnodes 1395 88K 89K 166960K 2719 0 UFS quota 1 32K 32K 166960K 1 0 UFS mount 5 36K 36K 166960K 5 0 shm 2 1K 5K 166960K 22 0 VM map 2 1K 1K 166960K 2 0 sem 12 0K 0K 166960K 106 0 dirhash 12 2K 2K 166960K 33 0 ACPI 1692 195K 286K 166960K 12470 0 file desc 17 61K 89K 166960K 1294 0 sigio 0 0K 0K 166960K 68 0 proc 76 115K 115K 166960K 714 0 subproc 72 4K 4K 166960K 90 0 NFS srvsock 1 0K 0K 166960K 1 0 NFS daemon 1 16K 16K 166960K 1 0 ip_moptions 0 0K 0K 166960K 159 0 in_multi 67 5K 7K 166960K 177 0 ether_multi 1 0K 0K 166960K 14 0 mrt 1 0K 0K 166960K 2 0 ISOFS mount 1 32K 32K 166960K 1 0 MSDOSFS mount 1 16K 16K 166960K 1 0 ttys 91 413K 413K 166960K 91 0 exec 0 0K 1K 166960K 638 0 fusefs mount 1 32K 32K 166960K 1 0 pfkey data 0 0K 0K 166960K 2 0 tdb 3 0K 0K 166960K 3 0 VM swap 8 62K 64K 166960K 10 0 UVM amap 220 73K 87K 166960K 13993 0 UVM aobj 31 4K 4K 166960K 37 0 pinsyscall 41 82K 107K 166960K 2458 0 memdesc 1 4K 4K 166960K 1 0 crypto data 1 1K 1K 166960K 1 0 ip6_options 0 0K 0K 166960K 60 0 NDP 13 0K 1K 166960K 61 0 temp 79 8644K 8740K 166960K 51647 0 kqueue 15 20K 28K 166960K 206 0 SYN cache 2 16K 16K 166960K 2 0 ddb{1}> show all pools Name Size Requests Fail Releases Pgreq Pgrel Npage Hiwat Minpg Maxpg Idle plcache 128 24 0 0 1 0 1 1 0 8 0 rtpcb 120 180 0 176 3 2 1 3 0 8 0 rtentry 112 166 0 89 4 0 4 4 0 8 0 unpcb 144 1165 0 1148 14 9 5 6 0 8 4 syncache 336 5 0 5 2 2 0 1 0 8 0 tcpqe 32 2 0 2 2 2 0 1 0 8 0 tcpcb 808 375 0 371 8 5 3 7 0 8 2 arp 120 27 0 12 1 0 1 1 0 8 0 inpcb 376 1440 0 1431 17 9 8 8 0 8 6 nd6 136 35 0 20 1 0 1 1 0 8 0 pkpcb 40 74 0 74 2 1 1 1 0 8 1 kcovpl 48 10 0 2 1 0 1 1 0 8 0 ppxss 1168 21 0 20 2 1 1 1 0 8 0 pppxif 1472 6 0 6 2 2 0 1 0 8 0 pffrag 232 6 0 1 1 0 1 1 0 482 0 pffrnode 88 5 0 1 1 0 1 1 0 8 0 pffrent 40 9 0 4 1 0 1 1 0 8 0 pfosfp 40 1428 0 1005 5 0 5 5 0 8 0 pfosfpen 112 1428 0 714 21 0 21 21 0 8 0 pfstitem 24 95 0 35 1 0 1 1 0 8 0 pfstkey 128 95 0 35 3 0 3 3 0 8 0 pfstate 376 95 0 35 7 0 7 7 0 8 0 pfrule 1344 25 0 18 2 1 1 2 0 8 0 art_heap8 4096 3 0 0 3 0 3 3 0 8 0 art_heap4 256 628 0 308 30 6 24 29 0 8 3 art_table 32 631 0 308 4 0 4 4 0 8 0 art_node 16 161 0 93 1 0 1 1 0 8 0 sysvmsgpl 40 7 0 2 1 0 1 1 0 8 0 semupl 112 1 0 1 1 1 0 1 0 8 0 semapl 112 103 0 93 1 0 1 1 0 8 0 shmpl 112 34 0 6 1 0 1 1 0 8 0 dirhash 1024 31 0 14 3 0 3 3 0 8 0 dino2pl 256 3941 0 2434 95 0 95 95 0 8 0 ffsino 280 3941 0 2434 109 0 109 109 0 8 0 nchpl 144 5770 0 4075 65 1 64 64 0 8 0 rtmask 32 1 0 1 1 1 0 1 0 8 0 uvmvnodes 80 4755 0 0 98 0 98 98 0 8 0 vnodes 216 4755 0 0 265 0 265 265 0 8 0 namei 1024 20744 0 20744 2 1 1 1 0 8 1 percpumem 16 83 0 36 1 0 1 1 0 8 0 kstatmem 264 80 0 54 4 2 2 3 0 8 0 acpiwqpl 32 1 0 1 1 0 1 1 1 8 1 scsiplug 72 8 0 8 2 1 1 1 0 8 1 scxspl 216 17063 0 17062 12 10 2 8 1 8 1 plimitpl 152 494 0 476 1 0 1 1 0 8 0 sigapl 424 1619 0 1549 9 0 9 9 0 8 0 futexpl 64 17729 0 17724 1 0 1 1 0 8 0 knotepl 120 343 0 0 10 0 10 10 0 8 0 kqueuepl 216 337 0 326 1 0 1 1 0 8 0 pipepl 328 283 0 256 8 0 8 8 0 8 5 fdescpl 504 1579 0 1549 5 0 5 5 0 8 0 filepl 152 10936 0 10722 26 12 14 15 0 8 4 lockfpl 104 609 0 606 2 1 1 2 0 8 0 lockfspl 48 171 0 168 1 0 1 1 0 8 0 sessionpl 144 27 0 19 1 0 1 1 0 8 0 pgrppl 48 114 0 98 1 0 1 1 0 8 0 ucredpl 104 2344 0 2331 1 0 1 1 0 8 0 zombiepl 144 2018 0 2017 1 0 1 1 0 8 0 processpl 1168 1619 0 1549 6 0 6 6 0 8 0 procpl 656 3625 0 3546 8 0 8 8 0 8 0 srpgc 96 10 0 10 2 1 1 1 0 8 1 sosppl 168 7 0 7 3 2 1 1 0 8 1 sockpl 688 2977 0 2948 35 24 11 16 0 8 7 mcl64k 65536 3 0 0 1 0 1 1 0 8 0 mcl16k 16384 4 0 0 1 0 1 1 0 8 0 mcl12k 12288 1 0 0 1 0 1 1 0 8 0 mcl8k 8192 6 0 0 1 0 1 1 0 8 0 mcl4k 4096 113 0 0 15 0 15 15 0 8 0 mcl2k 2048 23 0 0 3 0 3 3 0 8 0 mtagpl 96 75 0 0 2 0 2 2 0 8 0 mbufpl 256 346 0 0 21 0 21 21 0 8 0 bufpl 280 6696 0 541 440 0 440 440 0 8 0 anonpl 24 231155 0 226261 96 41 55 58 0 184 19 amapchunkpl 152 45335 0 44801 43 11 32 32 0 158 7 amappl16 200 4678 0 4606 49 36 13 17 0 8 7 amappl15 192 28 0 28 1 1 0 1 0 8 0 amappl14 184 119 0 108 1 0 1 1 0 8 0 amappl13 176 6 0 6 1 1 0 1 0 8 0 amappl12 168 2266 0 2235 3 1 2 2 0 8 0 amappl11 160 49 0 35 1 0 1 1 0 8 0 amappl10 152 4 0 4 1 1 0 1 0 8 0 amappl9 144 255 0 254 1 0 1 1 0 8 0 amappl8 136 26 0 23 1 0 1 1 0 8 0 amappl7 128 113 0 102 1 0 1 1 0 8 0 amappl6 120 208 0 203 1 0 1 1 0 8 0 amappl5 112 130 0 120 1 0 1 1 0 8 0 amappl4 104 339 0 322 1 0 1 1 0 8 0 amappl3 96 9171 0 9064 5 1 4 4 0 8 0 amappl2 88 685 0 629 2 0 2 2 0 8 0 amappl1 80 11774 0 11276 14 1 13 14 0 8 0 amappl 88 13515 0 13347 6 1 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 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 36 0 6 1 0 1 1 0 8 0 uaddrrnd 24 1579 0 1548 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 1579 0 1548 1 0 1 1 0 8 0 vmmpekpl 168 14285 0 14232 4 1 3 3 0 8 0 vmmpepl 168 101006 0 99168 110 18 92 96 0 357 7 vmsppl 456 1578 0 1548 6 2 4 5 0 8 0 rwobjpl 64 32980 0 27325 93 1 92 92 0 8 0 pdppl 4096 3166 0 3096 116 46 70 84 0 8 0 pvpl 32 18519 0 0 152 2 150 150 0 265 0 pmappl 248 1578 0 1548 3 0 3 3 0 8 0 extentpl 40 55 0 38 1 0 1 1 0 8 0 phpool 112 317 0 63 8 0 8 8 0 8 0 ddb{1}> machine ddbcpu 0 Stopped at x86_ipi_db+0x27: addq $0x8,%rsp x86_ipi_db(ffffffff8380dff0) at x86_ipi_db+0x27 sys/arch/amd64/amd64/db_interface.c:393 x86_ipi_handler() at x86_ipi_handler+0xd9 sys/arch/amd64/amd64/ipi.c:106 Xresume_lapic_ipi() at Xresume_lapic_ipi+0x27 __mp_lock(ffffffff8394c278) at __mp_lock+0x1a3 __mp_lock_spin sys/kern/kern_lock.c:113 [inline] __mp_lock(ffffffff8394c278) at __mp_lock+0x1a3 sys/kern/kern_lock.c:144 intr_handler(ffff80003c4ddf80,ffff800000079f00) at intr_handler+0xe1 sys/arch/amd64/amd64/intr.c:553 Xintr_ioapic_edge23_untramp() at Xintr_ioapic_edge23_untramp+0x18f __sanitizer_cov_trace_pc() at __sanitizer_cov_trace_pc+0xf sys/dev/kcov.c:149 syscall(ffff80003c4de160) at syscall+0xae6 mi_syscall sys/sys/syscall_mi.h:176 [inline] syscall(ffff80003c4de160) at syscall+0xae6 sys/arch/amd64/amd64/trap.c:577 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x750bfda145f0, count: 6 ddb{0}> trace x86_ipi_db(ffffffff8380dff0) at x86_ipi_db+0x27 sys/arch/amd64/amd64/db_interface.c:393 x86_ipi_handler() at x86_ipi_handler+0xd9 sys/arch/amd64/amd64/ipi.c:106 Xresume_lapic_ipi() at Xresume_lapic_ipi+0x27 __mp_lock(ffffffff8394c278) at __mp_lock+0x1a3 __mp_lock_spin sys/kern/kern_lock.c:113 [inline] __mp_lock(ffffffff8394c278) at __mp_lock+0x1a3 sys/kern/kern_lock.c:144 intr_handler(ffff80003c4ddf80,ffff800000079f00) at intr_handler+0xe1 sys/arch/amd64/amd64/intr.c:553 Xintr_ioapic_edge23_untramp() at Xintr_ioapic_edge23_untramp+0x18f __sanitizer_cov_trace_pc() at __sanitizer_cov_trace_pc+0xf sys/dev/kcov.c:149 syscall(ffff80003c4de160) at syscall+0xae6 mi_syscall sys/sys/syscall_mi.h:176 [inline] syscall(ffff80003c4de160) at syscall+0xae6 sys/arch/amd64/amd64/trap.c:577 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x750bfda145f0, count: -9 ddb{0}> machine ddbcpu 1 Stopped at db_enter+0x25: addq $0x8,%rsp db_enter() at db_enter+0x25 sys/arch/amd64/amd64/db_interface.c:437 panic(ffffffff8343e9eb) at panic+0x1e5 sys/kern/subr_prf.c:198 __assert(ffffffff833e8586,ffffffff833a05c5,bc,ffffffff8335aada) at __assert+0x29 unveil_destroy(ffff80003c56ab60) at unveil_destroy+0x1dd sys/kern/kern_unveil.c:188 exit1(ffff80003c5acf98,b,0,1) at exit1+0x60f sys/kern/kern_exit.c:233 sys_exit(ffff80003c5acf98,ffff80002a47c670,ffff80002a47c5c0) at sys_exit+0x1a syscall(ffff80002a47c670) at syscall+0xb08 mi_syscall sys/sys/syscall_mi.h:176 [inline] syscall(ffff80002a47c670) at syscall+0xb08 sys/arch/amd64/amd64/trap.c:577 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x783836b07160, count: 7 ddb{1}> trace db_enter() at db_enter+0x25 sys/arch/amd64/amd64/db_interface.c:437 panic(ffffffff8343e9eb) at panic+0x1e5 sys/kern/subr_prf.c:198 __assert(ffffffff833e8586,ffffffff833a05c5,bc,ffffffff8335aada) at __assert+0x29 unveil_destroy(ffff80003c56ab60) at unveil_destroy+0x1dd sys/kern/kern_unveil.c:188 exit1(ffff80003c5acf98,b,0,1) at exit1+0x60f sys/kern/kern_exit.c:233 sys_exit(ffff80003c5acf98,ffff80002a47c670,ffff80002a47c5c0) at sys_exit+0x1a syscall(ffff80002a47c670) at syscall+0xb08 mi_syscall sys/sys/syscall_mi.h:176 [inline] syscall(ffff80002a47c670) at syscall+0xb08 sys/arch/amd64/amd64/trap.c:577 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x783836b07160, count: -8