syzbot


KASAN: vmalloc-out-of-bounds Read in gfs2_dump_glock

Status: upstream: reported C repro on 2025/07/23 07:10
Bug presence: origin:upstream
[Documentation on labels]
Reported-by: syzbot+e64ba62ab1a818bac144@syzkaller.appspotmail.com
First crash: 112d, last: 13h17m
Bug presence (1)
Date Name Commit Repro Result
2025/07/30 upstream (ToT) e8d780dcd957 C [report] general protection fault in gfs2_dump_glock
Similar bugs (4)
Kernel Title Rank 🛈 Repro Cause bisect Fix bisect Count Last Reported Patched Status
linux-6.1 KASAN: stack-out-of-bounds Read in gfs2_dump_glock origin:upstream 17 C error 45 203d 925d 0/3 upstream: reported C repro on 2023/05/02 11:39
upstream KASAN: stack-out-of-bounds Read in gfs2_dump_glock gfs2 19 C error 392 7d00h 557d 0/29 upstream: reported C repro on 2024/05/04 22:05
upstream general protection fault in gfs2_dump_glock gfs2 17 C 25 994d 1395d 22/29 fixed on 2023/02/24 13:50
upstream general protection fault in gfs2_dump_glock (2) gfs2 17 C done done 48 674d 982d 0/29 auto-obsoleted due to no activity on 2024/04/08 04:28
Fix bisection attempts (2)
Created Duration User Patch Repo Result
2025/10/19 01:34 2h46m bisect fix linux-6.6.y OK (0) job log log
2025/09/14 03:59 3h03m bisect fix linux-6.6.y OK (0) job log log

