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: 130d, last: 24d
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 1355d 1404d 22/27 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: 1 PID: 1584 Comm: syz.0.426 Not tainted 6.1.84-syzkaller-00131-g81e9f0610c73 #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 06/07/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 6e 17 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 51 17 d0 ff 4c 8b 23 4d 85 e4 4c
RSP: 0018:ffffc90001a6eec0 EFLAGS: 00010202
RAX: 0000000000000007 RBX: 0000000000000038 RCX: 0000000000040000
RDX: ffffc90009ea4000 RSI: 000000000003ffff RDI: 0000000000040000
RBP: ffffc90001a6ef90 R08: ffff88813a326540 R09: 0000000000000001
R10: 0000000000000000 R11: dffffc0000000001 R12: 1ffff110255f403e
R13: dffffc0000000000 R14: ffff88813a326540 R15: 0000000000000001
FS:  00007f1af90816c0(0000) GS:ffff8881f7100000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007fe2dddddfa8 CR3: 0000000136f8f000 CR4: 00000000003506a0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 <TASK>
 ext4_xattr_block_set+0x1dcc/0x3760 fs/ext4/xattr.c:2033
 ext4_xattr_set_handle+0xdac/0x1560 fs/ext4/xattr.c:2406
 ext4_initxattrs+0xa7/0x120 fs/ext4/xattr_security.c:44
 security_inode_init_security+0x252/0x390 security/security.c:1133
 ext4_init_security+0x34/0x40 fs/ext4/xattr_security.c:58
 __ext4_new_inode+0x31ef/0x40a0 fs/ext4/ialloc.c:1328
 ext4_create+0x275/0x550 fs/ext4/namei.c:2834
 lookup_open fs/namei.c:3483 [inline]
 open_last_lookups fs/namei.c:3551 [inline]
 path_openat+0x12ee/0x2d60 fs/namei.c:3781
 do_filp_open+0x230/0x480 fs/namei.c:3811
 do_sys_openat2+0x13f/0x850 fs/open.c:1341
 do_sys_open fs/open.c:1357 [inline]
 __do_sys_openat fs/open.c:1373 [inline]
 __se_sys_openat fs/open.c:1368 [inline]
 __x64_sys_openat+0x243/0x290 fs/open.c:1368
 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:0x7f1af8375b99
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:00007f1af9081048 EFLAGS: 00000246 ORIG_RAX: 0000000000000101
RAX: ffffffffffffffda RBX: 00007f1af8504038 RCX: 00007f1af8375b99
RDX: 00000000000026e1 RSI: 0000000020000280 RDI: ffffffffffffff9c
RBP: 00007f1af83e4a7a R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000
R13: 000000000000006e R14: 00007f1af8504038 R15: 00007ffeefee90a8
 </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 6e 17 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 51 17 d0 ff 4c 8b 23 4d 85 e4 4c
RSP: 0018:ffffc90001a6eec0 EFLAGS: 00010202
RAX: 0000000000000007 RBX: 0000000000000038 RCX: 0000000000040000
RDX: ffffc90009ea4000 RSI: 000000000003ffff RDI: 0000000000040000
RBP: ffffc90001a6ef90 R08: ffff88813a326540 R09: 0000000000000001
R10: 0000000000000000 R11: dffffc0000000001 R12: 1ffff110255f403e
R13: dffffc0000000000 R14: ffff88813a326540 R15: 0000000000000001
FS:  00007f1af90816c0(0000) GS:ffff8881f7100000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007fe2dddddfa8 CR3: 0000000136f8f000 CR4: 00000000003506a0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 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 6e 17 d0 ff       	call   0xffd0178a
  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 51 17 d0 ff       	call   0xffd0178a
  39:	4c 8b 23             	mov    (%rbx),%r12
  3c:	4d 85 e4             	test   %r12,%r12
  3f:	4c                   	rex.WR

Crashes (7):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
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.