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 db_enter() at db_enter+0x25 sys/arch/amd64/amd64/db_interface.c:437 panic(ffffffff830f8354) at panic+0x1e5 sys/kern/subr_prf.c:198 __assert(ffffffff830a900c,ffffffff830690ad,bc,ffffffff8302b8c6) at __assert+0x29 unveil_destroy(ffff80003598d6c8) at unveil_destroy+0x1dd sys/kern/kern_unveil.c:188 exit1(ffff80003598b1e8,0,0,1) at exit1+0x60f sys/kern/kern_exit.c:233 sys_exit(ffff80003598b1e8,ffff8000371a3280,ffff8000371a31d0) at sys_exit+0x1a syscall(ffff8000371a3280) at syscall+0xaf8 mi_syscall sys/sys/syscall_mi.h:178 [inline] syscall(ffff8000371a3280) at syscall+0xaf8 sys/arch/amd64/amd64/trap.c:577 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x785afbffb650, 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{0}> ddb{0}> set $lines = 0 ddb{0}> set $maxwidth = 0 ddb{0}> show panic *cpu0: kernel diagnostic assertion "ps->ps_uvncount == 0" failed: file "/syzkaller/managers/multicore/kernel/sys/kern/kern_unveil.c", line 188 ddb{0}> trace db_enter() at db_enter+0x25 sys/arch/amd64/amd64/db_interface.c:437 panic(ffffffff830f8354) at panic+0x1e5 sys/kern/subr_prf.c:198 __assert(ffffffff830a900c,ffffffff830690ad,bc,ffffffff8302b8c6) at __assert+0x29 unveil_destroy(ffff80003598d6c8) at unveil_destroy+0x1dd sys/kern/kern_unveil.c:188 exit1(ffff80003598b1e8,0,0,1) at exit1+0x60f sys/kern/kern_exit.c:233 sys_exit(ffff80003598b1e8,ffff8000371a3280,ffff8000371a31d0) at sys_exit+0x1a syscall(ffff8000371a3280) at syscall+0xaf8 mi_syscall sys/sys/syscall_mi.h:178 [inline] syscall(ffff8000371a3280) at syscall+0xaf8 sys/arch/amd64/amd64/trap.c:577 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x785afbffb650, count: -8 ddb{0}> show registers rdi 0 rsi 0x1 rbp 0xffff8000371a2fc0 rbx 0xffffffff834f3dbf cpu_info_full_primary+0x2dbf rdx 0 rcx 0xffff80003598b1e8 rax 0xffffffff834f2ff0 cpu_info_full_primary+0x1ff0 r8 0 r9 0x8080808080808080 r10 0xfe7f52970b24a409 r11 0xb531bd411846d5a1 r12 0xffffffff834f3bc0 cpu_info_full_primary+0x2bc0 r13 0 r14 0 r15 0x1 rip 0xffffffff81ac00e5 db_enter+0x25 cs 0x8 rflags 0x246 rsp 0xffff8000371a2fb0 ss 0x10 db_enter+0x25: addq $0x8,%rsp ddb{0}> show proc PROC (syz-executor) tid=191964 pid=85788 tcnt=0 stat=onproc flags process=1008 proc=2000 runpri=32, usrpri=83, slppri=32, nice=20 wchan=0x0, wmesg=, ps_single=0xffff80003598b1e8 scnt=-1 ecnt=1 forw=0xffffffffffffffff, list=0xffff8000ffff7460,0xffff80003598a040 process=0xffff80003598d6c8 user=0xffff80003719e000, vmspace=0xfffffd806b982020 estcpu=33, cpticks=1, pctcpu=0.5, user=0, sys=1, intr=0 ddb{0}> ps PID TID PPID UID S FLAGS WAIT COMMAND 45680 408025 75368 0 2 0 syz-executor 45680 270788 75368 0 2 0x4000000 syz-executor 11427 250342 5565 0 2 0 syz-executor 11427 93090 5565 0 3 0x4000080 fsleep syz-executor 65091 340681 44087 0 2 0 syz-executor 65091 268914 44087 0 3 0x4000080 fsleep syz-executor 93577 429311 9922 0 2 0 syz-executor 93577 54516 9922 0 2 0x4000000 syz-executor 93577 429619 9922 0 3 0x4000080 fsleep syz-executor 72043 357263 11062 0 2 0x480 syz-executor 72043 248745 11062 0 3 0x4000080 netcon syz-executor 72043 254790 11062 0 3 0x4000080 fsleep syz-executor 72043 107548 11062 0 3 0x4000080 fsleep syz-executor 9922 207992 13774 0 2 0x482 syz-executor 5565 374036 13774 0 2 0x482 syz-executor 75368 455917 13774 0 3 0x82 nanoslp syz-executor 61777 490115 1 0 3 0x100083 ttyin getty 67743 409186 0 0 3 0x14200 bored sosplice 65446 358116 13774 0 3 0x82 nanoslp syz-executor 11062 489338 13774 0 2 0x482 syz-executor 44087 437823 13774 0 2 0x482 syz-executor 51791 333719 13774 0 3 0x82 wait syz-executor 98592 362532 13774 0 3 0x82 nanoslp syz-executor 13774 523681 16600 0 3 0x82 kqread syz-executor 16600 66251 19624 0 3 0x10008a sigsusp ksh 19624 63515 92401 0 3 0x98 kqread sshd-session 92401 148911 91276 0 3 0x92 kqread sshd-session 91276 311893 1 0 3 0x88 kqread sshd 88941 246265 15732 74 3 0x1100092 bpf pflogd 15732 80863 1 0 3 0x80 sbwait pflogd 5555 93160 88205 73 3 0x1100090 kqread syslogd 88205 468277 1 0 3 0x100082 sbwait syslogd 743 423835 1 0 3 0x100080 kqread resolvd 57776 255042 56145 77 3 0x100092 kqread dhcpleased 36687 184211 56145 77 3 0x100092 kqread dhcpleased 56145 461206 1 0 3 0x80 kqread dhcpleased 97531 460496 0 0 3 0x14200 bored smr 12094 232778 0 0 2 0x14200 zerothread 37446 26592 0 0 3 0x14200 aiodoned aiodoned 26482 317508 0 0 3 0x14200 syncer update 76815 387195 0 0 3 0x14200 cleaner cleaner 16256 412385 0 0 2 0x14200 reaper 31989 62655 0 0 3 0x14200 pgdaemon pagedaemon 27653 186112 0 0 3 0x14200 bored viomb 89529 278677 0 0 3 0x40014200 acpi0 acpi0 85412 26110 0 0 7 0x40014200 idle1 81542 439850 0 0 3 0x14200 bored softnet3 80422 135677 0 0 3 0x14200 bored softnet2 60354 292999 0 0 3 0x14200 bored softnet1 9360 45697 0 0 3 0x14200 bored softnet0 79763 375510 0 0 3 0x14200 bored systqmp 10244 157079 0 0 3 0x14200 bored systq 62319 239882 0 0 2 0x14200 softclockmp 88851 366117 0 0 2 0x40014200 softclock 52455 406117 0 0 3 0x40014200 idle0 1 448985 0 0 3 0x80082 wait init 0 0 -1 0 3 0x10200 scheduler swapper ddb{0}> show all locks Process 45680 (syz-executor) thread 0xffff80003699d6f0 (270788) Process 93577 (syz-executor) thread 0xffff80003598acd8 (54516) Process 16256 (reaper) thread 0xffff800029fd87a0 (412385) ddb{0}> show malloc Type InUse MemUse HighUse Limit Requests Type Lim devbuf 10231 11278K 11656K 166960K 13907 0 pcb 20 13K 14K 166960K 335 0 rtable 154 6K 7K 166960K 622 0 pf 35 17K 19K 166960K 109 0 ifaddr 35 5K 7K 166960K 91 0 ifgroup 55 2K 2K 166960K 128 0 sysctl 4 1K 5K 166960K 6 0 counters 64 36K 36K 166960K 106 0 ioctlops 0 0K 4K 166960K 1722 0 iov 0 0K 16K 166960K 107 0 mount 1 1K 1K 166960K 1 0 log 0 0K 0K 166960K 4 0 vnodes 1415 89K 90K 166960K 3094 0 UFS quota 1 32K 32K 166960K 1 0 UFS mount 5 36K 36K 166960K 5 0 shm 2 1K 9K 166960K 58 0 VM map 2 1K 1K 166960K 2 0 sem 12 0K 0K 166960K 297 0 dirhash 12 2K 2K 166960K 39 0 ACPI 1690 195K 286K 166960K 12468 0 file desc 17 61K 93K 166960K 1832 0 sigio 0 0K 0K 166960K 29 0 proc 77 115K 128K 166960K 788 0 subproc 104 6K 6K 166960K 143 0 NFS srvsock 1 0K 0K 166960K 1 0 NFS daemon 1 16K 16K 166960K 1 0 ip_moptions 0 0K 0K 166960K 295 0 in_multi 60 4K 7K 166960K 235 0 ether_multi 1 0K 0K 166960K 22 0 mrt 2 0K 0K 166960K 9 0 ISOFS mount 1 32K 32K 166960K 1 0 MSDOSFS mount 1 16K 16K 166960K 1 0 ttys 259 1155K 1155K 166960K 259 0 exec 0 0K 1K 166960K 790 0 fusefs mount 1 32K 32K 166960K 1 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 256 73K 89K 166960K 18885 0 UVM aobj 131 4K 5K 166960K 136 0 pinsyscall 43 86K 105K 166960K 3012 0 memdesc 1 4K 4K 166960K 1 0 crypto data 1 1K 1K 166960K 1 0 ip6_options 0 0K 0K 166960K 97 0 NDP 12 0K 1K 166960K 59 0 temp 76 6828K 6900K 166960K 52928 0 kqueue 13 20K 28K 166960K 295 0 SYN cache 2 16K 16K 166960K 2 0 ddb{0}> 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 176 0 172 2 1 1 2 0 8 0 rtentry 112 192 0 127 4 0 4 4 0 8 0 unpcb 144 1258 0 1241 11 10 1 5 0 8 0 syncache 336 8 0 8 2 2 0 1 0 8 0 tcpcb 808 705 0 699 16 15 1 8 0 8 0 arp 120 37 0 21 1 0 1 1 0 8 0 inpcb 336 2137 0 2123 17 12 5 9 0 8 3 nd6 136 42 0 28 1 0 1 1 0 8 0 pkpcb 40 11 0 11 3 3 0 1 0 8 0 kcovpl 48 11 0 3 1 0 1 1 0 8 0 ppxss 1168 9 0 9 2 2 0 1 0 8 0 pffrag 232 26 0 19 1 0 1 1 0 482 0 pffrnode 88 26 0 19 1 0 1 1 0 8 0 pffrent 40 47 0 40 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 131 0 30 1 0 1 1 0 8 0 pfstkey 128 131 0 30 4 0 4 4 0 8 0 pfstate 376 131 0 30 11 0 11 11 0 8 0 pfrule 1344 21 0 15 2 0 2 2 0 8 0 art_heap8 4096 1 0 0 1 0 1 1 0 8 0 art_heap4 256 774 0 486 32 14 18 32 0 8 0 art_table 32 775 0 486 5 1 4 5 0 8 0 art_node 16 188 0 131 1 0 1 1 0 8 0 sysvmsgpl 40 5 0 3 1 0 1 1 0 8 0 semupl 112 1 0 1 1 1 0 1 0 8 0 semapl 112 292 0 282 1 0 1 1 0 8 0 shmpl 112 133 0 5 4 0 4 4 0 8 0 dirhash 1024 36 0 19 3 0 3 3 0 8 0 dino2pl 256 4696 0 3195 95 0 95 95 0 8 0 ffsino 272 4696 0 3195 102 0 102 102 0 8 0 nchpl 144 7286 0 5592 64 0 64 64 0 8 0 uvmvnodes 80 5907 0 0 121 0 121 121 0 8 0 vnodes 216 5907 0 0 329 0 329 329 0 8 0 namei 1024 27536 0 27535 3 2 1 2 0 8 0 percpumem 16 67 0 21 1 0 1 1 0 8 0 kstatmem 264 66 0 42 2 0 2 2 0 8 0 scsiplug 72 7 0 7 4 4 0 1 0 8 0 scxspl 216 22479 0 22479 11 10 1 8 1 8 1 plimitpl 152 360 0 342 1 0 1 1 0 8 0 sigapl 424 2133 0 2082 8 2 6 7 0 8 0 futexpl 64 25838 0 25833 1 0 1 1 0 8 0 knotepl 120 565 0 0 17 0 17 17 0 8 0 kqueuepl 216 789 0 780 9 8 1 5 0 8 0 pipepl 320 350 0 323 8 5 3 8 0 8 0 fdescpl 496 2113 0 2082 5 0 5 5 0 8 0 filepl 152 15240 0 14983 27 15 12 19 0 8 0 lockfpl 104 649 0 645 1 0 1 1 0 8 0 lockfspl 48 254 0 250 1 0 1 1 0 8 0 sessionpl 144 32 0 23 1 0 1 1 0 8 0 pgrppl 48 89 0 72 1 0 1 1 0 8 0 ucredpl 104 2662 0 2647 1 0 1 1 0 8 0 zombiepl 144 2104 0 2101 2 1 1 1 0 8 0 processpl 1160 2133 0 2082 5 1 4 5 0 8 0 procpl 648 4926 0 4866 8 2 6 7 0 8 0 srpgc 96 23 0 23 2 2 0 1 0 8 0 sosppl 168 11 0 11 3 3 0 1 0 8 0 sockpl 664 3615 0 3582 25 19 6 11 0 8 2 mcl64k 65536 3 0 0 1 0 1 1 0 8 0 mcl16k 16384 2 0 0 1 0 1 1 0 8 0 mcl12k 12288 2 0 0 1 0 1 1 0 8 0 mcl9k 9216 1 0 0 1 0 1 1 0 8 0 mcl8k 8192 8 0 0 1 0 1 1 0 8 0 mcl4k 4096 149 0 0 19 0 19 19 0 8 0 mcl2k 2048 49 0 0 6 0 6 6 0 8 0 mtagpl 96 27 0 0 1 0 1 1 0 8 0 mbufpl 256 304 0 0 17 0 17 17 0 8 0 bufpl 280 6397 0 223 442 0 442 442 0 8 0 anonpl 24 381090 0 375842 101 50 51 82 0 185 0 amapchunkpl 152 63650 0 63035 51 25 26 39 0 158 1 amappl16 200 9803 0 9743 57 50 7 29 0 8 0 amappl15 192 12 0 12 1 1 0 1 0 8 0 amappl14 184 132 0 120 1 0 1 1 0 8 0 amappl13 176 14 0 14 1 1 0 1 0 8 0 amappl12 168 2820 0 2788 3 1 2 2 0 8 0 amappl11 160 58 0 43 1 0 1 1 0 8 0 amappl10 152 14 0 14 1 1 0 1 0 8 0 amappl9 144 156 0 155 1 0 1 1 0 8 0 amappl8 136 30 0 27 1 0 1 1 0 8 0 amappl7 128 121 0 109 1 0 1 1 0 8 0 amappl6 120 198 0 196 1 0 1 1 0 8 0 amappl5 112 157 0 145 1 0 1 1 0 8 0 amappl4 104 370 0 349 1 0 1 1 0 8 0 amappl3 96 11361 0 11256 4 1 3 4 0 8 0 amappl2 88 2455 0 2370 3 0 3 3 0 8 0 amappl1 80 14043 0 13469 14 0 14 14 0 8 0 amappl 88 18327 0 18133 5 0 5 5 0 92 0 dma8192 8192 1 0 1 1 1 0 1 0 8 0 dma4096 4096 2 0 2 2 2 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 255 0 255 2 2 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 135 0 5 3 0 3 3 0 8 0 uaddrrnd 24 2114 0 2082 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 2114 0 2082 1 0 1 1 0 8 0 vmmpekpl 168 17503 0 17459 3 0 3 3 0 8 0 vmmpepl 168 136815 0 134843 117 22 95 108 0 357 0 vmsppl 448 2113 0 2082 6 2 4 5 0 8 0 rwobjpl 56 45334 0 38304 100 0 100 100 0 8 0 pdppl 4096 4235 0 4164 119 48 71 85 0 8 0 pvpl 32 20545 0 0 167 1 166 166 0 265 0 pmappl 248 2113 0 2082 3 0 3 3 0 8 0 extentpl 40 55 0 38 1 0 1 1 0 8 0 phpool 112 449 0 102 11 0 11 11 0 8 0 ddb{0}> machine ddbcpu 0 Invalid cpu 0 ddb{0}> trace db_enter() at db_enter+0x25 sys/arch/amd64/amd64/db_interface.c:437 panic(ffffffff830f8354) at panic+0x1e5 sys/kern/subr_prf.c:198 __assert(ffffffff830a900c,ffffffff830690ad,bc,ffffffff8302b8c6) at __assert+0x29 unveil_destroy(ffff80003598d6c8) at unveil_destroy+0x1dd sys/kern/kern_unveil.c:188 exit1(ffff80003598b1e8,0,0,1) at exit1+0x60f sys/kern/kern_exit.c:233 sys_exit(ffff80003598b1e8,ffff8000371a3280,ffff8000371a31d0) at sys_exit+0x1a syscall(ffff8000371a3280) at syscall+0xaf8 mi_syscall sys/sys/syscall_mi.h:178 [inline] syscall(ffff8000371a3280) at syscall+0xaf8 sys/arch/amd64/amd64/trap.c:577 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x785afbffb650, count: -8 ddb{0}> machine ddbcpu 1 Stopped at x86_ipi_db+0x27: addq $0x8,%rsp x86_ipi_db(ffff800029b7bff0) 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 acpicpu_idle() at acpicpu_idle+0x41e sys/dev/acpi/acpicpu.c:1218 sched_idle(ffff800029b7bff0) at sched_idle+0x558 sys/kern/kern_sched.c:182 end trace frame: 0x0, count: 10 ddb{1}> trace x86_ipi_db(ffff800029b7bff0) 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 acpicpu_idle() at acpicpu_idle+0x41e sys/dev/acpi/acpicpu.c:1218 sched_idle(ffff800029b7bff0) at sched_idle+0x558 sys/kern/kern_sched.c:182 end trace frame: 0x0, count: -5