login: 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 472533 13727 0 0 0x4000000 1 syz-executor db_enter() at db_enter+0x25 sys/arch/amd64/amd64/db_interface.c:437 panic(ffffffff830f1096) at panic+0x1e5 sys/kern/subr_prf.c:198 __assert(ffffffff830a9442,ffffffff830691bd,bc,ffffffff8302b63a) at __assert+0x29 unveil_destroy(ffff800037289fc0) at unveil_destroy+0x1dd sys/kern/kern_unveil.c:188 exit1(ffff80002f38af58,0,0,1) at exit1+0x60f sys/kern/kern_exit.c:233 sys_exit(ffff80002f38af58,ffff800036db6340,ffff800036db6290) at sys_exit+0x1a syscall(ffff800036db6340) at syscall+0xaf8 mi_syscall sys/sys/syscall_mi.h:178 [inline] syscall(ffff800036db6340) at syscall+0xaf8 sys/arch/amd64/amd64/trap.c:577 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x72d330290dd0, 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(ffffffff830f1096) at panic+0x1e5 sys/kern/subr_prf.c:198 __assert(ffffffff830a9442,ffffffff830691bd,bc,ffffffff8302b63a) at __assert+0x29 unveil_destroy(ffff800037289fc0) at unveil_destroy+0x1dd sys/kern/kern_unveil.c:188 exit1(ffff80002f38af58,0,0,1) at exit1+0x60f sys/kern/kern_exit.c:233 sys_exit(ffff80002f38af58,ffff800036db6340,ffff800036db6290) at sys_exit+0x1a syscall(ffff800036db6340) at syscall+0xaf8 mi_syscall sys/sys/syscall_mi.h:178 [inline] syscall(ffff800036db6340) at syscall+0xaf8 sys/arch/amd64/amd64/trap.c:577 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x72d330290dd0, count: -8 ddb{0}> show registers rdi 0 rsi 0x1 rbp 0xffff800036db6080 rbx 0xffffffff8348fdbf cpu_info_full_primary+0x2dbf rdx 0 rcx 0xffff80002f38af58 rax 0xffffffff8348eff0 cpu_info_full_primary+0x1ff0 r8 0 r9 0x8080808080808080 r10 0x160ae8cd3f7360df r11 0xd2404e408d98102f r12 0xffffffff8348fbc0 cpu_info_full_primary+0x2bc0 r13 0 r14 0 r15 0x1 rip 0xffffffff812ecd15 db_enter+0x25 cs 0x8 rflags 0x246 rsp 0xffff800036db6070 ss 0x10 db_enter+0x25: addq $0x8,%rsp ddb{0}> show proc PROC (syz-executor) tid=458447 pid=27440 tcnt=0 stat=onproc flags process=1008 proc=2000 runpri=32, usrpri=83, slppri=32, nice=20 wchan=0x0, wmesg=, ps_single=0xffff80002f38af58 scnt=-1 ecnt=1 forw=0xffffffffffffffff, list=0xffff80002f38a028,0xffff8000fffeecf0 process=0xffff800037289fc0 user=0xffff800036db1000, vmspace=0xfffffd80698058e8 estcpu=33, cpticks=11, pctcpu=0.0, user=0, sys=2, intr=0 ddb{0}> ps PID TID PPID UID S FLAGS WAIT COMMAND 22573 482950 68366 0 2 0 syz-executor 22573 230917 68366 0 3 0x4000080 fsleep syz-executor 22573 445465 68366 0 3 0x4000080 fsleep syz-executor 88035 35791 51956 0 3 0x80 nanoslp syz-executor 88035 360788 51956 0 3 0x4000080 fsleep syz-executor 88035 384320 51956 0 2 0x4000000 syz-executor 56120 296671 39387 0 2 0x1000000 syz-executor 56120 350033 39387 0 3 0x5000080 fsleep syz-executor 56120 115628 39387 0 3 0x5000080 fsleep syz-executor 9377 98637 9797 0 2 0 syz-executor 9377 412174 9797 0 3 0x4000080 fsleep syz-executor 9377 522261 9797 0 3 0x4000080 fsleep syz-executor 13727 358254 86699 0 2 0 syz-executor 13727 472533 86699 0 7 0x4000000 syz-executor 13727 459739 86699 0 3 0x4000080 fsleep syz-executor 22361 271932 28645 0 3 0x3000 suspend syz-executor 22361 279938 28645 0 2 0x4081000 syz-executor 23555 421322 1 0 3 0x100083 ttyin getty 8363 459161 0 0 3 0x14200 acct acct 95783 96666 0 0 3 0x14280 nfsidl nfsio 3978 358123 0 0 3 0x14280 nfsidl nfsio 16193 56928 0 0 3 0x14280 nfsidl nfsio 39281 132220 0 0 3 0x14280 nfsidl nfsio 4026 268439 0 0 3 0x14280 nfsidl nfsio 48246 58094 0 0 3 0x14280 nfsidl nfsio 89450 22465 0 0 3 0x14280 nfsidl nfsio 20869 443703 0 0 3 0x14280 nfsidl nfsio 52468 82097 0 0 3 0x14280 nfsidl nfsio 12683 125873 0 0 3 0x14280 nfsidl nfsio 97565 437310 0 0 3 0x14280 nfsidl nfsio 68033 74216 0 0 3 0x14280 nfsidl nfsio 84846 511555 0 0 3 0x14280 nfsidl nfsio 93788 134483 0 0 3 0x14280 nfsidl nfsio 30107 492563 0 0 3 0x14280 nfsidl nfsio 97693 10158 0 0 3 0x14280 nfsidl nfsio 66252 66769 0 0 3 0x14280 nfsidl nfsio 88884 64193 0 0 3 0x14280 nfsidl nfsio 10444 26336 0 0 3 0x14280 nfsidl nfsio 79701 484452 0 0 3 0x14280 nfsidl nfsio 10981 55802 0 0 3 0x14200 bored sosplice 28645 224628 6592 0 3 0x82 wait syz-executor 87633 460805 6592 0 2 0x482 syz-executor 5124 51738 6592 0 3 0x82 nanoslp syz-executor 68366 372345 6592 0 3 0x82 nanoslp syz-executor 9797 411597 6592 0 3 0x82 nanoslp syz-executor 86699 432213 6592 0 2 0x482 syz-executor 51956 494189 6592 0 3 0x82 nanoslp syz-executor 39387 109382 6592 0 2 0x482 syz-executor 6592 463486 94591 0 3 0x82 kqread syz-executor 94591 384966 4810 0 3 0x10008a sigsusp ksh 4810 519918 18406 0 3 0x98 kqread sshd-session 18406 194345 82123 0 3 0x92 kqread sshd-session 82123 291736 1 0 3 0x88 kqread sshd 70634 340728 22799 74 3 0x1100092 bpf pflogd 22799 44459 1 0 3 0x80 sbwait pflogd 61061 99072 58156 73 3 0x1100090 kqread syslogd 58156 150345 1 0 3 0x100082 sbwait syslogd 49243 382060 1 0 3 0x100080 kqread resolvd 76915 101318 59522 77 3 0x100092 kqread dhcpleased 14594 256078 59522 77 3 0x100092 kqread dhcpleased 59522 42297 1 0 3 0x80 kqread dhcpleased 37808 401176 0 0 2 0x14200 smr 66127 394381 0 0 2 0x14200 zerothread 35755 179544 0 0 3 0x14200 aiodoned aiodoned 85413 80248 0 0 3 0x14200 syncer update 52009 277975 0 0 3 0x14200 cleaner cleaner 13361 513283 0 0 2 0x14200 reaper 63782 371434 0 0 3 0x14200 pgdaemon pagedaemon 78757 376173 0 0 3 0x14200 bored viomb 46151 291784 0 0 3 0x40014200 acpi0 acpi0 77478 384262 0 0 3 0x40014200 idle1 97935 128348 0 0 3 0x14200 bored softnet3 12547 384459 0 0 3 0x14200 bored softnet2 97327 199581 0 0 3 0x14200 bored softnet1 83850 222544 0 0 3 0x14200 bored softnet0 53680 190688 0 0 3 0x14200 bored systqmp 37645 452797 0 0 3 0x14200 bored systq 98901 483953 0 0 2 0x14200 softclockmp 87250 166220 0 0 2 0x40014200 softclock 470 288272 0 0 3 0x40014200 idle0 1 89406 0 0 3 0x80082 wait init 0 0 -1 0 3 0x10200 scheduler swapper ddb{0}> show all locks Process 22361 (syz-executor) thread 0xffff80002f38b468 (279938) Process 13361 (reaper) thread 0xffff800029fd9448 (513283) ddb{0}> show malloc Type InUse MemUse HighUse Limit Requests Type Lim devbuf 10201 11202K 11808K 166960K 13331 0 pcb 17 14K 16K 166960K 345 0 rtable 197 7K 7K 166960K 566 0 pf 35 17K 21K 166960K 70 0 ifaddr 38 6K 7K 166960K 61 0 ifgroup 55 2K 2K 166960K 78 0 sysctl 2 0K 0K 166960K 2 0 counters 64 36K 36K 166960K 80 0 ioctlops 0 0K 4K 166960K 1566 0 iov 0 0K 20K 166960K 150 0 mount 1 1K 1K 166960K 1 0 log 0 0K 0K 166960K 4 0 vnodes 1490 94K 94K 166960K 2343 0 UFS quota 1 32K 32K 166960K 1 0 UFS mount 5 36K 36K 166960K 5 0 shm 2 1K 5K 166960K 12 0 VM map 2 1K 1K 166960K 2 0 sem 12 0K 0K 166960K 64 0 dirhash 12 2K 2K 166960K 27 0 ACPI 1690 195K 286K 166960K 12468 0 file desc 17 61K 89K 166960K 1023 0 sigio 0 0K 0K 166960K 79 0 proc 80 127K 128K 166960K 623 0 subproc 104 6K 6K 166960K 104 0 NFS srvsock 1 0K 0K 166960K 1 0 NFS daemon 1 16K 16K 166960K 1 0 ip_moptions 0 0K 0K 166960K 105 0 in_multi 79 5K 7K 166960K 129 0 ether_multi 1 0K 0K 166960K 2 0 mrt 0 0K 0K 166960K 3 0 ISOFS mount 1 32K 32K 166960K 1 0 MSDOSFS mount 1 16K 16K 166960K 1 0 ttys 103 466K 466K 166960K 103 0 exec 0 0K 1K 166960K 583 0 fusefs mount 1 32K 32K 166960K 1 0 pfkey data 0 0K 0K 166960K 3 0 tdb 3 0K 0K 166960K 3 0 VM swap 8 62K 64K 166960K 10 0 UVM amap 265 73K 78K 166960K 11316 0 UVM aobj 15 2K 2K 166960K 17 0 pinsyscall 43 86K 102K 166960K 2116 0 memdesc 1 4K 4K 166960K 1 0 crypto data 1 1K 1K 166960K 1 0 ip6_options 0 0K 0K 166960K 184 0 NDP 13 0K 2K 166960K 40 0 temp 62 6824K 7078K 166960K 26768 0 kqueue 13 20K 28K 166960K 142 0 SYN cache 2 16K 16K 166960K 2 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 76 0 73 1 0 1 1 0 8 0 rtentry 112 143 0 56 4 0 4 4 0 8 0 unpcb 144 597 0 577 8 7 1 4 0 8 0 syncache 336 8 0 8 4 3 1 1 0 8 1 tcpqe 32 5 0 5 2 1 1 1 0 8 1 tcpcb 808 396 0 389 22 14 8 8 0 8 7 arp 120 24 0 6 1 0 1 1 0 8 0 inpcb 336 1332 0 1320 31 18 13 13 0 8 11 nd6 136 32 0 10 1 0 1 1 0 8 0 pkpcb 40 6 0 6 3 3 0 1 0 8 0 kcovpl 48 8 0 0 1 0 1 1 0 8 0 ppxss 1168 5 0 5 2 2 0 1 0 8 0 pfstscr 40 1 0 0 1 0 1 1 0 8 0 pffrag 232 8 0 2 1 0 1 1 0 482 0 pffrnode 88 8 0 2 1 0 1 1 0 8 0 pffrent 40 18 0 12 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 pfanchor 1288 1 0 0 1 0 1 1 0 8 0 pftag 88 1 0 1 1 1 0 1 0 8 0 pfstitem 24 66 0 23 1 0 1 1 0 8 0 pfstkey 128 66 0 23 2 0 2 2 0 8 0 pfstate 376 65 0 23 5 0 5 5 0 8 0 pfrule 1344 22 0 16 2 0 2 2 0 8 0 art_heap8 4096 2 0 0 2 0 2 2 0 8 0 art_heap4 256 577 0 194 30 3 27 29 0 8 1 art_table 32 579 0 194 4 0 4 4 0 8 0 art_node 16 138 0 62 1 0 1 1 0 8 0 sysvmsgpl 40 5 0 4 3 2 1 1 0 8 0 semupl 112 1 0 1 1 1 0 1 0 8 0 semapl 112 60 0 50 1 0 1 1 0 8 0 shmpl 112 14 0 2 1 0 1 1 0 8 0 dirhash 1024 27 0 10 3 0 3 3 0 8 0 dino2pl 256 3263 0 1763 95 0 95 95 0 8 0 ffsino 272 3263 0 1763 101 0 101 101 0 8 0 nchpl 144 4700 0 3006 63 0 63 63 0 8 0 uvmvnodes 80 3943 0 0 81 0 81 81 0 8 0 vnodes 216 3943 0 0 220 0 220 220 0 8 0 namei 1024 16432 0 16432 1 0 1 1 0 8 1 percpumem 16 54 0 8 1 0 1 1 0 8 0 kstatmem 264 40 0 16 2 0 2 2 0 8 0 scsiplug 72 5 0 5 3 3 0 1 0 8 0 scxspl 216 13572 0 13572 11 10 1 8 1 8 1 plimitpl 152 160 0 142 1 0 1 1 0 8 0 sigapl 424 1348 0 1276 10 1 9 9 0 8 0 futexpl 64 13112 0 13104 1 0 1 1 0 8 0 knotepl 120 329 0 0 10 0 10 10 0 8 0 kqueuepl 216 270 0 258 5 4 1 3 0 8 0 pipepl 320 310 0 283 14 11 3 8 0 8 0 fdescpl 496 1308 0 1277 5 0 5 5 0 8 0 filepl 152 8828 0 8568 28 13 15 18 0 8 4 lockfpl 104 382 0 379 2 1 1 2 0 8 0 lockfspl 48 121 0 118 1 0 1 1 0 8 0 sessionpl 144 27 0 18 1 0 1 1 0 8 0 pgrppl 48 49 0 32 1 0 1 1 0 8 0 ucredpl 104 1756 0 1743 1 0 1 1 0 8 0 zombiepl 144 1401 0 1398 1 0 1 1 0 8 0 processpl 1160 1348 0 1276 7 1 6 6 0 8 0 procpl 648 2811 0 2726 8 0 8 8 0 8 0 sosppl 168 3 0 3 2 2 0 1 0 8 0 sockpl 664 2053 0 2019 32 18 14 14 0 8 10 mcl64k 65536 4 0 0 1 0 1 1 0 8 0 mcl16k 16384 8 0 0 1 0 1 1 0 8 0 mcl12k 12288 2 0 0 1 0 1 1 0 8 0 mcl9k 9216 2 0 0 1 0 1 1 0 8 0 mcl8k 8192 3 0 0 1 0 1 1 0 8 0 mcl4k 4096 136 0 0 17 0 17 17 0 8 0 mcl2k2 2112 1 0 0 1 0 1 1 0 8 0 mcl2k 2048 23 0 0 3 0 3 3 0 8 0 mtagpl 96 102 0 0 3 0 3 3 0 8 0 mbufpl 256 386 0 0 23 0 23 23 0 8 0 bufpl 280 4108 0 99 287 0 287 287 0 8 0 anonpl 24 245405 0 238422 99 56 43 50 0 185 0 amapchunkpl 152 36850 0 36244 37 12 25 27 0 158 0 amappl16 200 6266 0 6049 43 31 12 15 0 8 0 amappl15 192 13 0 13 1 1 0 1 0 8 0 amappl14 184 127 0 115 1 0 1 1 0 8 0 amappl13 176 10 0 10 1 1 0 1 0 8 0 amappl12 168 1955 0 1923 3 1 2 2 0 8 0 amappl11 160 68 0 54 1 0 1 1 0 8 0 amappl10 152 32 0 32 1 1 0 1 0 8 0 amappl9 144 141 0 141 1 1 0 1 0 8 0 amappl8 136 41 0 38 1 0 1 1 0 8 0 amappl7 128 145 0 132 1 0 1 1 0 8 0 amappl6 120 164 0 162 1 0 1 1 0 8 0 amappl5 112 145 0 133 1 0 1 1 0 8 0 amappl4 104 350 0 332 1 0 1 1 0 8 0 amappl3 96 6956 0 6843 3 0 3 3 0 8 0 amappl2 88 1619 0 1534 3 0 3 3 0 8 0 amappl1 80 11186 0 10616 16 2 14 14 0 8 0 amappl 88 10868 0 10665 5 0 5 5 0 92 0 dma32768 32768 1 0 1 1 1 0 1 0 8 0 dma16384 16384 2 0 2 2 2 0 1 0 8 0 dma4096 4096 1 0 1 1 1 0 1 0 8 0 dma1024 1024 2 0 1 1 0 1 1 0 8 0 dma256 256 6 0 6 1 1 0 1 0 8 0 dma128 128 255 0 255 3 3 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 20 0 19 1 0 1 1 0 8 0 aobjpl 72 16 0 2 1 0 1 1 0 8 0 uaddrrnd 24 1308 0 1276 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 1308 0 1276 1 0 1 1 0 8 0 vmmpekpl 168 12348 0 12307 3 0 3 3 0 8 0 vmmpepl 168 88024 0 85883 110 16 94 95 0 357 0 vmsppl 448 1307 0 1276 6 2 4 5 0 8 0 rwobjpl 56 30991 0 25873 74 1 73 73 0 8 0 pdppl 4096 2623 0 2552 117 44 73 85 0 8 2 pvpl 32 14677 0 0 119 0 119 119 0 265 0 pmappl 248 1307 0 1276 3 0 3 3 0 8 0 extentpl 40 55 0 38 1 0 1 1 0 8 0 phpool 112 466 0 91 11 0 11 11 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(ffffffff830f1096) at panic+0x1e5 sys/kern/subr_prf.c:198 __assert(ffffffff830a9442,ffffffff830691bd,bc,ffffffff8302b63a) at __assert+0x29 unveil_destroy(ffff800037289fc0) at unveil_destroy+0x1dd sys/kern/kern_unveil.c:188 exit1(ffff80002f38af58,0,0,1) at exit1+0x60f sys/kern/kern_exit.c:233 sys_exit(ffff80002f38af58,ffff800036db6340,ffff800036db6290) at sys_exit+0x1a syscall(ffff800036db6340) at syscall+0xaf8 mi_syscall sys/sys/syscall_mi.h:178 [inline] syscall(ffff800036db6340) at syscall+0xaf8 sys/arch/amd64/amd64/trap.c:577 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x72d330290dd0, 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 __sanitizer_cov_trace_pc() at __sanitizer_cov_trace_pc+0x2c kd_curproc sys/dev/kcov.c:584 [inline] __sanitizer_cov_trace_pc() at __sanitizer_cov_trace_pc+0x2c sys/dev/kcov.c:153 __mp_lock(ffffffff836256d0) at __mp_lock+0x1a3 __mp_lock_spin sys/kern/kern_lock.c:113 [inline] __mp_lock(ffffffff836256d0) at __mp_lock+0x1a3 sys/kern/kern_lock.c:144 syscall(ffff80002d574770) at syscall+0xad6 mi_syscall sys/sys/syscall_mi.h:178 [inline] syscall(ffff80002d574770) at syscall+0xad6 sys/arch/amd64/amd64/trap.c:577 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x6388f490350, count: 8 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 __sanitizer_cov_trace_pc() at __sanitizer_cov_trace_pc+0x2c kd_curproc sys/dev/kcov.c:584 [inline] __sanitizer_cov_trace_pc() at __sanitizer_cov_trace_pc+0x2c sys/dev/kcov.c:153 __mp_lock(ffffffff836256d0) at __mp_lock+0x1a3 __mp_lock_spin sys/kern/kern_lock.c:113 [inline] __mp_lock(ffffffff836256d0) at __mp_lock+0x1a3 sys/kern/kern_lock.c:144 syscall(ffff80002d574770) at syscall+0xad6 mi_syscall sys/sys/syscall_mi.h:178 [inline] syscall(ffff80002d574770) at syscall+0xad6 sys/arch/amd64/amd64/trap.c:577 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x6388f490350, count: -7