syzbot


general protection fault in kernfs_kill_sb

Status: fixed on 2018/05/08 18:30
Subsystems: mm
[Documentation on labels]
Reported-by: syzbot+151de3f2be6b40ac8026@syzkaller.appspotmail.com
Fix commit: 8e04944f0ea8 mm,vmscan: Allow preallocating memory for register_shrinker().
First crash: 2437d, last: 2400d
Discussions (2)
Title Replies (including bot) Last reply
general protection fault in kernfs_kill_sb 8 (9) 2018/05/02 10:37
WARNING in kill_block_super 7 (8) 2018/04/11 10:09
Similar bugs (2)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream general protection fault in kernfs_kill_sb (2) kernfs C 22 2383d 2395d 5/28 fixed on 2018/06/07 13:52
linux-4.14 general protection fault in kernfs_kill_sb C error 163 1025d 2055d 0/1 upstream: reported C repro on 2019/04/18 07:59

Sample crash report:
kasan: GPF could be caused by NULL-ptr deref or user memory access
 should_failslab+0xec/0x120 mm/failslab.c:32
 slab_pre_alloc_hook mm/slab.h:422 [inline]
 slab_alloc mm/slab.c:3365 [inline]
 __do_kmalloc mm/slab.c:3703 [inline]
 __kmalloc+0x63/0x760 mm/slab.c:3714
