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 437275 8391 0 0x14000 0x200 1 reaper db_enter() at db_enter+0x1c sys/arch/amd64/amd64/db_interface.c:437 panic(ffffffff827a0840) at panic+0x17b sys/kern/subr_prf.c:198 __assert(ffffffff82820d1e,ffffffff828211f2,bc,ffffffff827b6afb) at __assert+0x29 sys/kern/subr_prf.c:157 unveil_destroy(ffff8000ffff7260) at unveil_destroy+0x1a4 sys/kern/kern_unveil.c:188 exit1(ffff8000211d9bb8,0,0,1) at exit1+0x3d5 sys/kern/kern_exit.c:220 sys_exit(ffff8000211d9bb8,ffff80002e403e60,ffff80002e403eb0) at sys_exit+0x1a sys/kern/kern_exit.c:89 syscall(ffff80002e403f30) at syscall+0x5e2 mi_syscall sys/sys/syscall_mi.h:110 [inline] syscall(ffff80002e403f30) at syscall+0x5e2 sys/arch/amd64/amd64/trap.c:623 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x6fb1bb9e2e60, 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(ffffffff827a0840) at panic+0x17b sys/kern/subr_prf.c:198 __assert(ffffffff82820d1e,ffffffff828211f2,bc,ffffffff827b6afb) at __assert+0x29 sys/kern/subr_prf.c:157 unveil_destroy(ffff8000ffff7260) at unveil_destroy+0x1a4 sys/kern/kern_unveil.c:188 exit1(ffff8000211d9bb8,0,0,1) at exit1+0x3d5 sys/kern/kern_exit.c:220 sys_exit(ffff8000211d9bb8,ffff80002e403e60,ffff80002e403eb0) at sys_exit+0x1a sys/kern/kern_exit.c:89 syscall(ffff80002e403f30) at syscall+0x5e2 mi_syscall sys/sys/syscall_mi.h:110 [inline] syscall(ffff80002e403f30) at syscall+0x5e2 sys/arch/amd64/amd64/trap.c:623 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x6fb1bb9e2e60, count: -8 ddb{0}> show registers rdi 0 rsi 0x1 rbp 0xffff80002e403c70 rbx 0xffffffff82c02b9f cpu_info_full_primary+0x2b9f rdx 0 rcx 0xffff8000211d9bb8 rax 0xffffffff82c01ff0 cpu_info_full_primary+0x1ff0 r8 0 r9 0x8080808080808080 r10 0xc8246568d9424fd1 r11 0xb36252e307865d78 r12 0xffffffff82c029a0 cpu_info_full_primary+0x29a0 r13 0 r14 0 r15 0x1 rip 0xffffffff81a54b4c db_enter+0x1c cs 0x8 rflags 0x246 rsp 0xffff80002e403c60 ss 0x10 db_enter+0x1c: addq $0x8,%rsp ddb{0}> show proc PROC (syz-executor.5) pid=2931 stat=onproc flags process=1008 proc=2000 pri=32, usrpri=85, nice=20 forw=0xffffffffffffffff, list=0xffff800026151348,0xffff8000211d8e30 process=0xffff8000ffff7260 user=0xffff80002e3fe000, vmspace=0xfffffd806992b3b8 estcpu=35, cpticks=3, pctcpu=0.18 user=0, sys=1, intr=0 ddb{0}> ps PID TID PPID UID S FLAGS WAIT COMMAND 32328 157808 34552 0 2 0 syz-executor.7 32328 450343 34552 0 3 0x4000080 fsleep syz-executor.7 32328 8037 34552 0 3 0x4000080 fsleep syz-executor.7 13741 1557 35022 0 3 0x80 nanoslp syz-executor.1 13741 142694 35022 0 3 0x4000080 fsleep syz-executor.1 13741 261228 35022 0 3 0x4000080 fsleep syz-executor.1 13741 295506 35022 0 3 0x4000080 fsleep syz-executor.1 18881 429931 18031 0 3 0x80 nanoslp syz-executor.2 18881 15164 18031 0 3 0x4000080 netio syz-executor.2 18881 471061 18031 0 3 0x4000080 fsleep syz-executor.2 18881 54716 18031 0 3 0x4000080 fsleep syz-executor.2 49522 271394 2539 0 3 0x82 nanoslp syz-executor.6 35022 151272 2539 0 2 0x482 syz-executor.1 66227 369223 2539 0 2 0x482 syz-executor.4 24554 232786 0 0 3 0x14200 acct acct 71323 490784 2539 0 2 0x482 syz-executor.0 22102 375372 2539 0 3 0x82 nanoslp syz-executor.3 93153 450097 2539 0 2 0x482 syz-executor.5 47096 251895 0 0 3 0x14200 bored sosplice 34552 454761 2539 0 2 0x482 syz-executor.7 18031 7936 2539 0 3 0x82 nanoslp syz-executor.2 2539 189577 80690 0 3 0x2000082 wait syz-fuzzer 2539 361050 80690 0 3 0x6000082 thrsleep syz-fuzzer 2539 363776 80690 0 3 0x6000082 wait syz-fuzzer 2539 324857 80690 0 3 0x6000082 thrsleep syz-fuzzer 2539 277178 80690 0 3 0x6000082 wait syz-fuzzer 2539 261283 80690 0 3 0x6000082 wait syz-fuzzer 2539 400015 80690 0 3 0x6000082 thrsleep syz-fuzzer 2539 298314 80690 0 3 0x6000082 wait syz-fuzzer 2539 270798 80690 0 3 0x6000082 thrsleep syz-fuzzer 2539 398319 80690 0 3 0x6000082 wait syz-fuzzer 2539 361387 80690 0 3 0x6000082 thrsleep syz-fuzzer 2539 449193 80690 0 3 0x6000082 wait syz-fuzzer 2539 147477 80690 0 3 0x6000082 wait syz-fuzzer 2539 221893 80690 0 3 0x6000082 thrsleep syz-fuzzer 2539 239517 80690 0 3 0x6000082 thrsleep syz-fuzzer 2539 85439 80690 0 3 0x6000082 kqread syz-fuzzer 80690 52119 38358 0 3 0x10008a sigsusp ksh 38358 36181 5998 0 3 0x9a kqread sshd 55529 97716 1 0 3 0x100083 ttyin getty 5998 342015 1 0 3 0x88 kqread sshd 44866 149722 65662 74 3 0x1100092 bpf pflogd 65662 400150 1 0 3 0x80 netio pflogd 84889 503975 46399 73 3 0x1100090 kqread syslogd 46399 407499 1 0 3 0x100082 netio syslogd 87645 476150 1 0 3 0x100080 kqread resolvd 32722 363266 99586 77 3 0x100092 kqread dhcpleased 58002 290725 99586 77 3 0x100092 kqread dhcpleased 99586 187163 1 0 3 0x80 kqread dhcpleased 68380 135506 0 0 3 0x14200 bored smr 91489 324759 0 0 3 0x14200 pgzero zerothread 66447 357418 0 0 3 0x14200 aiodoned aiodoned 72724 52826 0 0 3 0x14200 syncer update 58229 350456 0 0 3 0x14200 cleaner cleaner 8391 437275 0 0 7 0x14200 reaper 73316 442793 0 0 3 0x14200 pgdaemon pagedaemon 99089 171649 0 0 3 0x14200 bored viomb 35971 307313 0 0 3 0x40014200 acpi0 acpi0 25082 387672 0 0 3 0x40014200 idle1 56508 292777 0 0 3 0x14200 bored softnet3 32560 489552 0 0 3 0x14200 bored softnet2 35758 288369 0 0 3 0x14200 bored softnet1 30345 243605 0 0 3 0x14200 bored softnet0 74613 280075 0 0 3 0x14200 bored systqmp 56920 228571 0 0 3 0x14200 bored systq 19388 320924 0 0 2 0x40014200 softclock 85845 403770 0 0 3 0x40014200 idle0 1 504231 0 0 3 0x82 wait init 0 0 -1 0 3 0x10200 scheduler swapper ddb{0}> show all locks CPU 1: exclusive mutex &uvm.fpageqlock r = 0 (0xffffffff82cbfcb8) #0 witness_lock+0x447 #1 mtx_enter_try+0x104 #2 mtx_enter+0x4f sys/kern/kern_lock.c:266 #3 uvm_pmr_freepageq+0xcc sys/uvm/uvm_pmemrange.c:1333 #4 amap_wipeout+0x20f sys/uvm/uvm_amap.c:523 #5 uvm_unmap_detach+0x7d sys/uvm/uvm_map.c:1366 #6 uvm_map_teardown+0x2c5 sys/uvm/uvm_map.c:2585 #7 uvmspace_free+0xa6 sys/uvm/uvm_map.c:3503 #8 reaper+0x19a sys/kern/kern_exit.c:449 #9 proc_trampoline+0x1c Process 8391 (reaper) thread 0xffff8000211ad310 (437275) ddb{0}> show malloc Type InUse MemUse HighUse Limit Requests Type Lim devbuf 10220 6497K 7150K 78643K 17229 0 pcb 13 14K 16K 78643K 419 0 rtable 241 7K 7K 78643K 850 0 pf 32 9K 10K 78643K 119 0 ifaddr 45 15K 16K 78643K 125 0 ifgroup 55 2K 2K 78643K 165 0 sysctl 2 0K 0K 78643K 2 0 counters 60 35K 36K 78643K 136 0 ioctlops 0 0K 4K 78643K 1744 0 iov 1 4K 17K 78643K 429 0 mount 1 1K 1K 78643K 1 0 log 0 0K 0K 78643K 4 0 vnodes 1510 94K 95K 78643K 3721 0 UFS quota 1 32K 32K 78643K 1 0 UFS mount 5 36K 36K 78643K 5 0 shm 2 1K 5K 78643K 68 0 VM map 2 1K 1K 78643K 2 0 sem 12 0K 0K 78643K 319 0 dirhash 12 2K 2K 78643K 12 0 ACPI 1697 195K 286K 78643K 12548 0 file desc 13 45K 93K 78643K 5226 0 sigio 0 0K 0K 78643K 49 0 proc 74 115K 115K 78643K 1141 0 subproc 104 6K 6K 78643K 267 0 NFS srvsock 1 0K 0K 78643K 1 0 NFS daemon 1 16K 16K 78643K 1 0 ip_moptions 0 0K 0K 78643K 132 0 in_multi 99 7K 7K 78643K 276 0 ether_multi 1 0K 0K 78643K 9 0 mrt 1 0K 0K 78643K 5 0 ISOFS mount 1 32K 32K 78643K 1 0 MSDOSFS mount 1 16K 16K 78643K 1 0 ttys 199 890K 890K 78643K 199 0 exec 0 0K 1K 78643K 1356 0 pfkey data 0 0K 0K 78643K 3 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 408 91K 97K 78643K 53393 0 UVM aobj 131 6K 8K 78643K 234 0 memdesc 1 4K 4K 78643K 1 0 crypto data 1 1K 1K 78643K 1 0 ip6_options 0 0K 0K 78643K 91 0 NDP 12 0K 1K 78643K 90 0 temp 74 5920K 5993K 78643K 47841 0 kqueue 12 18K 26K 78643K 288 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 5853 0 5847 24 22 2 7 0 8 1 rtentry 112 252 0 140 4 0 4 4 0 8 0 unpcb 144 3484 0 3469 48 47 1 6 0 8 0 syncache 296 37 0 37 8 8 0 1 0 8 0 tcpqe 32 198 0 198 6 6 0 1 0 8 0 tcpcb 808 1473 0 1469 51 44 7 14 0 8 6 arp 120 44 0 26 1 0 1 1 0 8 0 inpcb 368 3521 0 3513 70 63 7 14 0 8 6 nd6 136 64 0 38 1 0 1 1 0 8 0 pkpcb 40 17 0 17 3 3 0 1 0 8 0 kcovpl 48 20 0 12 1 0 1 1 0 8 0 ppxss 1256 21 0 21 5 4 1 1 0 8 1 pffrag 232 49 0 46 2 1 1 1 0 482 0 pffrnode 88 49 0 46 2 1 1 1 0 8 0 pffrent 40 150 0 147 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 195 0 182 1 0 1 1 0 8 0 pfstkey 128 195 0 182 2 0 2 2 0 8 0 pfstate 376 195 0 182 8 6 2 8 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 998 0 540 29 0 29 29 0 8 0 art_table 32 999 0 540 4 0 4 4 0 8 0 art_node 16 248 0 146 1 0 1 1 0 8 0 sysvmsgpl 40 48 0 8 1 0 1 1 0 8 0 semapl 112 317 0 307 1 0 1 1 0 8 0 shmpl 112 231 0 103 4 0 4 4 0 8 0 dirhash 1024 17 0 0 3 0 3 3 0 8 0 dino2pl 256 8402 0 6907 94 0 94 94 0 8 0 ffsino 272 8402 0 6907 100 0 100 100 0 8 0 nchpl 144 17008 0 16517 64 32 32 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 55370 0 55370 5 3 2 3 0 8 2 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 44216 0 44216 15 14 1 8 1 8 1 plimitpl 152 602 0 586 1 0 1 1 0 8 0 sigapl 424 5544 0 5494 9 2 7 8 0 8 0 futexpl 64 42776 0 42769 2 1 1 1 0 8 0 knotepl 120 282 0 0 7 0 7 7 0 8 0 kqueuepl 216 856 0 848 19 18 1 5 0 8 0 pipepl 320 1701 0 1672 43 40 3 11 0 8 0 fdescpl 496 5505 0 5479 5 0 5 5 0 8 0 filepl 152 42357 0 42111 81 69 12 22 0 8 1 lockfpl 104 1096 0 1094 2 1 1 2 0 8 0 lockfspl 48 475 0 473 1 0 1 1 0 8 0 sessionpl 144 36 0 19 1 0 1 1 0 8 0 pgrppl 48 48 0 31 1 0 1 1 0 8 0 ucredpl 104 4081 0 4068 1 0 1 1 0 8 0 zombiepl 144 5778 0 5773 2 1 1 1 0 8 0 processpl 1072 5544 0 5494 5 0 5 5 0 8 0 procpl 696 14509 0 14434 18 10 8 10 0 8 0 sosppl 168 68 0 68 4 4 0 1 0 8 0 sockpl 488 12875 0 12846 260 248 12 38 0 8 8 mcl64k 65536 17 0 0 3 0 3 3 0 8 0 mcl16k 16384 17 0 0 3 0 3 3 0 8 0 mcl12k 12288 17 0 0 2 0 2 2 0 8 0 mcl9k 9216 18 0 0 2 0 2 2 0 8 0 mcl8k 8192 18 0 0 3 0 3 3 0 8 0 mcl4k 4096 25 0 0 3 0 3 3 0 8 0 mcl2k2 2112 4 0 0 1 0 1 1 0 8 0 mcl2k 2048 351 0 0 44 7 37 44 0 8 0 mtagpl 96 344 0 0 8 0 8 8 0 8 0 mbufpl 256 1251 0 0 72 0 72 72 0 8 0 bufpl 288 11902 0 5575 453 0 453 453 0 8 0 anonpl 24 682385 0 669043 159 63 96 121 0 186 0 amapchunkpl 152 168944 0 168008 52 10 42 46 0 158 0 amappl16 200 15586 0 15194 86 64 22 41 0 8 0 amappl15 192 7 0 7 1 1 0 1 0 8 0 amappl14 184 204 0 190 2 1 1 2 0 8 0 amappl13 176 30 0 29 1 0 1 1 0 8 0 amappl12 168 6356 0 6328 4 2 2 3 0 8 0 amappl11 160 56 0 42 1 0 1 1 0 8 0 amappl10 152 53 0 41 2 1 1 1 0 8 0 amappl9 144 259 0 258 1 0 1 1 0 8 0 amappl8 136 431 0 326 4 0 4 4 0 8 0 amappl7 128 102 0 87 1 0 1 1 0 8 0 amappl6 120 411 0 384 2 1 1 2 0 8 0 amappl5 112 297 0 285 1 0 1 1 0 8 0 amappl4 104 747 0 702 3 1 2 3 0 8 0 amappl3 96 33287 0 33199 4 1 3 3 0 8 0 amappl2 88 5965 0 5889 3 1 2 3 0 8 0 amappl1 80 28662 0 28113 23 10 13 23 0 8 0 amappl 88 52595 0 52336 7 0 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 233 0 103 3 0 3 3 0 8 0 uaddrrnd 24 5505 0 5478 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 5505 0 5478 1 0 1 1 0 8 0 vmmpekpl 168 48915 0 48852 4 0 4 4 0 8 0 vmmpepl 168 346574 0 344233 241 129 112 129 0 357 0 vmsppl 464 5504 0 5477 5 1 4 5 0 8 0 rwobjpl 56 95596 0 87984 119 9 110 111 0 8 0 pdppl 4096 11018 0 10954 348 278 70 84 0 8 6 pvpl 32 1714556 0 1695322 432 255 177 350 0 265 4 pmappl 248 5504 0 5477 3 1 2 3 0 8 0 extentpl 40 56 0 38 1 0 1 1 0 8 0 phpool 112 1290 0 401 26 0 26 26 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(ffffffff827a0840) at panic+0x17b sys/kern/subr_prf.c:198 __assert(ffffffff82820d1e,ffffffff828211f2,bc,ffffffff827b6afb) at __assert+0x29 sys/kern/subr_prf.c:157 unveil_destroy(ffff8000ffff7260) at unveil_destroy+0x1a4 sys/kern/kern_unveil.c:188 exit1(ffff8000211d9bb8,0,0,1) at exit1+0x3d5 sys/kern/kern_exit.c:220 sys_exit(ffff8000211d9bb8,ffff80002e403e60,ffff80002e403eb0) at sys_exit+0x1a sys/kern/kern_exit.c:89 syscall(ffff80002e403f30) at syscall+0x5e2 mi_syscall sys/sys/syscall_mi.h:110 [inline] syscall(ffff80002e403f30) at syscall+0x5e2 sys/arch/amd64/amd64/trap.c:623 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x6fb1bb9e2e60, 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 __mp_lock(ffffffff82cb5dd0) at __mp_lock+0x122 __mp_lock_spin sys/kern/kern_lock.c:116 [inline] __mp_lock(ffffffff82cb5dd0) at __mp_lock+0x122 sys/kern/kern_lock.c:147 uvm_unmap_detach(ffff8000211b9cd0,1) at uvm_unmap_detach+0x113 sys/uvm/uvm_map.c:1382 uvm_map_teardown(fffffd806992bcc8) at uvm_map_teardown+0x2c5 sys/uvm/uvm_map.c:2585 uvmspace_free(fffffd806992bcc8) at uvmspace_free+0xa6 sys/uvm/uvm_map.c:3503 reaper(ffff8000211ad310) at reaper+0x19a sys/kern/kern_exit.c:449 end trace frame: 0x0, count: 7 ddb{1}> trace 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 __mp_lock(ffffffff82cb5dd0) at __mp_lock+0x122 __mp_lock_spin sys/kern/kern_lock.c:116 [inline] __mp_lock(ffffffff82cb5dd0) at __mp_lock+0x122 sys/kern/kern_lock.c:147 uvm_unmap_detach(ffff8000211b9cd0,1) at uvm_unmap_detach+0x113 sys/uvm/uvm_map.c:1382 uvm_map_teardown(fffffd806992bcc8) at uvm_map_teardown+0x2c5 sys/uvm/uvm_map.c:2585 uvmspace_free(fffffd806992bcc8) at uvmspace_free+0xa6 sys/uvm/uvm_map.c:3503 reaper(ffff8000211ad310) at reaper+0x19a sys/kern/kern_exit.c:449 end trace frame: 0x0, count: -8