syzbot


general protection fault in kernfs_kill_sb (2)

Status: fixed on 2018/06/07 13:52
Reported-by: syzbot+481ad819c717f6b78df9@syzkaller.appspotmail.com
Fix commit: 82382acec0c9 kernfs: deal with kernfs_fill_super() failures
First crash: 1555d, last: 1543d
similar bugs (2):
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
linux-4.14 general protection fault in kernfs_kill_sb C error 163 185d 1215d 0/1 upstream: reported C repro on 2019/04/18 07:59
upstream general protection fault in kernfs_kill_sb C 29 1560d 1596d 6/23 fixed on 2018/05/08 18:30

Sample crash report:
RBP: 00007ffc558bda60 R08: 0000000000000000 R09: 0000000300000000
R10: 0000000000000000 R11: 0000000000000246 R12: ffffffffffffffff
R13: 0000000000000004 R14: 0000000000001380 R15: 00007ffc558bd2f8
kasan: CONFIG_KASAN_INLINE enabled
kasan: GPF could be caused by NULL-ptr deref or user memory access
general protection fault: 0000 [#1] SMP KASAN
Dumping ftrace buffer:
   (ftrace buffer empty)
Modules linked in:
CPU: 1 PID: 4540 Comm: syz-executor884 Not tainted 4.17.0-rc4+ #43
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
RIP: 0010:__list_del_entry_valid+0x84/0xf3 lib/list_debug.c:51
RSP: 0018:ffff8801aca6f860 EFLAGS: 00010246
RAX: dffffc0000000000 RBX: ffff8801ac528498 RCX: 0000000000000000
RDX: 0000000000000000 RSI: 0000000000000000 RDI: ffff8801ac5284a0
RBP: ffff8801aca6f878 R08: fffffbfff11cc855 R09: fffffbfff11cc854
R10: ffff8801aca6f878 R11: ffffffff88e642a7 R12: 0000000000000000
R13: 0000000000000000 R14: ffff8801aca6f908 R15: ffff8801ac528498
FS:  0000000000f86880(0000) GS:ffff8801daf00000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00000000004b6f3c CR3: 00000001d9730000 CR4: 00000000001406e0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 __list_del_entry include/linux/list.h:117 [inline]
 list_del include/linux/list.h:125 [inline]
 kernfs_kill_sb+0xa0/0x350 fs/kernfs/mount.c:361
 sysfs_kill_sb+0x22/0x40 fs/sysfs/mount.c:50
 deactivate_locked_super+0x97/0x100 fs/super.c:316
 kernfs_mount_ns+0x753/0x8e0 fs/kernfs/mount.c:335
 sysfs_mount+0xdf/0x200 fs/sysfs/mount.c:36
 mount_fs+0xae/0x328 fs/super.c:1267
 vfs_kern_mount.part.34+0xd4/0x4d0 fs/namespace.c:1037
 vfs_kern_mount fs/namespace.c:1027 [inline]
 do_new_mount fs/namespace.c:2518 [inline]
 do_mount+0x564/0x3070 fs/namespace.c:2848
 ksys_mount+0x12d/0x140 fs/namespace.c:3064
 __do_sys_mount fs/namespace.c:3078 [inline]
 __se_sys_mount fs/namespace.c:3075 [inline]
 __x64_sys_mount+0xbe/0x150 fs/namespace.c:3075
 do_syscall_64+0x1b1/0x800 arch/x86/entry/common.c:287
 entry_SYSCALL_64_after_hwframe+0x49/0xbe
RIP: 0033:0x4426a9
RSP: 002b:00007ffc558bd1b8 EFLAGS: 00000246 ORIG_RAX: 00000000000000a5
RAX: ffffffffffffffda RBX: 0000000000000000 RCX: 00000000004426a9
RDX: 00000000200000c0 RSI: 0000000020000080 RDI: 0000000020000040
RBP: 00007ffc558bda60 R08: 0000000000000000 R09: 0000000300000000
R10: 0000000000000000 R11: 0000000000000246 R12: ffffffffffffffff
R13: 0000000000000004 R14: 0000000000001380 R15: 00007ffc558bd2f8
Code: c5 0f 84 cc 00 00 00 48 b8 00 02 00 00 00 00 ad de 49 39 c4 0f 84 a5 00 00 00 48 b8 00 00 00 00 00 fc ff df 4c 89 e2 48 c1 ea 03 <80> 3c 02 00 75 5f 49 8b 14 24 48 39 da 0f 85 ba 00 00 00 48 b8 
RIP: __list_del_entry_valid+0x84/0xf3 lib/list_debug.c:51 RSP: ffff8801aca6f860
---[ end trace d148f307a34e229f ]---

Crashes (22):
Manager Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Title
ci-upstream-kasan-gce-root 2018/05/12 12:23 upstream f0ab773f5c96 e726f42b .config log report syz C
ci-upstream-kasan-gce-root 2018/05/17 12:35 upstream e6506eb24187 90c54c49 .config log report
ci-upstream-kasan-gce-root 2018/05/16 17:26 upstream 21b9f1c7e319 75b2448a .config log report
ci-upstream-kasan-gce-root 2018/05/15 19:53 upstream eeba2dfa6a0d 661fd7b9 .config log report
ci-upstream-kasan-gce-root 2018/05/15 12:44 upstream 67b8d5c70812 661fd7b9 .config log report
ci-upstream-kasan-gce-root 2018/05/12 12:07 upstream f0ab773f5c96 e726f42b .config log report
ci-upstream-bpf-next-kasan-gce 2018/05/24 16:55 bpf-next 31ad39239f08 f48c20b8 .config log report
ci-upstream-bpf-next-kasan-gce 2018/05/23 12:00 bpf-next ff4fb475cea8 f48c20b8 .config log report
ci-upstream-bpf-next-kasan-gce 2018/05/22 22:43 bpf-next 3fb48d881dbe f48c20b8 .config log report
ci-upstream-bpf-next-kasan-gce 2018/05/22 09:26 bpf-next fd0bfa8d6e04 f48c20b8 .config log report
ci-upstream-bpf-next-kasan-gce 2018/05/19 20:38 bpf-next d849f9f9768c f48c20b8 .config log report
ci-upstream-bpf-next-kasan-gce 2018/05/19 11:53 bpf-next d849f9f9768c 849705db .config log report
ci-upstream-bpf-next-kasan-gce 2018/05/17 15:18 bpf-next b9f672af148b 90c54c49 .config log report
ci-upstream-bpf-next-kasan-gce 2018/05/16 20:58 bpf-next 44edef77bd92 a367c1d7 .config log report
ci-upstream-bpf-next-kasan-gce 2018/05/16 08:53 bpf-next c5c7d7f3c451 75b2448a .config log report
ci-upstream-bpf-next-kasan-gce 2018/05/15 22:51 bpf-next c5c7d7f3c451 68ce85f1 .config log report
ci-upstream-bpf-next-kasan-gce 2018/05/15 11:25 bpf-next f2467c2dbc01 661fd7b9 .config log report
ci-upstream-bpf-next-kasan-gce 2018/05/14 12:01 bpf-next a84880ef4352 d131f1b9 .config log report
ci-upstream-bpf-next-kasan-gce 2018/05/14 10:03 bpf-next a84880ef4352 2407e740 .config log report
ci-upstream-bpf-next-kasan-gce 2018/05/14 09:47 bpf-next a84880ef4352 2407e740 .config log report
ci-upstream-bpf-next-kasan-gce 2018/05/14 01:41 bpf-next a84880ef4352 481f030c .config log report
ci-upstream-bpf-next-kasan-gce 2018/05/13 22:25 bpf-next a84880ef4352 481f030c .config log report