[gfs2?] general protection fault in gfs2_evict_inode

5 views
Skip to first unread message

syzbot

unread,
Dec 31, 2022, 4:41:36 PM12/31/22
to syzkaller...@googlegroups.com
Hello,

syzbot found the following issue on:

HEAD commit: 3f8a27f9e27b Linux 4.19.211
git tree: linux-4.19.y
console output: https://syzkaller.appspot.com/x/log.txt?x=1791acbc480000
kernel config: https://syzkaller.appspot.com/x/.config?x=9b9277b418617afe
dashboard link: https://syzkaller.appspot.com/bug?extid=4bd2cd6bcb83d43d8106
compiler: gcc version 10.2.1 20210110 (Debian 10.2.1-6)

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

Downloadable assets:
disk image: https://storage.googleapis.com/syzbot-assets/98c0bdb4abb3/disk-3f8a27f9.raw.xz
vmlinux: https://storage.googleapis.com/syzbot-assets/ea228ff02669/vmlinux-3f8a27f9.xz

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

R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000001
R13: 00007ffd57a97ecf R14: 00007fdf4dac4300 R15: 0000000000022000
kasan: CONFIG_KASAN_INLINE enabled
kasan: GPF could be caused by NULL-ptr deref or user memory access
general protection fault: 0000 [#1] PREEMPT SMP KASAN
CPU: 1 PID: 3329 Comm: syz-executor.5 Not tainted 4.19.211-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 10/26/2022
RIP: 0010:trace_event_get_offsets_lock_acquire include/trace/events/lock.h:13 [inline]
RIP: 0010:perf_trace_lock_acquire+0x9d/0x530 include/trace/events/lock.h:13
Code: 04 f1 f1 04 f2 c7 40 08 00 f3 f3 f3 65 48 8b 04 25 28 00 00 00 48 89 45 d0 31 c0 48 8d 46 18 48 89 85 40 ff ff ff 48 c1 e8 03 <80> 3c 10 00 0f 85 4f 03 00 00 49 8b 7d 18 48 c7 c0 80 14 6a 88 48
RSP: 0018:ffff8880422ef758 EFLAGS: 00010006
RAX: 000000000000000a RBX: ffff888095920f28 RCX: 0000000000000000
RDX: dffffc0000000000 RSI: 0000000000000038 RDI: ffffffff89f6d420
RBP: ffff8880422ef840 R08: 0000000000000000 R09: 0000000000000001
R10: 0000000000000005 R11: 0000000000000000 R12: ffffffff89f6d420
R13: 0000000000000038 R14: 0000000000000000 R15: ffff8880422ef818
FS: 00007fdf4dac4700(0000) GS:ffff8880ba100000(0000) knlGS:0000000000000000
CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 0000555a3b8e28b8 CR3: 00000000a9f66000 CR4: 00000000003406e0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
trace_lock_acquire include/trace/events/lock.h:13 [inline]
lock_acquire+0x298/0x3c0 kernel/locking/lockdep.c:3907
__raw_spin_lock include/linux/spinlock_api_smp.h:142 [inline]
_raw_spin_lock+0x2a/0x40 kernel/locking/spinlock.c:144
spin_lock include/linux/spinlock.h:329 [inline]
glock_clear_object fs/gfs2/glock.h:297 [inline]
gfs2_evict_inode+0x773/0x14b0 fs/gfs2/super.c:1711
evict+0x2ed/0x760 fs/inode.c:559
iput_final fs/inode.c:1555 [inline]
iput+0x4f1/0x860 fs/inode.c:1581
gfs2_inode_lookup+0x45b/0xa50 fs/gfs2/inode.c:214
gfs2_lookup_by_inum+0x44/0x170 fs/gfs2/inode.c:225
gfs2_get_dentry fs/gfs2/export.c:140 [inline]
gfs2_fh_to_dentry fs/gfs2/export.c:163 [inline]
gfs2_fh_to_dentry+0x20c/0x290 fs/gfs2/export.c:147
exportfs_decode_fh+0x126/0x7e0 fs/exportfs/expfs.c:433
do_handle_to_path fs/fhandle.c:152 [inline]
handle_to_path fs/fhandle.c:207 [inline]
do_handle_open+0x2f4/0x650 fs/fhandle.c:223
do_syscall_64+0xf9/0x620 arch/x86/entry/common.c:293
entry_SYSCALL_64_after_hwframe+0x49/0xbe
RIP: 0033:0x7fdf4f5520a9
Code: 28 00 00 00 75 05 48 83 c4 28 c3 e8 f1 19 00 00 90 48 89 f8 48 89 f7 48 89 d6 48 89 ca 4d 89 c2 4d 89 c8 4c 8b 4c 24 08 0f 05 <48> 3d 01 f0 ff ff 73 01 c3 48 c7 c1 b8 ff ff ff f7 d8 64 89 01 48
RSP: 002b:00007fdf4dac4168 EFLAGS: 00000246 ORIG_RAX: 0000000000000130
RAX: ffffffffffffffda RBX: 00007fdf4f671f80 RCX: 00007fdf4f5520a9
RDX: 0000000000000000 RSI: 0000000020000080 RDI: 0000000000000004
RBP: 00007fdf4dac41d0 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000001
R13: 00007ffd57a97ecf R14: 00007fdf4dac4300 R15: 0000000000022000
Modules linked in:
---[ end trace a0e34826ff5826b4 ]---
RIP: 0010:trace_event_get_offsets_lock_acquire include/trace/events/lock.h:13 [inline]
RIP: 0010:perf_trace_lock_acquire+0x9d/0x530 include/trace/events/lock.h:13
Code: 04 f1 f1 04 f2 c7 40 08 00 f3 f3 f3 65 48 8b 04 25 28 00 00 00 48 89 45 d0 31 c0 48 8d 46 18 48 89 85 40 ff ff ff 48 c1 e8 03 <80> 3c 10 00 0f 85 4f 03 00 00 49 8b 7d 18 48 c7 c0 80 14 6a 88 48
RSP: 0018:ffff8880422ef758 EFLAGS: 00010006
RAX: 000000000000000a RBX: ffff888095920f28 RCX: 0000000000000000
RDX: dffffc0000000000 RSI: 0000000000000038 RDI: ffffffff89f6d420
RBP: ffff8880422ef840 R08: 0000000000000000 R09: 0000000000000001
R10: 0000000000000005 R11: 0000000000000000 R12: ffffffff89f6d420
R13: 0000000000000038 R14: 0000000000000000 R15: ffff8880422ef818
FS: 00007fdf4dac4700(0000) GS:ffff8880ba100000(0000) knlGS:0000000000000000
CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 0000555a3b8e28b8 CR3: 00000000a9f66000 CR4: 00000000003406e0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
----------------
Code disassembly (best guess):
0: 04 f1 add $0xf1,%al
2: f1 icebp
3: 04 f2 add $0xf2,%al
5: c7 40 08 00 f3 f3 f3 movl $0xf3f3f300,0x8(%rax)
c: 65 48 8b 04 25 28 00 mov %gs:0x28,%rax
13: 00 00
15: 48 89 45 d0 mov %rax,-0x30(%rbp)
19: 31 c0 xor %eax,%eax
1b: 48 8d 46 18 lea 0x18(%rsi),%rax
1f: 48 89 85 40 ff ff ff mov %rax,-0xc0(%rbp)
26: 48 c1 e8 03 shr $0x3,%rax
* 2a: 80 3c 10 00 cmpb $0x0,(%rax,%rdx,1) <-- trapping instruction
2e: 0f 85 4f 03 00 00 jne 0x383
34: 49 8b 7d 18 mov 0x18(%r13),%rdi
38: 48 c7 c0 80 14 6a 88 mov $0xffffffff886a1480,%rax
3f: 48 rex.W


---
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,
Dec 31, 2022, 4:56:40 PM12/31/22
to syzkaller...@googlegroups.com
syzbot has found a reproducer for the following issue on:

HEAD commit: 3f8a27f9e27b Linux 4.19.211
git tree: linux-4.19.y
console output: https://syzkaller.appspot.com/x/log.txt?x=17a33db8480000
kernel config: https://syzkaller.appspot.com/x/.config?x=9b9277b418617afe
dashboard link: https://syzkaller.appspot.com/bug?extid=4bd2cd6bcb83d43d8106
compiler: gcc version 10.2.1 20210110 (Debian 10.2.1-6)
syz repro: https://syzkaller.appspot.com/x/repro.syz?x=12c3da0a480000
C reproducer: https://syzkaller.appspot.com/x/repro.c?x=177b0514480000
mounted in repro: https://storage.googleapis.com/syzbot-assets/e25a3d41e313/mount_0.gz

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

RBP: 00007ffe5f4a5f20 R08: 0000000000000001 R09: 00007ffe5f4a5f30
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000005
R13: 00007ffe5f4a5f60 R14: 00007ffe5f4a5f40 R15: 0000000000000001
kasan: CONFIG_KASAN_INLINE enabled
kasan: GPF could be caused by NULL-ptr deref or user memory access
general protection fault: 0000 [#1] PREEMPT SMP KASAN
CPU: 0 PID: 8119 Comm: syz-executor181 Not tainted 4.19.211-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 10/26/2022
RIP: 0010:__lock_acquire+0x1eb/0x3ff0 kernel/locking/lockdep.c:3295
Code: 2b 29 00 00 48 81 c4 98 01 00 00 44 89 f8 5b 5d 41 5c 41 5d 41 5e 41 5f c3 48 b8 00 00 00 00 00 fc ff df 4c 89 f2 48 c1 ea 03 <80> 3c 02 00 0f 85 b3 2a 00 00 49 81 3e 20 f2 66 8c 0f 84 65 ff ff
RSP: 0018:ffff888097d77670 EFLAGS: 00010002
RAX: dffffc0000000000 RBX: 0000000000000000 RCX: 0000000000000000
RDX: 0000000000000007 RSI: 0000000000000000 RDI: 0000000000000001
RBP: 0000000000000000 R08: 0000000000000000 R09: 0000000000000001
R10: 0000000000000005 R11: 0000000000000000 R12: 0000000000000000
R13: ffff8880b014e300 R14: 0000000000000038 R15: 0000000000000001
FS: 000055555575f300(0000) GS:ffff8880ba000000(0000) knlGS:0000000000000000
CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00005654ee166c70 CR3: 00000000b507f000 CR4: 00000000003406f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
lock_acquire+0x170/0x3c0 kernel/locking/lockdep.c:3908
__raw_spin_lock include/linux/spinlock_api_smp.h:142 [inline]
_raw_spin_lock+0x2a/0x40 kernel/locking/spinlock.c:144
spin_lock include/linux/spinlock.h:329 [inline]
glock_clear_object fs/gfs2/glock.h:297 [inline]
gfs2_evict_inode+0x773/0x14b0 fs/gfs2/super.c:1711
evict+0x2ed/0x760 fs/inode.c:559
iput_final fs/inode.c:1555 [inline]
iput+0x4f1/0x860 fs/inode.c:1581
gfs2_inode_lookup+0x45b/0xa50 fs/gfs2/inode.c:214
gfs2_lookup_by_inum+0x44/0x170 fs/gfs2/inode.c:225
gfs2_get_dentry fs/gfs2/export.c:140 [inline]
gfs2_fh_to_dentry fs/gfs2/export.c:163 [inline]
gfs2_fh_to_dentry+0x20c/0x290 fs/gfs2/export.c:147
exportfs_decode_fh+0x126/0x7e0 fs/exportfs/expfs.c:433
do_handle_to_path fs/fhandle.c:152 [inline]
handle_to_path fs/fhandle.c:207 [inline]
do_handle_open+0x2f4/0x650 fs/fhandle.c:223
do_syscall_64+0xf9/0x620 arch/x86/entry/common.c:293
entry_SYSCALL_64_after_hwframe+0x49/0xbe
RIP: 0033:0x7fbdf65119f9
Code: 28 00 00 00 75 05 48 83 c4 28 c3 e8 11 15 00 00 90 48 89 f8 48 89 f7 48 89 d6 48 89 ca 4d 89 c2 4d 89 c8 4c 8b 4c 24 08 0f 05 <48> 3d 01 f0 ff ff 73 01 c3 48 c7 c1 c0 ff ff ff f7 d8 64 89 01 48
RSP: 002b:00007ffe5f4a5ef8 EFLAGS: 00000246 ORIG_RAX: 0000000000000130
RAX: ffffffffffffffda RBX: 0000000000000001 RCX: 00007fbdf65119f9
RDX: 0000000000000000 RSI: 0000000020000080 RDI: 0000000000000004
RBP: 00007ffe5f4a5f20 R08: 0000000000000001 R09: 00007ffe5f4a5f30
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000005
R13: 00007ffe5f4a5f60 R14: 00007ffe5f4a5f40 R15: 0000000000000001
Modules linked in:
---[ end trace ac79e0a720fda49b ]---
RIP: 0010:__lock_acquire+0x1eb/0x3ff0 kernel/locking/lockdep.c:3295
Code: 2b 29 00 00 48 81 c4 98 01 00 00 44 89 f8 5b 5d 41 5c 41 5d 41 5e 41 5f c3 48 b8 00 00 00 00 00 fc ff df 4c 89 f2 48 c1 ea 03 <80> 3c 02 00 0f 85 b3 2a 00 00 49 81 3e 20 f2 66 8c 0f 84 65 ff ff
RSP: 0018:ffff888097d77670 EFLAGS: 00010002
RAX: dffffc0000000000 RBX: 0000000000000000 RCX: 0000000000000000
RDX: 0000000000000007 RSI: 0000000000000000 RDI: 0000000000000001
RBP: 0000000000000000 R08: 0000000000000000 R09: 0000000000000001
R10: 0000000000000005 R11: 0000000000000000 R12: 0000000000000000
R13: ffff8880b014e300 R14: 0000000000000038 R15: 0000000000000001
FS: 000055555575f300(0000) GS:ffff8880ba000000(0000) knlGS:0000000000000000
CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00005654ee166c70 CR3: 00000000b507f000 CR4: 00000000003406f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
----------------
Code disassembly (best guess):
0: 2b 29 sub (%rcx),%ebp
2: 00 00 add %al,(%rax)
4: 48 81 c4 98 01 00 00 add $0x198,%rsp
b: 44 89 f8 mov %r15d,%eax
e: 5b pop %rbx
f: 5d pop %rbp
10: 41 5c pop %r12
12: 41 5d pop %r13
14: 41 5e pop %r14
16: 41 5f pop %r15
18: c3 retq
19: 48 b8 00 00 00 00 00 movabs $0xdffffc0000000000,%rax
20: fc ff df
23: 4c 89 f2 mov %r14,%rdx
26: 48 c1 ea 03 shr $0x3,%rdx
* 2a: 80 3c 02 00 cmpb $0x0,(%rdx,%rax,1) <-- trapping instruction
2e: 0f 85 b3 2a 00 00 jne 0x2ae7
34: 49 81 3e 20 f2 66 8c cmpq $0xffffffff8c66f220,(%r14)
3b: 0f .byte 0xf
3c: 84 65 ff test %ah,-0x1(%rbp)
3f: ff .byte 0xff

Reply all
Reply to author
Forward
0 new messages