Sample crash report:
gfs2: fsid=syz:syz.s:  H: s:UN f:tTeAnaEcHWs e:1936618791 p:0 [(ended)] 0x275d385b676e
general protection fault, probably for non-canonical address 0xee85e98cadce4cb1: 0000 [#1] PREEMPT SMP KASAN
KASAN: maybe wild-memory-access in range [0x742f6c656e726588-0x742f6c656e72658f]
CPU: 0 PID: 6809 Comm: syz.0.226 Not tainted syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 10/02/2025
RIP: 0010:pid_is_meaningful fs/gfs2/glock.c:1500 [inline]
RIP: 0010:dump_holder fs/gfs2/glock.c:2306 [inline]
RIP: 0010:gfs2_dump_glock+0xd5f/0x1920 fs/gfs2/glock.c:2422
Code: 60 91 ef 8a be 14 03 00 00 48 c7 c2 a0 91 ef 8a e8 96 e8 c7 fd 49 8d 5d 20 49 89 de 49 c1 ee 03 48 b8 00 00 00 00 00 fc ff df <41> 0f b6 04 06 84 c0 0f 85 10 06 00 00 48 89 5c 24 38 0f b7 1b 89
RSP: 0018:ffffc900053df740 EFLAGS: 00010206
RAX: dffffc0000000000 RBX: 742f6c656e72658b RCX: ffff888024428000
RDX: 0000000000000000 RSI: ffffffff8afc6ae0 RDI: ffffffff8afc6aa0
RBP: ffffc900053dfa30 R08: dffffc0000000000 R09: 1ffffffff21b50a0
R10: dffffc0000000000 R11: fffffbfff21b50a1 R12: ffffffff839fc27f
R13: 742f6c656e72656b R14: 0e85ed8cadce4cb1 R15: 0000000000000100
FS:  00007fba4da496c0(0000) GS:ffff8880b8e00000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007fba4da49d58 CR3: 000000007f621000 CR4: 00000000003506f0
Call Trace:
 <TASK>
 gfs2_consist_inode_i+0xf5/0x110 fs/gfs2/util.c:446
 gfs2_dirent_scan+0x525/0x650 fs/gfs2/dir.c:602
 gfs2_dir_read+0x803/0x1790 fs/gfs2/dir.c:1599
 gfs2_readdir+0x150/0x1b0 fs/gfs2/file.c:116
 iterate_dir+0x1c2/0x580 fs/readdir.c:106
 __do_sys_getdents fs/readdir.c:322 [inline]
 __se_sys_getdents+0xe9/0x260 fs/readdir.c:307
 do_syscall_x64 arch/x86/entry/common.c:51 [inline]
 do_syscall_64+0x55/0xb0 arch/x86/entry/common.c:81
 entry_SYSCALL_64_after_hwframe+0x68/0xd2
RIP: 0033:0x7fba4cb8f6c9
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:00007fba4da49038 EFLAGS: 00000246 ORIG_RAX: 000000000000004e
RAX: ffffffffffffffda RBX: 00007fba4cde6090 RCX: 00007fba4cb8f6c9
RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000000000005
RBP: 00007fba4cc11f91 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000
R13: 00007fba4cde6128 R14: 00007fba4cde6090 R15: 00007fff2984f728
 </TASK>
Modules linked in:
---[ end trace 0000000000000000 ]---
RIP: 0010:pid_is_meaningful fs/gfs2/glock.c:1500 [inline]
RIP: 0010:dump_holder fs/gfs2/glock.c:2306 [inline]
RIP: 0010:gfs2_dump_glock+0xd5f/0x1920 fs/gfs2/glock.c:2422
Code: 60 91 ef 8a be 14 03 00 00 48 c7 c2 a0 91 ef 8a e8 96 e8 c7 fd 49 8d 5d 20 49 89 de 49 c1 ee 03 48 b8 00 00 00 00 00 fc ff df <41> 0f b6 04 06 84 c0 0f 85 10 06 00 00 48 89 5c 24 38 0f b7 1b 89
RSP: 0018:ffffc900053df740 EFLAGS: 00010206
RAX: dffffc0000000000 RBX: 742f6c656e72658b RCX: ffff888024428000
RDX: 0000000000000000 RSI: ffffffff8afc6ae0 RDI: ffffffff8afc6aa0
RBP: ffffc900053dfa30 R08: dffffc0000000000 R09: 1ffffffff21b50a0
R10: dffffc0000000000 R11: fffffbfff21b50a1 R12: ffffffff839fc27f
R13: 742f6c656e72656b R14: 0e85ed8cadce4cb1 R15: 0000000000000100
FS:  00007fba4da496c0(0000) GS:ffff8880b8f00000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007fb9ecf8b000 CR3: 000000007f621000 CR4: 00000000003506e0
----------------
Code disassembly (best guess), 1 bytes skipped:
   0:	91                   	xchg   %eax,%ecx
   1:	ef                   	out    %eax,(%dx)
   2:	8a be 14 03 00 00    	mov    0x314(%rsi),%bh
   8:	48 c7 c2 a0 91 ef 8a 	mov    $0xffffffff8aef91a0,%rdx
   f:	e8 96 e8 c7 fd       	call   0xfdc7e8aa
  14:	49 8d 5d 20          	lea    0x20(%r13),%rbx
  18:	49 89 de             	mov    %rbx,%r14
  1b:	49 c1 ee 03          	shr    $0x3,%r14
  1f:	48 b8 00 00 00 00 00 	movabs $0xdffffc0000000000,%rax
  26:	fc ff df
* 29:	41 0f b6 04 06       	movzbl (%r14,%rax,1),%eax <-- trapping instruction
  2e:	84 c0                	test   %al,%al
  30:	0f 85 10 06 00 00    	jne    0x646
  36:	48 89 5c 24 38       	mov    %rbx,0x38(%rsp)
  3b:	0f b7 1b             	movzwl (%rbx),%ebx
  3e:	89                   	.byte 0x89

Crashes (12):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2025/11/09 05:39 linux-6.6.y 0a805b6ea8cd 4e1406b4 .config console log report syz / log C [disk image] [vmlinux] [kernel image] [mounted in repro (corrupt fs)] ci2-linux-6-6-kasan general protection fault in gfs2_dump_glock
2025/11/09 02:00 linux-6.6.y 0a805b6ea8cd 4e1406b4 .config console log report syz / log C [disk image] [vmlinux] [kernel image] [mounted in repro (corrupt fs)] ci2-linux-6-6-kasan general protection fault in gfs2_dump_glock
2025/11/08 23:50 linux-6.6.y 0a805b6ea8cd 4e1406b4 .config console log report syz / log C [disk image] [vmlinux] [kernel image] [mounted in repro (corrupt fs)] ci2-linux-6-6-kasan general protection fault in gfs2_dump_glock
2025/07/26 04:30 linux-6.6.y dbcb8d8e4163 fb8f743d .config console log report syz / log C [disk image] [vmlinux] [kernel image] [mounted in repro (corrupt fs)] ci2-linux-6-6-kasan general protection fault in gfs2_dump_glock
2025/07/25 14:36 linux-6.6.y dbcb8d8e4163 fb8f743d .config console log report syz / log C [disk image] [vmlinux] [kernel image] [mounted in repro (corrupt fs)] ci2-linux-6-6-kasan general protection fault in gfs2_dump_glock
2025/07/23 07:10 linux-6.6.y d96eb99e2f0e e1dd4f22 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-6-kasan KASAN: vmalloc-out-of-bounds Read in gfs2_dump_glock
2025/11/12 17:31 linux-6.6.y 0a805b6ea8cd 07e030de .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-6-kasan general protection fault in gfs2_dump_glock
2025/10/30 20:45 linux-6.6.y e5bbb12db2c7 2c50b6a9 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-6-kasan general protection fault in gfs2_dump_glock
2025/10/22 06:41 linux-6.6.y f231f248323d 252fbbad .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-6-kasan KASAN: slab-use-after-free Read in gfs2_dump_glock
2025/10/20 18:09 linux-6.6.y f231f248323d d422939c .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-6-kasan general protection fault in gfs2_dump_glock
2025/08/06 02:35 linux-6.6.y 3a8ababb8b6a ffe1dd46 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-6-kasan general protection fault in gfs2_dump_glock
2025/07/25 05:11 linux-6.6.y dbcb8d8e4163 fb8f743d .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-6-kasan general protection fault in gfs2_dump_glock
* Struck through repros no longer work on HEAD.