syzbot


KCSAN: data-race in retain_dentry / step_into

Status: auto-closed as invalid on 2020/09/20 21:41
Subsystems: fs
[Documentation on labels]
First crash: 1383d, last: 1347d
Similar bugs (3)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream KCSAN: data-race in retain_dentry / step_into (4) fs 5 1101d 1141d 0/26 auto-closed as invalid on 2021/05/24 08:11
upstream KCSAN: data-race in retain_dentry / step_into (3) fs 2 1177d 1197d 0/26 auto-closed as invalid on 2021/03/09 12:32
upstream KCSAN: data-race in retain_dentry / step_into (2) fs 3 1239d 1234d 0/26 auto-closed as invalid on 2021/01/07 06:50

Sample crash report:
==================================================================
BUG: KCSAN: data-race in retain_dentry / step_into

write to 0xffff8881205ad9c0 of 4 bytes by task 23931 on cpu 1:
 retain_dentry+0x1db/0x260 fs/dcache.c:659
 dput+0x10e/0x420 fs/dcache.c:873
 path_put+0x1b/0x30 fs/namei.c:496
 do_mount fs/namespace.c:3206 [inline]
 __do_sys_mount fs/namespace.c:3413 [inline]
 __se_sys_mount+0x130/0x180 fs/namespace.c:3390
 __x64_sys_mount+0x63/0x70 fs/namespace.c:3390
 do_syscall_64+0x39/0x80 arch/x86/entry/common.c:46
 entry_SYSCALL_64_after_hwframe+0x44/0xa9

read to 0xffff8881205ad9c0 of 4 bytes by task 23938 on cpu 0:
 __d_entry_type include/linux/dcache.h:391 [inline]
 d_is_symlink include/linux/dcache.h:421 [inline]
 step_into+0x158/0xe70 fs/namei.c:1694
 walk_component+0x190/0x350 fs/namei.c:1866
 lookup_last fs/namei.c:2309 [inline]
 path_lookupat+0x12d/0x560 fs/namei.c:2333
 filename_lookup+0xf2/0x380 fs/namei.c:2366
 user_path_at_empty+0x3b/0x50 fs/namei.c:2646
 user_path_at include/linux/namei.h:59 [inline]
 do_mount fs/namespace.c:3202 [inline]
 __do_sys_mount fs/namespace.c:3413 [inline]
 __se_sys_mount+0xf1/0x180 fs/namespace.c:3390
 __x64_sys_mount+0x63/0x70 fs/namespace.c:3390
 do_syscall_64+0x39/0x80 arch/x86/entry/common.c:46
 entry_SYSCALL_64_after_hwframe+0x44/0xa9

Reported by Kernel Concurrency Sanitizer on:
CPU: 0 PID: 23938 Comm: syz-executor.1 Not tainted 5.8.0-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
==================================================================

Crashes (4):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2020/08/16 21:33 upstream 2cc3c4b3c2e9 5ce13532 .config console log report ci2-upstream-kcsan-gce
2020/08/12 11:52 upstream fb893de323e2 0d7bd2e0 .config console log report ci2-upstream-kcsan-gce
2020/08/04 07:30 upstream e4cbce4d1317 96dd3623 .config console log report ci2-upstream-kcsan-gce
2020/07/11 12:26 upstream 1df0d8960499 7ba05d2d .config console log report ci2-upstream-kcsan-gce
* Struck through repros no longer work on HEAD.