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(ffffffff827a5b43) at panic+0x17b sys/kern/subr_prf.c:198 __assert(ffffffff828207b7,ffffffff8282550b,bc,ffffffff827bb8de) at __assert+0x29 sys/kern/subr_prf.c:157 unveil_destroy(ffff800022b0e1a0) at unveil_destroy+0x1a4 sys/kern/kern_unveil.c:188 exit1(ffff800021277b90,0,0,1) at exit1+0x3d5 sys/kern/kern_exit.c:220 sys_exit(ffff800021277b90,ffff800029181170,ffff8000291811c0) at sys_exit+0x1a sys/kern/kern_exit.c:89 syscall(ffff800029181240) at syscall+0x5e2 mi_syscall sys/sys/syscall_mi.h:110 [inline] syscall(ffff800029181240) at syscall+0x5e2 sys/arch/amd64/amd64/trap.c:623 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x7a4375ee14e0, 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(ffffffff827a5b43) at panic+0x17b sys/kern/subr_prf.c:198 __assert(ffffffff828207b7,ffffffff8282550b,bc,ffffffff827bb8de) at __assert+0x29 sys/kern/subr_prf.c:157 unveil_destroy(ffff800022b0e1a0) at unveil_destroy+0x1a4 sys/kern/kern_unveil.c:188 exit1(ffff800021277b90,0,0,1) at exit1+0x3d5 sys/kern/kern_exit.c:220 sys_exit(ffff800021277b90,ffff800029181170,ffff8000291811c0) at sys_exit+0x1a sys/kern/kern_exit.c:89 syscall(ffff800029181240) at syscall+0x5e2 mi_syscall sys/sys/syscall_mi.h:110 [inline] syscall(ffff800029181240) at syscall+0x5e2 sys/arch/amd64/amd64/trap.c:623 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x7a4375ee14e0, count: -8 ddb{0}> show registers rdi 0 rsi 0x1 rbp 0xffff800029180f80 rbx 0xffffffff82c46b9f cpu_info_full_primary+0x2b9f rdx 0 rcx 0xffff800021277b90 rax 0xffffffff82c45ff0 cpu_info_full_primary+0x1ff0 r8 0x101010101010101 r9 0x8080808080808080 r10 0xd28246ca6a070745 r11 0xfa1b91e2f9530f8 r12 0xffffffff82c469a0 cpu_info_full_primary+0x29a0 r13 0 r14 0 r15 0x1 rip 0xffffffff81b9cdac db_enter+0x1c cs 0x8 rflags 0x246 rsp 0xffff800029180f70 ss 0x10 db_enter+0x1c: addq $0x8,%rsp ddb{0}> show proc PROC (syz-executor.4) pid=270037 stat=onproc flags process=1008 proc=2000 pri=32, usrpri=86, nice=20 forw=0xffffffffffffffff, list=0xffff8000212765d0,0xffff800021279088 process=0xffff800022b0e1a0 user=0xffff80002917c000, vmspace=0xfffffd806efc5918 estcpu=36, cpticks=13, pctcpu=0.0 user=0, sys=1, intr=0 ddb{0}> ps PID TID PPID UID S FLAGS WAIT COMMAND 97102 288495 29329 0 2 0 syz-executor.6 18767 357665 61406 0 2 0 syz-executor.0 18767 108361 61406 0 2 0x4000000 syz-executor.0 27127 189685 889 -1 2 0x10 syz-executor.7 27127 126951 889 -1 3 0x4000090 fsleep syz-executor.7 51180 206155 53658 0 2 0 syz-executor.2 51180 515411 53658 0 2 0x4000080 syz-executor.2 51180 475332 53658 0 3 0x4000080 lockf syz-executor.2 51180 117032 53658 0 3 0x4000080 fsleep syz-executor.2 51180 165766 53658 0 2 0x4000000 syz-executor.2 61406 162553 15114 0 3 0x82 nanoslp syz-executor.0 889 443478 15114 0 3 0x82 nanoslp syz-executor.7 21993 330418 15114 0 3 0x82 nanoslp syz-executor.4 53658 199907 15114 0 3 0x82 nanoslp syz-executor.2 83940 451370 15114 0 3 0x82 nanoslp syz-executor.3 72714 39938 15114 0 2 0x2 syz-executor.5 48916 243670 0 0 3 0x14200 acct acct 29329 388814 15114 0 3 0x82 nanoslp syz-executor.6 81422 129893 15114 0 2 0x2 syz-executor.1 83671 81701 0 0 3 0x14280 nfsidl nfsio 79576 303842 0 0 3 0x14280 nfsidl nfsio 12089 197094 0 0 3 0x14280 nfsidl nfsio 66203 134490 0 0 3 0x14280 nfsidl nfsio 12960 206534 0 0 3 0x14280 nfsidl nfsio 58780 440762 0 0 3 0x14280 nfsidl nfsio 41364 50889 0 0 3 0x14280 nfsidl nfsio 91434 406463 0 0 3 0x14280 nfsidl nfsio 16978 407313 0 0 3 0x14280 nfsidl nfsio 1982 283859 0 0 3 0x14280 nfsidl nfsio 96047 112281 0 0 3 0x14280 nfsidl nfsio 51852 78339 0 0 3 0x14280 nfsidl nfsio 31500 10987 0 0 3 0x14280 nfsidl nfsio 72865 127094 0 0 3 0x14280 nfsidl nfsio 87830 493124 0 0 3 0x14280 nfsidl nfsio 58519 171175 0 0 3 0x14280 nfsidl nfsio 45186 34527 0 0 3 0x14280 nfsidl nfsio 14950 261524 0 0 3 0x14280 nfsidl nfsio 17671 14939 0 0 3 0x14280 nfsidl nfsio 50276 174747 0 0 3 0x14280 nfsidl nfsio 15500 218598 0 0 3 0x14200 bored sosplice 15114 310439 60185 0 3 0x2000082 wait syz-fuzzer 15114 422347 60185 0 3 0x6000082 thrsleep syz-fuzzer 15114 508856 60185 0 3 0x6000082 wait syz-fuzzer 15114 89332 60185 0 3 0x6000082 wait syz-fuzzer 15114 507147 60185 0 3 0x6000082 thrsleep syz-fuzzer 15114 41635 60185 0 3 0x6000082 thrsleep syz-fuzzer 15114 355573 60185 0 3 0x6000082 wait syz-fuzzer 15114 433702 60185 0 3 0x6000082 kqread syz-fuzzer 15114 22542 60185 0 3 0x6000082 wait syz-fuzzer 15114 467364 60185 0 3 0x6000082 thrsleep syz-fuzzer 15114 81538 60185 0 3 0x6000082 thrsleep syz-fuzzer 15114 502253 60185 0 3 0x6000082 thrsleep syz-fuzzer 15114 515583 60185 0 3 0x6000082 wait syz-fuzzer 15114 188917 60185 0 3 0x6000082 thrsleep syz-fuzzer 15114 251905 60185 0 3 0x6000082 wait syz-fuzzer 15114 255017 60185 0 3 0x6000082 wait syz-fuzzer 15114 115219 60185 0 3 0x6000082 thrsleep syz-fuzzer 60185 392615 70863 0 3 0x10008a sigsusp ksh 70863 88767 76002 0 3 0x9a kqread sshd 60972 45706 1 0 3 0x100083 ttyin getty 76002 480840 1 0 3 0x88 kqread sshd 45005 512926 40364 74 3 0x1100092 bpf pflogd 40364 385697 1 0 3 0x80 netio pflogd 82663 432044 85586 73 3 0x1100090 kqread syslogd 85586 181944 1 0 3 0x100082 netio syslogd 26793 350480 1 0 3 0x100080 kqread resolvd 84600 272174 78843 77 3 0x100092 kqread dhcpleased 87732 520482 78843 77 3 0x100092 kqread dhcpleased 78843 428820 1 0 3 0x80 kqread dhcpleased 95104 375484 0 0 3 0x14200 bored smr 31691 30386 0 0 2 0x14200 zerothread 7837 247810 0 0 3 0x14200 aiodoned aiodoned 39553 349175 0 0 3 0x14200 syncer update 84052 319226 0 0 3 0x14200 cleaner cleaner 83824 401172 0 0 2 0x14200 reaper 49257 183784 0 0 3 0x14200 pgdaemon pagedaemon 58606 250297 0 0 3 0x14200 bored viomb 43064 461110 0 0 3 0x40014200 acpi0 acpi0 13670 492148 0 0 7 0x40014200 idle1 14845 18522 0 0 3 0x14200 bored softnet3 56039 95725 0 0 3 0x14200 bored softnet2 2383 38824 0 0 3 0x14200 bored softnet1 9218 115941 0 0 3 0x14200 bored softnet0 83045 382267 0 0 3 0x14200 bored systqmp 14910 131905 0 0 3 0x14200 bored systq 96863 518488 0 0 2 0x40014200 softclock 41427 141293 0 0 3 0x40014200 idle0 1 382605 0 0 3 0x82 wait init 0 0 -1 0 3 0x10200 scheduler swapper ddb{0}> show all locks Process 18767 (syz-executor.0) thread 0xffff8000212a4bc8 (108361) Process 51180 (syz-executor.2) thread 0xffff8000212a5138 (165766) Process 72714 (syz-executor.5) thread 0xffff800021234858 (39938) Process 81422 (syz-executor.1) thread 0xffff800021235b60 (129893) Process 83824 (reaper) thread 0xffff8000211ad058 (401172) ddb{0}> show malloc Type InUse MemUse HighUse Limit Requests Type Lim devbuf 10203 6484K 7002K 78643K 20383 0 pcb 13 16K 18K 78643K 735 0 rtable 239 7K 7K 78643K 1576 0 pf 35 10K 10K 78643K 238 0 ifaddr 46 16K 17K 78643K 222 0 ifgroup 60 2K 2K 78643K 368 0 sysctl 3 1K 1K 78643K 3 0 counters 62 36K 36K 78643K 224 0 ioctlops 0 0K 4K 78643K 1796 0 iov 0 0K 24K 78643K 2667 0 mount 1 1K 1K 78643K 1 0 log 0 0K 0K 78643K 4 0 vnodes 1547 97K 97K 78643K 8548 0 UFS quota 1 32K 32K 78643K 1 0 UFS mount 5 36K 36K 78643K 5 0 shm 2 1K 5K 78643K 88 0 VM map 2 1K 1K 78643K 2 0 sem 12 0K 0K 78643K 7082 0 dirhash 12 2K 2K 78643K 12 0 ACPI 1697 195K 286K 78643K 12548 0 file desc 16 57K 89K 78643K 17238 0 sigio 0 0K 0K 78643K 222 0 proc 74 115K 164K 78643K 1753 0 subproc 104 6K 10K 78643K 567 0 NFS srvsock 1 0K 0K 78643K 1 0 NFS daemon 1 16K 16K 78643K 1 0 ip_moptions 0 0K 0K 78643K 283 0 in_multi 99 7K 7K 78643K 461 0 ether_multi 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 2464 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 455 97K 110K 78643K 160864 0 UVM aobj 131 4K 5K 78643K 141 0 memdesc 1 4K 4K 78643K 1 0 crypto data 1 1K 1K 78643K 1 0 ip6_options 0 0K 0K 78643K 169 0 NDP 13 0K 2K 78643K 168 0 temp 75 5920K 6052K 78643K 123818 0 kqueue 12 18K 37K 78643K 7620 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 941 0 938 9 8 1 3 0 8 0 rtentry 112 512 0 401 4 0 4 4 0 8 0 unpcb 144 18897 0 18880 153 152 1 11 0 8 0 syncache 296 59 0 59 14 14 0 1 0 8 0 tcpqe 32 84 0 84 7 7 0 1 0 8 0 tcpcb 808 2061 0 2057 99 98 1 14 0 8 0 arp 120 79 0 61 1 0 1 1 0 8 0 inpcb 368 9257 0 9250 178 177 1 13 0 8 0 nd6 136 117 0 92 1 0 1 1 0 8 0 pkpcb 40 214 0 214 4 4 0 2 0 8 0 kcovpl 48 37 0 29 1 0 1 1 0 8 0 ppxss 1256 23 0 23 6 5 1 1 0 8 1 pffrag 232 43 0 43 5 5 0 1 0 482 0 pffrnode 88 43 0 43 5 5 0 1 0 8 0 pffrent 40 214 0 214 5 5 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 243 0 239 1 0 1 1 0 8 0 pfstkey 128 243 0 239 1 0 1 1 0 8 0 pfstate 376 243 0 239 10 9 1 3 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 1786 0 1325 35 5 30 30 0 8 0 art_table 32 1787 0 1325 4 0 4 4 0 8 0 art_node 16 438 0 337 1 0 1 1 0 8 0 sysvmsgpl 40 38 0 0 1 0 1 1 0 8 0 semupl 112 1 0 1 1 1 0 1 0 8 0 semapl 112 7079 0 7069 1 0 1 1 0 8 0 shmpl 112 138 0 10 4 0 4 4 0 8 0 dirhash 1024 17 0 0 3 0 3 3 0 8 0 dino2pl 256 24138 0 22599 97 0 97 97 0 8 0 ffsino 272 24138 0 22599 103 0 103 103 0 8 0 nchpl 144 49323 0 48797 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 167119 0 167118 5 2 3 3 0 8 2 percpumem 16 125 0 81 1 0 1 1 0 8 0 kstatmem 264 188 0 162 2 0 2 2 0 8 0 scxspl 216 144503 0 144503 24 23 1 8 1 8 1 plimitpl 152 645 0 629 1 0 1 1 0 8 0 sigapl 424 17523 0 17454 11 3 8 9 0 8 0 futexpl 64 174279 0 174277 1 0 1 1 0 8 0 knotepl 120 912 0 0 22 7 15 17 0 8 1 kqueuepl 216 18671 0 18663 165 164 1 11 0 8 0 pipepl 320 3552 0 3524 99 96 3 8 0 8 0 fdescpl 496 17476 0 17447 7 3 4 5 0 8 0 filepl 152 137823 0 137575 228 216 12 24 0 8 0 lockfpl 104 19547 0 19539 18 17 1 2 0 8 0 lockfspl 48 3203 0 3197 1 0 1 1 0 8 0 sessionpl 144 53 0 36 1 0 1 1 0 8 0 pgrppl 48 1874 0 1857 1 0 1 1 0 8 0 ucredpl 104 15466 0 15448 1 0 1 1 0 8 0 zombiepl 144 18357 0 18353 2 1 1 1 0 8 0 processpl 1072 17523 0 17454 5 0 5 5 0 8 0 procpl 696 42844 0 42748 31 21 10 11 0 8 0 sosppl 168 79 0 79 16 16 0 1 0 8 0 sockpl 488 29453 0 29426 693 688 5 36 0 8 1 mcl64k 65536 5 0 0 1 0 1 1 0 8 0 mcl16k 16384 3 0 0 1 0 1 1 0 8 0 mcl12k 12288 8 0 0 1 0 1 1 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 42 0 0 6 0 6 6 0 8 0 mcl2k2 2112 1 0 0 1 0 1 1 0 8 0 mcl2k 2048 295 0 0 31 9 22 31 0 8 0 mtagpl 96 336 0 0 9 6 3 9 0 8 0 mbufpl 256 2481 0 0 110 0 110 110 0 8 0 bufpl 288 40731 0 34405 454 1 453 453 0 8 0 anonpl 24 2838576 0 2823362 238 127 111 131 0 186 0 amapchunkpl 152 510246 0 509305 116 77 39 50 0 158 0 amappl16 200 106929 0 106348 410 378 32 57 0 8 0 amappl15 192 26 0 24 2 1 1 1 0 8 0 amappl14 184 248 0 234 2 1 1 2 0 8 0 amappl13 176 17 0 17 2 2 0 1 0 8 0 amappl12 168 18608 0 18574 3 1 2 2 0 8 0 amappl11 160 73 0 57 1 0 1 1 0 8 0 amappl10 152 64 0 50 1 0 1 1 0 8 0 amappl9 144 236 0 235 1 0 1 1 0 8 0 amappl8 136 945 0 772 7 0 7 7 0 8 0 amappl7 128 107 0 90 2 0 2 2 0 8 0 amappl6 120 566 0 539 2 1 1 2 0 8 0 amappl5 112 518 0 506 1 0 1 1 0 8 0 amappl4 104 944 0 895 3 1 2 3 0 8 0 amappl3 96 100750 0 100663 4 1 3 3 0 8 0 amappl2 88 18112 0 18033 3 1 2 3 0 8 0 amappl1 80 72924 0 72370 25 12 13 23 0 8 0 amappl 88 159537 0 159278 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 140 0 10 3 0 3 3 0 8 0 uaddrrnd 24 17475 0 17446 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 17475 0 17446 1 0 1 1 0 8 0 vmmpekpl 168 123235 0 123163 4 0 4 4 0 8 0 vmmpepl 168 1093846 0 1091170 552 424 128 190 0 357 0 vmsppl 464 17475 0 17446 6 2 4 5 0 8 0 rwobjpl 56 312113 0 304240 135 20 115 117 0 8 0 pdppl 4096 34958 0 34892 872 802 70 82 0 8 4 pvpl 32 5877659 0 5856220 577 382 195 357 0 265 0 pmappl 248 17475 0 17446 4 1 3 3 0 8 0 extentpl 40 56 0 38 1 0 1 1 0 8 0 phpool 112 2007 0 1101 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(ffffffff827a5b43) at panic+0x17b sys/kern/subr_prf.c:198 __assert(ffffffff828207b7,ffffffff8282550b,bc,ffffffff827bb8de) at __assert+0x29 sys/kern/subr_prf.c:157 unveil_destroy(ffff800022b0e1a0) at unveil_destroy+0x1a4 sys/kern/kern_unveil.c:188 exit1(ffff800021277b90,0,0,1) at exit1+0x3d5 sys/kern/kern_exit.c:220 sys_exit(ffff800021277b90,ffff800029181170,ffff8000291811c0) at sys_exit+0x1a sys/kern/kern_exit.c:89 syscall(ffff800029181240) at syscall+0x5e2 mi_syscall sys/sys/syscall_mi.h:110 [inline] syscall(ffff800029181240) at syscall+0x5e2 sys/arch/amd64/amd64/trap.c:623 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x7a4375ee14e0, 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