syzbot


KCSAN: data-race in drop_nlink / generic_fillattr

Status: auto-closed as invalid on 2020/10/22 03:32
Subsystems: fs
[Documentation on labels]
First crash: 1391d, last: 1315d
Similar bugs (6)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream KCSAN: data-race in drop_nlink / generic_fillattr (4) fs 2 420d 463d 0/26 auto-obsoleted due to no activity on 2023/04/11 17:00
upstream KCSAN: data-race in drop_nlink / generic_fillattr (6) fs 2 90d 96d 0/26 auto-obsoleted due to no activity on 2024/02/29 22:16
upstream KCSAN: data-race in drop_nlink / generic_fillattr (7) fs 2 48d 54d 0/26 auto-obsoleted due to no activity on 2024/04/11 18:19
upstream KCSAN: data-race in drop_nlink / generic_fillattr (5) fs 2 167d 136d 0/26 auto-obsoleted due to no activity on 2023/12/25 00:01
upstream KCSAN: data-race in drop_nlink / generic_fillattr (3) fs 22 925d 1136d 0/26 auto-closed as invalid on 2021/11/16 10:39
upstream KCSAN: data-race in drop_nlink / generic_fillattr (2) fs 8 1190d 1234d 0/26 auto-closed as invalid on 2021/02/25 00:13

Sample crash report:
==================================================================
BUG: KCSAN: data-race in drop_nlink / generic_fillattr

write to 0xffff888120fa7aa8 of 4 bytes by task 19314 on cpu 0:
 drop_nlink+0x37/0x90 fs/inode.c:304
 shmem_unlink+0x16f/0x190 mm/shmem.c:3021
 shmem_rename2+0x2f4/0x430 mm/shmem.c:3113
 vfs_rename+0x8c2/0xe30 fs/namei.c:4309
 do_renameat2+0x554/0x940 fs/namei.c:4456
 __do_sys_rename fs/namei.c:4502 [inline]
 __se_sys_rename fs/namei.c:4500 [inline]
 __x64_sys_rename+0x3a/0x40 fs/namei.c:4500
 do_syscall_64+0x39/0x80 arch/x86/entry/common.c:46
 entry_SYSCALL_64_after_hwframe+0x44/0xa9

read to 0xffff888120fa7aa8 of 4 bytes by task 19361 on cpu 1:
 generic_fillattr+0x74/0x180 fs/stat.c:41
 shmem_getattr+0x232/0x2c0 mm/shmem.c:1073
 vfs_getattr_nosec fs/stat.c:87 [inline]
 vfs_getattr fs/stat.c:124 [inline]
 vfs_statx_fd fs/stat.c:151 [inline]
 vfs_fstat include/linux/fs.h:3189 [inline]
 __do_sys_newfstat fs/stat.c:398 [inline]
 __se_sys_newfstat+0x1b6/0x510 fs/stat.c:395
 __x64_sys_newfstat+0x2d/0x40 fs/stat.c:395
 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: 1 PID: 19361 Comm: systemd-udevd Not tainted 5.9.0-rc5-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
==================================================================

Crashes (9):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2020/09/17 03:24 upstream 5925fa68fe82 8247808b .config console log report info ci2-upstream-kcsan-gce
2020/09/10 13:47 upstream 7fe10096c150 ac7ca78e .config console log report ci2-upstream-kcsan-gce
2020/09/04 00:53 upstream e28f0104343d abf9ba4f .config console log report ci2-upstream-kcsan-gce
2020/08/26 14:24 upstream 2ac69819ba9e 318430cb .config console log report ci2-upstream-kcsan-gce
2020/08/23 11:17 upstream c3d8f220d012 a6d5f3ad .config console log report ci2-upstream-kcsan-gce
2020/08/12 15:39 upstream fb893de323e2 0d7bd2e0 .config console log report ci2-upstream-kcsan-gce
2020/07/16 14:17 upstream f8456690ba8e b090c643 .config console log report ci2-upstream-kcsan-gce
2020/07/13 03:56 upstream 9901a6bd1577 9ebcc5b1 .config console log report ci2-upstream-kcsan-gce
2020/07/03 21:34 upstream cdd3bb54332f 6e569755 .config console log report ci2-upstream-kcsan-gce
* Struck through repros no longer work on HEAD.