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+0x25: addq $0x8,%rsp TID PID UID PRFLAGS PFLAGS CPU COMMAND db_enter() at db_enter+0x25 sys/arch/amd64/amd64/db_interface.c:437 panic(ffffffff830f3f4b) at panic+0x1e5 sys/kern/subr_prf.c:198 __assert(ffffffff830a7f95,ffffffff83064532,bc,ffffffff830270c9) at __assert+0x29 unveil_destroy(ffff8000ffff71f0) at unveil_destroy+0x1dd sys/kern/kern_unveil.c:188 exit1(ffff80002a1522c8,0,0,1) at exit1+0x60f sys/kern/kern_exit.c:233 sys_exit(ffff80002a1522c8,ffff80003318caa0,ffff80003318c9f0) at sys_exit+0x1a syscall(ffff80003318caa0) at syscall+0xaf8 mi_syscall sys/sys/syscall_mi.h:178 [inline] syscall(ffff80003318caa0) at syscall+0xaf8 sys/arch/amd64/amd64/trap.c:577 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x7f2f84bf4ca0, 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+0x25 sys/arch/amd64/amd64/db_interface.c:437 panic(ffffffff830f3f4b) at panic+0x1e5 sys/kern/subr_prf.c:198 __assert(ffffffff830a7f95,ffffffff83064532,bc,ffffffff830270c9) at __assert+0x29 unveil_destroy(ffff8000ffff71f0) at unveil_destroy+0x1dd sys/kern/kern_unveil.c:188 exit1(ffff80002a1522c8,0,0,1) at exit1+0x60f sys/kern/kern_exit.c:233 sys_exit(ffff80002a1522c8,ffff80003318caa0,ffff80003318c9f0) at sys_exit+0x1a syscall(ffff80003318caa0) at syscall+0xaf8 mi_syscall sys/sys/syscall_mi.h:178 [inline] syscall(ffff80003318caa0) at syscall+0xaf8 sys/arch/amd64/amd64/trap.c:577 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x7f2f84bf4ca0, count: -8 ddb{0}> show registers rdi 0 rsi 0x1 rbp 0xffff80003318c7e0 rbx 0xffffffff834a0dbf cpu_info_full_primary+0x2dbf rdx 0 rcx 0xffff80002a1522c8 rax 0xffffffff8349fff0 cpu_info_full_primary+0x1ff0 r8 0 r9 0x8080808080808080 r10 0xfe5181f6ea8b739c r11 0xdf035d65baced5bf r12 0xffffffff834a0bc0 cpu_info_full_primary+0x2bc0 r13 0 r14 0 r15 0x1 rip 0xffffffff81610e15 db_enter+0x25 cs 0x8 rflags 0x246 rsp 0xffff80003318c7d0 ss 0x10 db_enter+0x25: addq $0x8,%rsp ddb{0}> show proc PROC (syz-executor) tid=253957 pid=1905 tcnt=0 stat=onproc flags process=1001008 proc=2000 runpri=32, usrpri=50, slppri=32, nice=20 wchan=0x0, wmesg=, ps_single=0xffff80002a1522c8 scnt=-1 ecnt=1 forw=0xffffffffffffffff, list=0xffff8000ffff2a40,0xffffffff835f1e20 process=0xffff8000ffff71f0 user=0xffff800033187000, vmspace=0xfffffd806c9d5718 estcpu=36, cpticks=1, pctcpu=0.0, user=0, sys=1, intr=0 ddb{0}> ps PID TID PPID UID S FLAGS WAIT COMMAND 20476 7254 42396 0 3 0x80 fsleep syz-executor 20476 307416 42396 0 3 0x4000080 sbwait syz-executor 88932 47421 69428 0 3 0x80 fsleep syz-executor 88932 456561 69428 0 3 0x4000080 pipewr syz-executor 56931 289137 54331 0 3 0x80 fsleep syz-executor 56931 89228 54331 0 3 0x4000080 pipewr syz-executor 24210 129411 83194 0 3 0x80 fsleep syz-executor 24210 288606 83194 0 3 0x4000080 kqpoll syz-executor 66567 477510 61564 0 3 0x80 fsleep syz-executor 66567 162065 61564 0 3 0x4000080 sbwait syz-executor 32129 166251 57482 0 3 0x80 fsleep syz-executor 32129 269864 57482 0 3 0x4000080 fsleep syz-executor 32129 521618 57482 0 3 0x4000080 fsleep syz-executor 32129 408969 57482 0 3 0x4000080 rest syz-executor 69428 248200 54859 0 3 0x82 nanoslp syz-executor 42396 510372 54859 0 2 0x482 syz-executor 22328 5145 0 0 3 0x14280 nfsidl nfsio 65577 159943 0 0 3 0x14280 nfsidl nfsio 43543 367165 0 0 3 0x14280 nfsidl nfsio 92411 281181 0 0 3 0x14280 nfsidl nfsio 50800 421625 0 0 3 0x14280 nfsidl nfsio 95337 494686 0 0 3 0x14280 nfsidl nfsio 27504 423855 0 0 3 0x14280 nfsidl nfsio 93557 446684 0 0 3 0x14280 nfsidl nfsio 5891 248551 0 0 3 0x14280 nfsidl nfsio 20899 458510 0 0 3 0x14280 nfsidl nfsio 69028 278866 0 0 3 0x14280 nfsidl nfsio 59452 518055 0 0 3 0x14280 nfsidl nfsio 58356 361747 0 0 3 0x14280 nfsidl nfsio 64454 91928 0 0 3 0x14280 nfsidl nfsio 82872 434992 0 0 3 0x14280 nfsidl nfsio 83681 477401 0 0 3 0x14280 nfsidl nfsio 8332 243814 0 0 3 0x14280 nfsidl nfsio 10800 523905 0 0 3 0x14280 nfsidl nfsio 64733 420513 0 0 3 0x14280 nfsidl nfsio 50404 4516 0 0 3 0x14280 nfsidl nfsio 30371 444783 54859 0 2 0x482 syz-executor 83388 500703 0 0 3 0x14200 acct acct 45354 164685 1 0 3 0x100083 ttyin getty 57482 285735 54859 0 2 0x482 syz-executor 54331 106917 54859 0 3 0x82 nanoslp syz-executor 76730 7639 0 0 3 0x14200 bored sosplice 25493 45751 54859 0 3 0x82 nanoslp syz-executor 61564 377651 54859 0 3 0x82 nanoslp syz-executor 83194 353070 54859 0 3 0x82 nanoslp syz-executor 54859 137345 25276 0 3 0x82 kqread syz-executor 25276 303615 90622 0 3 0x10008a sigsusp ksh 90622 184935 50293 0 3 0x98 kqread sshd-session 50293 255190 43215 0 3 0x92 kqread sshd-session 43215 396683 1 0 3 0x88 kqread sshd 28627 216963 87672 74 3 0x1100092 bpf pflogd 87672 357244 1 0 3 0x80 sbwait pflogd 27464 42532 51392 73 3 0x1100090 kqread syslogd 51392 31440 1 0 3 0x100082 sbwait syslogd 82639 284943 1 0 3 0x100080 kqread resolvd 46779 437717 19046 77 3 0x100092 kqread dhcpleased 30568 244708 19046 77 3 0x100092 kqread dhcpleased 19046 337461 1 0 3 0x80 kqread dhcpleased 44822 265496 0 0 3 0x14200 bored smr 78704 507016 0 0 3 0x14200 pgzero zerothread 47271 92667 0 0 3 0x14200 aiodoned aiodoned 8143 476191 0 0 3 0x14200 syncer update 78453 36240 0 0 3 0x14200 cleaner cleaner 76518 114095 0 0 2 0x14200 reaper 89426 201218 0 0 3 0x14200 pgdaemon pagedaemon 71901 305879 0 0 3 0x14200 bored viomb 70746 169071 0 0 3 0x40014200 acpi0 acpi0 10118 61917 0 0 7 0x40014200 idle1 12594 147976 0 0 3 0x14200 bored softnet3 15707 205557 0 0 3 0x14200 bored softnet2 22474 510413 0 0 3 0x14200 bored softnet1 60003 192615 0 0 3 0x14200 bored softnet0 44653 510927 0 0 3 0x14200 bored systqmp 35694 509968 0 0 3 0x14200 bored systq 55700 471433 0 0 2 0x14200 softclockmp 85932 454695 0 0 2 0x40014200 softclock 55948 463655 0 0 3 0x40014200 idle0 1 476486 0 0 3 0x82 wait init 0 0 -1 0 3 0x10200 scheduler swapper ddb{0}> show all locks Process 76518 (reaper) thread 0xffff800029fd8cb0 (114095) ddb{0}> show malloc Type InUse MemUse HighUse Limit Requests Type Lim devbuf 10240 11460K 11779K 166960K 17077 0 pcb 17 19K 21K 166960K 874 0 rtable 195 7K 7K 166960K 937 0 pf 47 20K 23K 166960K 281 0 ifaddr 41 6K 7K 166960K 141 0 ifgroup 72 3K 3K 166960K 209 0 sysctl 4 1K 2K 166960K 11 0 counters 72 37K 37K 166960K 158 0 ioctlops 0 0K 4K 166960K 2136 0 iov 0 0K 16K 166960K 299 0 mount 1 1K 1K 166960K 1 0 log 0 0K 0K 166960K 4 0 vnodes 1578 99K 100K 166960K 4787 0 UFS quota 1 32K 32K 166960K 1 0 UFS mount 5 36K 36K 166960K 5 0 shm 2 1K 9K 166960K 66 0 VM map 2 1K 1K 166960K 2 0 sem 23 11K 11K 166960K 62 0 dirhash 12 2K 2K 166960K 84 0 ACPI 1690 195K 286K 166960K 12468 0 file desc 17 61K 93K 166960K 3596 0 sigio 0 0K 0K 166960K 161 0 proc 77 115K 128K 166960K 1092 0 subproc 104 6K 6K 166960K 208 0 NFS srvsock 1 0K 0K 166960K 1 0 NFS daemon 1 16K 16K 166960K 1 0 ip_moptions 1 0K 0K 166960K 558 0 in_multi 77 5K 7K 166960K 335 0 ether_multi 1 0K 0K 166960K 26 0 mrt 1 0K 0K 166960K 9 0 ISOFS mount 1 32K 32K 166960K 1 0 MSDOSFS mount 1 16K 16K 166960K 1 0 ttys 175 784K 784K 166960K 175 0 exec 0 0K 1K 166960K 1151 0 fusefs mount 1 32K 32K 166960K 1 0 pfkey data 0 0K 0K 166960K 4 0 tdb 3 0K 0K 166960K 3 0 VM swap 8 62K 64K 166960K 10 0 UVM amap 254 74K 87K 166960K 35590 0 UVM aobj 131 4K 5K 166960K 143 0 pinsyscall 43 86K 103K 166960K 4914 0 memdesc 1 4K 4K 166960K 1 0 crypto data 1 1K 1K 166960K 1 0 ip6_options 0 0K 1K 166960K 293 0 NDP 16 0K 2K 166960K 98 0 temp 83 6828K 6956K 166960K 119210 0 kqueue 13 20K 32K 166960K 618 0 SYN cache 2 10K 18K 166960K 3 0 ddb{0}> show all pools Name Size Requests Fail Releases Pgreq Pgrel Npage Hiwat Minpg Maxpg Idle plcache 128 24 0 0 1 0 1 1 0 8 0 rtpcb 120 465 0 462 6 3 3 3 0 8 2 rtentry 112 299 0 217 4 0 4 4 0 8 0 unpcb 144 3192 0 3170 32 27 5 6 0 8 4 syncache 336 8 0 8 5 5 0 1 0 8 0 tcpqe 32 1 0 1 1 1 0 1 0 8 0 tcpcb 808 1534 0 1528 46 42 4 14 0 8 3 arp 120 62 0 48 1 0 1 1 0 8 0 inpcb 336 5247 0 5239 53 44 9 13 0 8 8 nd6 136 64 0 43 1 0 1 1 0 8 0 pkpcb 40 43 0 43 7 6 1 1 0 8 1 kcovpl 48 16 0 8 1 0 1 1 0 8 0 ppxss 1168 24 0 24 8 8 0 1 0 8 0 pfstscr 40 3 0 2 1 0 1 1 0 8 0 pffrag 232 22 0 15 1 0 1 1 0 482 0 pffrnode 88 21 0 15 1 0 1 1 0 8 0 pffrent 40 48 0 41 1 0 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 pfrktable 1344 1 0 1 1 1 0 1 0 8 0 pfanchor 1288 7 0 0 1 0 1 1 0 8 0 pftag 88 1 0 0 1 0 1 1 0 8 0 pfstitem 24 296 0 172 1 0 1 1 0 8 0 pfstkey 128 307 0 182 5 0 5 5 0 8 0 pfstate 376 299 0 178 15 1 14 15 0 8 0 pfrule 1344 77 0 32 5 1 4 4 0 8 0 art_heap8 4096 4 0 0 4 0 4 4 0 8 0 art_heap4 256 1254 0 878 35 11 24 29 0 8 0 art_table 32 1258 0 878 4 0 4 4 0 8 0 art_node 16 288 0 214 1 0 1 1 0 8 0 sysvmsgpl 40 85 0 48 1 0 1 1 0 8 0 semupl 112 2 0 2 2 2 0 1 0 8 0 semapl 112 55 0 34 1 0 1 1 0 8 0 shmpl 112 140 0 12 4 0 4 4 0 8 0 dirhash 1024 66 0 49 3 0 3 3 0 8 0 dino2pl 256 7696 0 6172 96 0 96 96 0 8 0 ffsino 272 7696 0 6172 102 0 102 102 0 8 0 nchpl 144 12956 0 12373 64 40 24 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 49979 0 49979 8 7 1 2 0 8 1 percpumem 16 93 0 43 1 0 1 1 0 8 0 kstatmem 264 118 0 86 7 4 3 3 0 8 0 scsiplug 72 15 0 15 6 6 0 1 0 8 0 scxspl 216 42616 0 42616 20 19 1 8 1 8 1 plimitpl 152 1053 0 1036 1 0 1 1 0 8 0 sigapl 424 3935 0 3863 12 3 9 9 0 8 0 futexpl 64 54706 0 54698 1 0 1 1 0 8 0 knotepl 120 613 0 0 17 0 17 17 0 8 0 kqueuepl 216 1264 0 1254 17 16 1 6 0 8 0 pipepl 320 820 0 791 14 11 3 8 0 8 0 fdescpl 496 3869 0 3838 5 0 5 5 0 8 0 filepl 152 31888 0 31632 62 44 18 21 0 8 5 lockfpl 104 1985 0 1983 6 5 1 4 0 8 0 lockfspl 48 577 0 575 2 1 1 2 0 8 0 sessionpl 144 39 0 30 1 0 1 1 0 8 0 pgrppl 48 164 0 147 1 0 1 1 0 8 0 ucredpl 104 6157 0 6142 1 0 1 1 0 8 0 zombiepl 144 4328 0 4326 3 2 1 1 0 8 0 processpl 1160 3935 0 3863 6 0 6 6 0 8 0 procpl 648 9610 0 9528 9 1 8 8 0 8 0 srpgc 96 27 0 27 8 7 1 1 0 8 1 sosppl 168 31 0 31 9 9 0 1 0 8 0 sockpl 664 9020 0 8987 92 81 11 20 0 8 8 mcl64k 65536 3 0 0 1 0 1 1 0 8 0 mcl16k 16384 2 0 0 1 0 1 1 0 8 0 mcl12k 12288 2 0 0 1 0 1 1 0 8 0 mcl9k 9216 3 0 0 1 0 1 1 0 8 0 mcl8k 8192 7 0 0 1 0 1 1 0 8 0 mcl4k 4096 149 0 0 19 0 19 19 0 8 0 mcl2k2 2112 3 0 0 1 0 1 1 0 8 0 mcl2k 2048 32 0 0 4 0 4 4 0 8 0 mtagpl 96 100 0 0 3 0 3 3 0 8 0 mbufpl 256 1333 0 0 81 0 81 81 0 8 0 bufpl 280 14805 0 8631 442 0 442 442 0 8 0 anonpl 24 577187 0 570651 188 135 53 85 0 185 1 amapchunkpl 152 117773 0 117124 64 37 27 34 0 158 0 amappl16 200 14714 0 14620 120 109 11 27 0 8 1 amappl15 192 68 0 68 1 1 0 1 0 8 0 amappl14 184 149 0 137 1 0 1 1 0 8 0 amappl13 176 17 0 17 1 1 0 1 0 8 0 amappl12 168 4664 0 4632 4 2 2 3 0 8 0 amappl11 160 61 0 47 1 0 1 1 0 8 0 amappl10 152 12 0 12 4 4 0 1 0 8 0 amappl9 144 147 0 147 1 1 0 1 0 8 0 amappl8 136 51 0 48 1 0 1 1 0 8 0 amappl7 128 158 0 145 1 0 1 1 0 8 0 amappl6 120 261 0 258 1 0 1 1 0 8 0 amappl5 112 177 0 165 1 0 1 1 0 8 0 amappl4 104 381 0 362 1 0 1 1 0 8 0 amappl3 96 21575 0 21473 3 0 3 3 0 8 0 amappl2 88 4233 0 4144 3 0 3 3 0 8 0 amappl1 80 19891 0 19323 15 1 14 14 0 8 0 amappl 88 34836 0 34644 5 0 5 5 0 92 0 dma32768 32768 1 0 1 1 1 0 1 0 8 0 dma8192 8192 1 0 1 1 1 0 1 0 8 0 dma4096 4096 4 0 4 4 4 0 1 0 8 0 dma1024 1024 1 0 0 1 0 1 1 0 8 0 dma512 512 1 0 1 1 1 0 1 0 8 0 dma256 256 7 0 7 2 2 0 1 0 8 0 dma128 128 260 0 260 6 6 0 1 0 8 0 dma64 64 10 0 10 4 4 0 1 0 8 0 dma32 32 7 0 7 1 1 0 1 0 8 0 dma16 16 25 0 24 1 0 1 1 0 8 0 aobjpl 72 142 0 12 3 0 3 3 0 8 0 uaddrrnd 24 3869 0 3837 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 3869 0 3837 1 0 1 1 0 8 0 vmmpekpl 168 29400 0 29337 4 0 4 4 0 8 0 vmmpepl 168 241976 0 239974 154 59 95 106 0 357 1 vmsppl 448 3868 0 3837 6 2 4 5 0 8 0 rwobjpl 56 69220 0 62144 112 8 104 106 0 8 0 pdppl 4096 7745 0 7674 143 70 73 85 0 8 2 pvpl 32 21017 0 0 169 0 169 169 0 265 0 pmappl 248 3868 0 3837 3 0 3 3 0 8 0 extentpl 40 55 0 38 1 0 1 1 0 8 0 phpool 112 626 0 198 13 0 13 13 0 8 0 ddb{0}> machine ddbcpu 0 Invalid cpu 0 ddb{0}> trace db_enter() at db_enter+0x25 sys/arch/amd64/amd64/db_interface.c:437 panic(ffffffff830f3f4b) at panic+0x1e5 sys/kern/subr_prf.c:198 __assert(ffffffff830a7f95,ffffffff83064532,bc,ffffffff830270c9) at __assert+0x29 unveil_destroy(ffff8000ffff71f0) at unveil_destroy+0x1dd sys/kern/kern_unveil.c:188 exit1(ffff80002a1522c8,0,0,1) at exit1+0x60f sys/kern/kern_exit.c:233 sys_exit(ffff80002a1522c8,ffff80003318caa0,ffff80003318c9f0) at sys_exit+0x1a syscall(ffff80003318caa0) at syscall+0xaf8 mi_syscall sys/sys/syscall_mi.h:178 [inline] syscall(ffff80003318caa0) at syscall+0xaf8 sys/arch/amd64/amd64/trap.c:577 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x7f2f84bf4ca0, count: -8 ddb{0}> machine ddbcpu 1 Stopped at x86_ipi_db+0x27: addq $0x8,%rsp x86_ipi_db(ffff800029b7bff0) at x86_ipi_db+0x27 sys/arch/amd64/amd64/db_interface.c:393 x86_ipi_handler() at x86_ipi_handler+0xd9 sys/arch/amd64/amd64/ipi.c:106 Xresume_lapic_ipi() at Xresume_lapic_ipi+0x27 acpicpu_idle() at acpicpu_idle+0x41e sys/dev/acpi/acpicpu.c:1218 sched_idle(ffff800029b7bff0) at sched_idle+0x558 sys/kern/kern_sched.c:182 end trace frame: 0x0, count: 10 ddb{1}> trace x86_ipi_db(ffff800029b7bff0) at x86_ipi_db+0x27 sys/arch/amd64/amd64/db_interface.c:393 x86_ipi_handler() at x86_ipi_handler+0xd9 sys/arch/amd64/amd64/ipi.c:106 Xresume_lapic_ipi() at Xresume_lapic_ipi+0x27 acpicpu_idle() at acpicpu_idle+0x41e sys/dev/acpi/acpicpu.c:1218 sched_idle(ffff800029b7bff0) at sched_idle+0x558 sys/kern/kern_sched.c:182 end trace frame: 0x0, count: -5