protection_fault: lf_advlock (2)

1 view
Skip to first unread message

syzbot

unread,
May 3, 2022, 3:15:35 AM5/3/22
to syzkaller-o...@googlegroups.com
Hello,

syzbot found the following issue on:

HEAD commit: 88bd1af95c05 remove an obsolete rsa1 format example from a..
git tree: openbsd
console output: https://syzkaller.appspot.com/x/log.txt?x=14f085aaf00000
kernel config: https://syzkaller.appspot.com/x/.config?x=bf87b6915a88cd0d
dashboard link: https://syzkaller.appspot.com/bug?extid=7947446bd97dff61b7d0

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

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

kernel: protection fault trap, code=0
Stopped at lf_advlock+0x21f: addl $0x1,0x28(%rbx)
ddb{1}>
ddb{1}> set $lines = 0
ddb{1}> set $maxwidth = 0
ddb{1}> show panic
the kernel did not panic
ddb{1}> trace
lf_advlock(ffff800000beaf60,0,fffffd8064acdd98,2,ffff80002e3bad10,40) at lf_advlock+0x21f ls_ref sys/kern/vfs_lockf.c:140 [inline]
lf_advlock(ffff800000beaf60,0,fffffd8064acdd98,2,ffff80002e3bad10,40) at lf_advlock+0x21f sys/kern/vfs_lockf.c:281
VOP_ADVLOCK(fffffd807ea93c10,fffffd8064acdd98,2,ffff80002e3bad10,40) at VOP_ADVLOCK+0x71 sys/kern/vfs_vops.c:628
closef(fffffd80745e8d10,ffff8000fffef7a8) at closef+0xe5
fdfree(ffff8000fffef7a8) at fdfree+0xf4 sys/kern/kern_descrip.c:1195
exit1(ffff8000fffef7a8,0,0,1) at exit1+0x37d sys/kern/kern_exit.c:202
sys_exit(ffff8000fffef7a8,ffff80002e3bae80,ffff80002e3baee0) at sys_exit+0x16 sys/kern/kern_exit.c:95
syscall(ffff80002e3baf50) at syscall+0x489 mi_syscall sys/sys/syscall_mi.h:102 [inline]
syscall(ffff80002e3baf50) at syscall+0x489 sys/arch/amd64/amd64/trap.c:585
Xsyscall() at Xsyscall+0x128
end of kernel
end trace frame: 0x7f7ffffc6ff0, count: -8
ddb{1}> show registers
rdi 0
rsi 0
rbp 0xffff80002e3bac60
rbx 0xdead4110dead4110
rdx 0
rcx 0x9
rax 0xffff8000fffef7a8
r8 0
r9 0x1
r10 0xbe97e75ca8ba3c37
r11 0x59176b96910a053c
r12 0x2
r13 0xffffffffffffffff
r14 0xffff800000beaf60
r15 0
rip 0xffffffff81c0284f lf_advlock+0x21f
cs 0x8
rflags 0x10246 __ALIGN_SIZE+0xf246
rsp 0xffff80002e3babd0
ss 0
lf_advlock+0x21f: addl $0x1,0x28(%rbx)
ddb{1}> show proc
PROC (syz-executor.5) pid=446008 stat=onproc
flags process=1018<EXITING,SUGID,SINGLEEXIT> proc=2000<WEXIT>
pri=32, usrpri=81, nice=20
forw=0xffffffffffffffff, list=0xffff80002dd58010,0xffff8000fffeefd8
process=0xffff800029310448 user=0xffff80002e3b6000, vmspace=0xfffffd8068f7f8b8
estcpu=31, cpticks=0, pctcpu=0.8
user=0, sys=0, intr=0
ddb{1}> ps
PID TID PPID UID S FLAGS WAIT COMMAND
34515 205442 33914 32767 3 0x90 nanoslp syz-executor.1
34515 358767 33914 32767 3 0x4000090 fsleep syz-executor.1
44 115727 85915 32767 2 0x10 syz-executor.6
44 500855 85915 32767 3 0x4000010 lockflk syz-executor.6
44 18034 85915 32767 7 0x4000090 syz-executor.6
44 373068 85915 32767 3 0x4000090 fsleep syz-executor.6
38921 521407 35748 32767 2 0x10 syz-executor.7
38921 324146 35748 32767 3 0x4000090 fsleep syz-executor.7
85915 288273 87082 32767 3 0x90 nanoslp syz-executor.6
87082 413615 58507 0 3 0x82 wait syz-executor.6
86702 488654 20703 32767 3 0x90 piperd syz-executor.4
20703 6161 58507 0 3 0x82 wait syz-executor.4
36911 283303 11855 32767 3 0x90 nanoslp syz-executor.5
11855 167647 58507 0 3 0x82 wait syz-executor.5
35748 425645 8818 32767 3 0x90 nanoslp syz-executor.7
8818 317184 58507 0 3 0x82 wait syz-executor.7
19012 335989 0 0 3 0x14200 bored sosplice
71982 65319 98425 32767 3 0x90 piperd syz-executor.3
98425 372599 58507 0 3 0x82 wait syz-executor.3
71684 305436 37164 32767 3 0x90 nanoslp syz-executor.2
33914 419560 16213 32767 3 0x90 nanoslp syz-executor.1
37164 382164 58507 0 3 0x82 wait syz-executor.2
16213 368508 58507 0 3 0x82 wait syz-executor.1
1419 256909 69338 32767 3 0x90 nanoslp syz-executor.0
69338 14143 58507 0 3 0x82 wait syz-executor.0
58507 362901 78499 0 3 0x82 thrsleep syz-fuzzer
58507 200436 78499 0 3 0x4000082 thrsleep syz-fuzzer
58507 46771 78499 0 3 0x4000082 thrsleep syz-fuzzer
58507 81325 78499 0 3 0x4000082 thrsleep syz-fuzzer
58507 234180 78499 0 3 0x4000082 thrsleep syz-fuzzer
58507 9611 78499 0 3 0x4000082 thrsleep syz-fuzzer
58507 139646 78499 0 3 0x4000082 thrsleep syz-fuzzer
58507 315703 78499 0 3 0x4000082 kqread syz-fuzzer
58507 429914 78499 0 3 0x4000082 thrsleep syz-fuzzer
78499 350454 58385 0 3 0x10008a sigsusp ksh
58385 461040 15929 0 3 0x9a kqread sshd
25942 168936 1 0 3 0x100083 ttyin getty
15929 212587 1 0 3 0x88 kqread sshd
89782 185099 41613 73 3 0x1100090 kqread syslogd
41613 132995 1 0 3 0x100082 netio syslogd
47979 139996 1 0 3 0x100080 kqread resolvd
8144 236433 71713 77 3 0x100092 kqread dhcpleased
78454 106918 71713 77 3 0x100092 kqread dhcpleased
71713 506401 1 0 3 0x80 kqread dhcpleased
61781 268045 0 0 3 0x14200 bored smr
35639 490849 0 0 2 0x14200 zerothread
86742 86588 0 0 3 0x14200 aiodoned aiodoned
27953 440991 0 0 3 0x14200 syncer update
12157 268737 0 0 3 0x14200 cleaner cleaner
9970 31813 0 0 3 0x14200 reaper reaper
72826 510697 0 0 3 0x14200 pgdaemon pagedaemon
88316 369460 0 0 3 0x14200 bored viomb
21498 216954 0 0 3 0x40014200 acpi0 acpi0
11369 443951 0 0 3 0x40014200 idle1
84010 320183 0 0 3 0x14200 bored softnet
2955 422236 0 0 3 0x14200 bored systqmp
28866 215414 0 0 3 0x14200 bored systq
15876 319040 0 0 3 0x40014200 bored softclock
90627 521031 0 0 3 0x40014200 idle0
1 8650 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 10207 6412K 6419K 78643K 11329 0
pcb 13 12K 14K 78643K 17 0
rtable 240 6K 7K 78643K 1705 0
ifaddr 81 17K 17K 78643K 153 0
sysctl 3 1K 1K 78643K 3 0
counters 56 35K 35K 78643K 76 0
ioctlops 0 0K 2K 78643K 386 0
iov 0 0K 36K 78643K 4033 0
mount 1 1K 1K 78643K 1 0
log 0 0K 0K 78643K 5 0
vnodes 1271 79K 79K 78643K 10286 0
UFS quota 1 32K 32K 78643K 1 0
UFS mount 5 36K 36K 78643K 5 0
shm 2 1K 9K 78643K 182 0
VM map 2 1K 1K 78643K 2 0
sem 12 0K 0K 78643K 6771 0
dirhash 12 2K 2K 78643K 12 0
ACPI 1697 195K 286K 78643K 12548 0
file desc 22 81K 109K 78643K 20105 0
sigio 0 0K 0K 78643K 404 0
proc 56 78K 115K 78643K 2411 0
subproc 104 6K 6K 78643K 234 0
NFS srvsock 1 0K 0K 78643K 1 0
NFS daemon 1 16K 16K 78643K 1 0
ip_moptions 0 0K 0K 78643K 1903 0
in_multi 99 6K 7K 78643K 460 0
ether_multi 1 0K 0K 78643K 76 0
mrt 2 0K 0K 78643K 2 0
ISOFS mount 1 32K 32K 78643K 1 0
MSDOSFS mount 1 16K 16K 78643K 1 0
ttys 259 1155K 1155K 78643K 259 0
exec 0 0K 2K 78643K 3720 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 7 26K 26K 78643K 7 0
UVM amap 337 87K 118K 78643K 130387 0
UVM aobj 131 8K 8K 78643K 134 0
memdesc 1 4K 4K 78643K 1 0
crypto data 1 1K 1K 78643K 1 0
ip6_options 0 0K 0K 78643K 643 0
NDP 11 0K 2K 78643K 57 0
temp 124 4730K 4858K 78643K 51515 0
kqueue 12 18K 30K 78643K 3091 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 1878 0 1875 33 32 1 3 0 8 0
rtentry 112 252 0 139 4 0 4 4 0 8 0
unpcb 136 18896 0 18883 201 198 3 9 0 8 2
syncache 296 208 0 208 47 46 1 1 0 8 1
tcpqe 32 87 0 87 32 31 1 1 0 8 1
tcpcb 736 13360 0 13346 377 375 2 24 0 8 0
arp 120 42 0 24 1 0 1 1 0 8 0
ipq 40 2 0 2 2 2 0 1 0 8 0
ipqe 40 7 0 7 2 2 0 1 0 8 0
inpcb 312 24305 0 24295 333 331 2 17 0 8 0
nd6 48 81 0 54 1 0 1 1 0 8 0
kcovpl 48 18 0 10 1 0 1 1 0 8 0
rttmrq 48 6 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 1018 0 546 33 3 30 30 0 8 0
art_table 32 1019 0 546 4 0 4 4 0 8 0
art_node 16 251 0 148 1 0 1 1 0 8 0
sysvmsgpl 40 3 0 1 1 0 1 1 0 8 0
semapl 112 6769 0 6759 1 0 1 1 0 8 0
shmpl 112 131 0 3 4 0 4 4 0 8 0
dirhash 1024 17 0 0 3 0 3 3 0 8 0
dino2pl 256 33860 0 32366 94 0 94 94 0 8 0
ffsino 272 33860 0 32366 101 0 101 101 0 8 0
nchpl 144 61626 0 59991 63 0 63 63 0 8 0
uvmvnodes 80 5926 0 0 121 0 121 121 0 8 0
vnodes 224 5926 0 0 349 0 349 349 0 8 0
namei 1024 223762 0 223762 8 7 1 2 0 8 1
percpumem 16 50 0 10 1 0 1 1 0 8 0
kstatmem 264 42 0 20 2 0 2 2 0 8 0
scxspl 216 173797 0 173797 77 75 2 8 0 8 2
plimitpl 152 4241 0 4215 21 19 2 2 0 8 0
sigapl 424 20360 0 20310 7 0 7 7 0 8 0
futexpl 64 196535 0 196532 7 6 1 1 0 8 0
knotepl 120 1938 0 0 19 2 17 17 0 8 0
kqueuepl 216 8634 0 8626 136 135 1 5 0 8 0
pipepl 336 4368 0 4340 134 129 5 9 0 8 2
fdescpl 496 20345 0 20312 7 2 5 6 0 8 0
filepl 152 171485 0 171231 315 302 13 19 0 8 3
lockfpl 104 27534 0 27532 3 2 1 2 0 8 0
lockfspl 48 4655 0 4653 1 0 1 1 0 8 0
sessionpl 144 33 0 17 1 0 1 1 0 8 0
pgrppl 48 134 0 118 1 0 1 1 0 8 0
ucredpl 96 50734 0 50716 1 0 1 1 0 8 0
zombiepl 144 20313 0 20310 3 2 1 1 0 8 0
processpl 1064 20360 0 20310 5 1 4 4 0 8 0
procpl 672 65882 0 65819 49 42 7 8 0 8 0
sosppl 168 1656 0 1656 38 37 1 1 0 8 1
sockpl 480 45579 0 45553 987 974 13 34 0 8 8
mcl64k 65536 58 0 0 5 1 4 4 0 8 0
mcl16k 16384 81 0 0 9 6 3 3 0 8 0
mcl12k 12288 49 0 0 2 0 2 2 0 8 0
mcl9k 9216 33 0 0 3 1 2 2 0 8 0
mcl8k 8192 81 0 0 8 5 3 3 0 8 0
mcl4k 4096 64 0 0 5 2 3 3 0 8 0
mcl2k2 2112 14 0 0 1 0 1 1 0 8 0
mcl2k 2048 412 0 0 18 3 15 18 0 8 0
mtagpl 96 3 0 0 1 0 1 1 0 8 0
mbufpl 256 10395 0 0 581 0 581 581 0 8 0
bufpl 288 39781 0 33447 453 0 453 453 0 8 0
anonpl 24 4424635 0 4411584 461 358 103 136 0 186 0
amapchunkpl 152 454658 0 454097 409 376 33 47 0 158 6
amappl16 200 72588 0 72203 480 458 22 46 0 8 1
amappl15 192 4435 0 4432 1 0 1 1 0 8 0
amappl14 184 4773 0 4763 1 0 1 1 0 8 0
amappl13 176 2532 0 2529 1 0 1 1 0 8 0
amappl12 168 34 0 27 1 0 1 1 0 8 0
amappl11 160 3590 0 3573 1 0 1 1 0 8 0
amappl10 152 1574 0 1571 1 0 1 1 0 8 0
amappl9 144 4013 0 4007 1 0 1 1 0 8 0
amappl8 136 3534 0 3359 9 2 7 7 0 8 0
amappl7 128 2224 0 2212 1 0 1 1 0 8 0
amappl6 120 3816 0 3785 7 6 1 2 0 8 0
amappl5 112 15723 0 15705 1 0 1 1 0 8 0
amappl4 104 10505 0 10471 6 5 1 2 0 8 0
amappl3 96 65484 0 65430 2 0 2 2 0 8 0
amappl2 88 24269 0 24193 3 1 2 3 0 8 0
amappl1 80 504914 0 504233 53 36 17 19 0 8 1
amappl 88 128451 0 128281 5 0 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
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 133 0 3 3 0 3 3 0 8 0
uaddrrnd 24 20345 0 20312 1 0 1 1 0 8 0
uaddrbest 32 2 0 0 1 0 1 1 0 8 0
uaddr 24 20345 0 20312 1 0 1 1 0 8 0
vmmpekpl 168 176425 0 176366 4 1 3 4 0 8 0
vmmpepl 168 2041069 0 2038385 505 370 135 156 0 357 0
vmsppl 368 20344 0 20312 4 0 4 4 0 8 0
rwobjpl 56 535055 0 527535 141 30 111 115 0 8 0
pdppl 4096 40697 0 40624 620 539 81 89 0 8 8
pvpl 32 8321465 0 8302954 899 717 182 257 0 265 3
pmappl 248 20344 0 20312 4 1 3 3 0 8 0
extentpl 40 58 0 38 1 0 1 1 0 8 0
phpool 112 2790 0 1403 41 0 41 41 0 8 0
ddb{1}> machine ddbcpu 0
Stopped at x86_ipi_db+0x1a: addq $0x8,%rsp
ddb{0}> trace
x86_ipi_db(ffffffff829acff0) at x86_ipi_db+0x1a 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+0x23
__mp_lock(ffffffff82af2f70) at __mp_lock+0x129 __mp_lock_spin sys/kern/kern_lock.c:116 [inline]
__mp_lock(ffffffff82af2f70) at __mp_lock+0x129 sys/kern/kern_lock.c:147
__mp_acquire_count(ffffffff82af2f70,1) at __mp_acquire_count+0x48 sys/kern/kern_lock.c:227
mi_switch() at mi_switch+0x3d3 sys/kern/sched_bsd.c:416
sleep_finish(ffff8000260c09a0,1) at sleep_finish+0x198 sys/kern/kern_synch.c:437
rwsleep(ffff80002dd582b0,ffffffff829ca3f0,120,ffffffff82593b81,0) at rwsleep+0xd5 sys/kern/kern_synch.c:317
futex_wait(7c4d3d1f760,3,0,2) at futex_wait+0x13c sys/kern/sys_futex.c:260
sys_futex(ffff80002dd582b0,ffff8000260c0b30,ffff8000260c0b90) at sys_futex+0xf8 sys/kern/sys_futex.c:111
syscall(ffff8000260c0c00) at syscall+0x489 mi_syscall sys/sys/syscall_mi.h:102 [inline]
syscall(ffff8000260c0c00) at syscall+0x489 sys/arch/amd64/amd64/trap.c:585
Xsyscall() at Xsyscall+0x128
end of kernel
end trace frame: 0x7c4f24bd8d0, count: -12
ddb{0}> machine ddbcpu 1
Stopped at lf_advlock+0x21f: addl $0x1,0x28(%rbx)
ddb{1}> trace
lf_advlock(ffff800000beaf60,0,fffffd8064acdd98,2,ffff80002e3bad10,40) at lf_advlock+0x21f ls_ref sys/kern/vfs_lockf.c:140 [inline]
lf_advlock(ffff800000beaf60,0,fffffd8064acdd98,2,ffff80002e3bad10,40) at lf_advlock+0x21f sys/kern/vfs_lockf.c:281
VOP_ADVLOCK(fffffd807ea93c10,fffffd8064acdd98,2,ffff80002e3bad10,40) at VOP_ADVLOCK+0x71 sys/kern/vfs_vops.c:628
closef(fffffd80745e8d10,ffff8000fffef7a8) at closef+0xe5
fdfree(ffff8000fffef7a8) at fdfree+0xf4 sys/kern/kern_descrip.c:1195
exit1(ffff8000fffef7a8,0,0,1) at exit1+0x37d sys/kern/kern_exit.c:202
sys_exit(ffff8000fffef7a8,ffff80002e3bae80,ffff80002e3baee0) at sys_exit+0x16 sys/kern/kern_exit.c:95
syscall(ffff80002e3baf50) at syscall+0x489 mi_syscall sys/sys/syscall_mi.h:102 [inline]
syscall(ffff80002e3baf50) at syscall+0x489 sys/arch/amd64/amd64/trap.c:585
Xsyscall() at Xsyscall+0x128
end of kernel
end trace frame: 0x7f7ffffc6ff0, count: -8


---
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.

syzbot

unread,
Sep 18, 2022, 10:20:27 AM9/18/22
to syzkaller-o...@googlegroups.com
Auto-closing this bug as obsolete.
Crashes did not happen for a while, no reproducer and no activity.
Reply all
Reply to author
Forward
0 new messages