syzbot


general protection fault in __replace_atomic_write_block

Status: auto-obsoleted due to no activity on 2023/08/22 11:08
Subsystems: f2fs
[Documentation on labels]
Reported-by: syzbot+4420fa19a8667ff0b057@syzkaller.appspotmail.com
First crash: 386d, last: 368d
Discussions (2)
Title Replies (including bot) Last reply
[syzbot] Monthly f2fs report (May 2023) 0 (1) 2023/05/05 21:40
[syzbot] [f2fs?] general protection fault in __replace_atomic_write_block 0 (1) 2023/04/11 06:35

Sample crash report:
F2FS-fs (loop4): Mounted with checkpoint version = 48b305e5
general protection fault, probably for non-canonical address 0xdffffc0000000000: 0000 [#1] PREEMPT SMP KASAN
KASAN: null-ptr-deref in range [0x0000000000000000-0x0000000000000007]
CPU: 0 PID: 17943 Comm: syz-executor.4 Not tainted 6.3.0-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 04/14/2023
RIP: 0010:__replace_atomic_write_block+0xf6b/0x1b40 fs/f2fs/segment.c:260
Code: 98 20 06 00 00 48 89 d8 48 c1 e8 03 42 80 3c 38 00 74 08 48 89 df e8 44 34 10 fe 4c 8b 33 48 8b 54 24 40 48 89 d0 48 c1 e8 03 <42> 0f b6 04 38 84 c0 0f 85 ff 02 00 00 44 8b 3a 0f 1f 44 00 00 e8
RSP: 0018:ffffc9000cb2f5a0 EFLAGS: 00010246
RAX: 0000000000000000 RBX: ffff8880798e4d60 RCX: 0000000000000000
RDX: 0000000000000000 RSI: 0000000000000000 RDI: ffffc9000cb2f6d8
RBP: ffffc9000cb2f790 R08: dffffc0000000000 R09: ffffc9000cb2f6c8
R10: 0000000000000000 R11: dffffc0000000001 R12: 1ffff92001965eda
R13: ffffc9000cb2f6c0 R14: ffff8880798e0000 R15: dffffc0000000000
FS:  00007ff7bfddb700(0000) GS:ffff8880b9800000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007ff7bf115dc9 CR3: 00000000859fb000 CR4: 00000000003506f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 <TASK>
 __complete_revoke_list fs/f2fs/segment.c:273 [inline]
 __f2fs_commit_atomic_write fs/f2fs/segment.c:363 [inline]
 f2fs_commit_atomic_write+0x1342/0x15e0 fs/f2fs/segment.c:381
 f2fs_ioc_commit_atomic_write fs/f2fs/file.c:2165 [inline]
 __f2fs_ioctl+0x3a5e/0xb5b0 fs/f2fs/file.c:4169
 vfs_ioctl fs/ioctl.c:51 [inline]
 __do_sys_ioctl fs/ioctl.c:870 [inline]
 __se_sys_ioctl+0xf1/0x160 fs/ioctl.c:856
 do_syscall_x64 arch/x86/entry/common.c:50 [inline]
 do_syscall_64+0x41/0xc0 arch/x86/entry/common.c:80
 entry_SYSCALL_64_after_hwframe+0x63/0xcd
RIP: 0033:0x7ff7bf08c169
Code: 28 00 00 00 75 05 48 83 c4 28 c3 e8 f1 19 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 b8 ff ff ff f7 d8 64 89 01 48
RSP: 002b:00007ff7bfddb168 EFLAGS: 00000246 ORIG_RAX: 0000000000000010
RAX: ffffffffffffffda RBX: 00007ff7bf1abf80 RCX: 00007ff7bf08c169
RDX: 0000000000000000 RSI: 000000000000f502 RDI: 0000000000000010
RBP: 00007ff7bf0e7ca1 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000
R13: 00007fffd021e3ff R14: 00007ff7bfddb300 R15: 0000000000022000
 </TASK>
Modules linked in:
---[ end trace 0000000000000000 ]---
RIP: 0010:__replace_atomic_write_block+0xf6b/0x1b40 fs/f2fs/segment.c:260
Code: 98 20 06 00 00 48 89 d8 48 c1 e8 03 42 80 3c 38 00 74 08 48 89 df e8 44 34 10 fe 4c 8b 33 48 8b 54 24 40 48 89 d0 48 c1 e8 03 <42> 0f b6 04 38 84 c0 0f 85 ff 02 00 00 44 8b 3a 0f 1f 44 00 00 e8
RSP: 0018:ffffc9000cb2f5a0 EFLAGS: 00010246
RAX: 0000000000000000 RBX: ffff8880798e4d60 RCX: 0000000000000000
RDX: 0000000000000000 RSI: 0000000000000000 RDI: ffffc9000cb2f6d8
RBP: ffffc9000cb2f790 R08: dffffc0000000000 R09: ffffc9000cb2f6c8
R10: 0000000000000000 R11: dffffc0000000001 R12: 1ffff92001965eda
R13: ffffc9000cb2f6c0 R14: ffff8880798e0000 R15: dffffc0000000000
FS:  00007ff7bfddb700(0000) GS:ffff8880b9900000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 0000001b31f21000 CR3: 00000000859fb000 CR4: 00000000003506e0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
----------------
Code disassembly (best guess):
   0:	98                   	cwtl
   1:	20 06                	and    %al,(%rsi)
   3:	00 00                	add    %al,(%rax)
   5:	48 89 d8             	mov    %rbx,%rax
   8:	48 c1 e8 03          	shr    $0x3,%rax
   c:	42 80 3c 38 00       	cmpb   $0x0,(%rax,%r15,1)
  11:	74 08                	je     0x1b
  13:	48 89 df             	mov    %rbx,%rdi
  16:	e8 44 34 10 fe       	callq  0xfe10345f
  1b:	4c 8b 33             	mov    (%rbx),%r14
  1e:	48 8b 54 24 40       	mov    0x40(%rsp),%rdx
  23:	48 89 d0             	mov    %rdx,%rax
  26:	48 c1 e8 03          	shr    $0x3,%rax
* 2a:	42 0f b6 04 38       	movzbl (%rax,%r15,1),%eax <-- trapping instruction
  2f:	84 c0                	test   %al,%al
  31:	0f 85 ff 02 00 00    	jne    0x336
  37:	44 8b 3a             	mov    (%rdx),%r15d
  3a:	0f 1f 44 00 00       	nopl   0x0(%rax,%rax,1)
  3f:	e8                   	.byte 0xe8

Crashes (7):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2023/04/24 11:07 upstream 457391b03803 2b32bd34 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-fs general protection fault in __replace_atomic_write_block
2023/04/24 09:55 upstream 457391b03803 2b32bd34 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-fs general protection fault in __replace_atomic_write_block
2023/04/24 07:04 upstream 457391b03803 2b32bd34 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-fs general protection fault in __replace_atomic_write_block
2023/04/22 11:03 upstream 8e41e0a57566 2b32bd34 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-fs general protection fault in __replace_atomic_write_block
2023/04/17 19:27 upstream 6a8f57ae2eb0 c6ec7083 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-fs general protection fault in __replace_atomic_write_block
2023/04/11 16:48 upstream 0d3eb744aed4 49faf98d .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-fs general protection fault in __replace_atomic_write_block
2023/04/06 08:30 upstream 99ddf2254feb 8b834965 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-fs general protection fault in __replace_atomic_write_block
* Struck through repros no longer work on HEAD.