syzbot


general protection fault in xfs_getbmap

Status: auto-obsoleted due to no activity on 2025/06/01 23:05
Reported-by: syzbot+41902ac29131a1f12489@syzkaller.appspotmail.com
First crash: 104d, last: 104d
Similar bugs (1)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream KASAN: slab-out-of-bounds Read in xfs_getbmap xfs C done 5 766d 766d 22/28 fixed on 2023/07/01 16:05

Sample crash report:
general protection fault, probably for non-canonical address 0xdffffc0000000004: 0000 [#1] PREEMPT SMP KASAN
KASAN: null-ptr-deref in range [0x0000000000000020-0x0000000000000027]
CPU: 1 PID: 25716 Comm: syz.6.5504 Not tainted 5.15.178-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 12/27/2024
RIP: 0010:xfs_getbmap+0x50e/0x1da0 fs/xfs/xfs_bmap_util.c:494
Code: 4d 8d 67 48 4c 89 ff 4c 8b 3b e8 9d 49 06 00 89 84 24 84 00 00 00 4c 89 a4 24 d8 00 00 00 49 8d 5c 24 22 48 89 d8 48 c1 e8 03 <42> 0f b6 04 30 84 c0 0f 85 36 15 00 00 0f be 1b 48 89 df 48 c7 c6
RSP: 0018:ffffc90005ec75c0 EFLAGS: 00010202
RAX: 0000000000000004 RBX: 0000000000000022 RCX: 0000000000000001
RDX: 0000000000000001 RSI: 0000000000000008 RDI: 0000000000000001
RBP: ffffc90005ec7810 R08: dffffc0000000000 R09: ffffed100a5b6011
R10: 0000000000000000 R11: dffffc0000000001 R12: 0000000000000000
R13: ffffc90005ec78bc R14: dffffc0000000000 R15: 0000000100000000
FS:  00007fe536c106c0(0000) GS:ffff8880b8f00000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 000000110c3725c0 CR3: 000000002f239000 CR4: 00000000003506e0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 <TASK>
 xfs_ioc_getbmap+0x23f/0x7a0 fs/xfs/xfs_ioctl.c:1555
 xfs_file_ioctl+0xaac/0x16a0 fs/xfs/xfs_ioctl.c:2016
 vfs_ioctl fs/ioctl.c:51 [inline]
 __do_sys_ioctl fs/ioctl.c:874 [inline]
 __se_sys_ioctl+0xf1/0x160 fs/ioctl.c:860
 do_syscall_x64 arch/x86/entry/common.c:50 [inline]
 do_syscall_64+0x3b/0xb0 arch/x86/entry/common.c:80
 entry_SYSCALL_64_after_hwframe+0x66/0xd0
RIP: 0033:0x7fe538dc8169
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:00007fe536c10038 EFLAGS: 00000246 ORIG_RAX: 0000000000000010
RAX: ffffffffffffffda RBX: 00007fe538fe1080 RCX: 00007fe538dc8169
RDX: 0000400000000880 RSI: 00000000c0205838 RDI: 0000000000000004
RBP: 00007fe538e492a0 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000
R13: 0000000000000001 R14: 00007fe538fe1080 R15: 00007fff4bc56928
 </TASK>
Modules linked in:
---[ end trace 4bedd89df0b7f759 ]---
RIP: 0010:xfs_getbmap+0x50e/0x1da0 fs/xfs/xfs_bmap_util.c:494
Code: 4d 8d 67 48 4c 89 ff 4c 8b 3b e8 9d 49 06 00 89 84 24 84 00 00 00 4c 89 a4 24 d8 00 00 00 49 8d 5c 24 22 48 89 d8 48 c1 e8 03 <42> 0f b6 04 30 84 c0 0f 85 36 15 00 00 0f be 1b 48 89 df 48 c7 c6
RSP: 0018:ffffc90005ec75c0 EFLAGS: 00010202
RAX: 0000000000000004 RBX: 0000000000000022 RCX: 0000000000000001
RDX: 0000000000000001 RSI: 0000000000000008 RDI: 0000000000000001
RBP: ffffc90005ec7810 R08: dffffc0000000000 R09: ffffed100a5b6011
R10: 0000000000000000 R11: dffffc0000000001 R12: 0000000000000000
R13: ffffc90005ec78bc R14: dffffc0000000000 R15: 0000000100000000
FS:  00007fe536c106c0(0000) GS:ffff8880b8f00000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007fab5577cd58 CR3: 000000002f239000 CR4: 00000000003506e0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
----------------
Code disassembly (best guess):
   0:	4d 8d 67 48          	lea    0x48(%r15),%r12
   4:	4c 89 ff             	mov    %r15,%rdi
   7:	4c 8b 3b             	mov    (%rbx),%r15
   a:	e8 9d 49 06 00       	call   0x649ac
   f:	89 84 24 84 00 00 00 	mov    %eax,0x84(%rsp)
  16:	4c 89 a4 24 d8 00 00 	mov    %r12,0xd8(%rsp)
  1d:	00
  1e:	49 8d 5c 24 22       	lea    0x22(%r12),%rbx
  23:	48 89 d8             	mov    %rbx,%rax
  26:	48 c1 e8 03          	shr    $0x3,%rax
* 2a:	42 0f b6 04 30       	movzbl (%rax,%r14,1),%eax <-- trapping instruction
  2f:	84 c0                	test   %al,%al
  31:	0f 85 36 15 00 00    	jne    0x156d
  37:	0f be 1b             	movsbl (%rbx),%ebx
  3a:	48 89 df             	mov    %rbx,%rdi
  3d:	48                   	rex.W
  3e:	c7                   	.byte 0xc7
  3f:	c6                   	.byte 0xc6

Crashes (1):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2025/02/21 23:05 linux-5.15.y c16c81c81336 d34966d1 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan general protection fault in xfs_getbmap
* Struck through repros no longer work on HEAD.