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+0x1c: addq $0x8,%rsp TID PID UID PRFLAGS PFLAGS CPU COMMAND 484913 54114 0 0x14000 0x200 1 reaper db_enter() at db_enter+0x1c sys/arch/amd64/amd64/db_interface.c:437 panic(ffffffff827a340e) at panic+0x17b sys/kern/subr_prf.c:198 __assert(ffffffff8281e70b,ffffffff82820902,bc,ffffffff827b65e4) at __assert+0x29 sys/kern/subr_prf.c:157 unveil_destroy(ffff8000ffff50e0) at unveil_destroy+0x1a4 sys/kern/kern_unveil.c:188 exit1(ffff800021296890,0,0,3) at exit1+0x3d5 sys/kern/kern_exit.c:220 single_thread_check_locked(ffff800021296890,0,0) at single_thread_check_locked+0x237 sys/kern/kern_sig.c:2015 userret(ffff800021296890) at userret+0x7c single_thread_check sys/kern/kern_sig.c:2054 [inline] userret(ffff800021296890) at userret+0x7c sys/kern/kern_sig.c:1970 Xsyscall() at Xsyscall+0x156 end of kernel end trace frame: 0x7aba6cf01310, 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+0x1c sys/arch/amd64/amd64/db_interface.c:437 panic(ffffffff827a340e) at panic+0x17b sys/kern/subr_prf.c:198 __assert(ffffffff8281e70b,ffffffff82820902,bc,ffffffff827b65e4) at __assert+0x29 sys/kern/subr_prf.c:157 unveil_destroy(ffff8000ffff50e0) at unveil_destroy+0x1a4 sys/kern/kern_unveil.c:188 exit1(ffff800021296890,0,0,3) at exit1+0x3d5 sys/kern/kern_exit.c:220 single_thread_check_locked(ffff800021296890,0,0) at single_thread_check_locked+0x237 sys/kern/kern_sig.c:2015 userret(ffff800021296890) at userret+0x7c single_thread_check sys/kern/kern_sig.c:2054 [inline] userret(ffff800021296890) at userret+0x7c sys/kern/kern_sig.c:1970 Xsyscall() at Xsyscall+0x156 end of kernel end trace frame: 0x7aba6cf01310, count: -8 ddb{0}> show registers rdi 0 rsi 0x1 rbp 0xffff80002afdbc90 rbx 0xffffffff82c33b9f cpu_info_full_primary+0x2b9f rdx 0 rcx 0xffff800021296890 rax 0xffffffff82c32ff0 cpu_info_full_primary+0x1ff0 r8 0 r9 0x8080808080808080 r10 0xab741db62bc47e2f r11 0xff565ef230a1df3 r12 0xffffffff82c339a0 cpu_info_full_primary+0x29a0 r13 0 r14 0 r15 0x1 rip 0xffffffff81b35ecc db_enter+0x1c cs 0x8 rflags 0x246 rsp 0xffff80002afdbc80 ss 0x10 db_enter+0x1c: addq $0x8,%rsp ddb{0}> show proc PROC (syz-executor.2) pid=496281 stat=onproc flags process=1008 proc=82000 pri=86, usrpri=86, nice=20 forw=0xffffffffffffffff, list=0xffff80002393b8b8,0xffff800021296078 process=0xffff8000ffff50e0 user=0xffff80002afd6000, vmspace=0xfffffd806b584928 estcpu=36, cpticks=9, pctcpu=0.0 user=0, sys=2, intr=0 ddb{0}> ps PID TID PPID UID S FLAGS WAIT COMMAND 13982 240484 42607 0 2 0 syz-executor.1 67074 194828 90537 0 2 0 syz-executor.4 67074 439484 90537 0 2 0x4000000 syz-executor.4 67186 167221 71079 0 2 0 syz-executor.0 67186 330303 71079 0 3 0x4000080 fifow syz-executor.0 67186 486830 71079 0 3 0x4000080 fifow syz-executor.0 67186 477778 71079 0 2 0x4000000 syz-executor.0 71079 224303 84179 0 3 0x82 nanoslp syz-executor.0 60949 302750 84179 0 3 0x82 nanoslp syz-executor.5 12097 328087 84179 0 2 0x2 syz-executor.6 17296 517522 84179 0 3 0x82 nanoslp syz-executor.2 11358 450344 0 0 3 0x14200 bored sosplice 27944 150847 0 0 3 0x14280 nfsidl nfsio 11733 500894 0 0 3 0x14280 nfsidl nfsio 17288 493893 0 0 3 0x14280 nfsidl nfsio 77234 317008 0 0 3 0x14280 nfsidl nfsio 28023 317123 0 0 3 0x14280 nfsidl nfsio 29813 55769 0 0 3 0x14280 nfsidl nfsio 77266 182339 0 0 3 0x14280 nfsidl nfsio 20223 442309 0 0 3 0x14280 nfsidl nfsio 29419 209211 0 0 3 0x14280 nfsidl nfsio 75259 439607 0 0 3 0x14280 nfsidl nfsio 33051 53585 0 0 3 0x14280 nfsidl nfsio 55996 155585 0 0 3 0x14280 nfsidl nfsio 18611 478607 0 0 3 0x14280 nfsidl nfsio 65181 481957 0 0 3 0x14280 nfsidl nfsio 20477 227218 0 0 3 0x14280 nfsidl nfsio 83981 121974 0 0 3 0x14280 nfsidl nfsio 61674 281324 0 0 3 0x14280 nfsidl nfsio 35346 452524 0 0 3 0x14280 nfsidl nfsio 17852 315416 0 0 3 0x14280 nfsidl nfsio 98688 179135 0 0 3 0x14280 nfsidl nfsio 25171 110812 84179 0 2 0x482 syz-executor.7 90537 419355 84179 0 3 0x82 nanoslp syz-executor.4 42607 245224 84179 0 2 0x482 syz-executor.1 54602 228172 84179 0 2 0x482 syz-executor.3 84179 204739 66518 0 3 0x2000082 wait syz-fuzzer 84179 226912 66518 0 3 0x6000082 thrsleep syz-fuzzer 84179 18636 66518 0 3 0x6000082 wait syz-fuzzer 84179 100786 66518 0 3 0x6000082 wait syz-fuzzer 84179 30258 66518 0 3 0x6000082 thrsleep syz-fuzzer 84179 258787 66518 0 3 0x6000082 wait syz-fuzzer 84179 231010 66518 0 3 0x6000082 thrsleep syz-fuzzer 84179 444698 66518 0 3 0x6000082 thrsleep syz-fuzzer 84179 146151 66518 0 3 0x6000082 thrsleep syz-fuzzer 84179 121653 66518 0 3 0x6000082 kqread syz-fuzzer 84179 183425 66518 0 3 0x6000082 thrsleep syz-fuzzer 84179 325282 66518 0 3 0x6000082 wait syz-fuzzer 84179 292890 66518 0 3 0x6000082 wait syz-fuzzer 84179 398168 66518 0 3 0x6000082 wait syz-fuzzer 84179 105020 66518 0 3 0x6000082 thrsleep syz-fuzzer 84179 120514 66518 0 3 0x6000082 wait syz-fuzzer 66518 321758 15970 0 3 0x10008a sigsusp ksh 15970 95125 90797 0 3 0x9a kqread sshd 24810 132261 1 0 3 0x100083 ttyin getty 90797 372175 1 0 3 0x88 kqread sshd 19236 226350 11827 74 3 0x1100092 bpf pflogd 11827 165295 1 0 3 0x80 netio pflogd 84982 101021 66992 73 3 0x1100090 kqread syslogd 66992 139700 1 0 3 0x100082 netio syslogd 14726 13299 1 0 3 0x100080 kqread resolvd 68739 295951 97106 77 3 0x100092 kqread dhcpleased 93441 431896 97106 77 3 0x100092 kqread dhcpleased 97106 514016 1 0 3 0x80 kqread dhcpleased 33548 200700 0 0 3 0x14200 bored smr 54084 374091 0 0 2 0x14200 zerothread 39188 159442 0 0 3 0x14200 aiodoned aiodoned 91915 256609 0 0 3 0x14200 syncer update 8877 477863 0 0 3 0x14200 cleaner cleaner 54114 484913 0 0 7 0x14200 reaper 47500 233994 0 0 3 0x14200 pgdaemon pagedaemon 48563 287815 0 0 3 0x14200 bored viomb 65257 281644 0 0 3 0x40014200 acpi0 acpi0 26660 225624 0 0 3 0x40014200 idle1 40099 45062 0 0 3 0x14200 bored softnet3 18395 51640 0 0 3 0x14200 bored softnet2 35294 4058 0 0 3 0x14200 bored softnet1 16440 168343 0 0 3 0x14200 bored softnet0 86368 72193 0 0 3 0x14200 bored systqmp 24293 101216 0 0 3 0x14200 bored systq 64377 43012 0 0 2 0x40014200 softclock 1382 41062 0 0 3 0x40014200 idle0 1 362691 0 0 3 0x82 wait init 0 0 -1 0 3 0x10200 scheduler swapper ddb{0}> show all locks Process 12097 (syz-executor.6) thread 0xffff80002393a5b0 (328087) Process 54114 (reaper) thread 0xffff8000211acda0 (484913) ddb{0}> show malloc Type InUse MemUse HighUse Limit Requests Type Lim devbuf 10198 6494K 8620K 78643K 14873 0 pcb 13 16K 18K 78643K 182 0 rtable 241 7K 7K 78643K 662 0 pf 32 9K 10K 78643K 134 0 ifaddr 45 15K 16K 78643K 110 0 ifgroup 55 2K 2K 78643K 190 0 sysctl 2 0K 0K 78643K 2 0 counters 60 35K 36K 78643K 136 0 ioctlops 0 0K 4K 78643K 1564 0 iov 0 0K 32K 78643K 271 0 mount 1 1K 1K 78643K 1 0 log 0 0K 0K 78643K 4 0 vnodes 1505 94K 94K 78643K 2542 0 UFS quota 1 32K 32K 78643K 1 0 UFS mount 5 36K 36K 78643K 5 0 shm 2 1K 5K 78643K 23 0 VM map 2 1K 1K 78643K 2 0 sem 12 0K 0K 78643K 504 0 dirhash 12 2K 2K 78643K 12 0 ACPI 1697 195K 286K 78643K 12548 0 file desc 13 45K 89K 78643K 3048 0 sigio 0 0K 0K 78643K 24 0 proc 74 115K 128K 78643K 856 0 subproc 104 6K 6K 78643K 199 0 NFS srvsock 1 0K 0K 78643K 1 0 NFS daemon 1 16K 16K 78643K 1 0 ip_moptions 0 0K 0K 78643K 142 0 in_multi 99 7K 7K 78643K 211 0 ether_multi 1 0K 0K 78643K 6 0 mrt 1 0K 0K 78643K 1 0 ISOFS mount 1 32K 32K 78643K 1 0 MSDOSFS mount 1 16K 16K 78643K 1 0 ttys 73 334K 334K 78643K 73 0 exec 0 0K 1K 78643K 783 0 pfkey data 0 0K 0K 78643K 1 0 tdb 3 0K 0K 78643K 3 0 pagedep 1 8K 8K 78643K 1 0 inodedep 1 32K 32K 78643K 1 0 newblk 1 0K 0K 78643K 1 0 VM swap 8 62K 64K 78643K 10 0 UVM amap 386 94K 111K 78643K 32398 0 UVM aobj 131 4K 5K 78643K 134 0 memdesc 1 4K 4K 78643K 1 0 crypto data 1 1K 1K 78643K 1 0 ip6_options 0 0K 0K 78643K 50 0 NDP 12 0K 1K 78643K 80 0 temp 75 5920K 6048K 78643K 24878 0 kqueue 12 18K 24K 78643K 172 0 SYN cache 2 16K 16K 78643K 2 0 ddb{0}> show all pools Name Size Requests Fail Releases Pgreq Pgrel Npage Hiwat Minpg Maxpg Idle plcache 128 22 0 0 1 0 1 1 0 8 0 rtpcb 120 105 0 102 1 0 1 1 0 8 0 rtentry 112 191 0 79 4 0 4 4 0 8 0 unpcb 144 2451 0 2434 34 28 6 6 0 8 5 syncache 296 23 0 23 5 5 0 1 0 8 0 tcpqe 32 307 0 307 5 5 0 2 0 8 0 tcpcb 808 378 0 373 10 9 1 7 0 8 0 arp 120 33 0 15 1 0 1 1 0 8 0 inpcb 368 4376 0 4368 77 67 10 19 0 8 8 nd6 136 47 0 21 1 0 1 1 0 8 0 pkpcb 40 6 0 6 1 1 0 1 0 8 0 kcovpl 48 15 0 7 1 0 1 1 0 8 0 ppxss 1256 16 0 16 4 4 0 1 0 8 0 pffrag 232 11 0 9 2 1 1 1 0 482 0 pffrnode 88 11 0 9 2 1 1 1 0 8 0 pffrent 40 30 0 28 2 1 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 115 0 92 1 0 1 1 0 8 0 pfstkey 128 115 0 92 2 0 2 2 0 8 0 pfstate 376 115 0 92 4 0 4 4 0 8 0 pfrule 1344 21 0 16 2 1 1 2 0 8 0 art_heap8 4096 1 0 0 1 0 1 1 0 8 0 art_heap4 256 773 0 312 29 0 29 29 0 8 0 art_table 32 774 0 312 4 0 4 4 0 8 0 art_node 16 190 0 88 1 0 1 1 0 8 0 sysvmsgpl 40 13 0 3 1 0 1 1 0 8 0 semupl 112 2 0 2 1 1 0 1 0 8 0 semapl 112 502 0 492 1 0 1 1 0 8 0 shmpl 112 131 0 3 4 0 4 4 0 8 0 dirhash 1024 17 0 0 3 0 3 3 0 8 0 dino2pl 256 5162 0 3686 93 0 93 93 0 8 0 ffsino 272 5162 0 3686 99 0 99 99 0 8 0 nchpl 144 9937 0 9425 64 41 23 64 0 8 0 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 31161 0 31159 2 1 1 2 0 8 0 percpumem 16 81 0 38 1 0 1 1 0 8 0 kstatmem 264 100 0 76 2 0 2 2 0 8 0 scxspl 216 29390 0 29390 10 9 1 8 1 8 1 plimitpl 152 540 0 524 1 0 1 1 0 8 0 sigapl 424 3385 0 3316 11 2 9 9 0 8 1 futexpl 64 23898 0 23898 1 0 1 1 0 8 1 knotepl 120 231 0 0 7 0 7 7 0 8 0 kqueuepl 216 522 0 514 13 12 1 5 0 8 0 pipepl 320 1179 0 1151 26 23 3 8 0 8 0 fdescpl 496 3339 0 3313 6 1 5 5 0 8 1 filepl 152 22038 0 21799 56 38 18 19 0 8 8 lockfpl 104 769 0 767 1 0 1 1 0 8 0 lockfspl 48 302 0 300 1 0 1 1 0 8 0 sessionpl 144 31 0 14 1 0 1 1 0 8 0 pgrppl 48 217 0 200 1 0 1 1 0 8 0 ucredpl 104 1762 0 1748 1 0 1 1 0 8 0 zombiepl 144 3666 0 3661 2 1 1 1 0 8 0 processpl 1072 3385 0 3316 5 0 5 5 0 8 0 procpl 696 8689 0 8596 15 5 10 11 0 8 0 sosppl 168 31 0 31 5 5 0 1 0 8 0 sockpl 488 6941 0 6913 203 190 13 33 0 8 8 mcl64k 65536 17 0 0 3 1 2 3 0 8 0 mcl16k 16384 7 0 0 1 0 1 1 0 8 0 mcl12k 12288 16 0 0 2 0 2 2 0 8 0 mcl9k 9216 12 0 0 1 0 1 1 0 8 0 mcl8k 8192 17 0 0 3 0 3 3 0 8 0 mcl4k 4096 25 0 0 3 0 3 3 0 8 0 mcl2k2 2112 7 0 0 1 0 1 1 0 8 0 mcl2k 2048 282 0 0 35 0 35 35 0 8 0 mtagpl 96 253 0 0 5 0 5 5 0 8 0 mbufpl 256 2103 0 0 130 0 130 130 0 8 0 bufpl 288 9066 0 2737 453 0 453 453 0 8 0 anonpl 24 455994 0 444069 129 38 91 107 0 186 0 amapchunkpl 152 106843 0 105973 72 34 38 52 0 158 0 amappl16 200 10827 0 10409 62 37 25 35 0 8 1 amappl15 192 19 0 18 1 0 1 1 0 8 0 amappl14 184 189 0 172 2 1 1 2 0 8 0 amappl13 176 14 0 14 2 2 0 1 0 8 0 amappl12 168 4115 0 4086 3 1 2 2 0 8 0 amappl11 160 62 0 47 1 0 1 1 0 8 0 amappl10 152 51 0 39 1 0 1 1 0 8 0 amappl9 144 201 0 201 8 8 0 1 0 8 0 amappl8 136 338 0 250 4 0 4 4 0 8 0 amappl7 128 88 0 75 2 0 2 2 0 8 0 amappl6 120 361 0 338 3 2 1 3 0 8 0 amappl5 112 247 0 236 1 0 1 1 0 8 0 amappl4 104 699 0 652 3 1 2 3 0 8 0 amappl3 96 20518 0 20432 4 1 3 3 0 8 0 amappl2 88 3688 0 3617 3 1 2 3 0 8 0 amappl1 80 20853 0 20294 24 11 13 23 0 8 0 amappl 88 31713 0 31467 8 1 7 7 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 133 0 3 3 0 3 3 0 8 0 uaddrrnd 24 3339 0 3311 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 3339 0 3311 1 0 1 1 0 8 0 vmmpekpl 168 33692 0 33621 5 1 4 4 0 8 0 vmmpepl 168 222138 0 219774 200 71 129 139 0 357 15 vmsppl 464 3338 0 3310 6 1 5 5 0 8 1 rwobjpl 56 65992 0 58386 112 3 109 109 0 8 0 pdppl 4096 6686 0 6620 258 188 70 82 0 8 4 pvpl 32 1162346 0 1144404 413 242 171 369 0 265 2 pmappl 248 3338 0 3310 3 0 3 3 0 8 0 extentpl 40 56 0 38 1 0 1 1 0 8 0 phpool 112 1207 0 272 27 0 27 27 0 8 0 ddb{0}> machine ddbcpu 0 Invalid cpu 0 ddb{0}> trace db_enter() at db_enter+0x1c sys/arch/amd64/amd64/db_interface.c:437 panic(ffffffff827a340e) at panic+0x17b sys/kern/subr_prf.c:198 __assert(ffffffff8281e70b,ffffffff82820902,bc,ffffffff827b65e4) at __assert+0x29 sys/kern/subr_prf.c:157 unveil_destroy(ffff8000ffff50e0) at unveil_destroy+0x1a4 sys/kern/kern_unveil.c:188 exit1(ffff800021296890,0,0,3) at exit1+0x3d5 sys/kern/kern_exit.c:220 single_thread_check_locked(ffff800021296890,0,0) at single_thread_check_locked+0x237 sys/kern/kern_sig.c:2015 userret(ffff800021296890) at userret+0x7c single_thread_check sys/kern/kern_sig.c:2054 [inline] userret(ffff800021296890) at userret+0x7c sys/kern/kern_sig.c:1970 Xsyscall() at Xsyscall+0x156 end of kernel end trace frame: 0x7aba6cf01310, count: -8 ddb{0}> machine ddbcpu 1 Stopped at x86_ipi_db+0x1e: addq $0x8,%rsp x86_ipi_db(ffff800020d58ff0) at x86_ipi_db+0x1e sys/arch/amd64/amd64/db_interface.c:393 x86_ipi_handler() at x86_ipi_handler+0xb7 sys/arch/amd64/amd64/ipi.c:106 Xresume_lapic_ipi() at Xresume_lapic_ipi+0x27 __sanitizer_cov_trace_pc() at __sanitizer_cov_trace_pc+0x30 kd_curproc sys/dev/kcov.c:590 [inline] __sanitizer_cov_trace_pc() at __sanitizer_cov_trace_pc+0x30 sys/dev/kcov.c:158 __mp_lock(ffffffff82c91360) at __mp_lock+0x133 __mp_lock_spin sys/kern/kern_lock.c:116 [inline] __mp_lock(ffffffff82c91360) at __mp_lock+0x133 sys/kern/kern_lock.c:147 uvm_unmap_detach(ffff8000211b9280,1) at uvm_unmap_detach+0x113 sys/uvm/uvm_map.c:1382 uvm_map_teardown(fffffd806b584018) at uvm_map_teardown+0x2c5 sys/uvm/uvm_map.c:2585 uvmspace_free(fffffd806b584018) at uvmspace_free+0xa6 sys/uvm/uvm_map.c:3503 reaper(ffff8000211acda0) at reaper+0x19a sys/kern/kern_exit.c:449 end trace frame: 0x0, count: 6 ddb{1}> a No such command