syzbot


general protection fault in __block_commit_write

Status: upstream: reported syz repro on 2024/02/05 09:01
Subsystems: ext4
[Documentation on labels]
Reported-by: syzbot+18df508cf00a0598d9a6@syzkaller.appspotmail.com
First crash: 93d, last: 7d07h
Discussions (1)
Title Replies (including bot) Last reply
[syzbot] [ext4?] general protection fault in __block_commit_write 0 (1) 2024/02/05 09:01
Last patch testing requests (2)
Created Duration User Patch Repo Result
2024/04/29 01:48 22m retest repro upstream report log
2024/02/18 13:47 21m retest repro upstream report log

Sample crash report:
general protection fault, probably for non-canonical address 0xdffffc0000000004: 0000 [#1] PREEMPT SMP KASAN NOPTI
KASAN: null-ptr-deref in range [0x0000000000000020-0x0000000000000027]
CPU: 1 PID: 7239 Comm: syz-executor.5 Not tainted 6.9.0-rc6-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 03/27/2024
RIP: 0010:__block_commit_write+0x61/0x360 fs/buffer.c:2167
Code: 08 48 89 df e8 a0 c7 dc ff 48 89 2c 24 48 8b 03 48 89 44 24 08 48 8d 58 20 48 89 d8 48 c1 e8 03 48 b9 00 00 00 00 00 fc ff df <80> 3c 08 00 74 08 48 89 df e8 71 c7 dc ff 8b 03 48 89 44 24 10 31
RSP: 0018:ffffc9000ad07840 EFLAGS: 00010212
RAX: 0000000000000004 RBX: 0000000000000020 RCX: dffffc0000000000
RDX: 0000000000000000 RSI: 0000000000000008 RDI: ffffea0001bbf940
RBP: ffffea0001bbf940 R08: ffffffff821de655 R09: ffffea0001bbf940
R10: dffffc0000000000 R11: ffffed100d07f50b R12: 000000000000001a
R13: dffffc0000000000 R14: dffffc0000000000 R15: 0000000000000008
FS:  00007f26437af6c0(0000) GS:ffff8880b9500000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 0000000020000044 CR3: 000000007acd0000 CR4: 0000000000350ef0
Call Trace:
 <TASK>
 block_write_end+0xaf/0x1c0 fs/buffer.c:2253
 ext4_da_do_write_end fs/ext4/inode.c:2955 [inline]
 ext4_da_write_end+0x34a/0xd00 fs/ext4/inode.c:3028
 generic_perform_write+0x427/0x640 mm/filemap.c:3985
 ext4_buffered_write_iter+0xc6/0x350 fs/ext4/file.c:299
 ext4_file_write_iter+0x1de/0x1a10
 call_write_iter include/linux/fs.h:2110 [inline]
 new_sync_write fs/read_write.c:497 [inline]
 vfs_write+0xa86/0xcb0 fs/read_write.c:590
 ksys_write+0x1a0/0x2c0 fs/read_write.c:643
 do_syscall_x64 arch/x86/entry/common.c:52 [inline]
 do_syscall_64+0xf5/0x240 arch/x86/entry/common.c:83
 entry_SYSCALL_64_after_hwframe+0x77/0x7f
RIP: 0033:0x7f2642a7dea9
Code: 28 00 00 00 75 05 48 83 c4 28 c3 e8 e1 20 00 00 90 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 b0 ff ff ff f7 d8 64 89 01 48
RSP: 002b:00007f26437af0c8 EFLAGS: 00000246 ORIG_RAX: 0000000000000001
RAX: ffffffffffffffda RBX: 00007f2642bac050 RCX: 00007f2642a7dea9
RDX: 0000000000000012 RSI: 0000000020000000 RDI: 0000000000000004
RBP: 00007f2642aca4a4 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000
R13: 000000000000000b R14: 00007f2642bac050 R15: 00007ffc436c33a8
 </TASK>
Modules linked in:
---[ end trace 0000000000000000 ]---
RIP: 0010:__block_commit_write+0x61/0x360 fs/buffer.c:2167
Code: 08 48 89 df e8 a0 c7 dc ff 48 89 2c 24 48 8b 03 48 89 44 24 08 48 8d 58 20 48 89 d8 48 c1 e8 03 48 b9 00 00 00 00 00 fc ff df <80> 3c 08 00 74 08 48 89 df e8 71 c7 dc ff 8b 03 48 89 44 24 10 31
RSP: 0018:ffffc9000ad07840 EFLAGS: 00010212
RAX: 0000000000000004 RBX: 0000000000000020 RCX: dffffc0000000000
RDX: 0000000000000000 RSI: 0000000000000008 RDI: ffffea0001bbf940
RBP: ffffea0001bbf940 R08: ffffffff821de655 R09: ffffea0001bbf940
R10: dffffc0000000000 R11: ffffed100d07f50b R12: 000000000000001a
R13: dffffc0000000000 R14: dffffc0000000000 R15: 0000000000000008
FS:  00007f26437af6c0(0000) GS:ffff8880b9400000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 000000002000008f CR3: 000000007acd0000 CR4: 0000000000350ef0
----------------
Code disassembly (best guess):
   0:	08 48 89             	or     %cl,-0x77(%rax)
   3:	df e8                	fucomip %st(0),%st
   5:	a0 c7 dc ff 48 89 2c 	movabs 0x48242c8948ffdcc7,%al
   c:	24 48
   e:	8b 03                	mov    (%rbx),%eax
  10:	48 89 44 24 08       	mov    %rax,0x8(%rsp)
  15:	48 8d 58 20          	lea    0x20(%rax),%rbx
  19:	48 89 d8             	mov    %rbx,%rax
  1c:	48 c1 e8 03          	shr    $0x3,%rax
  20:	48 b9 00 00 00 00 00 	movabs $0xdffffc0000000000,%rcx
  27:	fc ff df
* 2a:	80 3c 08 00          	cmpb   $0x0,(%rax,%rcx,1) <-- trapping instruction
  2e:	74 08                	je     0x38
  30:	48 89 df             	mov    %rbx,%rdi
  33:	e8 71 c7 dc ff       	call   0xffdcc7a9
  38:	8b 03                	mov    (%rbx),%eax
  3a:	48 89 44 24 10       	mov    %rax,0x10(%rsp)
  3f:	31                   	.byte 0x31

Crashes (4):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2024/04/29 12:40 upstream e67572cd2204 27e33c58 .config strace log report syz [disk image] [vmlinux] [kernel image] [mounted in repro] ci-upstream-kasan-gce-root general protection fault in __block_commit_write
2024/02/04 04:31 upstream 56897d51886f a67b2c42 .config console log report syz [disk image] [vmlinux] [kernel image] [mounted in repro] ci-upstream-kasan-badwrites-root general protection fault in __block_commit_write
2024/04/29 11:21 upstream e67572cd2204 27e33c58 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce-root general protection fault in __block_commit_write
2024/02/03 18:03 upstream 56897d51886f a67b2c42 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-badwrites-root general protection fault in __block_commit_write
* Struck through repros no longer work on HEAD.