syzbot


general protection fault in __ext4_journal_get_write_access

Status: premoderation: reported on 2024/03/19 01:39
Reported-by: syzbot+f83d070bdf1fa82d20dc@syzkaller.appspotmail.com
First crash: 51d, last: 26d
Similar bugs (1)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream general protection fault in __ext4_journal_get_write_access fuse ext4 C done done 7 1275d 1325d 22/26 fixed on 2022/11/15 22:34

Sample crash report:
general protection fault, probably for non-canonical address 0xdffffc0000000007: 0000 [#1] PREEMPT SMP KASAN
KASAN: null-ptr-deref in range [0x0000000000000038-0x000000000000003f]
CPU: 0 PID: 12070 Comm: syz-executor.0 Tainted: G        W          6.1.75-syzkaller-00018-g354782156070 #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 03/27/2024
RIP: 0010:__ext4_journal_get_write_access+0xb0/0x690 fs/ext4/ext4_jbd2.c:231
Code: 89 ff 49 8d 5e 30 48 89 d8 48 c1 e8 03 42 80 3c 28 00 74 08 48 89 df e8 4e 6f d0 ff 48 8b 1b 48 83 c3 38 48 89 d8 48 c1 e8 03 <42> 80 3c 28 00 74 08 48 89 df e8 31 6f d0 ff 4c 8b 23 4d 85 e4 4c
RSP: 0018:ffffc900017d7360 EFLAGS: 00010202
RAX: 0000000000000007 RBX: 0000000000000038 RCX: 0000000000040000
RDX: ffffc9000bce7000 RSI: 000000000003ffff RDI: 0000000000040000
RBP: ffffc900017d7430 R08: ffff8881309aa5e8 R09: 0000000000000001
R10: 0000000000000000 R11: dffffc0000000001 R12: 1ffff920002fae94
R13: dffffc0000000000 R14: ffff8881309aa5e8 R15: 0000000000000001
FS:  00007f751efc96c0(0000) GS:ffff8881f7000000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 0000000020040000 CR3: 0000000129a49000 CR4: 00000000003526b0
Call Trace:
 <TASK>
 ext4_orphan_del+0x877/0xc50 fs/ext4/orphan.c:272
 ext4_evict_inode+0xf50/0x1550 fs/ext4/inode.c:317
 evict+0x2a3/0x630 fs/inode.c:666
 iput_final fs/inode.c:1791 [inline]
 iput+0x642/0x870 fs/inode.c:1817
 ext4_process_orphan+0x290/0x2f0 fs/ext4/orphan.c:360
 ext4_orphan_cleanup+0xa50/0x11b0 fs/ext4/orphan.c:474
 __ext4_fill_super fs/ext4/super.c:5520 [inline]
 ext4_fill_super+0x7d46/0x8460 fs/ext4/super.c:5651
 get_tree_bdev+0x440/0x680 fs/super.c:1357
 ext4_get_tree+0x1c/0x20 fs/ext4/super.c:5681
 vfs_get_tree+0x88/0x290 fs/super.c:1564
 do_new_mount+0x2ba/0xb30 fs/namespace.c:3051
 path_mount+0x671/0x1070 fs/namespace.c:3381
 do_mount fs/namespace.c:3394 [inline]
 __do_sys_mount fs/namespace.c:3602 [inline]
 __se_sys_mount+0x2c4/0x3b0 fs/namespace.c:3579
 __x64_sys_mount+0xbf/0xd0 fs/namespace.c:3579
 do_syscall_x64 arch/x86/entry/common.c:51 [inline]
 do_syscall_64+0x3d/0xb0 arch/x86/entry/common.c:81
 entry_SYSCALL_64_after_hwframe+0x63/0xcd
RIP: 0033:0x7f751e27f56a
Code: d8 64 89 02 48 c7 c0 ff ff ff ff eb a6 e8 de 09 00 00 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 40 00 49 89 ca b8 a5 00 00 00 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:00007f751efc8ef8 EFLAGS: 00000202 ORIG_RAX: 00000000000000a5
RAX: ffffffffffffffda RBX: 00007f751efc8f80 RCX: 00007f751e27f56a
RDX: 0000000020000180 RSI: 00000000200000c0 RDI: 00007f751efc8f40
RBP: 0000000020000180 R08: 00007f751efc8f80 R09: 0000000000000010
R10: 0000000000000010 R11: 0000000000000202 R12: 00000000200000c0
R13: 00007f751efc8f40 R14: 000000000000048d R15: 0000000020000740
 </TASK>
Modules linked in:
---[ end trace 0000000000000000 ]---
RIP: 0010:__ext4_journal_get_write_access+0xb0/0x690 fs/ext4/ext4_jbd2.c:231
Code: 89 ff 49 8d 5e 30 48 89 d8 48 c1 e8 03 42 80 3c 28 00 74 08 48 89 df e8 4e 6f d0 ff 48 8b 1b 48 83 c3 38 48 89 d8 48 c1 e8 03 <42> 80 3c 28 00 74 08 48 89 df e8 31 6f d0 ff 4c 8b 23 4d 85 e4 4c
RSP: 0018:ffffc900017d7360 EFLAGS: 00010202
RAX: 0000000000000007 RBX: 0000000000000038 RCX: 0000000000040000
RDX: ffffc9000bce7000 RSI: 000000000003ffff RDI: 0000000000040000
RBP: ffffc900017d7430 R08: ffff8881309aa5e8 R09: 0000000000000001
R10: 0000000000000000 R11: dffffc0000000001 R12: 1ffff920002fae94
R13: dffffc0000000000 R14: ffff8881309aa5e8 R15: 0000000000000001
FS:  00007f751efc96c0(0000) GS:ffff8881f7100000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007f88483025a0 CR3: 0000000129a49000 CR4: 00000000003526a0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000004 DR6: 00000000ffff0ff0 DR7: 0000000000000400
----------------
Code disassembly (best guess):
   0:	89 ff                	mov    %edi,%edi
   2:	49 8d 5e 30          	lea    0x30(%r14),%rbx
   6:	48 89 d8             	mov    %rbx,%rax
   9:	48 c1 e8 03          	shr    $0x3,%rax
   d:	42 80 3c 28 00       	cmpb   $0x0,(%rax,%r13,1)
  12:	74 08                	je     0x1c
  14:	48 89 df             	mov    %rbx,%rdi
  17:	e8 4e 6f d0 ff       	call   0xffd06f6a
  1c:	48 8b 1b             	mov    (%rbx),%rbx
  1f:	48 83 c3 38          	add    $0x38,%rbx
  23:	48 89 d8             	mov    %rbx,%rax
  26:	48 c1 e8 03          	shr    $0x3,%rax
* 2a:	42 80 3c 28 00       	cmpb   $0x0,(%rax,%r13,1) <-- trapping instruction
  2f:	74 08                	je     0x39
  31:	48 89 df             	mov    %rbx,%rdi
  34:	e8 31 6f d0 ff       	call   0xffd06f6a
  39:	4c 8b 23             	mov    (%rbx),%r12
  3c:	4d 85 e4             	test   %r12,%r12
  3f:	4c                   	rex.WR

Crashes (3):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2024/04/12 15:31 android14-6.1 354782156070 c8349e48 .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-6-1 general protection fault in __ext4_journal_get_write_access
2024/04/09 05:02 android14-6.1 338203a81721 f3234354 .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-6-1 general protection fault in __ext4_journal_get_write_access
2024/03/19 01:38 android14-6.1 4292d259032a baa80228 .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-6-1 general protection fault in __ext4_journal_get_write_access
* Struck through repros no longer work on HEAD.