panic: vref used where vget required (5)

0 views
Skip to first unread message

syzbot

unread,
4:36 PM (7 hours ago) 4:36 PM
to syzkaller-o...@googlegroups.com
Hello,

syzbot found the following issue on:

HEAD commit: df8f251ef5f9 These function -> These functions
git tree: openbsd
console output: https://syzkaller.appspot.com/x/log.txt?x=14ff03c2580000
kernel config: https://syzkaller.appspot.com/x/.config?x=7058272de1526588
dashboard link: https://syzkaller.appspot.com/bug?extid=800aa2a739b75873b3c5

Unfortunately, I don't have any reproducer for this issue yet.

Downloadable assets:
disk image: https://storage.googleapis.com/syzbot-assets/2fdd689e4009/disk-df8f251e.raw.xz
bsd.gdb: https://storage.googleapis.com/syzbot-assets/9e766e1c11cd/bsd-df8f251e.gdb.xz
kernel image: https://storage.googleapis.com/syzbot-assets/b51efcdf4947/kernel-df8f251e.xz

IMPORTANT: if you fix the issue, please add the following tag to the commit:
Reported-by: syzbot+800aa2...@syzkaller.appspotmail.com

login: panic: vref used where vget required
Stopped at db_enter+0x25: addq $0x8,%rsp
TID PID UID PRFLAGS PFLAGS CPU COMMAND
*425545 23780 0 0 0x4000000 0K syz-executor
db_enter() at db_enter+0x25 sys/arch/amd64/amd64/db_interface.c:438
panic(ffffffff8341b718) at panic+0x1e5 sys/kern/subr_prf.c:198
vref(fffffd80699343a8) at vref+0x109 sys/kern/vfs_subr.c:708
namei(ffff80003bc218f0) at namei+0x555 sys/kern/vfs_lookup.c:221
uipc_bind(ffff800001542c98,fffffd80672f0000,ffff80003c4d7cc0) at uipc_bind+0x328 sys/kern/uipc_usrreq.c:371
sys_bind(ffff80003c4d7cc0,ffff80003bc21b50,ffff80003bc21aa0) at sys_bind+0x2f6 sys/kern/uipc_syscalls.c:190
syscall(ffff80003bc21b50) at syscall+0xbd4 mi_syscall sys/sys/syscall_mi.h:176 [inline]
syscall(ffff80003bc21b50) at syscall+0xbd4 sys/arch/amd64/amd64/trap.c:775
Xsyscall() at Xsyscall+0x128
end of kernel
end trace frame: 0xef2a8b4fd70, 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: vref used where vget required
ddb{0}> trace
db_enter() at db_enter+0x25 sys/arch/amd64/amd64/db_interface.c:438
panic(ffffffff8341b718) at panic+0x1e5 sys/kern/subr_prf.c:198
vref(fffffd80699343a8) at vref+0x109 sys/kern/vfs_subr.c:708
namei(ffff80003bc218f0) at namei+0x555 sys/kern/vfs_lookup.c:221
uipc_bind(ffff800001542c98,fffffd80672f0000,ffff80003c4d7cc0) at uipc_bind+0x328 sys/kern/uipc_usrreq.c:371
sys_bind(ffff80003c4d7cc0,ffff80003bc21b50,ffff80003bc21aa0) at sys_bind+0x2f6 sys/kern/uipc_syscalls.c:190
syscall(ffff80003bc21b50) at syscall+0xbd4 mi_syscall sys/sys/syscall_mi.h:176 [inline]
syscall(ffff80003bc21b50) at syscall+0xbd4 sys/arch/amd64/amd64/trap.c:775
Xsyscall() at Xsyscall+0x128
end of kernel
end trace frame: 0xef2a8b4fd70, count: -8
ddb{0}> show registers
rdi 0
rsi 0x1
rbp 0xffff80003bc216a0
rbx 0xffffffff83836e07 cpu_info_full_primary+0x2e07
rdx 0xffff80000147e1c0
rcx 0xffff80003c4d7cc0
rax 0xffffffff83835ff0 cpu_info_full_primary+0x1ff0
r8 0x101010101010101
r9 0x8080808080808080
r10 0x385c5d2d9b182e3
r11 0x456ddb2097088263
r12 0xffffffff83836c08 cpu_info_full_primary+0x2c08
r13 0
r14 0
r15 0x1
rip 0xffffffff811c7635 db_enter+0x25
cs 0x8
rflags 0x246
rsp 0xffff80003bc21690
ss 0x10
db_enter+0x25: addq $0x8,%rsp
ddb{0}> show proc
PROC (syz-executor) tid=425545 pid=23780 tcnt=2 stat=onproc
flags process=0 proc=4000000<THREAD>
runpri=32, usrpri=86, slppri=32, nice=20
wchan=0x0, wmesg=, ps_single=0x0 scnt=0 ecnt=0
forw=0xffffffffffffffff, list=0xffff80003c4d7260,0xffff80003c4d6aa8
process=0xffff80002a3c2698 user=0xffff80003bc1c000, vmspace=0xfffffd806988fd78
estcpu=36, cpticks=1, pctcpu=0.0, user=0, sys=1, intr=0
ddb{0}> ps
PID TID PPID UID S FLAGS WAIT COMMAND
48724 378012 2870 0 2 0 syz-executor
48724 212676 2870 0 3 0x4000080 fsleep syz-executor
23780 423931 60006 0 2 0 syz-executor
*23780 425545 60006 0 7 0x4000000 syz-executor
97941 244167 11993 0 2 0 syz-executor
97941 83799 11993 0 3 0x4000080 fsleep syz-executor
9611 474504 9359 0 2 0x10 syz-executor
9611 414124 9359 0 3 0x4000090 fsleep syz-executor
46290 480385 26799 0 2 0 syz-executor
46290 494990 26799 0 3 0x4000080 fsleep syz-executor
99262 431377 56104 0 2 0 syz-executor
99262 350690 56104 0 3 0x4000080 fsleep syz-executor
99262 515949 56104 0 3 0x4000080 fsleep syz-executor
38820 494220 1 0 3 0x100083 ttyin getty
9359 476767 10267 0 3 0x82 nanoslp syz-executor
11993 402093 10267 0 3 0x82 nanoslp syz-executor
60006 322042 10267 0 3 0x82 nanoslp syz-executor
2870 345545 10267 0 3 0x82 nanoslp syz-executor
26799 398079 10267 0 3 0x82 nanoslp syz-executor
48102 516387 10267 0 3 0x82 wait syz-executor
56104 401768 10267 0 3 0x82 nanoslp syz-executor
1137 219066 10267 0 3 0x82 nanoslp syz-executor
10267 6510 62427 0 3 0x82 kqread syz-executor
62427 114642 68105 0 3 0x10008a sigsusp ksh
68105 129954 51486 0 3 0x98 kqread sshd-session
51486 374667 42080 0 3 0x92 kqread sshd-session
42080 56398 1 0 3 0x88 kqread sshd
88842 493294 47123 74 3 0x1100092 bpf pflogd
47123 78391 1 0 3 0x80 sbwait pflogd
92751 145407 71948 73 3 0x1100090 kqread syslogd
71948 176294 1 0 3 0x100082 sbwait syslogd
11737 426852 1 0 3 0x100080 kqread resolvd
39849 379830 57593 77 3 0x100092 kqread dhcpleased
39873 382507 57593 77 3 0x100092 kqread dhcpleased
57593 246202 1 0 3 0x80 kqread dhcpleased
619 508826 0 0 3 0x14200 bored smr
574 129514 0 0 2 0x14200 zerothread
8351 52251 0 0 3 0x14200 aiodoned aiodoned
12234 369078 0 0 3 0x14200 syncer update
89775 141395 0 0 3 0x14200 cleaner cleaner
89261 483407 0 0 3 0x14200 reaper reaper
36682 177376 0 0 3 0x14200 pgdaemon pagedaemon
57427 232115 0 0 3 0x14200 bored viomb
42003 51905 0 0 3 0x40014200 acpi0 acpi0
12393 351030 0 0 7 0x40014200 idle1
54748 402412 0 0 3 0x14200 bored softnet1
28448 145915 0 0 3 0x14200 bored softnet0
45158 114992 0 0 3 0x14200 bored systqmp
45523 493253 0 0 3 0x14200 bored systq
99028 307409 0 0 3 0x14200 tmoslp softclockmp
89336 204227 0 0 3 0x40014200 tmoslp softclock
28044 458932 0 0 3 0x40014200 idle0
1 17603 0 0 3 0x82 wait init
0 0 -1 0 3 0x10010200 scheduler swapper
ddb{0}> show all locks
Process 23780 (syz-executor) thread 0xffff80003c4d7cc0 (425545)
exclusive kernel_lock &kernel_lock r = 0 (0xffffffff8393e9c8)
#0 witness_lock+0x5f1 stacktrace_save sys/sys/stacktrace.h:37 [inline]
#0 witness_lock+0x5f1 sys/kern/subr_witness.c:1160
#1 uipc_bind+0x317 sys/kern/uipc_usrreq.c:371
#2 sys_bind+0x2f6 sys/kern/uipc_syscalls.c:190
#3 syscall+0xbd4 mi_syscall sys/sys/syscall_mi.h:176 [inline]
#3 syscall+0xbd4 sys/arch/amd64/amd64/trap.c:775
#4 Xsyscall+0x128
ddb{0}> show malloc
Type InUse MemUse HighUse Limit Requests Type Lim
devbuf 10209 11093K 11434K 166960K 12853 0
pcb 18 14K 14K 166960K 196 0
rtable 227 9K 10K 166960K 549 0
pf 35 17K 81K 166960K 134 0
ifaddr 42 7K 8K 166960K 89 0
ifgroup 53 2K 2K 166960K 141 0
sysctl 3 1K 9K 166960K 15 0
counters 70 37K 38K 166960K 162 0
ioctlops 0 0K 4K 166960K 1619 0
iov 0 0K 28K 166960K 49 0
mount 1 1K 1K 166960K 1 0
log 0 0K 0K 166960K 4 0
vnodes 1399 88K 88K 166960K 2038 0
UFS quota 1 32K 32K 166960K 1 0
UFS mount 5 36K 36K 166960K 5 0
shm 2 1K 9K 166960K 13 0
VM map 2 1K 1K 166960K 2 0
sem 12 0K 0K 166960K 28 0
dirhash 12 2K 2K 166960K 18 0
ACPI 1692 195K 286K 166960K 12470 0
file desc 18 65K 93K 166960K 873 0
sigio 0 0K 0K 166960K 12 0
proc 72 115K 180K 166960K 669 0
subproc 72 4K 4K 166960K 81 0
NFS srvsock 1 0K 0K 166960K 1 0
NFS daemon 1 16K 16K 166960K 1 0
ip_moptions 0 0K 0K 166960K 112 0
in_multi 88 6K 7K 166960K 142 0
ether_multi 1 0K 0K 166960K 8 0
mrt 1 0K 0K 166960K 6 0
ISOFS mount 1 32K 32K 166960K 1 0
MSDOSFS mount 1 16K 16K 166960K 1 0
ttys 109 493K 493K 166960K 109 0
exec 0 0K 1K 166960K 583 0
fusefs mount 1 32K 32K 166960K 1 0
pfkey data 0 0K 0K 166960K 2 0
tdb 3 0K 0K 166960K 3 0
VM swap 8 62K 64K 166960K 10 0
UVM amap 251 177K 191K 166960K 9593 0
UVM aobj 24 10K 10K 166960K 27 0
pinsyscall 43 86K 102K 166960K 2053 0
memdesc 1 4K 4K 166960K 1 0
crypto data 1 1K 1K 166960K 1 0
ip6_options 0 0K 0K 166960K 67 0
NDP 12 0K 2K 166960K 60 0
temp 67 8677K 8742K 166960K 48972 0
kqueue 15 24K 29K 166960K 170 0
SYN cache 2 8K 16K 166960K 3 0
ddb{0}> show all pools
Name Size Requests Fail Releases Pgreq Pgrel Npage Hiwat Minpg Maxpg Idle
plcache 128 26 0 0 1 0 1 1 0 8 0
rtpcb 120 108 0 105 2 1 1 2 0 8 0
rtentry 176 146 0 50 6 0 6 6 0 8 0
unpcb 144 738 0 716 9 8 1 6 0 8 0
syncache 336 6 0 6 3 3 0 1 0 8 0
tcpcb 736 226 0 219 4 3 1 4 0 8 0
arp 136 23 0 5 1 0 1 1 0 8 0
ipq 40 1 0 1 1 1 0 1 0 8 0
ipqe 40 3 0 3 1 1 0 1 0 8 0
inpcb 328 965 0 953 15 8 7 7 0 8 5
nd6 152 29 0 7 1 0 1 1 0 8 0
pkpcb 40 3 0 3 2 2 0 1 0 8 0
kcovpl 48 9 0 1 1 0 1 1 0 8 0
ppxss 1192 37 0 36 1 0 1 1 0 8 0
pppxif 1504 2 0 2 1 1 0 1 0 8 0
pffrag 232 10 0 2 1 0 1 1 0 482 0
pffrnode 88 10 0 2 1 0 1 1 0 8 0
pffrent 40 17 0 9 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 5 0 5 1 1 0 1 0 8 0
pfanchor 1288 1 0 1 1 1 0 1 0 8 0
pftag 88 1 0 1 1 1 0 1 0 8 0
pfstitem 24 74 0 20 1 0 1 1 0 8 0
pfstkey 128 74 0 20 2 0 2 2 0 8 0
pfstate 448 73 0 20 7 0 7 7 0 8 0
pfrule 1344 27 0 22 2 1 1 2 0 8 0
rttmr 136 1 0 1 1 0 1 1 0 8 1
art_heap8 4096 2 0 0 2 0 2 2 0 8 0
art_heap4 256 613 0 206 31 2 29 31 0 8 0
art_table 40 615 0 206 5 0 5 5 0 8 0
art_node 32 146 0 64 1 0 1 1 0 8 0
sysvmsgpl 40 14 0 8 1 0 1 1 0 8 0
semupl 112 1 0 1 1 1 0 1 0 8 0
semapl 112 25 0 15 1 0 1 1 0 8 0
shmpl 112 21 0 2 1 0 1 1 0 8 0
dirhash 1024 21 0 4 3 0 3 3 0 8 0
dino2pl 256 2921 0 1417 96 0 96 96 0 8 0
ffsino 296 2921 0 1417 118 1 117 118 0 8 0
nchpl 144 4264 0 2557 64 0 64 64 0 8 0
rtmask 32 7 0 7 3 2 1 1 0 8 1
vnodes 216 3448 0 0 192 0 192 192 0 8 0
vnodes: pool(0xffffffff838bbbe8:vnodes): page inconsistency: page 0x0; at page head addr 0xfffffd8069934f90 (p 0xfffffd8069934000)
namei 1024 14874 0 14873 1 0 1 1 0 8 0
percpumem 16 96 0 46 1 0 1 1 0 8 0
vcpupl 3968 3 0 1 1 0 1 1 0 8 0
vmpool 848 3 0 1 1 0 1 1 0 8 0
pfiaddrpl 120 1 0 1 1 1 0 1 0 8 0
kstatmem 264 84 0 58 3 0 3 3 0 8 0
scsiplug 72 5 0 5 2 1 1 1 0 8 1
scxspl 216 25657 0 25657 9 8 1 8 1 8 1
plimitpl 152 324 0 305 1 0 1 1 0 8 0
sigapl 424 1208 0 1160 8 1 7 8 0 8 0
knotepl 120 546 0 0 17 0 17 17 0 8 0
kqueuepl 224 401 0 389 5 4 1 5 0 8 0
pipepl 344 247 0 220 3 0 3 3 0 8 0
fdescpl 528 1170 0 1138 3 0 3 3 0 8 0
filepl 160 7344 0 7117 23 10 13 19 0 8 0
lockfpl 104 258 0 256 1 0 1 1 0 8 0
lockfspl 48 111 0 109 1 0 1 1 0 8 0
sessionpl 144 29 0 20 1 0 1 1 0 8 0
pgrppl 48 45 0 28 1 0 1 1 0 8 0
ucredpl 104 1091 0 1076 1 0 1 1 0 8 0
zombiepl 144 1162 0 1160 1 0 1 1 0 8 0
processpl 1232 1208 0 1160 6 1 5 6 0 8 0
procpl 664 2342 0 2287 8 2 6 8 0 8 0
sosppl 176 7 0 7 2 1 1 1 0 8 1
sockpl 752 1831 0 1794 35 24 11 18 0 8 7
mcl64k 65536 2 0 0 1 0 1 1 0 8 0
mcl16k 16384 1 0 0 1 0 1 1 0 8 0
mcl12k 12288 2 0 0 1 0 1 1 0 8 0
mcl9k 9216 1 0 0 1 0 1 1 0 8 0
mcl8k 8192 2 0 0 1 0 1 1 0 8 0
mcl4k 4096 124 0 0 16 0 16 16 0 8 0
mcl2k 2048 48 0 0 6 0 6 6 0 8 0
mtagpl 96 133 0 0 4 0 4 4 0 8 0
mbufpl 256 352 0 0 22 0 22 22 0 8 0
bufpl 280 10154 0 4018 439 0 439 439 0 8 0
anonpl 32 12488 0 0 101 0 101 101 0 246 0
amapchunkpl 152 32087 0 31597 34 7 27 33 0 158 2
amappl16 200 4115 0 4073 43 28 15 27 0 8 6
amappl15 192 1 0 0 1 0 1 1 0 8 0
amappl14 184 31 0 31 1 1 0 1 0 8 0
amappl13 176 529 0 528 1 0 1 1 0 8 0
amappl12 168 1562 0 1519 2 0 2 2 0 8 0
amappl11 160 9 0 9 1 1 0 1 0 8 0
amappl10 152 50 0 36 1 0 1 1 0 8 0
amappl9 144 248 0 248 1 1 0 1 0 8 0
amappl8 136 25 0 23 1 0 1 1 0 8 0
amappl7 128 83 0 82 1 0 1 1 0 8 0
amappl6 120 302 0 289 1 0 1 1 0 8 0
amappl5 112 95 0 84 1 0 1 1 0 8 0
amappl4 104 443 0 413 1 0 1 1 0 8 0
amappl3 96 6187 0 6077 5 1 4 4 0 8 0
amappl2 88 579 0 518 2 0 2 2 0 8 0
amappl1 80 13029 0 12438 16 2 14 14 0 8 0
amappl 88 8698 0 8530 5 0 5 5 0 92 0
uvmvnodes 80 122 0 0 3 0 3 3 0 8 0
dma4096 4096 3 0 3 3 3 0 1 0 8 0
dma1024 1024 1 0 0 1 0 1 1 0 8 0
dma256 256 7 0 7 2 2 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 8 0 8 2 2 0 1 0 8 0
dma16 16 18 0 17 1 0 1 1 0 8 0
aobjpl 72 26 0 3 1 0 1 1 0 8 0
uaddrrnd 24 1170 0 1138 1 0 1 1 0 8 0
uaddrbest 32 2 0 0 1 0 1 1 0 8 0
uaddr 24 1170 0 1138 1 0 1 1 0 8 0
vmmpekpl 168 11537 0 11493 3 0 3 3 0 8 0
vmmpepl 168 81210 0 79232 110 11 99 108 0 357 3
vmsppl 488 1169 0 1138 5 0 5 5 0 8 0
rwobjpl 80 23953 0 22877 35 7 28 32 0 8 0
pdppl 4096 2353 0 2280 104 30 74 85 0 8 1
pvpl 32 21037 0 0 170 0 170 170 0 265 0
pmappl 256 1172 0 1139 3 0 3 3 0 8 0
extentpl 40 45 0 27 1 0 1 1 0 8 0
phpool 112 307 0 43 8 0 8 8 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:438
panic(ffffffff8341b718) at panic+0x1e5 sys/kern/subr_prf.c:198
vref(fffffd80699343a8) at vref+0x109 sys/kern/vfs_subr.c:708
namei(ffff80003bc218f0) at namei+0x555 sys/kern/vfs_lookup.c:221
uipc_bind(ffff800001542c98,fffffd80672f0000,ffff80003c4d7cc0) at uipc_bind+0x328 sys/kern/uipc_usrreq.c:371
sys_bind(ffff80003c4d7cc0,ffff80003bc21b50,ffff80003bc21aa0) at sys_bind+0x2f6 sys/kern/uipc_syscalls.c:190
syscall(ffff80003bc21b50) at syscall+0xbd4 mi_syscall sys/sys/syscall_mi.h:176 [inline]
syscall(ffff80003bc21b50) at syscall+0xbd4 sys/arch/amd64/amd64/trap.c:775
Xsyscall() at Xsyscall+0x128
end of kernel
end trace frame: 0xef2a8b4fd70, count: -8
ddb{0}> machine ddbcpu 1
Stopped at x86_ipi_db+0x27: addq $0x8,%rsp
x86_ipi_db(ffff8000299ddff0) at x86_ipi_db+0x27 sys/arch/amd64/amd64/db_interface.c:394
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+0x457 sys/dev/acpi/acpicpu_x86.c:1224
sched_idle(ffff8000299ddff0) at sched_idle+0x391 sys/kern/kern_sched.c:191
end trace frame: 0x0, count: 10
ddb{1}> trace
x86_ipi_db(ffff8000299ddff0) at x86_ipi_db+0x27 sys/arch/amd64/amd64/db_interface.c:394
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+0x457 sys/dev/acpi/acpicpu_x86.c:1224
sched_idle(ffff8000299ddff0) at sched_idle+0x391 sys/kern/kern_sched.c:191
end trace frame: 0x0, count: -5


---
This report is generated by a bot. It may contain errors.
See https://goo.gl/tpsmEJ for more information about syzbot.
syzbot engineers can be reached at syzk...@googlegroups.com.

syzbot will keep track of this issue. See:
https://goo.gl/tpsmEJ#status for how to communicate with syzbot.

If the report is already addressed, let syzbot know by replying with:
#syz fix: exact-commit-title

If you want to overwrite report's subsystems, reply with:
#syz set subsystems: new-subsystem
(See the list of subsystem names on the web dashboard)

If the report is a duplicate of another one, reply with:
#syz dup: exact-subject-of-another-report

If you want to undo deduplication, reply with:
#syz undup
Reply all
Reply to author
Forward
0 new messages