[moderation] [gfs2?] general protection fault in gfs2_glock_dq (2)

0 views
Skip to first unread message

syzbot

unread,
Dec 9, 2025, 7:32:27 PM (17 hours ago) Dec 9
to syzkaller-upst...@googlegroups.com
Hello,

syzbot found the following issue on:

HEAD commit: c2f2b01b74be Merge tag 'i3c/for-6.19' of git://git.kernel...
git tree: upstream
console output: https://syzkaller.appspot.com/x/log.txt?x=13424a1a580000
kernel config: https://syzkaller.appspot.com/x/.config?x=cf15a4b50e1152e3
dashboard link: https://syzkaller.appspot.com/bug?extid=4760091a9a9ad55226c7
compiler: Debian clang version 20.1.8 (++20250708063551+0c9f909b7976-1~exp1~20250708183702.136), Debian LLD 20.1.8
CC: [agru...@redhat.com gf...@lists.linux.dev linux-...@vger.kernel.org]

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

Downloadable assets:
disk image (non-bootable): https://storage.googleapis.com/syzbot-assets/d900f083ada3/non_bootable_disk-c2f2b01b.raw.xz
vmlinux: https://storage.googleapis.com/syzbot-assets/753c2b596a8a/vmlinux-c2f2b01b.xz
kernel image: https://storage.googleapis.com/syzbot-assets/9e3ad31aad53/bzImage-c2f2b01b.xz

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

