Warning: Permanently added '10.128.0.6' (ED25519) to the list of known hosts. 2022/08/14 02:03:52 ignoring optional flag "sandboxArg"="0" 2022/08/14 02:03:52 parsed 1 programs 2022/08/14 02:03:56 executed programs: 0 panic: kernel diagnostic assertion "uvn->u_obj.uo_refs == 0" failed: file "/syzkaller/managers/setuid/kernel/sys/uvm/uvm_vnode.c", line 234 Stopped at db_enter+0x18: addq $0x8,%rsp TID PID UID PRFLAGS PFLAGS CPU COMMAND 102091 92343 0 0 0 0 syz-executor.0 *317800 92343 0 0 0x4000000 1K syz-executor.0 db_enter() at db_enter+0x18 panic(ffffffff825a566a) at panic+0x177 __assert(ffffffff8261a2b2,ffffffff8263e388,ea,ffffffff82636a65) at __assert+0x25 uvn_attach(fffffd806b1fe3b8,6) at uvn_attach+0x444 uvm_mmapfile(fffffd80760d7b88,ffff800021436088,10000,2,6,11,1747145d45271d72,fffffd80760d7b88,0,11) at uvm_mmapfile+0x194 sys_mmap(ffff8000ffff3268,ffff800021436130,ffff800021436200) at sys_mmap+0xb4a sys_pad_mmap(ffff8000ffff3268,ffff8000214361b8,ffff800021436200) at sys_pad_mmap+0x68 syscall(ffff800021436280) at syscall+0x435 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x2949f151350, count: 6 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 "uvn->u_obj.uo_refs == 0" failed: file "/syzkaller/managers/setuid/kernel/sys/uvm/uvm_vnode.c", line 234 ddb{1}> trace db_enter() at db_enter+0x18 panic(ffffffff825a566a) at panic+0x177 __assert(ffffffff8261a2b2,ffffffff8263e388,ea,ffffffff82636a65) at __assert+0x25 uvn_attach(fffffd806b1fe3b8,6) at uvn_attach+0x444 uvm_mmapfile(fffffd80760d7b88,ffff800021436088,10000,2,6,11,1747145d45271d72,fffffd80760d7b88,0,11) at uvm_mmapfile+0x194 sys_mmap(ffff8000ffff3268,ffff800021436130,ffff800021436200) at sys_mmap+0xb4a sys_pad_mmap(ffff8000ffff3268,ffff8000214361b8,ffff800021436200) at sys_pad_mmap+0x68 syscall(ffff800021436280) at syscall+0x435 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x2949f151350, count: -9 ddb{1}> show registers rdi 0 rsi 0x1 rbp 0xffff800021435d20 rbx 0xffff800020dd9b8f rdx 0x3fd rcx 0 rax 0x8c r8 0x101010101010101 r9 0x8080808080808080 r10 0x294f6a39af4b3d0f r11 0xff2306e4bc7d1a6c r12 0xffff800020dd9990 r13 0 r14 0 r15 0x1 rip 0xffffffff82293d58 db_enter+0x18 cs 0x8 rflags 0x246 rsp 0xffff800021435d10 ss 0x10 db_enter+0x18: addq $0x8,%rsp ddb{1}> show proc PROC (syz-executor.0) pid=317800 stat=onproc flags process=0 proc=4000000 pri=32, usrpri=86, nice=20 forw=0xffffffffffffffff, list=0xffff8000ffff2008,0xffff8000ffff0800 process=0xffff8000fffedd30 user=0xffff800021431000, vmspace=0xfffffd80760d7b88 estcpu=36, cpticks=1, pctcpu=0.0 user=0, sys=1, intr=0 ddb{1}> ps PID TID PPID UID S FLAGS WAIT COMMAND 80794 173116 25721 0 2 0 syz-executor.2 80794 411306 25721 0 2 0x4000000 syz-executor.2 34995 421791 22566 0 2 0 syz-executor.4 34995 144879 22566 0 2 0x4000000 syz-executor.4 5782 509753 74410 0 2 0 syz-executor.5 5782 110081 74410 0 3 0x4000080 fsleep syz-executor.5 58782 475320 35404 0 2 0 syz-executor.1 58782 321580 35404 0 2 0x4000000 syz-executor.1 58782 376140 35404 0 3 0x4000080 fsleep syz-executor.1 92343 102091 38232 0 7 0 syz-executor.0 *92343 317800 38232 0 7 0x4000000 syz-executor.0 92343 34771 38232 0 2 0x4000000 syz-executor.0 32381 411386 8679 0 2 0 syz-executor.7 32381 351897 8679 0 3 0x4000080 fsleep syz-executor.7 6173 511876 60979 0 2 0 syz-executor.6 6173 252311 60979 0 3 0x4000080 fsleep syz-executor.6 6173 93348 60979 0 3 0x4000080 fsleep syz-executor.6 35404 31442 85496 0 3 0x82 nanoslp syz-executor.1 95078 41911 85496 0 3 0x2 biowait syz-executor.3 8679 244515 85496 0 3 0x82 nanoslp syz-executor.7 74410 312580 85496 0 3 0x82 nanoslp syz-executor.5 25721 379419 85496 0 3 0x82 nanoslp syz-executor.2 60979 417231 85496 0 3 0x82 nanoslp syz-executor.6 22566 35306 85496 0 3 0x82 nanoslp syz-executor.4 38232 325545 85496 0 3 0x82 nanoslp syz-executor.0 85496 438248 13892 0 3 0x82 wait syz-execprog 85496 57174 13892 0 3 0x4000082 nanoslp syz-execprog 85496 25183 13892 0 3 0x4000082 wait syz-execprog 85496 314836 13892 0 3 0x4000082 thrsleep syz-execprog 85496 406960 13892 0 3 0x4000082 thrsleep syz-execprog 85496 290797 13892 0 3 0x4000082 wait syz-execprog 85496 422721 13892 0 3 0x4000082 wait syz-execprog 85496 415722 13892 0 3 0x4000082 thrsleep syz-execprog 85496 25046 13892 0 3 0x4000082 wait syz-execprog 85496 457006 13892 0 3 0x4000082 wait syz-execprog 85496 16488 13892 0 3 0x4000082 wait syz-execprog 85496 354932 13892 0 3 0x4000082 thrsleep syz-execprog 85496 473374 13892 0 3 0x4000082 wait syz-execprog 85496 91546 13892 0 3 0x4000082 kqread syz-execprog 85496 73716 13892 0 3 0x4000082 nanoslp syz-execprog 85496 85313 13892 0 3 0x4000082 thrsleep syz-execprog 13892 414829 13976 0 3 0x10008a sigsusp ksh 13976 502708 87551 0 3 0x9a kqread sshd 46946 152889 1 0 3 0x100083 ttyin getty 87551 80582 1 0 3 0x88 kqread sshd 41628 452225 54823 73 3 0x1100090 kqread syslogd 54823 441652 1 0 3 0x100082 netio syslogd 98197 520579 1 0 3 0x100080 kqread resolvd 63563 220747 816 77 3 0x100092 kqread dhcpleased 57393 345772 816 77 3 0x100092 kqread dhcpleased 816 350283 1 0 3 0x80 kqread dhcpleased 88382 327888 0 0 3 0x14200 bored smr 93696 433190 0 0 2 0x14200 zerothread 65345 120332 0 0 3 0x14200 aiodoned aiodoned 65575 43082 0 0 3 0x14200 syncer update 10860 299764 0 0 3 0x14200 cleaner cleaner 76747 395644 0 0 3 0x14200 reaper reaper 15019 46055 0 0 3 0x14200 pgdaemon pagedaemon 51759 131205 0 0 3 0x14200 bored viomb 40636 441108 0 0 3 0x40014200 acpi0 acpi0 83944 275234 0 0 3 0x40014200 idle1 68415 184668 0 0 3 0x14200 bored softnet 84272 160839 0 0 3 0x14200 bored softnet 18 26734 0 0 3 0x14200 bored softnet 34377 325113 0 0 3 0x14200 bored softnet 70509 60175 0 0 3 0x14200 bored systqmp 54461 131076 0 0 3 0x14200 bored systq 63431 183766 0 0 3 0x40014200 bored softclock 74148 97892 0 0 3 0x40014200 idle0 1 13908 0 0 3 0x82 wait init 0 0 -1 0 3 0x10200 scheduler swapper ddb{1}> show all locks Process 92343 (syz-executor.0) thread 0xffff8000ffff3268 (317800) exclusive kernel_lock &kernel_lock r = 1 (0xffffffff82ac95a0) #0 witness_lock+0x44d #1 syscall+0x41d #2 Xsyscall+0x128 Process 95078 (syz-executor.3) thread 0xffff8000ffff4a80 (41911) exclusive rrwlock inode r = 0 (0xfffffd806a28bc58) #0 witness_lock+0x44d #1 rw_enter+0x3e1 #2 rrw_enter+0x8b #3 VOP_LOCK+0x87 #4 ufs_ihashins+0x42 #5 ffs_vget+0x141 #6 ffs_inode_alloc+0x1be #7 ufs_mkdir+0xf4 #8 VOP_MKDIR+0xbf #9 domkdirat+0x121 #10 syscall+0x435 #11 Xsyscall+0x128 exclusive rrwlock inode r = 0 (0xfffffd8075d240a0) #0 witness_lock+0x44d #1 rw_enter+0x3e1 #2 rrw_enter+0x8b #3 VOP_LOCK+0x87 #4 vn_lock+0x84 #5 vfs_lookup+0xd1 #6 namei+0x36a #7 domkdirat+0x75 #8 syscall+0x435 #9 Xsyscall+0x128 ddb{1}> show malloc Type InUse MemUse HighUse Limit Requests Type Lim devbuf 10173 6407K 6419K 78643K 11263 0 pcb 13 8K 8K 78643K 13 0 rtable 234 6K 6K 78643K 349 0 ifaddr 82 16K 16K 78643K 84 0 counters 56 35K 35K 78643K 56 0 ioctlops 0 0K 2K 78643K 33 0 mount 1 1K 1K 78643K 1 0 log 0 0K 0K 78643K 4 0 vnodes 1166 73K 73K 78643K 1179 0 UFS quota 1 32K 32K 78643K 1 0 UFS mount 5 36K 36K 78643K 5 0 shm 2 1K 1K 78643K 2 0 VM map 2 1K 1K 78643K 2 0 sem 2 0K 0K 78643K 2 0 dirhash 12 2K 2K 78643K 12 0 ACPI 1697 195K 286K 78643K 12548 0 file desc 17 61K 97K 78643K 197 0 proc 55 78K 127K 78643K 450 0 NFS srvsock 1 0K 0K 78643K 1 0 NFS daemon 1 16K 16K 78643K 1 0 in_multi 99 6K 6K 78643K 99 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 25 122K 122K 78643K 25 0 exec 0 0K 2K 78643K 622 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 62K 78643K 8 0 UVM amap 184 87K 102K 78643K 2599 0 UVM aobj 3 2K 2K 78643K 3 0 memdesc 1 4K 4K 78643K 1 0 crypto data 1 1K 1K 78643K 1 0 NDP 17 1K 2K 78643K 27 0 temp 51 4710K 4774K 78643K 3455 0 kqueue 12 18K 18K 78643K 25 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 36 0 33 1 0 1 1 0 8 0 rtentry 112 111 0 1 4 0 4 4 0 8 0 unpcb 144 33 0 20 1 0 1 1 0 8 0 syncache 296 5 0 5 2 1 1 1 0 8 1 tcpcb 768 8 0 5 1 0 1 1 0 8 0 arp 120 18 0 0 1 0 1 1 0 8 0 inpcb 320 57 0 51 1 0 1 1 0 8 0 nd6 48 24 0 0 1 0 1 1 0 8 0 art_heap8 4096 1 0 0 1 0 1 1 0 8 0 art_heap4 256 451 0 0 29 0 29 29 0 8 0 art_table 32 452 0 0 4 0 4 4 0 8 0 art_node 16 110 0 10 1 0 1 1 0 8 0 dirhash 1024 17 0 0 3 0 3 3 0 8 0 dino2pl 256 1599 0 166 90 0 90 90 0 8 0 ffsino 272 1599 0 166 96 0 96 96 0 8 0 nchpl 144 1975 0 300 63 0 63 63 0 8 0 uvmvnodes 80 1608 0 0 33 0 33 33 0 8 0 vnodes 216 1608 0 0 90 0 90 90 0 8 0 namei 1024 6187 0 6186 3 1 2 2 0 8 1 percpumem 16 40 0 0 1 0 1 1 0 8 0 kstatmem 264 22 0 0 2 0 2 2 0 8 0 scxspl 216 6023 0 6022 10 7 3 8 0 8 2 plimitpl 152 23 0 9 1 0 1 1 0 8 0 sigapl 424 486 0 441 7 0 7 7 0 8 1 futexpl 64 387 0 382 1 0 1 1 0 8 0 knotepl 120 102 0 0 4 0 4 4 0 8 0 kqueuepl 216 21 0 13 1 0 1 1 0 8 0 pipepl 320 130 0 102 4 1 3 3 0 8 0 fdescpl 496 469 0 441 6 1 5 5 0 8 0 filepl 152 1631 0 1499 6 0 6 6 0 8 0 lockfpl 104 128 0 122 1 0 1 1 0 8 0 lockfspl 48 67 0 61 1 0 1 1 0 8 0 sessionpl 144 25 0 9 1 0 1 1 0 8 0 pgrppl 48 25 0 9 1 0 1 1 0 8 0 ucredpl 104 64 0 54 1 0 1 1 0 8 0 zombiepl 144 441 0 441 2 1 1 1 0 8 1 processpl 1064 486 0 441 4 0 4 4 0 8 0 procpl 672 617 0 547 6 0 6 6 0 8 0 sockpl 488 126 0 104 4 0 4 4 0 8 1 mcl8k 8192 5 0 0 1 0 1 1 0 8 0 mcl4k 4096 4 0 0 1 0 1 1 0 8 0 mcl2k 2048 78 0 0 9 0 9 9 0 8 0 mtagpl 96 4 0 0 1 0 1 1 0 8 0 mbufpl 256 278 0 0 17 0 17 17 0 8 0 bufpl 288 3565 0 128 246 0 246 246 0 8 0 anonpl 24 62011 0 56913 43 3 40 40 0 186 8 amapchunkpl 152 16298 0 15677 45 1 44 44 0 158 19 amappl16 200 342 0 252 6 1 5 5 0 8 0 amappl15 192 138 0 130 1 0 1 1 0 8 0 amappl14 184 39 0 30 1 0 1 1 0 8 0 amappl13 176 92 0 91 2 1 1 1 0 8 0 amappl12 168 25 0 21 2 1 1 1 0 8 0 amappl11 160 110 0 92 1 0 1 1 0 8 0 amappl10 152 14 0 13 1 0 1 1 0 8 0 amappl9 144 446 0 444 1 0 1 1 0 8 0 amappl8 136 542 0 503 3 1 2 2 0 8 0 amappl7 128 134 0 118 1 0 1 1 0 8 0 amappl6 120 178 0 167 2 0 2 2 0 8 1 amappl5 112 135 0 122 1 0 1 1 0 8 0 amappl4 104 878 0 843 2 0 2 2 0 8 0 amappl3 96 799 0 744 2 0 2 2 0 8 0 amappl2 88 443 0 410 2 0 2 2 0 8 0 amappl1 80 13540 0 12860 19 0 19 19 0 8 4 amappl 88 2168 0 2040 3 0 3 3 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 2 0 0 1 0 1 1 0 8 0 uaddrrnd 24 469 0 441 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 469 0 441 1 0 1 1 0 8 0 vmmpekpl 168 8787 0 8761 2 0 2 2 0 8 0 vmmpepl 168 48478 0 46519 90 1 89 89 0 357 0 vmsppl 368 468 0 441 4 0 4 4 0 8 1 rwobjpl 56 14213 0 11597 40 0 40 40 0 8 2 pdppl 4096 945 0 882 107 36 71 81 0 8 8 pvpl 32 242670 0 233589 258 4 254 254 0 265 179 pmappl 248 468 0 441 4 1 3 3 0 8 0 extentpl 40 56 0 38 1 0 1 1 0 8 0 phpool 112 610 0 39 17 0 17 17 0 8 0 ddb{1}> machine ddbcpu 0 Stopped at x86_ipi_db+0x1a: addq $0x8,%rsp x86_ipi_db(ffffffff82931ff0) at x86_ipi_db+0x1a x86_ipi_handler() at x86_ipi_handler+0xb7 Xresume_lapic_ipi() at Xresume_lapic_ipi+0x23 __mp_lock(ffffffff82ac9398) at __mp_lock+0x122 __mp_acquire_count(ffffffff82ac9398,1) at __mp_acquire_count+0x48 mi_switch() at mi_switch+0x3bb sleep_finish(ffff800021398698,1) at sleep_finish+0x180 rw_enter(fffffd80760d7b90,21) at rw_enter+0x35a vm_map_lock_ln(fffffd80760d7b88,294c1187000,294c1187000) at vm_map_lock_ln+0xda uvm_map_protect(fffffd80760d7b88,294c1186000,294c1187000,0,0) at uvm_map_protect+0xc1 syscall(ffff800021398960) at syscall+0x435 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x7f7ffffd5410, count: 3 ddb{0}> trace x86_ipi_db(ffffffff82931ff0) at x86_ipi_db+0x1a x86_ipi_handler() at x86_ipi_handler+0xb7 Xresume_lapic_ipi() at Xresume_lapic_ipi+0x23 __mp_lock(ffffffff82ac9398) at __mp_lock+0x122 __mp_acquire_count(ffffffff82ac9398,1) at __mp_acquire_count+0x48 mi_switch() at mi_switch+0x3bb sleep_finish(ffff800021398698,1) at sleep_finish+0x180 rw_enter(fffffd80760d7b90,21) at rw_enter+0x35a vm_map_lock_ln(fffffd80760d7b88,294c1187000,294c1187000) at vm_map_lock_ln+0xda uvm_map_protect(fffffd80760d7b88,294c1186000,294c1187000,0,0) at uvm_map_protect+0xc1 syscall(ffff800021398960) at syscall+0x435 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x7f7ffffd5410, count: -12 ddb{0}> machine ddbcpu 1 Stopped at db_enter+0x18: addq $0x8,%rsp db_enter() at db_enter+0x18 panic(ffffffff825a566a) at panic+0x177 __assert(ffffffff8261a2b2,ffffffff8263e388,ea,ffffffff82636a65) at __assert+0x25 uvn_attach(fffffd806b1fe3b8,6) at uvn_attach+0x444 uvm_mmapfile(fffffd80760d7b88,ffff800021436088,10000,2,6,11,1747145d45271d72,fffffd80760d7b88,0,11) at uvm_mmapfile+0x194 sys_mmap(ffff8000ffff3268,ffff800021436130,ffff800021436200) at sys_mmap+0xb4a sys_pad_mmap(ffff8000ffff3268,ffff8000214361b8,ffff800021436200) at sys_pad_mmap+0x68 syscall(ffff800021436280) at syscall+0x435 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x2949f151350, count: 6 ddb{1}> trace db_enter() at db_enter+0x18 panic(ffffffff825a566a) at panic+0x177 __assert(ffffffff8261a2b2,ffffffff8263e388,ea,ffffffff82636a65) at __assert+0x25 uvn_attach(fffffd806b1fe3b8,6) at uvn_attach+0x444 uvm_mmapfile(fffffd80760d7b88,ffff800021436088,10000,2,6,11,1747145d45271d72,fffffd80760d7b88,0,11) at uvm_mmapfile+0x194 sys_mmap(ffff8000ffff3268,ffff800021436130,ffff800021436200) at sys_mmap+0xb4a sys_pad_mmap(ffff8000ffff3268,ffff8000214361b8,ffff800021436200) at sys_pad_mmap+0x68 syscall(ffff800021436280) at syscall+0x435 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x2949f151350, count: -9 ddb{1}>