syzbot


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

Status: auto-closed as invalid on 2021/11/16 10:39
Subsystems: fs
[Documentation on labels]
First crash: 1162d, last: 951d
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 fs 9 1341d 1417d 0/26 auto-closed as invalid on 2020/10/22 03:32
upstream KCSAN: data-race in drop_nlink / generic_fillattr (2) fs 8 1215d 1260d 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 0xffff888107fd9490 of 4 bytes by task 16736 on cpu 1:
 drop_nlink+0x37/0x90 fs/inode.c:309
 shmem_unlink+0x1ab/0x1d0 mm/shmem.c:2933
 shmem_rename2+0x2fd/0x440 mm/shmem.c:3029
 vfs_rename+0x9d9/0xe20 fs/namei.c:4628
 do_renameat2+0x6d7/0xa20 fs/namei.c:4779
 __do_sys_rename fs/namei.c:4825 [inline]
 __se_sys_rename fs/namei.c:4823 [inline]
 __x64_sys_rename+0x58/0x60 fs/namei.c:4823
 do_syscall_x64 arch/x86/entry/common.c:50 [inline]
 do_syscall_64+0x44/0xa0 arch/x86/entry/common.c:80
 entry_SYSCALL_64_after_hwframe+0x44/0xae

read to 0xffff888107fd9490 of 4 bytes by task 16730 on cpu 0:
 generic_fillattr+0x76/0x190 fs/stat.c:49
 shmem_getattr+0x23a/0x260 mm/shmem.c:1075
 vfs_getattr_nosec+0x153/0x2f0 fs/stat.c:123
 vfs_getattr fs/stat.c:160 [inline]
 vfs_fstat fs/stat.c:182 [inline]
 __do_sys_newfstat fs/stat.c:422 [inline]
 __se_sys_newfstat+0xa5/0x2c0 fs/stat.c:419
 __x64_sys_newfstat+0x2d/0x40 fs/stat.c:419
 do_syscall_x64 arch/x86/entry/common.c:50 [inline]
 do_syscall_64+0x44/0xa0 arch/x86/entry/common.c:80
 entry_SYSCALL_64_after_hwframe+0x44/0xae

value changed: 0x00000001 -> 0x00000000

Reported by Kernel Concurrency Sanitizer on:
CPU: 0 PID: 16730 Comm: systemd-udevd Tainted: G        W         5.15.0-rc5-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
==================================================================

Crashes (22):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2021/10/12 10:29 upstream fa5878760579 838e7e2c .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in drop_nlink / generic_fillattr
2021/09/25 03:30 upstream 7d42e9818258 8cac236e .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in drop_nlink / generic_fillattr
2021/09/22 07:02 upstream 92477dd1faa6 169724fe .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in drop_nlink / generic_fillattr
2021/09/19 14:19 upstream d4d016caa4b8 70b76c1d .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in drop_nlink / generic_fillattr
2021/09/06 14:32 upstream 27151f177827 6ca60148 .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in drop_nlink / generic_fillattr
2021/09/05 21:03 upstream a9c9a6f741cd d236a457 .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in drop_nlink / generic_fillattr
2021/09/01 03:08 upstream b91db6a0b52e 7eb7e152 .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in drop_nlink / generic_fillattr
2021/08/15 22:38 upstream ecf93431963a 2489ab88 .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in drop_nlink / generic_fillattr
2021/08/15 19:14 upstream 0aa78d17099b 2489ab88 .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in drop_nlink / generic_fillattr
2021/08/14 11:26 upstream dfa377c35d70 2489ab88 .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in drop_nlink / generic_fillattr
2021/08/01 05:57 upstream f3438b4c4e69 6c236867 .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in drop_nlink / generic_fillattr
2021/07/24 13:18 upstream f0fddcec6b62 4d1b57d4 .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in drop_nlink / generic_fillattr
2021/07/21 12:25 upstream 8cae8cd89f05 1b201b48 .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in drop_nlink / generic_fillattr
2021/07/09 03:57 upstream 3dbdb38e2869 1b20171a .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in drop_nlink / generic_fillattr
2021/06/06 08:06 upstream f5b6eb1e0182 500c2339 .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in drop_nlink / generic_fillattr
2021/05/18 08:12 upstream 8ac91e6c6033 a343ba6b .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in drop_nlink / generic_fillattr
2021/05/07 17:07 upstream e48661230cc3 f6da8120 .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in drop_nlink / generic_fillattr
2021/04/25 22:11 upstream d2d09fbe33f8 2a82f1b3 .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in drop_nlink / generic_fillattr
2021/04/23 18:24 upstream 18a3c5f7abfd 17f0b706 .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in drop_nlink / generic_fillattr
2021/04/05 21:59 upstream 0a50438c8436 6a81331a .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in drop_nlink / generic_fillattr
2021/03/27 06:52 upstream 0f4498cef9f5 a8529b82 .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in drop_nlink / generic_fillattr
2021/03/15 15:28 upstream 1e28eed17697 fdb2bb2c .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in drop_nlink / generic_fillattr
* Struck through repros no longer work on HEAD.