syzbot


general protection fault in __ext4_journal_get_write_access

Status: premoderation: reported syz repro on 2024/03/19 01:39
Bug presence: origin:lts
[Documentation on labels]
Reported-by: syzbot+f83d070bdf1fa82d20dc@syzkaller.appspotmail.com
First crash: 247d, last: 14d
Bug presence (2)
Date Name Commit Repro Result
2024/10/05 lts (merge base) cac15753b8ce C [report] general protection fault in __ext4_journal_get_write_access
2024/10/04 upstream (ToT) ac308609567d C Didn't crash
Similar bugs (2)
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 1472d 1521d 22/28 fixed on 2022/11/15 22:34
linux-6.1 general protection fault in __ext4_journal_get_write_access 2 67d 70d 0/3 upstream: reported on 2024/09/12 07:30
Last patch testing requests (2)
Created Duration User Patch Repo Result
2024/11/21 16:37 retest repro android14-6.1 pending
2024/11/21 16:37 retest repro android14-6.1 running

Sample crash report:
EXT4-fs error (device loop0): __ext4_iget:5046: inode #11: block 1: comm syz.0.20: invalid block
EXT4-fs error (device loop0): ext4_orphan_get:1401: comm syz.0.20: couldn't read orphan inode 11 (err -117)
EXT4-fs (loop0): mounted filesystem without journal. Quota mode: none.
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: 431 Comm: syz.0.20 Not tainted 6.1.99-syzkaller-00108-gd4dab27b9d1c #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 08/06/2024
RIP: 0010:__ext4_journal_get_write_access+0xb0/0x690 fs/ext4/ext4_jbd2.c:231
Code: 88 ff 49 8d 5e 30 48 89 d8 48 c1 e8 03 42 80 3c 28 00 74 08 48 89 df e8 ce 0a 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 b1 0a d0 ff 4c 8b 23 4d 85 e4 4c
RSP: 0018:ffffc90000aa76e0 EFLAGS: 00010202
RAX: 0000000000000007 RBX: 0000000000000038 RCX: ffff888115520000
RDX: 0000000000000000 RSI: 0000000000000045 RDI: ffffffff86686c15
RBP: ffffc90000aa77b0 R08: ffff88810c3107e0 R09: 0000000000000001
R10: 0000000000000000 R11: dffffc0000000001 R12: 0000000000000001
R13: dffffc0000000000 R14: ffff88810c3107e0 R15: 0000000000000001
FS:  00007f31df1a06c0(0000) GS:ffff8881f6e00000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007f4790561160 CR3: 000000011fa0f000 CR4: 00000000003506b0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 <TASK>
 ext4_update_primary_sb fs/ext4/ioctl.c:67 [inline]
 ext4_update_superblocks_fn+0x2dc/0x1300 fs/ext4/ioctl.c:221
 ext4_update_overhead+0x143/0x170 fs/ext4/ioctl.c:1709
 ext4_fill_super+0x309b/0x8460 fs/ext4/super.c:5670
 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
 x64_sys_call+0x49d/0x9a0 arch/x86/include/generated/asm/syscalls_64.h:166
 do_syscall_x64 arch/x86/entry/common.c:51 [inline]
 do_syscall_64+0x3b/0xb0 arch/x86/entry/common.c:81
 entry_SYSCALL_64_after_hwframe+0x68/0xd2
RIP: 0033:0x7f31de37f79a
Code: d8 64 89 02 48 c7 c0 ff ff ff ff eb a6 e8 de 1a 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 a8 ff ff ff f7 d8 64 89 01 48
RSP: 002b:00007f31df19fe68 EFLAGS: 00000246 ORIG_RAX: 00000000000000a5
RAX: ffffffffffffffda RBX: 00007f31df19fef0 RCX: 00007f31de37f79a
RDX: 0000000020000ac0 RSI: 0000000020000180 RDI: 00007f31df19feb0
RBP: 0000000020000ac0 R08: 00007f31df19fef0 R09: 0000000003810744
R10: 0000000003810744 R11: 0000000000000246 R12: 0000000020000180
R13: 00007f31df19feb0 R14: 0000000000000451 R15: 0000000020000480
 </TASK>
Modules linked in:
---[ end trace 0000000000000000 ]---
RIP: 0010:__ext4_journal_get_write_access+0xb0/0x690 fs/ext4/ext4_jbd2.c:231
Code: 88 ff 49 8d 5e 30 48 89 d8 48 c1 e8 03 42 80 3c 28 00 74 08 48 89 df e8 ce 0a 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 b1 0a d0 ff 4c 8b 23 4d 85 e4 4c
RSP: 0018:ffffc90000aa76e0 EFLAGS: 00010202

