syzbot


general protection fault in legacy_get_tree

Status: upstream: reported C repro on 2020/10/11 06:03
Reported-by: syzbot+eb6efeca66d6eb995df0@syzkaller.appspotmail.com
First crash: 787d, last: 436d

Sample crash report:
RDX: 0000000020000000 RSI: 0000000020000100 RDI: 00007ffdb3944b30
RBP: 00007ffdb3944b30 R08: 00007ffdb3944b70 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000206 R12: 0000000000000004
R13: 0000000000000007 R14: 0000000000000006 R15: 0000000000000006
EXT4-fs (loop0): not enough memory for 1 flex groups
EXT4-fs (loop0): unable to initialize flex_bg meta info!
EXT4-fs (loop0): mount failed
kasan: CONFIG_KASAN_INLINE enabled
kasan: GPF could be caused by NULL-ptr deref or user memory access
general protection fault: 0000 [#1] PREEMPT SMP KASAN
CPU: 0 PID: 356 Comm: syz-executor303 Not tainted 5.4.70-syzkaller-00063-gd0e6eb879517 #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
RIP: 0010:legacy_get_tree+0xfe/0x170 fs/fs_context.c:652
Code: 89 ff 89 ee 48 89 da ff 14 24 48 89 c5 48 3d 01 f0 ff ff 72 07 e8 e2 7c c0 ff eb 48 48 89 eb 48 83 c3 68 48 89 d8 48 c1 e8 03 <42> 80 3c 28 00 74 08 48 89 df e8 e3 36 ee ff 48 83 3b 00 74 50 e8
RSP: 0018:ffff8881cd147cc8 EFLAGS: 00010202
RAX: 000000000000000d RBX: 0000000000000068 RCX: ffff8881cd600f80
RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000000000000
RBP: 0000000000000000 R08: ffffffff81742a28 R09: 000000000000000c
R10: ffffed103b706515 R11: 0000000000000000 R12: ffff8881ce550600
R13: dffffc0000000000 R14: ffff8881cdfca700 R15: ffffffff84c78e78
FS:  00000000025cb940(0000) GS:ffff8881db800000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007f1d77149000 CR3: 00000001cdff1002 CR4: 00000000001606f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 vfs_get_tree+0x85/0x260 fs/super.c:1547
 do_new_mount fs/namespace.c:2822 [inline]
 do_mount+0x1883/0x2630 fs/namespace.c:3142
 ksys_mount+0xc2/0xf0 fs/namespace.c:3351
 __do_sys_mount fs/namespace.c:3365 [inline]
 __se_sys_mount fs/namespace.c:3362 [inline]
 __x64_sys_mount+0xb1/0xc0 fs/namespace.c:3362
 do_syscall_64+0xcb/0x150 arch/x86/entry/common.c:290
 entry_SYSCALL_64_after_hwframe+0x44/0xa9
RIP: 0033:0x4489da
Code: b8 a6 00 00 00 0f 05 48 3d 01 f0 ff ff 0f 83 8d a3 fb ff c3 66 2e 0f 1f 84 00 00 00 00 00 66 90 49 89 ca b8 a5 00 00 00 0f 05 <48> 3d 01 f0 ff ff 0f 83 6a a3 fb ff c3 66 0f 1f 84 00 00 00 00 00
RSP: 002b:00007ffdb3944b18 EFLAGS: 00000206 ORIG_RAX: 00000000000000a5
RAX: ffffffffffffffda RBX: 00007ffdb3944b70 RCX: 00000000004489da
RDX: 0000000020000000 RSI: 0000000020000100 RDI: 00007ffdb3944b30
RBP: 00007ffdb3944b30 R08: 00007ffdb3944b70 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000206 R12: 0000000000000004
R13: 0000000000000007 R14: 0000000000000006 R15: 0000000000000006
Modules linked in:
R13: dffffc0000000000 R14: ffff8881cdfca700 R15: ffffffff84c78e78
FS:  00000000025cb940(0000) GS:ffff8881db800000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007f1d77149000 CR3: 00000001cdff1002 CR4: 00000000001606f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400

Crashes (9):
Manager Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Title
ci2-android-5-4-kasan 2020/10/11 06:45 android12-5.4 d0e6eb879517 4a77ae0b .config log report syz C
ci2-android-5-4-kasan 2021/09/27 04:55 android12-5.4 d52ac987ad2a 78494d16 .config log report info general protection fault in legacy_get_tree
ci2-android-5-4-kasan 2021/09/25 01:05 android12-5.4 1a97657426d5 8cac236e .config log report info general protection fault in legacy_get_tree
ci2-android-5-4-kasan 2021/09/16 15:41 android12-5.4 b8b657d4d5e9 aae492f2 .config log report info general protection fault in legacy_get_tree
ci2-android-5-4-kasan 2021/04/28 05:04 android12-5.4 00f27edced58 805b5003 .config log report info general protection fault in legacy_get_tree
ci2-android-5-4-kasan 2021/02/21 16:56 android12-5.4 35f4b1b90596 3e5ed8b4 .config log report info general protection fault in legacy_get_tree
ci2-android-5-4-kasan 2021/02/05 20:07 android12-5.4 147896b43e61 23a562df .config log report info general protection fault in legacy_get_tree
ci2-android-5-4-kasan 2020/10/12 18:56 android12-5.4 cfc2b5293ada d32b0bbf .config log report info
ci2-android-5-4-kasan 2020/10/11 06:02 android12-5.4 d0e6eb879517 4a77ae0b .config log report info
* Struck through repros no longer work on HEAD.