UDPLite: UDP-Lite is deprecated and scheduled to be removed in 2025, please contact the netdev mailing list
loop0: detected capacity change from 0 to 32768
gfs2: fsid=syz:syz: Trying to join cluster "lock_nolock", "syz:syz"
gfs2: fsid=syz:syz: Now mounting FS (format 1801)...
gfs2: fsid=syz:syz.0: journal 0 mapped with 1 extents in 0ms
gfs2: fsid=syz:syz.0: first mount done, others may mount
loop0: detected capacity change from 32768 to 32767
gfs2: fsid=syz:syz.0: fatal: invalid metadata block - bh = 8340 (bad magic number), function = gfs2_meta_buffer, file = fs/gfs2/meta_io.c, line = 496
CPU: 0 UID: 0 PID: 5336 Comm: syz.0.0 Not tainted syzkaller #0 PREEMPT(full)
Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2~bpo12+1 04/01/2014
Call Trace:
<TASK>
dump_stack_lvl+0x189/0x250 lib/dump_stack.c:120
gfs2_withdraw+0xc3/0x1b0 fs/gfs2/util.c:250
gfs2_metatype_check_i fs/gfs2/util.h:116 [inline]
gfs2_meta_buffer+0x225/0x2e0 fs/gfs2/meta_io.c:496
__fillup_metapath+0x153/0x350 fs/gfs2/bmap.c:334
lookup_metapath fs/gfs2/bmap.c:361 [inline]
__gfs2_iomap_get+0x70f/0x13d0 fs/gfs2/bmap.c:907
gfs2_iomap_get+0xc4/0x120 fs/gfs2/bmap.c:1420
bh_get+0x252/0x740 fs/gfs2/quota.c:413
qdsb_get+0x216/0x340 fs/gfs2/quota.c:525
gfs2_quota_hold+0x198/0x5e0 fs/gfs2/quota.c:605
punch_hole+0x9c8/0x2ca0 fs/gfs2/bmap.c:1821
do_shrink fs/gfs2/bmap.c:2041 [inline]
gfs2_setattr_size+0xd3a/0x1050 fs/gfs2/bmap.c:2157
gfs2_setattr+0x243/0x3f0 fs/gfs2/inode.c:2112
notify_change+0xc1a/0xf40 fs/attr.c:546
do_truncate+0x1a4/0x220 fs/open.c:68
handle_truncate fs/namei.c:4235 [inline]
do_open fs/namei.c:4632 [inline]
path_openat+0x359d/0x3dd0 fs/namei.c:4787
do_filp_open+0x1fa/0x410 fs/namei.c:4814
do_sys_openat2+0x121/0x200 fs/open.c:1430
do_sys_open fs/open.c:1436 [inline]
__do_sys_openat fs/open.c:1452 [inline]
__se_sys_openat fs/open.c:1447 [inline]
__x64_sys_openat+0x138/0x170 fs/open.c:1447
do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline]
do_syscall_64+0xfa/0xf80 arch/x86/entry/syscall_64.c:94
entry_SYSCALL_64_after_hwframe+0x77/0x7f
RIP: 0033:0x7f17ee58f7c9
Code: ff ff c3 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 40 00 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 a8 ff ff ff f7 d8 64 89 01 48
RSP: 002b:00007f17ef353038 EFLAGS: 00000246 ORIG_RAX: 0000000000000101
RAX: ffffffffffffffda RBX: 00007f17ee7e5fa0 RCX: 00007f17ee58f7c9
RDX: 000000000000275a RSI: 0000200000000040 RDI: ffffffffffffff9c
RBP: 00007f17ee613f91 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000
R13: 00007f17ee7e6038 R14: 00007f17ee7e5fa0 R15: 00007fff7dc6fcf8
</TASK>
gfs2: fsid=syz:syz.0: about to withdraw this file system
Oops: general protection fault, probably for non-canonical address 0xdffffc0000000007: 0000 [#1] SMP KASAN NOPTI
KASAN: null-ptr-deref in range [0x0000000000000038-0x000000000000003f]
CPU: 0 UID: 0 PID: 5336 Comm: syz.0.0 Not tainted syzkaller #0 PREEMPT(full)
Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2~bpo12+1 04/01/2014
RIP: 0010:kasan_byte_accessible+0x12/0x30 mm/kasan/generic.c:210
Code: 0f 1f 84 00 00 00 00 00 90 90 90 90 90 90 90 90 90 90 90 90 90 90 90 90 0f 1f 40 d6 48 c1 ef 03 48 b8 00 00 00 00 00 fc ff df <0f> b6 04 07 3c 08 0f 92 c0 e9 40 24 36 09 cc 66 66 66 66 66 66 2e
RSP: 0018:ffffc9000b5bfb48 EFLAGS: 00010202
RAX: dffffc0000000000 RBX: ffffffff8b5f5b4e RCX: 1b420ffbc78d2200
RDX: 0000000000000000 RSI: ffffffff8b5f5b4e RDI: 0000000000000007
RBP: ffffffff8401b7e0 R08: 0000000000000001 R09: 0000000000000000
R10: dffffc0000000000 R11: ffffed1006a44005 R12: 0000000000000000
R13: 0000000000000038 R14: 0000000000000038 R15: 0000000000000001
FS: 00007f17ef3536c0(0000) GS:ffff88808d239000(0000) knlGS:0000000000000000
CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007f17ee7264f8 CR3: 000000000b72b000 CR4: 0000000000352ef0
Call Trace:
<TASK>
__kasan_check_byte+0x12/0x40 mm/kasan/common.c:572
kasan_check_byte include/linux/kasan.h:401 [inline]
lock_acquire+0x84/0x340 kernel/locking/lockdep.c:5842
__raw_spin_lock include/linux/spinlock_api_smp.h:133 [inline]
_raw_spin_lock+0x2e/0x40 kernel/locking/spinlock.c:154
spin_lock include/linux/spinlock.h:351 [inline]
gfs2_glock_dq+0x50/0x7c0 fs/gfs2/glock.c:1577
gfs2_glock_dq_uninit+0x25/0xb0 fs/gfs2/glock.c:1623
gfs2_seek_hole+0x16c/0x240 fs/gfs2/inode.c:2237
gfs2_llseek+0xfa/0x240 fs/gfs2/file.c:79
vfs_llseek fs/read_write.c:389 [inline]
ksys_lseek fs/read_write.c:402 [inline]
__do_sys_lseek fs/read_write.c:412 [inline]
__se_sys_lseek fs/read_write.c:410 [inline]
__x64_sys_lseek+0x14f/0x1e0 fs/read_write.c:410
do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline]
do_syscall_64+0xfa/0xf80 arch/x86/entry/syscall_64.c:94
entry_SYSCALL_64_after_hwframe+0x77/0x7f
RIP: 0033:0x7f17ee58f7c9
Code: ff ff c3 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 40 00 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 a8 ff ff ff f7 d8 64 89 01 48
RSP: 002b:00007f17ef353038 EFLAGS: 00000246 ORIG_RAX: 0000000000000008
RAX: ffffffffffffffda RBX: 00007f17ee7e5fa0 RCX: 00007f17ee58f7c9
RDX: 0000000000000004 RSI: 0000000000000f13 RDI: 000000000000000b
RBP: 00007f17ee613f91 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000
R13: 00007f17ee7e6038 R14: 00007f17ee7e5fa0 R15: 00007fff7dc6fcf8
</TASK>
Modules linked in:
---[ end trace 0000000000000000 ]---
RIP: 0010:kasan_byte_accessible+0x12/0x30 mm/kasan/generic.c:210
Code: 0f 1f 84 00 00 00 00 00 90 90 90 90 90 90 90 90 90 90 90 90 90 90 90 90 0f 1f 40 d6 48 c1 ef 03 48 b8 00 00 00 00 00 fc ff df <0f> b6 04 07 3c 08 0f 92 c0 e9 40 24 36 09 cc 66 66 66 66 66 66 2e
RSP: 0018:ffffc9000b5bfb48 EFLAGS: 00010202
RAX: dffffc0000000000 RBX: ffffffff8b5f5b4e RCX: 1b420ffbc78d2200
RDX: 0000000000000000 RSI: ffffffff8b5f5b4e RDI: 0000000000000007
RBP: ffffffff8401b7e0 R08: 0000000000000001 R09: 0000000000000000
R10: dffffc0000000000 R11: ffffed1006a44005 R12: 0000000000000000
R13: 0000000000000038 R14: 0000000000000038 R15: 0000000000000001
FS: 00007f17ef3536c0(0000) GS:ffff88808d239000(0000) knlGS:0000000000000000
CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007f17ee7264f8 CR3: 000000000b72b000 CR4: 0000000000352ef0
----------------
Code disassembly (best guess):
0: 0f 1f 84 00 00 00 00 nopl 0x0(%rax,%rax,1)
7: 00
8: 90 nop
9: 90 nop
a: 90 nop
b: 90 nop
c: 90 nop
d: 90 nop
e: 90 nop
f: 90 nop
10: 90 nop
11: 90 nop
12: 90 nop
13: 90 nop
14: 90 nop
15: 90 nop
16: 90 nop
17: 90 nop
18: 0f 1f 40 d6 nopl -0x2a(%rax)
1c: 48 c1 ef 03 shr $0x3,%rdi
20: 48 b8 00 00 00 00 00 movabs $0xdffffc0000000000,%rax
27: fc ff df
* 2a: 0f b6 04 07 movzbl (%rdi,%rax,1),%eax <-- trapping instruction
2e: 3c 08 cmp $0x8,%al
30: 0f 92 c0 setb %al
33: e9 40 24 36 09 jmp 0x9362478
38: cc int3
39: 66 data16
3a: 66 data16
3b: 66 data16
3c: 66 data16
3d: 66 data16
3e: 66 data16
3f: 2e cs


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