kernel BUG in gfs2_unpin

Status: upstream: reported on 2025/12/27 10:57
Subsystems: gfs2
Labels: prio:normal
[Documentation on labels]
Reported-by: syzbot+0c5024a57ccf4017c187@syzkaller.appspotmail.com
First crash: 216d, last: 9d05h
✨ AI Jobs (1)
ID Workflow Result Correct Bug Created Started Finished Revision Error
6fffecd8 assessment-security DenialOfService: ✅ Exploitable: ❌ FilesystemTrigger: ✅ NetworkTrigger: ❌ PeripheralTrigger: ❌ RemoteTrigger: ❌ Unprivileged: ❌ UserNamespace: ❌ VMGuestTrigger: ❌ VMHostTrigger: ❌ kernel BUG in gfs2_unpin 2026/05/25 07:01 2026/05/25 07:01 2026/05/25 07:50 c69befb3

			
		
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:
syz.0.0: attempt to access beyond end of device
loop0: rw=2049, sector=68719479344, nr_sectors = 8 limit=32768
Buffer I/O error on dev loop0, logical block 8589934918, lost async page write
syz.0.0: attempt to access beyond end of device
loop0: rw=2049, sector=68719479352, nr_sectors = 8 limit=32768
Buffer I/O error on dev loop0, logical block 8589934919, lost async page write
syz.0.0: attempt to access beyond end of device
loop0: rw=2049, sector=68719479360, nr_sectors = 8 limit=32768
Buffer I/O error on dev loop0, logical block 8589934920, lost async page write
syz.0.0: attempt to access beyond end of device
loop0: rw=2049, sector=68719479368, nr_sectors = 8 limit=32768
Buffer I/O error on dev loop0, logical block 8589934921, lost async page write
syz.0.0: attempt to access beyond end of device
loop0: rw=2049, sector=68719479376, nr_sectors = 8 limit=32768
Buffer I/O error on dev loop0, logical block 8589934922, lost async page write
syz.0.0: attempt to access beyond end of device
loop0: rw=2049, sector=68719479384, nr_sectors = 8 limit=32768
Buffer I/O error on dev loop0, logical block 8589934923, lost async page write
syz.0.0: attempt to access beyond end of device
loop0: rw=2049, sector=68719479392, nr_sectors = 8 limit=32768
Buffer I/O error on dev loop0, logical block 8589934924, lost async page write
syz.0.0: attempt to access beyond end of device
loop0: rw=2049, sector=68719479400, nr_sectors = 8 limit=32768
Buffer I/O error on dev loop0, logical block 8589934925, lost async page write
syz.0.0: attempt to access beyond end of device
loop0: rw=2049, sector=68719479408, nr_sectors = 8 limit=32768
Buffer I/O error on dev loop0, logical block 8589934926, lost async page write
syz.0.0: attempt to access beyond end of device
loop0: rw=2049, sector=68719479416, nr_sectors = 8 limit=32768
Buffer I/O error on dev loop0, logical block 8589934927, 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: 5333 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 04/01/2014
RIP: 0010:gfs2_unpin+0xa18/0xa30 fs/gfs2/lops.c:107
Code: fd e9 a5 fa ff ff 44 89 e1 80 e1 07 80 c1 03 38 c1 0f 8c d4 fa ff ff 4c 89 e7 e8 43 9b f0 fd e9 c7 fa ff ff e8 b9 75 81 fd 90 <0f> 0b e8 b1 75 81 fd 90 0f 0b e8 a9 75 81 fd 90 0f 0b 66 0f 1f 44
RSP: 0018:ffffc9000e5674d0 EFLAGS: 00010283
RAX: ffffffff84450c17 RBX: ffff888012231100 RCX: 0000000000100000
RDX: ffffc90020001000 RSI: 000000000000afd2 RDI: 000000000000afd3
RBP: 1ffff1100244623d R08: ffff88801fd1e2a7 R09: 1ffff11003fa3c54
R10: dffffc0000000000 R11: ffffed1003fa3c55 R12: ffff88801223c7e0
R13: dffffc0000000000 R14: ffff88801fd1e2a0 R15: ffff88801fab4000
FS:  00007f97711d46c0(0000) GS:ffff88808c54a000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007f97711b2fe8 CR3: 000000001260b000 CR4: 0000000000352ef0
Call Trace:
 <TASK>
 databuf_lo_after_commit+0x165/0x1b0 fs/gfs2/lops.c:1080
 lops_after_commit fs/gfs2/lops.h:51 [inline]
 __gfs2_log_flush+0xf6e/0x1d90 fs/gfs2/log.c:1152
 gfs2_log_flush+0x34/0x50 fs/gfs2/log.c:1216
 gfs2_jdata_writepages+0xf9/0x150 fs/gfs2/aops.c:371
 do_writepages+0x338/0x560 mm/page-writeback.c:2571
 filemap_writeback mm/filemap.c:387 [inline]
 filemap_fdatawrite_range+0x1ef/0x2f0 mm/filemap.c:412
 gfs2_fsync+0xd0/0x350 fs/gfs2/file.c:752
 generic_write_sync include/linux/fs.h:2666 [inline]
 gfs2_file_write_iter+0xf77/0x1170 fs/gfs2/file.c:1172
 new_sync_write fs/read_write.c:595 [inline]
 vfs_write+0x612/0xba0 fs/read_write.c:687
 ksys_pwrite64 fs/read_write.c:794 [inline]
 __do_sys_pwrite64 fs/read_write.c:802 [inline]
 __se_sys_pwrite64 fs/read_write.c:799 [inline]
 __x64_sys_pwrite64+0x196/0x220 fs/read_write.c:799
 do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline]
 do_syscall_64+0x174/0x580 arch/x86/entry/syscall_64.c:94
 entry_SYSCALL_64_after_hwframe+0x77/0x7f
