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 386809 76999 0 0 0 0 syz-executor db_enter() at db_enter+0x25 sys/arch/amd64/amd64/db_interface.c:437 panic(ffffffff8343e9eb) at panic+0x1e5 sys/kern/subr_prf.c:198 __assert(ffffffff833e8586,ffffffff833a05c5,bc,ffffffff8335aada) at __assert+0x29 unveil_destroy(ffff80002a3614a0) at unveil_destroy+0x1dd sys/kern/kern_unveil.c:188 exit1(ffff8000ffff8a60,0,0,1) at exit1+0x60f sys/kern/kern_exit.c:233 sys_exit(ffff8000ffff8a60,ffff80003c536e50,ffff80003c536da0) at sys_exit+0x1a syscall(ffff80003c536e50) at syscall+0xb08 mi_syscall sys/sys/syscall_mi.h:176 [inline] syscall(ffff80003c536e50) at syscall+0xb08 sys/arch/amd64/amd64/trap.c:577 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x7243ca955150, 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{1}> ddb{1}> set $lines = 0 ddb{1}> set $maxwidth = 0 ddb{1}> show panic *cpu1: kernel diagnostic assertion "ps->ps_uvncount == 0" failed: file "/syzkaller/managers/multicore/kernel/sys/kern/kern_unveil.c", line 188 ddb{1}> trace db_enter() at db_enter+0x25 sys/arch/amd64/amd64/db_interface.c:437 panic(ffffffff8343e9eb) at panic+0x1e5 sys/kern/subr_prf.c:198 __assert(ffffffff833e8586,ffffffff833a05c5,bc,ffffffff8335aada) at __assert+0x29 unveil_destroy(ffff80002a3614a0) at unveil_destroy+0x1dd sys/kern/kern_unveil.c:188 exit1(ffff8000ffff8a60,0,0,1) at exit1+0x60f sys/kern/kern_exit.c:233 sys_exit(ffff8000ffff8a60,ffff80003c536e50,ffff80003c536da0) at sys_exit+0x1a syscall(ffff80003c536e50) at syscall+0xb08 mi_syscall sys/sys/syscall_mi.h:176 [inline] syscall(ffff80003c536e50) at syscall+0xb08 sys/arch/amd64/amd64/trap.c:577 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x7243ca955150, count: -8 ddb{1}> show registers rdi 0 rsi 0x1 rbp 0xffff80003c536b90 rbx 0xffff800029a9cdc7 rdx 0 rcx 0xffff8000ffff8a60 rax 0xffff800029a9bff0 r8 0x101010101010101 r9 0x8080808080808080 r10 0x55c881f7cfbe1492 r11 0x2336e12ecf374e4 r12 0xffff800029a9cbc8 r13 0 r14 0 r15 0x1 rip 0xffffffff81cd1b05 db_enter+0x25 cs 0x8 rflags 0x246 rsp 0xffff80003c536b80 ss 0x10 db_enter+0x25: addq $0x8,%rsp ddb{1}> show proc PROC (syz-executor) tid=496382 pid=78409 tcnt=0 stat=onproc flags process=1008 proc=2000 runpri=32, usrpri=86, slppri=32, nice=20 wchan=0x0, wmesg=, ps_single=0xffff8000ffff8a60 scnt=-1 ecnt=1 forw=0xffffffffffffffff, list=0xffff80002a3d4040,0xffff80002a3d4570 process=0xffff80002a3614a0 user=0xffff80003c531000, vmspace=0xfffffd806e031c88 estcpu=36, cpticks=3, pctcpu=0.0, user=0, sys=1, intr=0 ddb{1}> ps PID TID PPID UID S FLAGS WAIT COMMAND 76999 386809 8585 0 7 0 syz-executor 76999 264888 8585 0 2 0x4000000 syz-executor 9518 429133 70515 0 2 0 syz-executor 9518 306789 70515 0 3 0x4000080 fsleep syz-executor 99207 445061 24515 0 2 0 syz-executor 99207 346502 24515 0 3 0x4000080 fsleep syz-executor 42217 258762 48243 0 3 0x80 nanoslp syz-executor 42217 14591 48243 0 3 0x4000080 netcon syz-executor 42217 35794 48243 0 3 0x4000080 fsleep syz-executor 8027 154118 18702 0 2 0 syz-executor 8027 376198 18702 0 3 0x4000080 fsleep syz-executor 8027 233209 18702 0 3 0x4000000 biowait syz-executor 63814 396283 91763 0 2 0x4000000 syz-executor 63814 118326 91763 0 2 0x4000000 syz-executor 63814 212507 91763 0 3 0x4000080 fsleep syz-executor 70515 47832 60815 0 3 0x82 nanoslp syz-executor 11007 429171 0 0 3 0x14200 acct acct 6301 249217 1 0 3 0x100083 ttyin getty 18702 372301 60815 0 3 0x82 nanoslp syz-executor 48243 263901 60815 0 3 0x82 nanoslp syz-executor 31528 133460 0 0 3 0x14280 nfsidl nfsio 28914 362452 0 0 3 0x14280 nfsidl nfsio 90402 167249 0 0 3 0x14280 nfsidl nfsio 3353 123601 0 0 3 0x14280 nfsidl nfsio 73450 269024 0 0 3 0x14280 nfsidl nfsio 29526 316412 0 0 3 0x14280 nfsidl nfsio 25175 292635 0 0 3 0x14280 nfsidl nfsio 61122 31725 0 0 3 0x14280 nfsidl nfsio 68672 436630 0 0 3 0x14280 nfsidl nfsio 63025 334520 0 0 3 0x14280 nfsidl nfsio 87676 415579 0 0 3 0x14280 nfsidl nfsio 8074 315968 0 0 3 0x14280 nfsidl nfsio 85901 79421 0 0 3 0x14280 nfsidl nfsio 78289 399151 0 0 3 0x14280 nfsidl nfsio 87556 311735 0 0 3 0x14280 nfsidl nfsio 67195 466858 0 0 3 0x14280 nfsidl nfsio 79204 321657 0 0 3 0x14280 nfsidl nfsio 80137 383582 0 0 3 0x14280 nfsidl nfsio 86027 306984 0 0 3 0x14280 nfsidl nfsio 36662 419363 0 0 3 0x14280 nfsidl nfsio 55490 157279 0 0 3 0x14200 bored sosplice 24515 129137 60815 0 3 0x82 nanoslp syz-executor 51665 9727 60815 0 3 0x82 nanoslp syz-executor 13258 454430 60815 0 3 0x82 nanoslp syz-executor 8585 123196 60815 0 3 0x82 nanoslp syz-executor 91763 222479 60815 0 3 0x82 nanoslp syz-executor 60815 424726 33179 0 3 0x82 kqread syz-executor 33179 197330 34904 0 3 0x10008a sigsusp ksh 34904 384042 27730 0 3 0x98 kqread sshd-session 27730 106324 64989 0 3 0x92 kqread sshd-session 64989 478807 1 0 3 0x88 kqread sshd 18619 366231 33125 74 3 0x1100092 bpf pflogd 33125 201310 1 0 3 0x80 sbwait pflogd 64888 211531 58973 73 3 0x1100090 kqread syslogd 58973 337627 1 0 3 0x100082 sbwait syslogd 50014 446509 1 0 3 0x100080 kqread resolvd 22114 37357 53534 77 3 0x100092 kqread dhcpleased 67738 273415 53534 77 3 0x100092 kqread dhcpleased 53534 158106 1 0 3 0x80 kqread dhcpleased 87699 180678 0 0 3 0x14200 bored smr 82321 512852 0 0 2 0x14200 zerothread 96352 424061 0 0 3 0x14200 aiodoned aiodoned 26015 511290 0 0 3 0x14200 syncer update 10279 101469 0 0 3 0x14200 cleaner cleaner 55329 55869 0 0 2 0x14200 reaper 70756 78224 0 0 3 0x14200 pgdaemon pagedaemon 29996 417954 0 0 3 0x14200 bored viomb 49653 216890 0 0 3 0x40014200 acpi0 acpi0 1765 126265 0 0 3 0x40014200 idle1 9889 10618 0 0 3 0x14200 bored softnet3 58205 391648 0 0 3 0x14200 bored softnet2 10193 160167 0 0 3 0x14200 bored softnet1 68910 382623 0 0 3 0x14200 bored softnet0 63354 67130 0 0 3 0x14200 bored systqmp 90520 230676 0 0 3 0x14200 bored systq 90913 419518 0 0 3 0x14200 tmoslp softclockmp 44291 334831 0 0 3 0x40014200 tmoslp softclock 63015 269786 0 0 3 0x40014200 idle0 1 279586 0 0 3 0x82 wait init 0 0 -1 0 3 0x10200 scheduler swapper ddb{1}> show all locks Process 76999 (syz-executor) thread 0xffff80002a3d59e0 (264888) Process 8027 (syz-executor) thread 0xffff80002a3d4fa0 (233209) Process 63814 (syz-executor) thread 0xffff80002a38c018 (118326) Process 55329 (reaper) thread 0xffff8000ffffc008 (55869) ddb{1}> show malloc Type InUse MemUse HighUse Limit Requests Type Lim devbuf 10236 11045K 11571K 166960K 15030 0 pcb 17 16K 18K 166960K 900 0 rtable 133 9K 11K 166960K 765 0 pf 40 18K 20K 166960K 153 0 ifaddr 32 4K 7K 166960K 129 0 ifgroup 66 2K 3K 166960K 208 0 sysctl 4 1K 1K 166960K 10 0 counters 68 36K 37K 166960K 176 0 ioctlops 0 0K 4K 166960K 1769 0 iov 0 0K 20K 166960K 121 0 mount 1 1K 1K 166960K 1 0 log 0 0K 0K 166960K 4 0 vnodes 1457 92K 92K 166960K 3363 0 UFS quota 1 32K 32K 166960K 1 0 UFS mount 5 36K 36K 166960K 5 0 shm 3 5K 9K 166960K 58 0 VM map 2 1K 1K 166960K 2 0 sem 23 11K 20K 166960K 80 0 dirhash 12 2K 2K 166960K 39 0 ACPI 1692 195K 286K 166960K 12470 0 file desc 17 61K 89K 166960K 2270 0 sigio 0 0K 0K 166960K 36 0 proc 77 115K 128K 166960K 879 0 subproc 72 4K 4K 166960K 117 0 NFS srvsock 1 0K 0K 166960K 1 0 NFS daemon 1 16K 16K 166960K 1 0 ip_moptions 0 0K 0K 166960K 347 0 in_multi 51 3K 7K 166960K 267 0 ether_multi 1 0K 0K 166960K 38 0 mrt 1 0K 0K 166960K 13 0 ISOFS mount 1 32K 32K 166960K 1 0 MSDOSFS mount 1 16K 16K 166960K 1 0 ttys 241 1076K 1076K 166960K 241 0 exec 0 0K 1K 166960K 969 0 fusefs mount 1 32K 32K 166960K 1 0 pfkey data 0 0K 0K 166960K 6 0 tdb 3 0K 0K 166960K 3 0 VM swap 8 62K 64K 166960K 10 0 UVM amap 245 73K 87K 166960K 22897 0 UVM aobj 60 2K 2K 166960K 66 0 pinsyscall 43 86K 102K 166960K 3516 0 memdesc 1 4K 4K 166960K 1 0 crypto data 1 1K 1K 166960K 1 0 ip6_options 0 0K 0K 166960K 126 0 NDP 14 0K 1K 166960K 94 0 temp 78 8644K 8717K 166960K 83383 0 kqueue 13 20K 33K 166960K 367 0 SYN cache 2 16K 16K 166960K 2 0 ddb{1}> 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 168 0 165 1 0 1 1 0 8 0 rtentry 112 204 0 153 4 0 4 4 0 8 0 unpcb 144 2713 0 2695 22 18 4 6 0 8 3 syncache 336 15 0 15 6 5 1 1 0 8 1 tcpqe 32 4 0 4 3 3 0 1 0 8 0 tcpcb 808 939 0 933 27 26 1 11 0 8 0 arp 120 32 0 22 1 0 1 1 0 8 0 inpcb 376 3523 0 3514 56 48 8 26 0 8 6 nd6 136 46 0 34 1 0 1 1 0 8 0 pkpcb 40 15 0 15 7 6 1 1 0 8 1 kcovpl 48 12 0 4 1 0 1 1 0 8 0 ppxss 1168 34 0 34 3 2 1 1 0 8 1 pppxif 1472 6 0 6 3 3 0 1 0 8 0 pffrag 232 18 0 8 1 0 1 1 0 482 0 pffrnode 88 18 0 8 1 0 1 1 0 8 0 pffrent 40 48 0 38 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 pfstitem 24 165 0 74 1 0 1 1 0 8 0 pfstkey 128 165 0 74 4 0 4 4 0 8 0 pfstate 376 165 0 74 11 0 11 11 0 8 0 pfrule 1344 22 0 17 2 1 1 2 0 8 0 art_heap8 4096 3 0 0 3 0 3 3 0 8 0 art_heap4 256 1035 0 813 30 12 18 29 0 8 0 art_table 32 1038 0 813 4 0 4 4 0 8 0 art_node 16 200 0 155 1 0 1 1 0 8 0 sysvmsgpl 40 20 0 12 1 0 1 1 0 8 0 semupl 112 1 0 1 1 1 0 1 0 8 0 semapl 112 72 0 51 1 0 1 1 0 8 0 shmpl 112 63 0 6 2 0 2 2 0 8 0 dirhash 1024 35 0 18 3 0 3 3 0 8 0 dino2pl 256 5410 0 3896 95 0 95 95 0 8 0 ffsino 280 5410 0 3896 109 0 109 109 0 8 0 nchpl 144 8745 0 8130 63 40 23 63 0 8 0 rtmask 32 2 0 2 2 2 0 1 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 31885 0 31883 5 3 2 3 0 8 1 percpumem 16 102 0 54 1 0 1 1 0 8 0 kstatmem 264 118 0 90 5 2 3 3 0 8 0 scsiplug 72 11 0 11 5 5 0 1 0 8 0 scxspl 216 27434 0 27433 13 12 1 8 1 8 0 plimitpl 152 565 0 545 1 0 1 1 0 8 0 sigapl 424 2596 0 2524 10 1 9 9 0 8 0 futexpl 64 33960 0 33954 1 0 1 1 0 8 0 knotepl 120 778 0 0 23 0 23 23 0 8 0 kqueuepl 216 883 0 874 15 14 1 5 0 8 0 pipepl 328 440 0 411 8 5 3 8 0 8 0 fdescpl 504 2555 0 2524 5 0 5 5 0 8 0 filepl 152 20744 0 20457 29 16 13 19 0 8 0 lockfpl 104 913 0 910 2 1 1 2 0 8 0 lockfspl 48 285 0 282 1 0 1 1 0 8 0 sessionpl 144 39 0 30 1 0 1 1 0 8 0 pgrppl 48 71 0 54 1 0 1 1 0 8 0 ucredpl 104 2678 0 2664 1 0 1 1 0 8 0 zombiepl 144 2551 0 2549 2 1 1 1 0 8 0 processpl 1168 2596 0 2524 7 1 6 6 0 8 0 procpl 656 6137 0 6054 9 1 8 8 0 8 0 srpgc 96 16 0 16 4 4 0 1 0 8 0 sosppl 168 23 0 23 5 5 0 1 0 8 0 sockpl 688 6463 0 6433 68 55 13 26 0 8 9 mcl64k 65536 6 0 0 1 0 1 1 0 8 0 mcl16k 16384 3 0 0 1 0 1 1 0 8 0 mcl12k 12288 1 0 0 1 0 1 1 0 8 0 mcl9k 9216 2 0 0 1 0 1 1 0 8 0 mcl8k 8192 4 0 0 1 0 1 1 0 8 0 mcl4k 4096 115 0 0 15 0 15 15 0 8 0 mcl2k2 2112 1 0 0 1 0 1 1 0 8 0 mcl2k 2048 30 0 0 4 0 4 4 0 8 0 mtagpl 96 103 0 0 3 0 3 3 0 8 0 mbufpl 256 1210 0 0 76 0 76 76 0 8 0 bufpl 280 7704 0 1550 440 0 440 440 0 8 0 anonpl 24 317240 0 313293 91 55 36 62 0 184 0 amapchunkpl 152 73444 0 72875 48 25 23 30 0 158 0 amappl16 200 6472 0 6433 61 58 3 24 0 8 0 amappl15 192 5 0 5 1 1 0 1 0 8 0 amappl14 184 143 0 131 1 0 1 1 0 8 0 amappl13 176 7 0 7 1 1 0 1 0 8 0 amappl12 168 3273 0 3241 4 1 3 3 0 8 0 amappl11 160 50 0 35 1 0 1 1 0 8 0 amappl10 152 5 0 5 1 1 0 1 0 8 0 amappl9 144 257 0 257 1 1 0 1 0 8 0 amappl8 136 27 0 24 1 0 1 1 0 8 0 amappl7 128 129 0 116 1 0 1 1 0 8 0 amappl6 120 230 0 225 1 0 1 1 0 8 0 amappl5 112 145 0 135 1 0 1 1 0 8 0 amappl4 104 380 0 361 1 0 1 1 0 8 0 amappl3 96 15540 0 15414 4 0 4 4 0 8 0 amappl2 88 826 0 761 2 0 2 2 0 8 0 amappl1 80 17383 0 16804 15 1 14 15 0 8 0 amappl 88 22284 0 22096 6 1 5 5 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 dma512 512 3 0 3 1 1 0 1 0 8 0 dma256 256 6 0 6 1 1 0 1 0 8 0 dma128 128 256 0 256 4 4 0 1 0 8 0 dma64 64 7 0 7 2 2 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 65 0 6 2 0 2 2 0 8 0 uaddrrnd 24 2555 0 2523 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 2555 0 2523 1 0 1 1 0 8 0 vmmpekpl 168 21959 0 21911 3 0 3 3 0 8 0 vmmpepl 168 160361 0 158410 132 41 91 105 0 357 2 vmsppl 456 2554 0 2523 7 2 5 5 0 8 0 rwobjpl 64 47930 0 40971 116 2 114 115 0 8 0 pdppl 4096 5118 0 5046 140 68 72 84 0 8 0 pvpl 32 17840 0 0 145 1 144 144 0 265 0 pmappl 248 2554 0 2523 3 0 3 3 0 8 0 extentpl 40 55 0 38 1 0 1 1 0 8 0 phpool 112 426 0 120 10 0 10 10 0 8 0 ddb{1}> machine ddbcpu 0 Stopped at x86_ipi_db+0x27: addq $0x8,%rsp x86_ipi_db(ffffffff8380dff0) 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 __mp_lock(ffffffff8394c278) at __mp_lock+0x192 __mp_lock_spin sys/kern/kern_lock.c:113 [inline] __mp_lock(ffffffff8394c278) at __mp_lock+0x192 sys/kern/kern_lock.c:144 intr_handler(ffff80002eca0170,ffff800000079f00) at intr_handler+0xe1 sys/arch/amd64/amd64/intr.c:553 Xintr_ioapic_edge23_untramp() at Xintr_ioapic_edge23_untramp+0x18f end of kernel end trace frame: 0x72b677785950, count: 9 ddb{0}> trace x86_ipi_db(ffffffff8380dff0) 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 __mp_lock(ffffffff8394c278) at __mp_lock+0x192 __mp_lock_spin sys/kern/kern_lock.c:113 [inline] __mp_lock(ffffffff8394c278) at __mp_lock+0x192 sys/kern/kern_lock.c:144 intr_handler(ffff80002eca0170,ffff800000079f00) at intr_handler+0xe1 sys/arch/amd64/amd64/intr.c:553 Xintr_ioapic_edge23_untramp() at Xintr_ioapic_edge23_untramp+0x18f end of kernel end trace frame: 0x72b677785950, count: -6 ddb{0}> machine ddbcpu 1 Stopped at db_enter+0x25: addq $0x8,%rsp db_enter() at db_enter+0x25 sys/arch/amd64/amd64/db_interface.c:437 panic(ffffffff8343e9eb) at panic+0x1e5 sys/kern/subr_prf.c:198 __assert(ffffffff833e8586,ffffffff833a05c5,bc,ffffffff8335aada) at __assert+0x29 unveil_destroy(ffff80002a3614a0) at unveil_destroy+0x1dd sys/kern/kern_unveil.c:188 exit1(ffff8000ffff8a60,0,0,1) at exit1+0x60f sys/kern/kern_exit.c:233 sys_exit(ffff8000ffff8a60,ffff80003c536e50,ffff80003c536da0) at sys_exit+0x1a syscall(ffff80003c536e50) at syscall+0xb08 mi_syscall sys/sys/syscall_mi.h:176 [inline] syscall(ffff80003c536e50) at syscall+0xb08 sys/arch/amd64/amd64/trap.c:577 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x7243ca955150, count: 7 ddb{1}> trace db_enter() at db_enter+0x25 sys/arch/amd64/amd64/db_interface.c:437 panic(ffffffff8343e9eb) at panic+0x1e5 sys/kern/subr_prf.c:198 __assert(ffffffff833e8586,ffffffff833a05c5,bc,ffffffff8335aada) at __assert+0x29 unveil_destroy(ffff80002a3614a0) at unveil_destroy+0x1dd sys/kern/kern_unveil.c:188 exit1(ffff8000ffff8a60,0,0,1) at exit1+0x60f sys/kern/kern_exit.c:233 sys_exit(ffff8000ffff8a60,ffff80003c536e50,ffff80003c536da0) at sys_exit+0x1a syscall(ffff80003c536e50) at syscall+0xb08 mi_syscall sys/sys/syscall_mi.h:176 [inline] syscall(ffff80003c536e50) at syscall+0xb08 sys/arch/amd64/amd64/trap.c:577 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x7243ca955150, count: -8