syzbot


KCSAN: data-race in d_set_mounted / dput (5)

Status: auto-closed as invalid on 2021/05/20 02:25
Subsystems: fs
[Documentation on labels]
First crash: 1194d, last: 1106d
Similar bugs (4)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream KCSAN: data-race in d_set_mounted / dput (4) fs 3 1264d 1234d 0/26 auto-closed as invalid on 2020/12/21 11:47
upstream KCSAN: data-race in d_set_mounted / dput (3) fs 4 1361d 1394d 0/26 auto-closed as invalid on 2020/09/06 07:28
upstream KCSAN: data-race in d_set_mounted / dput fs 2 1613d 1627d 0/26 auto-closed as invalid on 2020/02/02 04:47
upstream KCSAN: data-race in d_set_mounted / dput (2) fs 2 1422d 1426d 0/26 closed as invalid on 2020/06/18 14:13

Sample crash report:
==================================================================
BUG: KCSAN: data-race in d_set_mounted / dput

write to 0xffff888034819000 of 4 bytes by task 25583 on cpu 0:
 d_set_mounted+0xfc/0x190 fs/dcache.c:1492
 get_mountpoint+0x1be/0x300 fs/namespace.c:755
 lock_mount+0x86/0x1d0 fs/namespace.c:2224
 do_new_mount_fc fs/namespace.c:2846 [inline]
 do_new_mount fs/namespace.c:2905 [inline]
 path_mount+0x18a4/0x1c00 fs/namespace.c:3233
 do_mount fs/namespace.c:3246 [inline]
 __do_sys_mount fs/namespace.c:3454 [inline]
 __se_sys_mount+0x23d/0x2e0 fs/namespace.c:3431
 __x64_sys_mount+0x63/0x70 fs/namespace.c:3431
 do_syscall_64+0x39/0x80 arch/x86/entry/common.c:46
 entry_SYSCALL_64_after_hwframe+0x44/0xae

read to 0xffff888034819000 of 4 bytes by task 25575 on cpu 1:
 fast_dput fs/dcache.c:747 [inline]
 dput+0x34/0x430 fs/dcache.c:873
 path_put fs/namei.c:546 [inline]
 terminate_walk+0x109/0x270 fs/namei.c:645
 path_lookupat+0x2f3/0x570 fs/namei.c:2439
 filename_lookup+0xff/0x390 fs/namei.c:2455
 user_path_at_empty+0x3b/0x50 fs/namei.c:2735
 user_path_at include/linux/namei.h:60 [inline]
 vfs_statx+0x98/0x290 fs/stat.c:195
 vfs_fstatat fs/stat.c:217 [inline]
 vfs_stat include/linux/fs.h:3236 [inline]
 __do_sys_newstat fs/stat.c:359 [inline]
 __se_sys_newstat+0x46/0x250 fs/stat.c:355
 __x64_sys_newstat+0x2d/0x40 fs/stat.c:355
 do_syscall_64+0x39/0x80 arch/x86/entry/common.c:46
 entry_SYSCALL_64_after_hwframe+0x44/0xae

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

Crashes (8):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2021/04/15 02:25 upstream 7f75285ca572 fcdb12ba .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in d_set_mounted / dput
2021/04/10 07:52 upstream 4e04e7513b0f 6a81331a .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in d_set_mounted / dput
2021/03/14 05:05 upstream 88fe49249c99 4a003785 .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in d_set_mounted / dput
2021/03/05 10:27 upstream 280d542f6ffa 9d751681 .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in d_set_mounted / dput
2021/02/10 10:54 upstream e0756cfc7d7c 9c8b8541 .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in d_set_mounted / dput
2021/01/27 11:35 upstream 2ab38c17aac1 a0ebf917 .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in d_set_mounted / dput
2021/01/21 14:12 upstream 9791581c049c d4f4eca5 .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in d_set_mounted / dput
2021/01/16 11:23 upstream 1d94330a437a 65a7a854 .config console log report info ci2-upstream-kcsan-gce
* Struck through repros no longer work on HEAD.