general protection fault: 0000 [#1] SMP KASAN
Dumping ftrace buffer:
   (ftrace buffer empty)
 kmalloc include/linux/slab.h:517 [inline]
 kzalloc include/linux/slab.h:701 [inline]
 register_shrinker+0x10e/0x2d0 mm/vmscan.c:268
Modules linked in:
CPU: 1 PID: 4471 Comm: syzkaller129261 Not tainted 4.16.0-rc6+ #43
 sget_userns+0xbbf/0xe40 fs/super.c:520
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
RIP: 0010:__list_del_entry_valid+0x7e/0x150 lib/list_debug.c:51
RSP: 0018:ffff8801ae017658 EFLAGS: 00010246
RAX: dffffc0000000000 RBX: 0000000000000000 RCX: 0000000000000000
RDX: 0000000000000000 RSI: ffff8801d97a6e98 RDI: ffff8801d97a6ea0
RBP: ffff8801ae017670 R08: ffffffff81d39d22 R09: 0000000000000004
R10: ffff8801ae017670 R11: 0000000000000000 R12: 0000000000000000
R13: ffff8801d91dec00 R14: ffff8801ae017700 R15: ffff8801d97a6e98
FS:  0000000001569880(0000) GS:ffff8801db100000(0000) knlGS:0000000000000000
 kernfs_mount_ns+0x13d/0x8b0 fs/kernfs/mount.c:320
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00000000006d0188 CR3: 00000001da40c005 CR4: 00000000001606e0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
 sysfs_mount+0xc2/0x1c0 fs/sysfs/mount.c:36
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+0x9e/0x330 fs/kernfs/mount.c:361
 mount_fs+0x66/0x2d0 fs/super.c:1222
 vfs_kern_mount.part.26+0xc6/0x4a0 fs/namespace.c:1037
 sysfs_kill_sb+0x22/0x40 fs/sysfs/mount.c:50
 vfs_kern_mount fs/namespace.c:2509 [inline]
 do_new_mount fs/namespace.c:2512 [inline]
 do_mount+0xea4/0x2bb0 fs/namespace.c:2842
 deactivate_locked_super+0x88/0xd0 fs/super.c:312
 sget_userns+0xbda/0xe40 fs/super.c:522
 SYSC_mount fs/namespace.c:3058 [inline]
 SyS_mount+0xab/0x120 fs/namespace.c:3035
 do_syscall_64+0x281/0x940 arch/x86/entry/common.c:287
 kernfs_mount_ns+0x13d/0x8b0 fs/kernfs/mount.c:320
 sysfs_mount+0xc2/0x1c0 fs/sysfs/mount.c:36
 mount_fs+0x66/0x2d0 fs/super.c:1222
 entry_SYSCALL_64_after_hwframe+0x42/0xb7
 vfs_kern_mount.part.26+0xc6/0x4a0 fs/namespace.c:1037
RIP: 0033:0x442609
RSP: 002b:00007fff40a278e8 EFLAGS: 00000246 ORIG_RAX: 00000000000000a5
RAX: ffffffffffffffda RBX: 0000000000000000 RCX: 0000000000442609
RDX: 0000000020000140 RSI: 0000000020000040 RDI: 0000000020000000
RBP: 00007fff40a28190 R08: 00000000200002c0 R09: 0000000300000000
 vfs_kern_mount fs/namespace.c:2509 [inline]
 do_new_mount fs/namespace.c:2512 [inline]
 do_mount+0xea4/0x2bb0 fs/namespace.c:2842
R10: 0000000000000000 R11: 0000000000000246 R12: ffffffffffffffff
R13: 0000000000000003 R14: 0000000000001380 R15: 00007fff40a27a28
 SYSC_mount fs/namespace.c:3058 [inline]
 SyS_mount+0xab/0x120 fs/namespace.c:3035
 do_syscall_64+0x281/0x940 arch/x86/entry/common.c:287
 entry_SYSCALL_64_after_hwframe+0x42/0xb7
RIP: 0033:0x442609
RSP: 002b:00007fff40a278e8 EFLAGS: 00000246 ORIG_RAX: 00000000000000a5
RAX: ffffffffffffffda RBX: 0000000000000000 RCX: 0000000000442609
RDX: 0000000020000140 RSI: 0000000020000040 RDI: 0000000020000000
RBP: 00007fff40a28190 R08: 00000000200002c0 R09: 0000000300000000
R10: 0000000000000000 R11: 0000000000000246 R12: ffffffffffffffff
R13: 0000000000000003 R14: 0000000000001380 R15: 00007fff40a27a28
Code: 00 00 00 00 ad de 49 39 c4 74 66 48 b8 00 02 00 00 00 00 ad de 48 89 da 48 39 c3 74 65 48 c1 ea 03 48 b8 00 00 00 00 00 fc ff df <80> 3c 02 00 75 7b 48 8b 13 48 39 f2 75 57 49 8d 7c 24 08 48 b8 
RIP: __list_del_entry_valid+0x7e/0x150 lib/list_debug.c:51 RSP: ffff8801ae017658
---[ end trace b14d521943ecadbd ]---

Crashes (29):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2018/04/01 14:00 bpf-next 7828f20e3779 0a78e248 .config console log report syz C ci-upstream-bpf-next-kasan-gce
2018/05/08 05:46 upstream f142f08bf7ec 045bbd4a .config console log report ci-upstream-kasan-gce-root
2018/05/07 04:22 upstream 701e39d05119 a211da1a .config console log report ci-upstream-kasan-gce-root
2018/04/25 03:59 upstream 24cac7009cb1 37e76fe2 .config console log report ci-upstream-kasan-gce-root
2018/04/12 03:43 upstream b284d4d5a678 9cd56d71 .config console log report ci-upstream-kasan-gce-root
2018/04/05 23:51 upstream 3c8ba0d61d04 a932eae6 .config console log report ci-upstream-kasan-gce-root
2018/04/03 15:46 upstream 642e7fd23353 676bd07e .config console log report ci-upstream-kasan-gce-root
2018/05/03 19:45 bpf-next 03f5781be2c7 9ce14f4b .config console log report ci-upstream-bpf-next-kasan-gce
2018/04/26 21:12 bpf-next 9b984a20ca84 73417389 .config console log report ci-upstream-bpf-next-kasan-gce
2018/04/21 04:54 bpf-next 878a4d328104 ca03d688 .config console log report ci-upstream-bpf-next-kasan-gce
2018/04/20 14:11 bpf-next 878a4d328104 cc402841 .config console log report ci-upstream-bpf-next-kasan-gce
2018/04/20 01:40 bpf-next 34df9d37abe0 eae05cb0 .config console log report ci-upstream-bpf-next-kasan-gce
2018/04/19 13:06 bpf-next 7f3249fb1231 3642839c .config console log report ci-upstream-bpf-next-kasan-gce
2018/04/19 07:53 bpf-next 7f3249fb1231 d1b2ef69 .config console log report ci-upstream-bpf-next-kasan-gce
2018/04/18 20:11 bpf-next 0c90f2243ec6 829f0234 .config console log report ci-upstream-bpf-next-kasan-gce
2018/04/18 00:09 bpf-next a2d481b326c9 b80fd3b5 .config console log report ci-upstream-bpf-next-kasan-gce
2018/04/16 22:35 bpf-next 5d1365940a68 b80fd3b5 .config console log report ci-upstream-bpf-next-kasan-gce
2018/04/16 09:55 bpf-next 5d1365940a68 7a67784c .config console log report ci-upstream-bpf-next-kasan-gce
2018/04/11 20:36 bpf-next 17dec0a94915 9cd56d71 .config console log report ci-upstream-bpf-next-kasan-gce
2018/04/11 20:20 bpf-next 17dec0a94915 9cd56d71 .config console log report ci-upstream-bpf-next-kasan-gce
2018/04/10 11:58 bpf-next 4608f064532c 8e873e9d .config console log report ci-upstream-bpf-next-kasan-gce
2018/04/08 12:27 bpf-next 4608f064532c 77bd5117 .config console log report ci-upstream-bpf-next-kasan-gce
2018/04/05 21:34 bpf-next 4608f064532c a932eae6 .config console log report ci-upstream-bpf-next-kasan-gce
2018/04/05 10:29 bpf-next 4608f064532c 5e1ccffc .config console log report ci-upstream-bpf-next-kasan-gce
2018/04/04 05:23 bpf-next 4608f064532c 676bd07e .config console log report ci-upstream-bpf-next-kasan-gce
2018/04/03 19:32 bpf-next 7828f20e3779 676bd07e .config console log report ci-upstream-bpf-next-kasan-gce
2018/04/03 19:23 bpf-next 7828f20e3779 676bd07e .config console log report ci-upstream-bpf-next-kasan-gce
2018/04/01 12:00 bpf-next 7828f20e3779 0a78e248 .config console log report ci-upstream-bpf-next-kasan-gce
2018/04/01 12:00 bpf-next 7828f20e3779 0a78e248 .config console log report ci-upstream-bpf-next-kasan-gce
* Struck through repros no longer work on HEAD.