RAX: 0000000000000007 RBX: 0000000000000038 RCX: ffff888115520000
RDX: 0000000000000000 RSI: 0000000000000045 RDI: ffffffff86686c15
RBP: ffffc90000aa77b0 R08: ffff88810c3107e0 R09: 0000000000000001
R10: 0000000000000000 R11: dffffc0000000001 R12: 0000000000000001
R13: dffffc0000000000 R14: ffff88810c3107e0 R15: 0000000000000001
FS:  00007f31df1a06c0(0000) GS:ffff8881f6e00000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007ffd53709ad8 CR3: 000000011fa0f000 CR4: 00000000003506b0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
----------------
Code disassembly (best guess):
   0:	88 ff                	mov    %bh,%bh
   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 ce 0a d0 ff       	call   0xffd00aea
  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 b1 0a d0 ff       	call   0xffd00aea
  39:	4c 8b 23             	mov    (%rbx),%r12
  3c:	4d 85 e4             	test   %r12,%r12
  3f:	4c                   	rex.WR

Crashes (61):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2024/10/05 15:52 android14-6.1 d4dab27b9d1c d7906eff .config console log report syz / log [disk image] [vmlinux] [kernel image] [mounted in repro] ci2-android-6-1 general protection fault in __ext4_journal_get_write_access
2024/10/02 07:45 android14-6.1 1cdc168f1ef0 ea2b66a6 .config console log report syz / log [disk image] [vmlinux] [kernel image] [mounted in repro] ci2-android-6-1 general protection fault in __ext4_journal_get_write_access
2024/11/07 16:23 android14-6.1 976b055754d7 867e44df .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-6-1 general protection fault in __ext4_journal_get_write_access
2024/10/23 14:20 android14-6.1 4dc2498506e6 15fa2979 .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-6-1 general protection fault in __ext4_journal_get_write_access
2024/10/23 02:37 android14-6.1 00f19bd9ed42 15fa2979 .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-6-1 general protection fault in __ext4_journal_get_write_access
2024/10/20 02:14 android14-6.1 1fe91f863a7f cd6fc0a3 .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-6-1 general protection fault in __ext4_journal_get_write_access
2024/10/18 22:32 android14-6.1 1fe91f863a7f cd6fc0a3 .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-6-1 general protection fault in __ext4_journal_get_write_access
2024/10/14 15:06 android14-6.1 8097478ae850 084d8178 .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-6-1 general protection fault in __ext4_journal_get_write_access
2024/10/12 00:15 android14-6.1 d41d398db683 084d8178 .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-6-1 general protection fault in __ext4_journal_get_write_access
2024/10/10 02:16 android14-6.1 19e119d2d0fe 0278d004 .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-6-1 general protection fault in __ext4_journal_get_write_access
2024/10/08 22:49 android14-6.1 8d298374716d 402f1df0 .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-6-1 general protection fault in __ext4_journal_get_write_access
2024/10/08 07:10 android14-6.1 0e8b65e41ffd 402f1df0 .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-6-1 general protection fault in __ext4_journal_get_write_access
2024/10/07 18:54 android14-6.1 0e8b65e41ffd d7906eff .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-6-1 general protection fault in __ext4_journal_get_write_access
2024/10/06 20:33 android14-6.1 d4dab27b9d1c d7906eff .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-6-1 general protection fault in __ext4_journal_get_write_access
2024/10/05 13:02 android14-6.1 d4dab27b9d1c d7906eff .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-6-1 general protection fault in __ext4_journal_get_write_access
2024/10/03 05:26 android14-6.1 1cdc168f1ef0 a4c7fd36 .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-6-1 general protection fault in __ext4_journal_get_write_access
2024/10/02 00:40 android14-6.1 1cdc168f1ef0 ea2b66a6 .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-6-1 general protection fault in __ext4_journal_get_write_access
2024/09/28 11:25 android14-6.1 110595418159 ba29ff75 .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-6-1 general protection fault in __ext4_journal_get_write_access
2024/09/27 20:41 android14-6.1 5a912daf8731 440b26ec .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-6-1 general protection fault in __ext4_journal_get_write_access
2024/09/27 14:15 android14-6.1 5a912daf8731 9314348a .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-6-1 general protection fault in __ext4_journal_get_write_access
2024/09/27 14:15 android14-6.1 5a912daf8731 9314348a .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-6-1 general protection fault in __ext4_journal_get_write_access
2024/09/27 01:04 android14-6.1 bcc435d3749c 9314348a .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-6-1 general protection fault in __ext4_journal_get_write_access
2024/09/27 00:42 android14-6.1 bcc435d3749c 9314348a .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-6-1 general protection fault in __ext4_journal_get_write_access
2024/09/26 01:34 android14-6.1 9e167c1c27c5 0d19f247 .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-6-1 general protection fault in __ext4_journal_get_write_access
2024/09/26 01:22 android14-6.1 9e167c1c27c5 0d19f247 .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-6-1 general protection fault in __ext4_journal_get_write_access
2024/09/25 11:58 android14-6.1 03b93dc707ed 349a68c4 .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-6-1 general protection fault in __ext4_journal_get_write_access
2024/09/25 10:31 android14-6.1 03b93dc707ed 349a68c4 .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-6-1 general protection fault in __ext4_journal_get_write_access
2024/09/25 00:48 android14-6.1 5c7d0d4f4a38 5643e0e9 .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-6-1 general protection fault in __ext4_journal_get_write_access
2024/09/24 16:58 android14-6.1 2cd8ac816de5 5643e0e9 .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-6-1 general protection fault in __ext4_journal_get_write_access
2024/09/24 08:22 android14-6.1 2cd8ac816de5 89298aad .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-6-1 general protection fault in __ext4_journal_get_write_access
2024/09/24 08:10 android14-6.1 2cd8ac816de5 89298aad .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-6-1 general protection fault in __ext4_journal_get_write_access
2024/09/24 08:10 android14-6.1 2cd8ac816de5 89298aad .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-6-1 general protection fault in __ext4_journal_get_write_access
2024/09/24 07:40 android14-6.1 2cd8ac816de5 89298aad .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-6-1 general protection fault in __ext4_journal_get_write_access
2024/09/23 18:28 android14-6.1 41e1c6f93780 89298aad .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-6-1 general protection fault in __ext4_journal_get_write_access
2024/09/23 05:03 android14-6.1 3b95e548676f 6f888b75 .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-6-1 general protection fault in __ext4_journal_get_write_access
2024/09/22 22:32 android14-6.1 3b95e548676f 6f888b75 .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-6-1 general protection fault in __ext4_journal_get_write_access
2024/09/18 22:57 android14-6.1 8a268cb981a6 c673ca06 .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-6-1 general protection fault in __ext4_journal_get_write_access
2024/09/18 10:21 android14-6.1 47871c381d5f c673ca06 .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-6-1 general protection fault in __ext4_journal_get_write_access
2024/09/13 09:20 android14-6.1 6e5b92a6a151 73e8a465 .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-6-1 general protection fault in __ext4_journal_get_write_access
2024/09/12 08:03 android14-6.1 75c9b1955b7e d94c83d8 .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-6-1 general protection fault in __ext4_journal_get_write_access
2024/09/10 18:24 android14-6.1 04212acc42d4 86aa7bd7 .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-6-1 general protection fault in __ext4_journal_get_write_access
2024/09/10 04:27 android14-6.1 04212acc42d4 784df80e .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-6-1 general protection fault in __ext4_journal_get_write_access
2024/09/09 21:09 android14-6.1 04212acc42d4 073f8be2 .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-6-1 general protection fault in __ext4_journal_get_write_access
2024/09/09 05:49 android14-6.1 27310ed6b677 9750182a .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-6-1 general protection fault in __ext4_journal_get_write_access
2024/09/02 22:50 android14-6.1 a1895da8bd3b 8045124c .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-6-1 general protection fault in __ext4_journal_get_write_access
2024/09/01 15:10 android14-6.1 b5e374dda921 1eda0d14 .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-6-1 general protection fault in __ext4_journal_get_write_access
2024/08/21 07:23 android14-6.1 edca080b95df 9f0ab3fb .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-6-1 general protection fault in __ext4_journal_get_write_access
2024/08/20 16:22 android14-6.1 edca080b95df 9f0ab3fb .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-6-1 general protection fault in __ext4_journal_get_write_access
2024/08/20 16:03 android14-6.1 edca080b95df 9f0ab3fb .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-6-1 general protection fault in __ext4_journal_get_write_access
2024/08/12 11:48 android14-6.1 79436849ef1d 842184b3 .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-6-1 general protection fault in __ext4_journal_get_write_access
2024/08/12 11:47 android14-6.1 79436849ef1d 842184b3 .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-6-1 general protection fault in __ext4_journal_get_write_access
2024/08/08 17:58 android14-6.1 7003f6b36a9b 61405512 .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-6-1 general protection fault in __ext4_journal_get_write_access
2024/07/03 05:18 android14-6.1 81e9f0610c73 1ecfa2d8 .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-6-1 general protection fault in __ext4_journal_get_write_access
2024/06/15 16:06 android14-6.1 25216be1ac5e f429ab00 .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-6-1 general protection fault in __ext4_journal_get_write_access
2024/06/15 09:06 android14-6.1 25216be1ac5e f429ab00 .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-6-1 general protection fault in __ext4_journal_get_write_access
2024/06/07 06:33 android14-6.1 62a4d78ddaf1 121701b6 .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/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.