syzbot


BUG: corrupted list in __dentry_kill

Status: fixed on 2018/05/08 18:30
Subsystems: fs
[Documentation on labels]
Reported-by: syzbot+f3bd89a5ab3266b10540@syzkaller.appspotmail.com
Fix commit: 4a3877c4cedd rpc_pipefs: fix double-dput()
First crash: 2387d, last: 2365d
Discussions (1)
Title Replies (including bot) Last reply
BUG: corrupted list in __dentry_kill 8 (9) 2018/04/20 02:20
Similar bugs (6)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
android-54 BUG: corrupted list in __dentry_kill (2) C 1 43d 197d 0/2 upstream: reported C repro on 2024/03/27 11:32
linux-4.19 BUG: corrupted list in __dentry_kill 1 1638d 1638d 0/1 auto-closed as invalid on 2020/08/15 07:34
android-5-10 BUG: corrupted list in __dentry_kill C inconclusive 9 53d 197d 0/2 upstream: reported C repro on 2024/03/27 10:55
upstream BUG: corrupted list in __dentry_kill (2) fs C done 4945 1765d 1765d 15/28 fixed on 2020/02/18 14:31
android-54 BUG: corrupted list in __dentry_kill 1 556d 556d 0/2 auto-obsoleted due to no activity on 2023/08/01 17:00
android-6-1 BUG: corrupted list in __dentry_kill 2 62d 90d 0/2 premoderation: reported on 2024/07/13 01:23