RIP: 0033:0x7f9774d9de99
Code: ff c3 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 44 00 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 e8 ff ff ff f7 d8 64 89 01 48
RSP: 002b:00007f97711d3fe8 EFLAGS: 00000246 ORIG_RAX: 0000000000000012
RAX: ffffffffffffffda RBX: 00007f9775026090 RCX: 00007f9774d9de99
RDX: 000000000000fdef RSI: 0000200000000140 RDI: 0000000000000007
RBP: 00007f9774e33eaf R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000e7c R11: 0000000000000246 R12: 0000000000000000
R13: 00007f9775026128 R14: 00007f9775026090 R15: 00007ffd8c942858
 </TASK>
Modules linked in:
---[ end trace 0000000000000000 ]---
RIP: 0010:gfs2_unpin+0xa18/0xa30 fs/gfs2/lops.c:107
Code: fd e9 a5 fa ff ff 44 89 e1 80 e1 07 80 c1 03 38 c1 0f 8c d4 fa ff ff 4c 89 e7 e8 43 9b f0 fd e9 c7 fa ff ff e8 b9 75 81 fd 90 <0f> 0b e8 b1 75 81 fd 90 0f 0b e8 a9 75 81 fd 90 0f 0b 66 0f 1f 44
RSP: 0018:ffffc9000e5674d0 EFLAGS: 00010283
RAX: ffffffff84450c17 RBX: ffff888012231100 RCX: 0000000000100000
RDX: ffffc90020001000 RSI: 000000000000afd2 RDI: 000000000000afd3
RBP: 1ffff1100244623d R08: ffff88801fd1e2a7 R09: 1ffff11003fa3c54
R10: dffffc0000000000 R11: ffffed1003fa3c55 R12: ffff88801223c7e0
R13: dffffc0000000000 R14: ffff88801fd1e2a0 R15: ffff88801fab4000
FS:  00007f97711d46c0(0000) GS:ffff88808c54a000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007f97711b2fe8 CR3: 000000001260b000 CR4: 0000000000352ef0

Crashes (12):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2026/07/18 08:28 upstream af5e34a41cd6 72524a66 .config console log report [disk image (non-bootable)] [vmlinux] [kernel image] ci-snapshot-upstream-root kernel BUG in gfs2_unpin
2026/07/13 05:28 upstream f4fb100039e9 d78ea535 .config console log report [disk image (non-bootable)] [vmlinux] [kernel image] ci-snapshot-upstream-root kernel BUG in gfs2_unpin
2026/06/08 03:46 upstream 33d8d8ec31b5 cc095639 .config console log report [disk image (non-bootable)] [vmlinux] [kernel image] ci-snapshot-upstream-root kernel BUG in gfs2_unpin
2026/05/27 02:52 upstream d60ec36cab33 2b01f00e .config console log report [disk image (non-bootable)] [vmlinux] [kernel image] ci-snapshot-upstream-root kernel BUG in gfs2_unpin
2026/04/12 08:32 upstream e753c16cb3dd 38c8e246 .config console log report [disk image (non-bootable)] [vmlinux] [kernel image] ci-snapshot-upstream-root kernel BUG in gfs2_unpin
2026/03/23 21:51 upstream c369299895a5 4933dba2 .config console log report [disk image (non-bootable)] [vmlinux] [kernel image] ci-snapshot-upstream-root kernel BUG in gfs2_unpin
2026/03/06 09:46 upstream 5ee8dbf54602 31e9c887 .config console log report [disk image (non-bootable)] [vmlinux] [kernel image] ci-snapshot-upstream-root kernel BUG in gfs2_unpin
2026/02/28 00:32 upstream a75cb869a8cc 2cf092b8 .config console log report [disk image (non-bootable)] [vmlinux] [kernel image] ci-snapshot-upstream-root kernel BUG in gfs2_unpin
2026/01/19 08:28 upstream 54e82e93ca93 d1b870e1 .config console log report [disk image (non-bootable)] [vmlinux] [kernel image] ci-snapshot-upstream-root kernel BUG in gfs2_unpin
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.