syzbot


KCSAN: data-race in drop_nlink / generic_fillattr (2)

Status: auto-closed as invalid on 2021/02/25 00:13
Subsystems: fs
[Documentation on labels]
Reported-by: syzbot+2a43639c4b043177efc9@syzkaller.appspotmail.com
First crash: 1297d, last: 1215d
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 446d 489d 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 116d 122d 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 74d 80d 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 193d 161d 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 951d 1162d 0/26 auto-closed as invalid on 2021/11/16 10:39
upstream KCSAN: data-race in drop_nlink / generic_fillattr fs 9 1341d 1417d 0/26 auto-closed as invalid on 2020/10/22 03:32

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

write to 0xffff888108792968 of 4 bytes by task 17432 on cpu 1:
 drop_nlink+0x37/0x90 fs/inode.c:305
 shmem_unlink+0x162/0x180 mm/shmem.c:3028
 shmem_rename2+0x2f5/0x420 mm/shmem.c:3120
 vfs_rename+0x8ef/0xe20 fs/namei.c:4312
 do_renameat2+0x5c3/0x900 fs/namei.c:4457
 __do_sys_rename fs/namei.c:4508 [inline]
 __se_sys_rename fs/namei.c:4506 [inline]
 __x64_sys_rename+0x58/0x60 fs/namei.c:4506
 do_syscall_64+0x39/0x80 arch/x86/entry/common.c:46
 entry_SYSCALL_64_after_hwframe+0x44/0xa9

read to 0xffff888108792968 of 4 bytes by task 4897 on cpu 0:
 generic_fillattr+0x74/0x180 fs/stat.c:41
 shmem_getattr+0x227/0x2c0 mm/shmem.c:1075
 vfs_getattr_nosec fs/stat.c:87 [inline]
 vfs_getattr fs/stat.c:124 [inline]
 vfs_fstat+0x1c9/0x390 fs/stat.c:146
 __do_sys_newfstat fs/stat.c:386 [inline]
 __se_sys_newfstat+0x35/0x240 fs/stat.c:383
 __x64_sys_newfstat+0x2d/0x40 fs/stat.c:383
 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: 4897 Comm: systemd-udevd Not tainted 5.11.0-rc4-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/01/21 00:13 upstream 75439bc439e0 d4f4eca5 .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in drop_nlink / generic_fillattr
2021/01/14 19:14 upstream 65f0d2414b70 468dbb55 .config console log report info ci2-upstream-kcsan-gce
2021/01/02 02:51 upstream eda809aef534 79264ae3 .config console log report info ci2-upstream-kcsan-gce
2020/12/24 11:34 upstream 58cf05f597b0 c2c1d1dd .config console log report info ci2-upstream-kcsan-gce
2020/12/13 21:45 upstream ec6f5e0e5ca0 8f160dd5 .config console log report info ci2-upstream-kcsan-gce
2020/11/30 15:42 upstream b65054597872 76831598 .config console log report info ci2-upstream-kcsan-gce
2020/11/04 19:53 upstream 4ef8451b3326 cba33199 .config console log report info ci2-upstream-kcsan-gce
2020/10/31 12:00 upstream 5fc6b075e165 8bc4594f .config console log report info ci2-upstream-kcsan-gce
* Struck through repros no longer work on HEAD.