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 48480 28782 0 0x14000 0x40000200 0 softclock db_enter() at db_enter+0x1c sys/arch/amd64/amd64/db_interface.c:437 panic(ffffffff827a0840) at panic+0x17b sys/kern/subr_prf.c:198 __assert(ffffffff82820d1e,ffffffff828211f2,bc,ffffffff827b6afb) at __assert+0x29 sys/kern/subr_prf.c:157 unveil_destroy(ffff80002654c880) at unveil_destroy+0x1a4 sys/kern/kern_unveil.c:188 exit1(ffff80002128f8a8,0,0,1) at exit1+0x3d5 sys/kern/kern_exit.c:220 sys_exit(ffff80002128f8a8,ffff8000212db8b0,ffff8000212db900) at sys_exit+0x1a sys/kern/kern_exit.c:89 syscall(ffff8000212db980) at syscall+0x5e2 mi_syscall sys/sys/syscall_mi.h:110 [inline] syscall(ffff8000212db980) at syscall+0x5e2 sys/arch/amd64/amd64/trap.c:623 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x70c8712d4720, 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+0x1c sys/arch/amd64/amd64/db_interface.c:437 panic(ffffffff827a0840) at panic+0x17b sys/kern/subr_prf.c:198 __assert(ffffffff82820d1e,ffffffff828211f2,bc,ffffffff827b6afb) at __assert+0x29 sys/kern/subr_prf.c:157 unveil_destroy(ffff80002654c880) at unveil_destroy+0x1a4 sys/kern/kern_unveil.c:188 exit1(ffff80002128f8a8,0,0,1) at exit1+0x3d5 sys/kern/kern_exit.c:220 sys_exit(ffff80002128f8a8,ffff8000212db8b0,ffff8000212db900) at sys_exit+0x1a sys/kern/kern_exit.c:89 syscall(ffff8000212db980) at syscall+0x5e2 mi_syscall sys/sys/syscall_mi.h:110 [inline] syscall(ffff8000212db980) at syscall+0x5e2 sys/arch/amd64/amd64/trap.c:623 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x70c8712d4720, count: -8 ddb{1}> show registers rdi 0 rsi 0x1 rbp 0xffff8000212db6c0 rbx 0xffff800020d59b9f rdx 0 rcx 0xffff80002128f8a8 rax 0xffff800020d58ff0 r8 0x101010101010101 r9 0x8080808080808080 r10 0x91ef78dedad15a06 r11 0x66945c5ab068d5fa r12 0xffff800020d599a0 r13 0 r14 0 r15 0x1 rip 0xffffffff81a54b4c db_enter+0x1c cs 0x8 rflags 0x246 rsp 0xffff8000212db6b0 ss 0 db_enter+0x1c: addq $0x8,%rsp ddb{1}> show proc PROC (syz-executor.5) pid=2651 stat=onproc flags process=1008 proc=2000 pri=86, usrpri=86, nice=20 forw=0xffffffffffffffff, list=0xffff8000211d8ee8,0xffff8000212ab5f8 process=0xffff80002654c880 user=0xffff8000212d6000, vmspace=0xfffffd806997b588 estcpu=36, cpticks=17, pctcpu=0.6 user=0, sys=2, intr=0 ddb{1}> ps PID TID PPID UID S FLAGS WAIT COMMAND 2630 9011 60471 0 2 0 syz-executor.1 15959 209067 75326 0 2 0 syz-executor.4 95320 495761 9771 0 2 0 syz-executor.0 39844 126001 44946 0 3 0x80 nanoslp syz-executor.3 39844 444698 44946 0 3 0x4000080 netcon2 syz-executor.3 39844 8061 44946 0 3 0x4000080 fsleep syz-executor.3 39844 336093 44946 0 3 0x4000080 fsleep syz-executor.3 88956 351966 59529 0 3 0x82 piperd syz-executor.6 51101 8576 59529 0 3 0x82 piperd syz-executor.7 20548 17147 59529 0 3 0x82 nanoslp syz-executor.2 76736 317194 1 0 3 0x100083 ttyin getty 9771 372764 59529 0 2 0x482 syz-executor.0 75326 406040 59529 0 3 0x82 nanoslp syz-executor.4 99112 400012 59529 0 3 0x82 nanoslp syz-executor.5 21551 28697 0 0 3 0x14200 acct acct 44946 135645 59529 0 3 0x82 nanoslp syz-executor.3 40784 333766 0 0 3 0x14280 nfsidl nfsio 54391 188122 0 0 3 0x14280 nfsidl nfsio 89555 259228 0 0 3 0x14280 nfsidl nfsio 69248 451669 0 0 3 0x14280 nfsidl nfsio 21637 435530 0 0 3 0x14280 nfsidl nfsio 52627 36420 0 0 3 0x14280 nfsidl nfsio 57522 289651 0 0 3 0x14280 nfsidl nfsio 86905 59134 0 0 3 0x14280 nfsidl nfsio 44480 410580 0 0 3 0x14280 nfsidl nfsio 44692 245954 0 0 3 0x14280 nfsidl nfsio 39629 57410 0 0 3 0x14280 nfsidl nfsio 28057 423396 0 0 3 0x14280 nfsidl nfsio 72499 372212 0 0 3 0x14280 nfsidl nfsio 26484 428642 0 0 3 0x14280 nfsidl nfsio 62607 152516 0 0 3 0x14280 nfsidl nfsio 48236 94828 0 0 3 0x14280 nfsidl nfsio 58458 483688 0 0 3 0x14280 nfsidl nfsio 296 453463 0 0 3 0x14280 nfsidl nfsio 65628 193290 0 0 3 0x14280 nfsidl nfsio 57154 435639 0 0 3 0x14280 nfsidl nfsio 26736 345202 0 0 3 0x14200 bored sosplice 60471 224414 59529 0 3 0x82 nanoslp syz-executor.1 59529 490797 13514 0 3 0x2000082 wait syz-fuzzer 59529 119745 13514 0 3 0x6000082 thrsleep syz-fuzzer 59529 14919 13514 0 3 0x6000082 thrsleep syz-fuzzer 59529 113480 13514 0 3 0x6000082 wait syz-fuzzer 59529 427458 13514 0 3 0x6000082 thrsleep syz-fuzzer 59529 29029 13514 0 3 0x6000082 wait syz-fuzzer 59529 391311 13514 0 3 0x6000082 wait syz-fuzzer 59529 491968 13514 0 3 0x6000082 wait syz-fuzzer 59529 406349 13514 0 3 0x6000082 wait syz-fuzzer 59529 463221 13514 0 3 0x6000082 thrsleep syz-fuzzer 59529 459108 13514 0 3 0x6000082 thrsleep syz-fuzzer 59529 304265 13514 0 3 0x6000082 thrsleep syz-fuzzer 59529 364587 13514 0 3 0x6000082 wait syz-fuzzer 59529 161867 13514 0 3 0x6000082 kqread syz-fuzzer 59529 182764 13514 0 3 0x6000082 thrsleep syz-fuzzer 59529 296290 13514 0 3 0x6000082 wait syz-fuzzer 13514 411417 50733 0 3 0x10008a sigsusp ksh 50733 157569 25357 0 3 0x9a kqread sshd 25357 57469 1 0 3 0x88 kqread sshd 69766 220564 23919 74 3 0x1100092 bpf pflogd 23919 477387 1 0 3 0x80 netio pflogd 11042 410924 65286 73 3 0x1100090 kqread syslogd 65286 489441 1 0 3 0x100082 netio syslogd 26083 197778 1 0 3 0x100080 kqread resolvd 78848 371714 7178 77 3 0x100092 kqread dhcpleased 244 30815 7178 77 3 0x100092 kqread dhcpleased 7178 430048 1 0 3 0x80 kqread dhcpleased 30354 195685 0 0 3 0x14200 bored smr 61869 349852 0 0 2 0x14200 zerothread 40817 8734 0 0 3 0x14200 aiodoned aiodoned 47679 199244 0 0 3 0x14200 syncer update 14904 366076 0 0 3 0x14200 cleaner cleaner 2213 367949 0 0 2 0x14200 reaper 73218 19024 0 0 3 0x14200 pgdaemon pagedaemon 99246 17850 0 0 3 0x14200 bored viomb 36093 441612 0 0 3 0x40014200 acpi0 acpi0 8084 122242 0 0 3 0x40014200 idle1 40234 317937 0 0 3 0x14200 bored softnet3 82030 3636 0 0 3 0x14200 bored softnet2 16916 108031 0 0 3 0x14200 bored softnet1 6439 416473 0 0 3 0x14200 bored softnet0 76544 462607 0 0 3 0x14200 bored systqmp 22156 434448 0 0 3 0x14200 bored systq 28782 48480 0 0 7 0x40014200 softclock 97600 2379 0 0 3 0x40014200 idle0 1 152778 0 0 3 0x82 wait init 0 0 -1 0 3 0x10200 scheduler swapper ddb{1}> show all locks ddb{1}> show malloc Type InUse MemUse HighUse Limit Requests Type Lim devbuf 10226 6505K 10730K 78643K 160540 0 pcb 13 16K 18K 78643K 456 0 rtable 245 7K 7K 78643K 1068 0 pf 32 9K 10K 78643K 170 0 ifaddr 45 16K 17K 78643K 175 0 ifgroup 55 2K 2K 78643K 276 0 sysctl 2 0K 0K 78643K 2 0 counters 60 35K 36K 78643K 172 0 ioctlops 0 0K 4K 78643K 1710 0 iov 0 0K 24K 78643K 1483 0 mount 1 1K 1K 78643K 1 0 log 0 0K 0K 78643K 4 0 vnodes 1589 99K 100K 78643K 41380 0 UFS quota 1 32K 32K 78643K 1 0 UFS mount 5 36K 36K 78643K 5 0 shm 5 13K 17K 78643K 124 0 VM map 2 1K 1K 78643K 2 0 sem 12 0K 1K 78643K 301 0 dirhash 12 2K 2K 78643K 12 0 ACPI 1697 195K 286K 78643K 12548 0 file desc 15 53K 89K 78643K 22937 0 sigio 0 0K 0K 78643K 1521 0 proc 74 115K 140K 78643K 1514 0 subproc 104 6K 6K 78643K 390 0 NFS srvsock 1 0K 0K 78643K 1 0 NFS daemon 1 16K 16K 78643K 1 0 ip_moptions 0 0K 0K 78643K 1670 0 in_multi 99 7K 7K 78643K 368 0 ether_multi 1 0K 0K 78643K 1 0 mrt 1 0K 0K 78643K 5 0 ISOFS mount 1 32K 32K 78643K 1 0 MSDOSFS mount 1 16K 16K 78643K 1 0 ttys 235 1049K 1049K 78643K 235 0 exec 0 0K 1K 78643K 1315 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 436 88K 94K 78643K 226686 0 UVM aobj 131 4K 4K 78643K 131 0 memdesc 1 4K 4K 78643K 1 0 crypto data 1 1K 1K 78643K 1 0 ip6_options 0 0K 0K 78643K 143 0 NDP 12 0K 2K 78643K 128 0 temp 75 5920K 6556K 78643K 159907 0 kqueue 12 18K 28K 78643K 2072 0 SYN cache 2 16K 16K 78643K 2 0 ddb{1}> 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 1855 0 1852 9 8 1 3 0 8 0 rtentry 112 363 0 249 4 0 4 4 0 8 0 unpcb 144 8549 0 8533 105 103 2 10 0 8 1 syncache 296 48 0 48 10 10 0 1 0 8 0 tcpqe 32 237 0 237 9 9 0 1 0 8 0 tcpcb 808 2296 0 2289 81 77 4 14 0 8 3 arp 120 65 0 46 1 0 1 1 0 8 0 inpcb 368 8110 0 8100 155 147 8 13 0 8 6 nd6 136 97 0 70 1 0 1 1 0 8 0 pkpcb 40 6 0 6 3 3 0 1 0 8 0 kcovpl 48 30 0 22 1 0 1 1 0 8 0 ppxss 1256 9 0 9 3 3 0 1 0 8 0 pffrag 232 29 0 26 7 6 1 1 0 482 0 pffrnode 88 29 0 26 7 6 1 1 0 8 0 pffrent 40 166 0 163 8 7 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 456 0 289 2 0 2 2 0 8 0 pfstkey 128 456 0 289 9 1 8 8 0 8 1 pfstate 376 456 0 289 30 9 21 23 0 8 2 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 1458 0 988 31 1 30 30 0 8 0 art_table 32 1459 0 988 4 0 4 4 0 8 0 art_node 16 362 0 258 1 0 1 1 0 8 0 sysvmsgpl 40 47 0 27 1 0 1 1 0 8 0 semupl 112 9 0 9 1 1 0 1 0 8 0 semapl 112 290 0 280 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 28766 0 27280 94 0 94 94 0 8 0 ffsino 272 28766 0 27280 101 1 100 100 0 8 0 nchpl 144 59864 0 58210 63 0 63 63 0 8 0 uvmvnodes 80 6375 0 0 131 0 131 131 0 8 0 vnodes 216 6375 0 0 355 0 355 355 0 8 0 namei 1024 203700 0 203700 17 16 1 3 0 8 1 percpumem 16 99 0 56 1 0 1 1 0 8 0 kstatmem 264 136 0 112 2 0 2 2 0 8 0 scxspl 216 184146 0 184146 15 14 1 8 1 8 1 plimitpl 152 485 0 469 1 0 1 1 0 8 0 sigapl 424 23241 0 23173 9 1 8 8 0 8 0 futexpl 64 193789 0 193787 4 3 1 1 0 8 0 knotepl 120 880 0 0 14 7 7 10 0 8 0 kqueuepl 216 4623 0 4615 62 57 5 5 0 8 4 pipepl 320 10635 0 10606 175 169 6 11 0 8 3 fdescpl 496 23202 0 23174 5 1 4 5 0 8 0 filepl 152 141567 0 141325 200 185 15 21 0 8 2 lockfpl 104 6033 0 6031 10 9 1 2 0 8 0 lockfspl 48 2111 0 2109 1 0 1 1 0 8 0 sessionpl 144 49 0 32 1 0 1 1 0 8 0 pgrppl 48 229 0 212 1 0 1 1 0 8 0 ucredpl 104 4557 0 4545 1 0 1 1 0 8 0 zombiepl 144 28683 0 28681 1 0 1 1 0 8 0 processpl 1072 23241 0 23173 5 0 5 5 0 8 0 procpl 696 63791 0 63702 43 33 10 14 0 8 0 sosppl 168 72 0 72 11 10 1 1 0 8 1 sockpl 488 18587 0 18558 442 429 13 34 0 8 8 mcl64k 65536 25 0 0 3 0 3 3 0 8 0 mcl16k 16384 29 0 0 4 1 3 3 0 8 0 mcl12k 12288 33 0 0 2 0 2 2 0 8 0 mcl9k 9216 33 0 0 2 0 2 2 0 8 0 mcl8k 8192 34 0 0 4 1 3 3 0 8 0 mcl4k 4096 25 0 0 4 1 3 3 0 8 0 mcl2k2 2112 16 0 0 2 0 2 2 0 8 0 mcl2k 2048 1066 0 0 37 5 32 37 0 8 0 mtagpl 96 2421 0 0 49 0 49 49 0 8 0 mbufpl 256 3332 0 0 165 0 165 165 0 8 0 bufpl 288 41946 0 35560 457 0 457 457 0 8 0 anonpl 24 2714142 0 2702176 191 101 90 109 0 186 0 amapchunkpl 152 712294 0 711485 125 88 37 49 0 158 0 amappl16 200 77739 0 77430 251 232 19 37 0 8 0 amappl15 192 13 0 13 1 1 0 1 0 8 0 amappl14 184 249 0 229 3 1 2 2 0 8 0 amappl13 176 11 0 10 2 1 1 1 0 8 0 amappl12 168 24250 0 24214 4 2 2 3 0 8 0 amappl11 160 70 0 54 1 0 1 1 0 8 0 amappl10 152 86 0 69 1 0 1 1 0 8 0 amappl9 144 306 0 306 47 46 1 1 0 8 1 amappl8 136 903 0 703 9 1 8 8 0 8 0 amappl7 128 159 0 143 2 0 2 2 0 8 0 amappl6 120 570 0 532 6 4 2 2 0 8 0 amappl5 112 620 0 609 1 0 1 1 0 8 0 amappl4 104 1015 0 958 3 1 2 3 0 8 0 amappl3 96 141144 0 141065 5 2 3 3 0 8 0 amappl2 88 24507 0 24425 3 1 2 3 0 8 0 amappl1 80 89370 0 88819 23 10 13 23 0 8 0 amappl 88 225665 0 225428 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 23202 0 23173 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 23202 0 23173 1 0 1 1 0 8 0 vmmpekpl 168 200911 0 200845 4 0 4 4 0 8 0 vmmpepl 168 1370527 0 1368101 383 262 121 140 0 357 6 vmsppl 464 23201 0 23173 5 1 4 5 0 8 0 rwobjpl 56 360702 0 352643 128 13 115 115 0 8 0 pdppl 4096 46412 0 46346 948 878 70 82 0 8 4 pvpl 32 7136098 0 7117546 466 294 172 366 0 265 0 pmappl 248 23201 0 23173 3 1 2 3 0 8 0 extentpl 40 56 0 38 1 0 1 1 0 8 0 phpool 112 2111 0 1133 29 0 29 29 0 8 0 ddb{1}> machine ddbcpu 0 Stopped at x86_ipi_db+0x1e: addq $0x8,%rsp x86_ipi_db(ffffffff82c01ff0) 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 __mp_lock(ffffffff82cb5dd0) at __mp_lock+0x122 __mp_lock_spin sys/kern/kern_lock.c:116 [inline] __mp_lock(ffffffff82cb5dd0) at __mp_lock+0x122 sys/kern/kern_lock.c:147 __mp_acquire_count(ffffffff82cb5dd0,1) at __mp_acquire_count+0x48 sys/kern/kern_lock.c:227 mi_switch() at mi_switch+0x4c6 sys/kern/sched_bsd.c:470 sleep_finish(0,1) at sleep_finish+0x19b sys/kern/kern_synch.c:414 softclock_thread(ffff800021168828) at softclock_thread+0xd8 sys/kern/kern_timeout.c:758 end trace frame: 0x0, count: 7 ddb{0}> trace x86_ipi_db(ffffffff82c01ff0) 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 __mp_lock(ffffffff82cb5dd0) at __mp_lock+0x122 __mp_lock_spin sys/kern/kern_lock.c:116 [inline] __mp_lock(ffffffff82cb5dd0) at __mp_lock+0x122 sys/kern/kern_lock.c:147 __mp_acquire_count(ffffffff82cb5dd0,1) at __mp_acquire_count+0x48 sys/kern/kern_lock.c:227 mi_switch() at mi_switch+0x4c6 sys/kern/sched_bsd.c:470 sleep_finish(0,1) at sleep_finish+0x19b sys/kern/kern_synch.c:414 softclock_thread(ffff800021168828) at softclock_thread+0xd8 sys/kern/kern_timeout.c:758 end trace frame: 0x0, count: -8 ddb{0}> machine ddbcpu 1 Stopped at db_enter+0x1c: addq $0x8,%rsp db_enter() at db_enter+0x1c sys/arch/amd64/amd64/db_interface.c:437 panic(ffffffff827a0840) at panic+0x17b sys/kern/subr_prf.c:198 __assert(ffffffff82820d1e,ffffffff828211f2,bc,ffffffff827b6afb) at __assert+0x29 sys/kern/subr_prf.c:157 unveil_destroy(ffff80002654c880) at unveil_destroy+0x1a4 sys/kern/kern_unveil.c:188 exit1(ffff80002128f8a8,0,0,1) at exit1+0x3d5 sys/kern/kern_exit.c:220 sys_exit(ffff80002128f8a8,ffff8000212db8b0,ffff8000212db900) at sys_exit+0x1a sys/kern/kern_exit.c:89 syscall(ffff8000212db980) at syscall+0x5e2 mi_syscall sys/sys/syscall_mi.h:110 [inline] syscall(ffff8000212db980) at syscall+0x5e2 sys/arch/amd64/amd64/trap.c:623 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x70c8712d4720, count: 7 ddb{1}> trace db_enter() at db_enter+0x1c sys/arch/amd64/amd64/db_interface.c:437 panic(ffffffff827a0840) at panic+0x17b sys/kern/subr_prf.c:198 __assert(ffffffff82820d1e,ffffffff828211f2,bc,ffffffff827b6afb) at __assert+0x29 sys/kern/subr_prf.c:157 unveil_destroy(ffff80002654c880) at unveil_destroy+0x1a4 sys/kern/kern_unveil.c:188 exit1(ffff80002128f8a8,0,0,1) at exit1+0x3d5 sys/kern/kern_exit.c:220 sys_exit(ffff80002128f8a8,ffff8000212db8b0,ffff8000212db900) at sys_exit+0x1a sys/kern/kern_exit.c:89 syscall(ffff8000212db980) at syscall+0x5e2 mi_syscall sys/sys/syscall_mi.h:110 [inline] syscall(ffff8000212db980) at syscall+0x5e2 sys/arch/amd64/amd64/trap.c:623 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x70c8712d4720, count: -8