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 db_enter() at db_enter+0x1c sys/arch/amd64/amd64/db_interface.c:437 panic(ffffffff827a0e01) at panic+0x17b sys/kern/subr_prf.c:198 __assert(ffffffff8281f100,ffffffff82823261,bc,ffffffff827b914b) at __assert+0x29 sys/kern/subr_prf.c:157 unveil_destroy(ffff8000ffff0cb0) at unveil_destroy+0x1a4 sys/kern/kern_unveil.c:188 exit1(ffff8000212b3080,0,0,1) at exit1+0x3d5 sys/kern/kern_exit.c:220 sys_exit(ffff8000212b3080,ffff80002a385bd0,ffff80002a385c20) at sys_exit+0x1a sys/kern/kern_exit.c:89 syscall(ffff80002a385ca0) at syscall+0x5e2 mi_syscall sys/sys/syscall_mi.h:110 [inline] syscall(ffff80002a385ca0) at syscall+0x5e2 sys/arch/amd64/amd64/trap.c:623 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x6f90e3f0a0b0, 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(ffffffff827a0e01) at panic+0x17b sys/kern/subr_prf.c:198 __assert(ffffffff8281f100,ffffffff82823261,bc,ffffffff827b914b) at __assert+0x29 sys/kern/subr_prf.c:157 unveil_destroy(ffff8000ffff0cb0) at unveil_destroy+0x1a4 sys/kern/kern_unveil.c:188 exit1(ffff8000212b3080,0,0,1) at exit1+0x3d5 sys/kern/kern_exit.c:220 sys_exit(ffff8000212b3080,ffff80002a385bd0,ffff80002a385c20) at sys_exit+0x1a sys/kern/kern_exit.c:89 syscall(ffff80002a385ca0) at syscall+0x5e2 mi_syscall sys/sys/syscall_mi.h:110 [inline] syscall(ffff80002a385ca0) at syscall+0x5e2 sys/arch/amd64/amd64/trap.c:623 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x6f90e3f0a0b0, count: -8 ddb{0}> show registers rdi 0 rsi 0x1 rbp 0xffff80002a3859e0 rbx 0xffffffff82b98b9f cpu_info_full_primary+0x2b9f rdx 0 rcx 0xffff8000212b3080 rax 0xffffffff82b97ff0 cpu_info_full_primary+0x1ff0 r8 0 r9 0x8080808080808080 r10 0x236b1b63d25e623 r11 0xf5498f3e392da65d r12 0xffffffff82b989a0 cpu_info_full_primary+0x29a0 r13 0 r14 0 r15 0x1 rip 0xffffffff8255bacc db_enter+0x1c cs 0x8 rflags 0x246 rsp 0xffff80002a3859d0 ss 0 db_enter+0x1c: addq $0x8,%rsp ddb{0}> show proc PROC (syz-executor.7) pid=30172 stat=onproc flags process=1008 proc=2000 pri=32, usrpri=86, nice=20 forw=0xffffffffffffffff, list=0xffff8000244e7b60,0xffff8000244e6868 process=0xffff8000ffff0cb0 user=0xffff80002a380000, vmspace=0xfffffd807eff9cb0 estcpu=36, cpticks=12, pctcpu=0.1 user=0, sys=1, intr=0 ddb{0}> ps PID TID PPID UID S FLAGS WAIT COMMAND 3674 385590 81638 0 2 0 syz-executor.5 2953 388689 49056 0 2 0 syz-executor.2 5717 139266 25506 0 2 0 syz-executor.4 5717 91738 25506 0 2 0x4000000 syz-executor.4 60118 298348 71410 0 2 0x10 syz-executor.1 60118 470388 71410 0 3 0x4000090 fsleep syz-executor.1 60118 35174 71410 0 2 0x4000090 syz-executor.1 3566 235320 96258 0 2 0 syz-executor.0 3566 374660 96258 0 3 0x4000080 fsleep syz-executor.0 3566 82392 96258 0 2 0x4000080 syz-executor.0 3566 176150 96258 0 3 0x4000080 fsleep syz-executor.0 81638 193781 13360 0 2 0x482 syz-executor.5 25506 343736 13360 0 2 0x482 syz-executor.4 18789 490430 13360 0 2 0x2 syz-executor.3 26868 324646 0 0 3 0x14200 acct acct 84263 343925 1 0 3 0x100083 ttyopn getty 22361 95852 13360 0 2 0x2 syz-executor.6 96258 128225 13360 0 3 0x82 nanoslp syz-executor.0 71410 292357 13360 0 3 0x82 nanoslp syz-executor.1 49056 83430 13360 0 2 0x482 syz-executor.2 47456 195773 13360 0 3 0x82 nanoslp syz-executor.7 68989 391331 0 0 3 0x14280 nfsidl nfsio 93275 497511 0 0 3 0x14280 nfsidl nfsio 48434 59896 0 0 3 0x14280 nfsidl nfsio 60680 323890 0 0 3 0x14280 nfsidl nfsio 48630 362182 0 0 3 0x14280 nfsidl nfsio 2876 458236 0 0 3 0x14280 nfsidl nfsio 6941 472981 0 0 3 0x14280 nfsidl nfsio 51777 297433 0 0 3 0x14280 nfsidl nfsio 11393 287703 0 0 3 0x14280 nfsidl nfsio 62803 206004 0 0 3 0x14280 nfsidl nfsio 88815 480629 0 0 3 0x14280 nfsidl nfsio 30251 355699 0 0 3 0x14280 nfsidl nfsio 46535 257965 0 0 3 0x14280 nfsidl nfsio 71262 89870 0 0 3 0x14280 nfsidl nfsio 44929 338957 0 0 3 0x14280 nfsidl nfsio 55720 520737 0 0 3 0x14280 nfsidl nfsio 23352 438262 0 0 3 0x14280 nfsidl nfsio 88946 133130 0 0 3 0x14280 nfsidl nfsio 4574 242833 0 0 3 0x14280 nfsidl nfsio 93315 104778 0 0 3 0x14280 nfsidl nfsio 39323 244092 0 0 3 0x14200 bored sosplice 13360 122522 38118 0 3 0x2000082 thrsleep syz-fuzzer 13360 278385 38118 0 3 0x6000082 thrsleep syz-fuzzer 13360 357018 38118 0 3 0x6000082 thrsleep syz-fuzzer 13360 292988 38118 0 3 0x6000082 thrsleep syz-fuzzer 13360 188977 38118 0 3 0x6000082 wait syz-fuzzer 13360 34712 38118 0 3 0x6000082 wait syz-fuzzer 13360 427732 38118 0 3 0x6000082 kqread syz-fuzzer 13360 465789 38118 0 3 0x6000082 wait syz-fuzzer 13360 521529 38118 0 3 0x6000082 thrsleep syz-fuzzer 13360 203681 38118 0 3 0x6000082 thrsleep syz-fuzzer 13360 8630 38118 0 3 0x6000082 wait syz-fuzzer 13360 421391 38118 0 3 0x6000082 thrsleep syz-fuzzer 13360 266984 38118 0 3 0x6000082 wait syz-fuzzer 13360 446025 38118 0 3 0x6000082 wait syz-fuzzer 13360 96907 38118 0 3 0x6000082 wait syz-fuzzer 13360 372766 38118 0 3 0x6000082 wait syz-fuzzer 38118 53132 58508 0 3 0x10008a sigsusp ksh 58508 220506 11763 0 3 0x9a kqread sshd 11763 30443 1 0 3 0x88 kqread sshd 91348 498126 31964 74 3 0x1100092 bpf pflogd 31964 8939 1 0 3 0x80 netio pflogd 7486 41298 75660 73 3 0x1100090 kqread syslogd 75660 98021 1 0 3 0x100082 netio syslogd 45063 455338 1 0 3 0x100080 kqread resolvd 16387 148475 38974 77 3 0x100092 kqread dhcpleased 48902 175113 38974 77 3 0x100092 kqread dhcpleased 38974 417875 1 0 3 0x80 kqread dhcpleased 44557 481946 0 0 3 0x14200 bored smr 87130 72074 0 0 2 0x14200 zerothread 23461 137851 0 0 3 0x14200 aiodoned aiodoned 75043 45574 0 0 3 0x14200 syncer update 25760 480442 0 0 3 0x14200 cleaner cleaner 79112 361858 0 0 2 0x14200 reaper 52636 128305 0 0 3 0x14200 pgdaemon pagedaemon 78352 54555 0 0 3 0x14200 bored viomb 51546 393982 0 0 3 0x40014200 acpi0 acpi0 58697 183412 0 0 7 0x40014200 idle1 68832 377932 0 0 3 0x14200 bored softnet3 78937 388330 0 0 3 0x14200 bored softnet2 38301 505337 0 0 3 0x14200 bored softnet1 36517 75509 0 0 3 0x14200 bored softnet0 43056 364279 0 0 3 0x14200 bored systqmp 38534 286935 0 0 3 0x14200 bored systq 14470 153918 0 0 2 0x40014200 softclock 90782 431973 0 0 3 0x40014200 idle0 1 410304 0 0 3 0x82 wait init 0 0 -1 0 3 0x10200 scheduler swapper ddb{0}> show all locks Process 2953 (syz-executor.2) thread 0xffff8000212b22e8 (388689) Process 5717 (syz-executor.4) thread 0xffff8000212b38a8 (139266) Process 22361 (syz-executor.6) thread 0xffff8000212cadd8 (95852) Process 79112 (reaper) thread 0xffff8000211acae8 (361858) ddb{0}> show malloc Type InUse MemUse HighUse Limit Requests Type Lim devbuf 10238 6564K 7675K 78643K 17995 0 pcb 13 22K 26K 78643K 1175 0 rtable 247 7K 7K 78643K 2645 0 pf 35 10K 10K 78643K 548 0 ifaddr 46 17K 18K 78643K 500 0 ifgroup 60 2K 2K 78643K 864 0 sysctl 2 0K 4K 78643K 48 0 counters 62 36K 36K 78643K 542 0 ioctlops 0 0K 4K 78643K 4346 0 iov 0 0K 32K 78643K 3100 0 mount 1 1K 1K 78643K 1 0 log 0 0K 0K 78643K 4 0 vnodes 1592 100K 100K 78643K 8734 0 UFS quota 1 32K 32K 78643K 1 0 UFS mount 5 36K 36K 78643K 5 0 shm 2 1K 9K 78643K 258 0 VM map 2 1K 1K 78643K 2 0 sem 11 1K 1K 78643K 11 0 dirhash 12 2K 2K 78643K 12 0 ACPI 1697 195K 286K 78643K 12548 0 file desc 16 57K 89K 78643K 25928 0 sigio 0 0K 0K 78643K 3960 0 proc 75 127K 128K 78643K 3595 0 subproc 104 6K 7K 78643K 1001 0 NFS srvsock 1 0K 0K 78643K 1 0 NFS daemon 1 16K 16K 78643K 1 0 ip_moptions 0 0K 0K 78643K 3958 0 in_multi 99 7K 7K 78643K 2044 0 ether_multi 1 0K 0K 78643K 19 0 mrt 1 0K 0K 78643K 10 0 ISOFS mount 1 32K 32K 78643K 1 0 MSDOSFS mount 1 16K 16K 78643K 1 0 ttys 301 1341K 1341K 78643K 301 0 exec 0 0K 1K 78643K 5000 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 446 90K 105K 78643K 239086 0 UVM aobj 131 4K 4K 78643K 131 0 memdesc 1 4K 4K 78643K 1 0 crypto data 1 1K 1K 78643K 1 0 ip6_options 0 0K 1K 78643K 673 0 NDP 13 0K 2K 78643K 405 0 temp 74 5920K 6044K 78643K 148893 0 kqueue 12 18K 32K 78643K 1531 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 747 0 744 7 6 1 3 0 8 0 rtentry 112 900 0 785 4 0 4 4 0 8 0 unpcb 144 63941 0 63924 344 343 1 11 0 8 0 syncache 296 175 0 175 39 39 0 1 0 8 0 sackhl 24 2 0 2 2 2 0 1 0 8 0 tcpqe 32 1041 650 1041 8 8 0 1 0 8 0 tcpcb 808 5964 0 5960 229 228 1 15 0 8 0 arp 120 165 0 146 1 0 1 1 0 8 0 inpcb 368 17124 0 17111 351 349 2 21 0 8 0 nd6 136 239 0 211 3 1 2 2 0 8 0 pkpcb 40 28 0 28 5 5 0 1 0 8 0 kcovpl 48 76 0 68 1 0 1 1 0 8 0 ppxss 1256 89 0 89 24 24 0 1 0 8 0 pffrag 232 181 0 179 7 6 1 1 0 482 0 pffrnode 88 181 0 179 7 6 1 1 0 8 0 pffrent 40 602 0 600 9 8 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 697 0 688 1 0 1 1 0 8 0 pfstkey 128 697 0 688 4 3 1 2 0 8 0 pfstate 376 697 0 688 15 13 2 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 3564 0 3069 36 4 32 32 0 8 0 art_table 32 3565 0 3069 5 0 5 5 0 8 0 art_node 16 880 0 775 1 0 1 1 0 8 0 sysvmsgpl 40 37 0 30 1 0 1 1 0 8 0 semupl 112 6 0 6 1 1 0 1 0 8 0 semapl 112 9 0 0 1 0 1 1 0 8 0 shmpl 112 128 0 0 4 0 4 4 0 8 0 dirhash 1024 17 0 0 3 0 3 3 0 8 0 dino2pl 256 34275 0 32718 98 0 98 98 0 8 0 ffsino 272 34275 0 32718 104 0 104 104 0 8 0 nchpl 144 67873 0 67349 63 40 23 63 0 8 0 uvmvnodes 80 7913 0 0 162 0 162 162 0 8 0 vnodes 216 7913 0 0 440 0 440 440 0 8 0 namei 1024 229469 0 229469 6 5 1 2 0 8 1 percpumem 16 284 0 240 1 0 1 1 0 8 0 kstatmem 264 506 0 480 3 1 2 3 0 8 0 scxspl 216 205725 0 205725 24 23 1 8 1 8 1 plimitpl 152 2844 0 2828 1 0 1 1 0 8 0 sigapl 424 26143 0 26074 10 2 8 8 0 8 0 futexpl 64 246949 0 246946 6 5 1 1 0 8 0 knotepl 120 1975 0 0 23 4 19 19 0 8 0 kqueuepl 216 4008 0 4000 87 86 1 5 0 8 0 pipepl 320 6075 0 6047 176 173 3 11 0 8 0 fdescpl 496 26092 0 26062 6 2 4 5 0 8 0 filepl 152 195332 0 195091 377 364 13 29 0 8 1 lockfpl 104 5807 0 5805 6 5 1 2 0 8 0 lockfspl 48 1976 0 1974 1 0 1 1 0 8 0 sessionpl 144 100 0 83 1 0 1 1 0 8 0 pgrppl 48 438 0 421 1 0 1 1 0 8 0 ucredpl 104 20823 0 20804 1 0 1 1 0 8 0 zombiepl 144 26874 0 26873 2 1 1 1 0 8 0 processpl 1072 26144 0 26074 5 0 5 5 0 8 0 procpl 696 63809 0 63716 61 51 10 11 0 8 0 srpgc 96 2 0 2 1 1 0 1 0 8 0 sosppl 168 242 0 242 14 14 0 1 0 8 0 sockpl 488 81846 0 81819 1915 1910 5 42 0 8 1 mcl64k 65536 8 0 0 1 0 1 1 0 8 0 mcl16k 16384 5 0 0 1 0 1 1 0 8 0 mcl12k 12288 15 0 0 2 0 2 2 0 8 0 mcl9k 9216 4 0 0 1 0 1 1 0 8 0 mcl8k 8192 9 0 0 2 0 2 2 0 8 0 mcl4k 4096 26 0 0 4 1 3 3 0 8 0 mcl2k2 2112 3 0 0 1 0 1 1 0 8 0 mcl2k 2048 447 0 0 35 13 22 35 0 8 0 mtagpl 96 212 0 0 5 1 4 5 0 8 0 mbufpl 256 2587 0 0 77 0 77 77 0 8 0 bufpl 288 46541 0 38628 566 0 566 566 0 8 0 anonpl 24 2489688 0 2477629 327 221 106 114 0 186 0 amapchunkpl 152 758622 0 757759 115 73 42 49 0 158 1 amappl16 200 54513 0 54118 271 245 26 36 0 8 0 amappl15 192 14 0 14 1 1 0 1 0 8 0 amappl14 184 381 0 362 6 5 1 2 0 8 0 amappl13 176 19 0 19 2 2 0 1 0 8 0 amappl12 168 27819 0 27773 4 1 3 3 0 8 0 amappl11 160 62 0 48 1 0 1 1 0 8 0 amappl10 152 115 0 101 1 0 1 1 0 8 0 amappl9 144 328 0 327 1 0 1 1 0 8 0 amappl8 136 1278 0 1074 8 0 8 8 0 8 0 amappl7 128 156 0 140 2 0 2 2 0 8 0 amappl6 120 912 0 881 2 1 1 2 0 8 0 amappl5 112 930 0 917 1 0 1 1 0 8 0 amappl4 104 1350 0 1295 3 1 2 3 0 8 0 amappl3 96 149686 0 149604 5 2 3 3 0 8 0 amappl2 88 27254 0 27177 3 1 2 3 0 8 0 amappl1 80 105857 0 105295 24 11 13 23 0 8 0 amappl 88 237473 0 237221 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 130 0 0 3 0 3 3 0 8 0 uaddrrnd 24 26092 0 26062 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 26092 0 26062 1 0 1 1 0 8 0 vmmpekpl 168 177454 0 177385 5 1 4 4 0 8 0 vmmpepl 168 1534566 0 1532020 460 313 147 153 0 357 12 vmsppl 464 26091 0 26062 5 1 4 5 0 8 0 rwobjpl 56 356314 0 346604 177 36 141 141 0 8 0 pdppl 4096 52192 0 52124 1379 1309 70 82 0 8 2 pvpl 32 7271995 0 7253310 790 601 189 356 0 265 0 pmappl 248 26091 0 26062 3 1 2 3 0 8 0 extentpl 40 56 0 38 1 0 1 1 0 8 0 phpool 112 2920 0 1935 29 0 29 29 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(ffffffff827a0e01) at panic+0x17b sys/kern/subr_prf.c:198 __assert(ffffffff8281f100,ffffffff82823261,bc,ffffffff827b914b) at __assert+0x29 sys/kern/subr_prf.c:157 unveil_destroy(ffff8000ffff0cb0) at unveil_destroy+0x1a4 sys/kern/kern_unveil.c:188 exit1(ffff8000212b3080,0,0,1) at exit1+0x3d5 sys/kern/kern_exit.c:220 sys_exit(ffff8000212b3080,ffff80002a385bd0,ffff80002a385c20) at sys_exit+0x1a sys/kern/kern_exit.c:89 syscall(ffff80002a385ca0) at syscall+0x5e2 mi_syscall sys/sys/syscall_mi.h:110 [inline] syscall(ffff80002a385ca0) at syscall+0x5e2 sys/arch/amd64/amd64/trap.c:623 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x6f90e3f0a0b0, 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 acpicpu_idle() at acpicpu_idle+0x312 sys/dev/acpi/acpicpu.c:1206 sched_idle(ffff800020d58ff0) at sched_idle+0x41e sys/kern/kern_sched.c:199 end trace frame: 0x0, count: 10 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 acpicpu_idle() at acpicpu_idle+0x312 sys/dev/acpi/acpicpu.c:1206 sched_idle(ffff800020d58ff0) at sched_idle+0x41e sys/kern/kern_sched.c:199 end trace frame: 0x0, count: -5