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(ffffffff8279c7bf) at panic+0x17b sys/kern/subr_prf.c:198 __assert(ffffffff8281f037,ffffffff8282537a,bc,ffffffff827bb2af) at __assert+0x29 sys/kern/subr_prf.c:157 unveil_destroy(ffff8000ffff9928) at unveil_destroy+0x1a4 sys/kern/kern_unveil.c:188 exit1(ffff800021217890,0,0,1) at exit1+0x3d5 sys/kern/kern_exit.c:220 sys_exit(ffff800021217890,ffff80002e3e7780,ffff80002e3e77d0) at sys_exit+0x1a sys/kern/kern_exit.c:89 syscall(ffff80002e3e7850) at syscall+0x5e2 mi_syscall sys/sys/syscall_mi.h:110 [inline] syscall(ffff80002e3e7850) at syscall+0x5e2 sys/arch/amd64/amd64/trap.c:623 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x706fe91752b0, 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(ffffffff8279c7bf) at panic+0x17b sys/kern/subr_prf.c:198 __assert(ffffffff8281f037,ffffffff8282537a,bc,ffffffff827bb2af) at __assert+0x29 sys/kern/subr_prf.c:157 unveil_destroy(ffff8000ffff9928) at unveil_destroy+0x1a4 sys/kern/kern_unveil.c:188 exit1(ffff800021217890,0,0,1) at exit1+0x3d5 sys/kern/kern_exit.c:220 sys_exit(ffff800021217890,ffff80002e3e7780,ffff80002e3e77d0) at sys_exit+0x1a sys/kern/kern_exit.c:89 syscall(ffff80002e3e7850) at syscall+0x5e2 mi_syscall sys/sys/syscall_mi.h:110 [inline] syscall(ffff80002e3e7850) at syscall+0x5e2 sys/arch/amd64/amd64/trap.c:623 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x706fe91752b0, count: -8 ddb{0}> show registers rdi 0 rsi 0x1 rbp 0xffff80002e3e7590 rbx 0xffffffff82bd5b9f cpu_info_full_primary+0x2b9f rdx 0 rcx 0xffff800021217890 rax 0xffffffff82bd4ff0 cpu_info_full_primary+0x1ff0 r8 0 r9 0x8080808080808080 r10 0x21854691f825517 r11 0x5efc98c2f6ae0e16 r12 0xffffffff82bd59a0 cpu_info_full_primary+0x29a0 r13 0 r14 0 r15 0x1 rip 0xffffffff8275560c db_enter+0x1c cs 0x8 rflags 0x246 rsp 0xffff80002e3e7580 ss 0x10 db_enter+0x1c: addq $0x8,%rsp ddb{0}> show proc PROC (syz-executor.0) pid=245766 stat=onproc flags process=1008 proc=2000 pri=32, usrpri=86, nice=20 forw=0xffffffffffffffff, list=0xffff8000212175d8,0xffff80002126a2e8 process=0xffff8000ffff9928 user=0xffff80002e3e2000, vmspace=0xfffffd807ab12010 estcpu=36, cpticks=16, pctcpu=0.0 user=0, sys=1, intr=0 ddb{0}> ps PID TID PPID UID S FLAGS WAIT COMMAND 33910 111334 49410 0 2 0 syz-executor.6 71514 196182 97765 0 2 0 syz-executor.2 94294 227538 30163 0 3 0 futex syz-executor.7 94294 74289 30163 0 3 0x4000000 futex syz-executor.7 94294 136367 30163 0 2 0x4000000 syz-executor.7 18228 142538 87438 0 3 0 futex syz-executor.3 18228 266200 87438 0 2 0x4000000 syz-executor.3 38323 318193 23315 0 2 0x480 syz-executor.1 38323 496517 23315 0 3 0x4000080 fsleep syz-executor.1 38323 318756 23315 0 2 0x4000000 syz-executor.1 97765 325074 7027 0 2 0x482 syz-executor.2 87438 194118 7027 0 2 0x482 syz-executor.3 953 156748 1 0 3 0x100083 ttyin getty 59334 341061 7027 0 2 0x2 syz-executor.5 17749 162987 7027 0 2 0x482 syz-executor.0 23315 463500 7027 0 2 0x482 syz-executor.1 49410 398255 7027 0 2 0x482 syz-executor.6 30163 12152 7027 0 2 0x482 syz-executor.7 80205 468440 7027 0 2 0x2 syz-executor.4 88668 112173 0 0 3 0x14200 bored sosplice 7027 291864 8845 0 3 0x2000082 kqread syz-fuzzer 7027 206403 8845 0 3 0x6000082 thrsleep syz-fuzzer 7027 378844 8845 0 3 0x6000082 thrsleep syz-fuzzer 7027 96131 8845 0 3 0x6000082 thrsleep syz-fuzzer 7027 414271 8845 0 3 0x6000082 wait syz-fuzzer 7027 167407 8845 0 3 0x6000082 wait syz-fuzzer 7027 501819 8845 0 3 0x6000082 thrsleep syz-fuzzer 7027 377198 8845 0 3 0x6000082 wait syz-fuzzer 7027 384449 8845 0 3 0x6000082 wait syz-fuzzer 7027 226418 8845 0 3 0x6000082 thrsleep syz-fuzzer 7027 210 8845 0 3 0x6000082 thrsleep syz-fuzzer 7027 508921 8845 0 3 0x6000082 wait syz-fuzzer 7027 411123 8845 0 3 0x6000082 wait syz-fuzzer 7027 494083 8845 0 3 0x6000082 wait syz-fuzzer 7027 94333 8845 0 3 0x6000082 thrsleep syz-fuzzer 7027 490405 8845 0 3 0x6000082 wait syz-fuzzer 8845 114508 4739 0 3 0x10008a sigsusp ksh 4739 192096 5756 0 3 0x9a kqread sshd 5756 8947 1 0 3 0x88 kqread sshd 84257 151252 51506 74 3 0x1100092 bpf pflogd 51506 308809 1 0 3 0x80 netio pflogd 41987 500496 10348 73 3 0x1100090 kqread syslogd 10348 503801 1 0 3 0x100082 netio syslogd 51423 421409 1 0 3 0x100080 kqread resolvd 35918 430228 11311 77 3 0x100092 kqread dhcpleased 76542 393708 11311 77 3 0x100092 kqread dhcpleased 11311 45107 1 0 3 0x80 kqread dhcpleased 63007 81892 0 0 3 0x14200 bored smr 37084 99059 0 0 2 0x14200 zerothread 61074 327033 0 0 3 0x14200 aiodoned aiodoned 99117 271225 0 0 3 0x14200 syncer update 50471 123745 0 0 3 0x14200 cleaner cleaner 57972 11493 0 0 2 0x14200 reaper 73236 300511 0 0 3 0x14200 pgdaemon pagedaemon 61546 421481 0 0 3 0x14200 bored viomb 60792 343452 0 0 3 0x40014200 acpi0 acpi0 56932 428054 0 0 7 0x40014200 idle1 39817 51982 0 0 3 0x14200 bored softnet3 94737 101419 0 0 3 0x14200 bored softnet2 19492 455489 0 0 3 0x14200 bored softnet1 64977 215245 0 0 3 0x14200 bored softnet0 369 343431 0 0 3 0x14200 bored systqmp 23058 279027 0 0 3 0x14200 bored systq 97222 157414 0 0 2 0x40014200 softclock 67982 70823 0 0 3 0x40014200 idle0 1 261286 0 0 3 0x82 wait init 0 0 -1 0 3 0x10200 scheduler swapper ddb{0}> show all locks Process 33910 (syz-executor.6) thread 0xffff80002126a020 (111334) Process 18228 (syz-executor.3) thread 0xffff800026f46030 (266200) Process 38323 (syz-executor.1) thread 0xffff80002126bb50 (318756) Process 59334 (syz-executor.5) thread 0xffff800022ce6b20 (341061) Process 80205 (syz-executor.4) thread 0xffff800026f47338 (468440) Process 57972 (reaper) thread 0xffff8000211ac830 (11493) ddb{0}> show malloc Type InUse MemUse HighUse Limit Requests Type Lim devbuf 10203 6488K 7192K 78643K 13657 0 pcb 13 13K 15K 78643K 405 0 rtable 241 7K 7K 78643K 756 0 pf 35 10K 10K 78643K 183 0 ifaddr 46 16K 17K 78643K 152 0 ifgroup 60 2K 2K 78643K 273 0 sysctl 2 0K 1K 78643K 8 0 counters 62 36K 36K 78643K 192 0 ioctlops 0 0K 4K 78643K 1620 0 iov 0 0K 16K 78643K 432 0 mount 1 1K 1K 78643K 1 0 log 0 0K 0K 78643K 4 0 vnodes 1447 90K 91K 78643K 3466 0 UFS quota 1 32K 32K 78643K 1 0 UFS mount 5 36K 36K 78643K 5 0 shm 2 1K 9K 78643K 96 0 VM map 2 1K 1K 78643K 2 0 sem 12 1K 1K 78643K 51 0 dirhash 12 2K 2K 78643K 12 0 ACPI 1697 195K 286K 78643K 12548 0 file desc 16 57K 89K 78643K 7284 0 sigio 0 0K 0K 78643K 290 0 proc 74 115K 115K 78643K 1230 0 subproc 104 6K 6K 78643K 247 0 NFS srvsock 1 0K 0K 78643K 1 0 NFS daemon 1 16K 16K 78643K 1 0 ip_moptions 0 0K 0K 78643K 1502 0 in_multi 99 7K 7K 78643K 338 0 ether_multi 1 0K 0K 78643K 12 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 91 413K 413K 78643K 91 0 exec 0 0K 1K 78643K 1365 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 427 94K 106K 78643K 76142 0 UVM aobj 131 6K 6K 78643K 131 0 memdesc 1 4K 4K 78643K 1 0 crypto data 1 1K 1K 78643K 1 0 ip6_options 0 0K 0K 78643K 193 0 NDP 13 0K 1K 78643K 116 0 temp 74 5920K 6000K 78643K 42169 0 kqueue 12 18K 28K 78643K 470 0 SYN cache 2 16K 24K 78643K 3 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 265 0 262 3 2 1 3 0 8 0 rtentry 112 247 0 135 4 0 4 4 0 8 0 unpcb 144 16254 0 16239 82 80 2 10 0 8 1 syncache 296 43 0 43 10 10 0 1 0 8 0 tcpqe 32 118 0 118 7 7 0 1 0 8 0 tcpcb 808 1443 0 1439 58 57 1 17 0 8 0 arp 120 43 0 24 1 0 1 1 0 8 0 inpcb 368 4423 0 4414 93 89 4 16 0 8 3 nd6 136 63 0 38 1 0 1 1 0 8 0 pkpcb 40 43 0 43 3 3 0 1 0 8 0 kcovpl 48 19 0 11 1 0 1 1 0 8 0 ppxss 1256 27 0 27 7 7 0 1 0 8 0 pffrag 232 111 0 111 2 2 0 1 0 482 0 pffrnode 88 111 0 111 2 2 0 1 0 8 0 pffrent 40 354 0 354 3 3 0 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 202 0 191 1 0 1 1 0 8 0 pfstkey 128 202 0 191 2 0 2 2 0 8 0 pfstate 376 202 0 191 7 5 2 5 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 984 0 516 31 1 30 30 0 8 0 art_table 32 985 0 516 4 0 4 4 0 8 0 art_node 16 240 0 138 1 0 1 1 0 8 0 sysvmsgpl 40 21 0 12 1 0 1 1 0 8 0 semupl 112 8 0 8 2 2 0 1 0 8 0 semapl 112 45 0 35 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 10924 0 9444 93 0 93 93 0 8 0 ffsino 272 10924 0 9444 101 1 100 101 0 8 0 nchpl 144 20808 0 20291 63 41 22 63 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 69004 0 69004 12 9 3 6 0 8 3 percpumem 16 109 0 65 1 0 1 1 0 8 0 kstatmem 264 156 0 130 2 0 2 2 0 8 0 scxspl 216 65199 0 65199 18 17 1 8 1 8 1 plimitpl 152 571 0 555 1 0 1 1 0 8 0 sigapl 424 7612 0 7564 10 4 6 8 0 8 0 futexpl 64 63066 0 63064 3 2 1 1 0 8 0 knotepl 120 624 0 0 19 2 17 19 0 8 0 kqueuepl 216 1159 0 1151 14 13 1 5 0 8 0 pipepl 320 1550 0 1522 34 31 3 8 0 8 0 fdescpl 496 7572 0 7543 6 2 4 5 0 8 0 filepl 152 53137 0 52881 111 100 11 22 0 8 1 lockfpl 104 1286 0 1284 3 2 1 2 0 8 0 lockfspl 48 471 0 469 1 0 1 1 0 8 0 sessionpl 144 38 0 21 1 0 1 1 0 8 0 pgrppl 48 124 0 107 1 0 1 1 0 8 0 ucredpl 104 5808 0 5796 1 0 1 1 0 8 0 zombiepl 144 10414 0 10413 1 0 1 1 0 8 0 processpl 1072 7612 0 7564 5 0 5 5 0 8 0 procpl 696 21570 0 21501 14 6 8 10 0 8 0 sosppl 168 69 0 69 13 12 1 1 0 8 1 sockpl 488 20995 0 20970 452 444 8 34 0 8 4 mcl64k 65536 18 0 0 3 0 3 3 0 8 0 mcl16k 16384 16 0 0 2 0 2 2 0 8 0 mcl12k 12288 17 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 33 0 0 3 0 3 3 0 8 0 mcl2k2 2112 6 0 0 1 0 1 1 0 8 0 mcl2k 2048 284 0 0 32 7 25 32 0 8 0 mtagpl 96 197 0 0 5 0 5 5 0 8 0 mbufpl 256 2095 0 0 109 1 108 108 0 8 0 bufpl 288 15407 0 9078 453 0 453 453 0 8 0 anonpl 24 875037 0 863113 204 96 108 112 0 186 9 amapchunkpl 152 239671 0 238793 85 38 47 48 0 158 11 amappl16 200 18963 0 18541 117 83 34 36 0 8 8 amappl15 192 28 0 28 1 1 0 1 0 8 0 amappl14 184 211 0 194 2 1 1 2 0 8 0 amappl13 176 25 0 23 1 0 1 1 0 8 0 amappl12 168 8442 0 8411 3 1 2 2 0 8 0 amappl11 160 68 0 52 1 0 1 1 0 8 0 amappl10 152 58 0 42 1 0 1 1 0 8 0 amappl9 144 280 0 280 12 12 0 1 0 8 0 amappl8 136 473 0 345 5 0 5 5 0 8 0 amappl7 128 104 0 87 2 0 2 2 0 8 0 amappl6 120 412 0 389 2 1 1 2 0 8 0 amappl5 112 347 0 336 1 0 1 1 0 8 0 amappl4 104 822 0 776 4 2 2 4 0 8 0 amappl3 96 47048 0 46959 4 1 3 3 0 8 0 amappl2 88 8106 0 8033 3 1 2 3 0 8 0 amappl1 80 36002 0 35444 24 12 12 23 0 8 0 amappl 88 75310 0 75052 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 130 0 0 3 0 3 3 0 8 0 uaddrrnd 24 7572 0 7542 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 7572 0 7542 1 0 1 1 0 8 0 vmmpekpl 168 66731 0 66654 4 0 4 4 0 8 0 vmmpepl 168 471902 0 469430 306 176 130 138 0 357 14 vmsppl 464 7571 0 7542 5 1 4 5 0 8 0 rwobjpl 56 126391 0 118735 120 8 112 112 0 8 1 pdppl 4096 15152 0 15084 422 352 70 82 0 8 2 pvpl 32 2280273 0 2262139 563 343 220 369 0 265 40 pmappl 248 7571 0 7542 3 1 2 3 0 8 0 extentpl 40 56 0 38 1 0 1 1 0 8 0 phpool 112 1429 0 526 27 1 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(ffffffff8279c7bf) at panic+0x17b sys/kern/subr_prf.c:198 __assert(ffffffff8281f037,ffffffff8282537a,bc,ffffffff827bb2af) at __assert+0x29 sys/kern/subr_prf.c:157 unveil_destroy(ffff8000ffff9928) at unveil_destroy+0x1a4 sys/kern/kern_unveil.c:188 exit1(ffff800021217890,0,0,1) at exit1+0x3d5 sys/kern/kern_exit.c:220 sys_exit(ffff800021217890,ffff80002e3e7780,ffff80002e3e77d0) at sys_exit+0x1a sys/kern/kern_exit.c:89 syscall(ffff80002e3e7850) at syscall+0x5e2 mi_syscall sys/sys/syscall_mi.h:110 [inline] syscall(ffff80002e3e7850) at syscall+0x5e2 sys/arch/amd64/amd64/trap.c:623 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x706fe91752b0, 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