Sample crash report:
RBP: 00007ffd1bbb3ae0 R08: 0000000020000200 R09: 0000000300000000
R10: 0000000000000000 R11: 0000000000000246 R12: ffffffffffffffff
R13: 0000000000000003 R14: 0000000000001380 R15: 00007ffd1bbb3378
list_del corruption. prev->next should be 00000000a8104008, but was 00000000081c6144
------------[ cut here ]------------
kernel BUG at lib/list_debug.c:53!
invalid opcode: 0000 [#1] SMP KASAN
Dumping ftrace buffer:
   (ftrace buffer empty)
Modules linked in:
CPU: 0 PID: 4448 Comm: syzkaller853443 Not tainted 4.16.0-rc6+ #43
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
RIP: 0010:__list_del_entry_valid+0xef/0x150 lib/list_debug.c:51
RSP: 0018:ffff8801b8f977a0 EFLAGS: 00010282
RAX: 0000000000000054 RBX: ffff8801b0c1cf60 RCX: 0000000000000000
RDX: 0000000000000054 RSI: 1ffff100371f2ea9 RDI: ffffed00371f2ee8
RBP: ffff8801b8f977b8 R08: 1ffff100371f2e40 R09: 0000000000000000
R10: ffff8801b8f97778 R11: 0000000000000000 R12: ffff8801b0c1cde0
R13: 1ffff100371f2efd R14: ffff8801b0c1cc70 R15: dffffc0000000000
FS:  00000000023a5880(0000) GS:ffff8801db000000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00000000004b6fbc CR3: 00000001c85a6004 CR4: 00000000001606f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 __list_del_entry include/linux/list.h:117 [inline]
 dentry_unlist fs/dcache.c:518 [inline]
 __dentry_kill+0x260/0x700 fs/dcache.c:571
 dentry_kill fs/dcache.c:616 [inline]
 dput.part.20+0x5a0/0x830 fs/dcache.c:831
 dput+0x1f/0x30 fs/dcache.c:795
 rpc_gssd_dummy_depopulate net/sunrpc/rpc_pipe.c:1381 [inline]
 rpc_fill_super+0x628/0xae0 net/sunrpc/rpc_pipe.c:1426
 mount_ns+0xc4/0x190 fs/super.c:1036
 rpc_mount+0x9e/0xd0 net/sunrpc/rpc_pipe.c:1451
 mount_fs+0x66/0x2d0 fs/super.c:1222
 vfs_kern_mount.part.26+0xc6/0x4a0 fs/namespace.c:1037
 vfs_kern_mount fs/namespace.c:2509 [inline]
 do_new_mount fs/namespace.c:2512 [inline]
 do_mount+0xea4/0x2bb0 fs/namespace.c:2842
 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:0x442759
RSP: 002b:00007ffd1bbb3238 EFLAGS: 00000246 ORIG_RAX: 00000000000000a5
RAX: ffffffffffffffda RBX: 0000000000000000 RCX: 0000000000442759
RDX: 00000000200002c0 RSI: 0000000020000140 RDI: 0000000020000300
RBP: 00007ffd1bbb3ae0 R08: 0000000020000200 R09: 0000000300000000
R10: 0000000000000000 R11: 0000000000000246 R12: ffffffffffffffff
R13: 0000000000000003 R14: 0000000000001380 R15: 00007ffd1bbb3378
Code: 4c 89 e2 48 c7 c7 c0 bf 75 87 e8 35 c1 46 fe 0f 0b 48 c7 c7 20 c0 75 87 e8 27 c1 46 fe 0f 0b 48 c7 c7 80 c0 75 87 e8 19 c1 46 fe <0f> 0b 48 c7 c7 e0 c0 75 87 e8 0b c1 46 fe 0f 0b 48 89 df 48 89 
RIP: __list_del_entry_valid+0xef/0x150 lib/list_debug.c:51 RSP: ffff8801b8f977a0
---[ end trace e1b9954cded9aca7 ]---

Crashes (35):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2018/03/31 08:39 bpf-next 7828f20e3779 8fbce0e4 .config console log report syz C ci-upstream-bpf-next-kasan-gce
2018/03/30 03:10 bpf-next 1379ef828a18 d47f0ed6 .config console log report syz C ci-upstream-bpf-next-kasan-gce
2018/03/29 10:38 bpf-next 22527437e0a0 d47f0ed6 .config console log report syz C ci-upstream-bpf-next-kasan-gce
2018/03/31 14:51 bpf-next 7828f20e3779 8fbce0e4 .config console log report syz ci-upstream-bpf-next-kasan-gce
2018/03/31 03:46 bpf-next 1379ef828a18 8fbce0e4 .config console log report syz ci-upstream-bpf-next-kasan-gce
2018/04/20 20:33 upstream 43f70c960180 cc402841 .config console log report ci-upstream-kasan-gce-root
2018/04/12 01:09 upstream b284d4d5a678 9cd56d71 .config console log report ci-upstream-kasan-gce-root
2018/04/12 00:59 upstream b284d4d5a678 9cd56d71 .config console log report ci-upstream-kasan-gce-root
2018/04/10 10:28 upstream c18bb396d3d2 b9f65507 .config console log report ci-upstream-kasan-gce-root
2018/04/05 02:31 upstream 3e968c9f1401 676bd07e .config console log report ci-upstream-kasan-gce-root
2018/04/04 23:40 upstream 3e968c9f1401 676bd07e .config console log report ci-upstream-kasan-gce-root
2018/04/04 23:00 upstream 3e968c9f1401 676bd07e .config console log report ci-upstream-kasan-gce-root
2018/04/04 02:08 upstream f2d285669aae 676bd07e .config console log report ci-upstream-kasan-gce-root
2018/03/31 09:13 upstream b5dbc28762fd 8fbce0e4 .config console log report ci-upstream-kasan-gce-root
2018/03/31 03:08 upstream 9dd2326890d8 8fbce0e4 .config console log report ci-upstream-kasan-gce-root
2018/03/30 22:21 upstream 9dd2326890d8 8fbce0e4 .config console log report ci-upstream-kasan-gce-root
2018/04/19 13:35 bpf-next 7f3249fb1231 3642839c .config console log report ci-upstream-bpf-next-kasan-gce
2018/04/16 17:29 bpf-next 5d1365940a68 802ac912 .config console log report ci-upstream-bpf-next-kasan-gce
2018/04/14 20:41 bpf-next 17dec0a94915 7a67784c .config console log report ci-upstream-bpf-next-kasan-gce
2018/04/05 10:23 bpf-next 4608f064532c 5e1ccffc .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/03/31 11:58 bpf-next 7828f20e3779 8fbce0e4 .config console log report ci-upstream-bpf-next-kasan-gce
2018/03/31 06:31 bpf-next 1379ef828a18 8fbce0e4 .config console log report ci-upstream-bpf-next-kasan-gce
2018/03/31 05:09 bpf-next 1379ef828a18 8fbce0e4 .config console log report ci-upstream-bpf-next-kasan-gce
2018/03/31 01:45 bpf-next 1379ef828a18 8fbce0e4 .config console log report ci-upstream-bpf-next-kasan-gce
2018/03/31 01:34 bpf-next 1379ef828a18 8fbce0e4 .config console log report ci-upstream-bpf-next-kasan-gce
2018/03/30 23:47 bpf-next 1379ef828a18 8fbce0e4 .config console log report ci-upstream-bpf-next-kasan-gce
2018/03/30 23:23 bpf-next 1379ef828a18 8fbce0e4 .config console log report ci-upstream-bpf-next-kasan-gce
2018/03/30 22:45 bpf-next 1379ef828a18 8fbce0e4 .config console log report ci-upstream-bpf-next-kasan-gce
2018/03/30 22:39 bpf-next 1379ef828a18 8fbce0e4 .config console log report ci-upstream-bpf-next-kasan-gce
2018/03/30 20:03 bpf-next 1379ef828a18 8fbce0e4 .config console log report ci-upstream-bpf-next-kasan-gce
2018/03/30 19:43 bpf-next 1379ef828a18 8fbce0e4 .config console log report ci-upstream-bpf-next-kasan-gce
2018/03/30 19:09 bpf-next 1379ef828a18 8fbce0e4 .config console log report ci-upstream-bpf-next-kasan-gce
2018/03/29 14:21 bpf-next 22527437e0a0 d47f0ed6 .config console log report ci-upstream-bpf-next-kasan-gce
2018/03/29 11:56 bpf-next 22527437e0a0 d47f0ed6 .config console log report ci-upstream-bpf-next-kasan-gce
* Struck through repros no longer work on HEAD.