syzbot


kernel BUG in gfs2_unpin

Status: upstream: reported on 2025/12/27 10:57
Subsystems: gfs2
[Documentation on labels]
Reported-by: syzbot+0c5024a57ccf4017c187@syzkaller.appspotmail.com
First crash: 20d, last: 8d17h
Discussions (1)
Title Replies (including bot) Last reply
[syzbot] [gfs2?] kernel BUG in gfs2_unpin 0 (1) 2025/12/27 10:57

Sample crash report:
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 9 extents in 0ms
gfs2: fsid=syz:syz.0: first mount done, others may mount
gfs2: fsid=syz:syz.0: found 1 quota changes
syz.0.0: attempt to access beyond end of device
loop0: rw=8390657, sector=68719479088, nr_sectors = 8 limit=32768
Buffer I/O error on dev loop0, logical block 8589934886, lost async page write
------------[ cut here ]------------
kernel BUG at fs/gfs2/lops.c:107!
Oops: invalid opcode: 0000 [#1] SMP KASAN NOPTI
CPU: 0 UID: 0 PID: 5335 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:gfs2_unpin+0x9ac/0x9c0 fs/gfs2/lops.c:107
Code: fe e9 24 fb ff ff 44 89 e1 80 e1 07 80 c1 03 38 c1 0f 8c 52 fb ff ff 4c 89 e7 e8 2f a4 25 fe e9 45 fb ff ff e8 c5 f8 bd fd 90 <0f> 0b e8 bd f8 bd fd 90 0f 0b e8 b5 f8 bd fd 90 0f 0b 66 90 90 90
RSP: 0018:ffffc9000b0af1b0 EFLAGS: 00010293
RAX: ffffffff84030eeb RBX: ffff88804410e000 RCX: ffff88803e5924c0
RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000000000002
RBP: 1ffff11008821c09 R08: ffff8880471c7577 R09: 1ffff11008e38eae
R10: dffffc0000000000 R11: ffffed1008e38eaf R12: dffffc0000000000
R13: ffff8880370221c0 R14: ffff8880471c7570 R15: ffff88804120c000
FS:  00007f5b60df26c0(0000) GS:ffff88808d414000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007f74411382b0 CR3: 0000000043d00000 CR4: 0000000000352ef0
Call Trace:
 <TASK>
 databuf_lo_after_commit+0x15e/0x1b0 fs/gfs2/lops.c:1077
 lops_after_commit fs/gfs2/lops.h:51 [inline]
 gfs2_log_flush+0xf60/0x24c0 fs/gfs2/log.c:1110
 gfs2_jdata_writepages+0xf9/0x150 fs/gfs2/aops.c:370
 do_writepages+0x32e/0x550 mm/page-writeback.c:2598
 filemap_writeback mm/filemap.c:387 [inline]
 filemap_fdatawrite_range mm/filemap.c:412 [inline]
 filemap_write_and_wait_range+0x21f/0x320 mm/filemap.c:684
 filemap_write_and_wait include/linux/pagemap.h:65 [inline]
 iomap_bmap+0x1a6/0x3c0 fs/iomap/fiemap.c:106
 gfs2_bmap+0x171/0x200 fs/gfs2/aops.c:573
 bmap+0xac/0xe0 fs/inode.c:2040
 ioctl_fibmap fs/ioctl.c:76 [inline]
 file_ioctl+0x41d/0x780 fs/ioctl.c:326
 do_vfs_ioctl+0xb33/0x1430 fs/ioctl.c:576
 __do_sys_ioctl fs/ioctl.c:595 [inline]
 __se_sys_ioctl+0x82/0x170 fs/ioctl.c:583
 do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline]
 do_syscall_64+0xec/0xf80 arch/x86/entry/syscall_64.c:94
 entry_SYSCALL_64_after_hwframe+0x77/0x7f
RIP: 0033:0x7f5b5ff8f7c9
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:00007f5b60df2038 EFLAGS: 00000246 ORIG_RAX: 0000000000000010
RAX: ffffffffffffffda RBX: 00007f5b601e5fa0 RCX: 00007f5b5ff8f7c9
RDX: 0000200000000040 RSI: 0000000000000001 RDI: 0000000000000008
RBP: 00007f5b60013f91 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000
R13: 00007f5b601e6038 R14: 00007f5b601e5fa0 R15: 00007ffc1e8f0598
 </TASK>
Modules linked in:
---[ end trace 0000000000000000 ]---
RIP: 0010:gfs2_unpin+0x9ac/0x9c0 fs/gfs2/lops.c:107
Code: fe e9 24 fb ff ff 44 89 e1 80 e1 07 80 c1 03 38 c1 0f 8c 52 fb ff ff 4c 89 e7 e8 2f a4 25 fe e9 45 fb ff ff e8 c5 f8 bd fd 90 <0f> 0b e8 bd f8 bd fd 90 0f 0b e8 b5 f8 bd fd 90 0f 0b 66 90 90 90
RSP: 0018:ffffc9000b0af1b0 EFLAGS: 00010293
RAX: ffffffff84030eeb RBX: ffff88804410e000 RCX: ffff88803e5924c0
RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000000000002
RBP: 1ffff11008821c09 R08: ffff8880471c7577 R09: 1ffff11008e38eae
R10: dffffc0000000000 R11: ffffed1008e38eaf R12: dffffc0000000000
R13: ffff8880370221c0 R14: ffff8880471c7570 R15: ffff88804120c000
FS:  00007f5b60df26c0(0000) GS:ffff88808d414000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007f74411382b0 CR3: 0000000043d00000 CR4: 0000000000352ef0

Crashes (3):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2026/01/03 21:18 upstream 805f9a061372 d1b870e1 .config console log report [disk image (non-bootable)] [vmlinux] [kernel image] ci-snapshot-upstream-root kernel BUG in gfs2_unpin
2025/12/28 13:20 upstream d26143bb38e2 d1b870e1 .config console log report [disk image (non-bootable)] [vmlinux] [kernel image] ci-snapshot-upstream-root kernel BUG in gfs2_unpin
2025/12/23 10:51 upstream b927546677c8 d1b870e1 .config console log report [disk image (non-bootable)] [vmlinux] [kernel image] ci-snapshot-upstream-root kernel BUG in gfs2_unpin
* Struck through repros no longer work on HEAD.