syzbot


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

Status: moderation: reported on 2022/03/14 15:40
Reported-by: syzbot+d7d89c7070ae862afd7c@syzkaller.appspotmail.com
First crash: 263d, last: 1d13h
similar bugs (2):
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream KCSAN: data-race in generic_fillattr / shmem_unlink (2) 51 839d 838d 0/24 auto-closed as invalid on 2020/07/21 00:44
upstream KCSAN: data-race in generic_fillattr / shmem_unlink 3 1057d 1070d 0/24 closed as invalid on 2019/11/19 14:54

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

read-write to 0xffff88810461d3d8 of 8 bytes by task 2059 on cpu 1:
 shmem_unlink+0xfe/0x180 mm/shmem.c:2994
 shmem_rename2+0x194/0x2c0 mm/shmem.c:3070
 vfs_rename+0x8f5/0xb60 fs/namei.c:4756
 do_renameat2+0x6ce/0x9f0 fs/namei.c:4907
 __do_sys_rename fs/namei.c:4953 [inline]
 __se_sys_rename fs/namei.c:4951 [inline]
 __x64_sys_rename+0x58/0x60 fs/namei.c:4951
 do_syscall_x64 arch/x86/entry/common.c:50 [inline]
 do_syscall_64+0x2b/0x70 arch/x86/entry/common.c:80
 entry_SYSCALL_64_after_hwframe+0x63/0xcd

read to 0xffff88810461d3d8 of 8 bytes by task 1793 on cpu 0:
 i_size_read include/linux/fs.h:864 [inline]
 generic_fillattr+0x203/0x2b0 fs/stat.c:53
 shmem_getattr+0x310/0x3a0 mm/shmem.c:1070
 vfs_getattr_nosec fs/stat.c:123 [inline]
 vfs_getattr fs/stat.c:160 [inline]
 vfs_statx+0x26e/0x3d0 fs/stat.c:232
 vfs_fstatat fs/stat.c:255 [inline]
 __do_sys_newfstatat fs/stat.c:425 [inline]
 __se_sys_newfstatat+0x8a/0x290 fs/stat.c:419
 __x64_sys_newfstatat+0x51/0x60 fs/stat.c:419
 do_syscall_x64 arch/x86/entry/common.c:50 [inline]
 do_syscall_64+0x2b/0x70 arch/x86/entry/common.c:80
 entry_SYSCALL_64_after_hwframe+0x63/0xcd

value changed: 0x000000000000161c -> 0x0000000000001608

Reported by Kernel Concurrency Sanitizer on:
CPU: 0 PID: 1793 Comm: udevd Not tainted 6.0.0-rc7-syzkaller-00239-gb357fd1c2afc-dirty #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 09/22/2022
==================================================================

Crashes (246):
Manager Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Title
ci2-upstream-kcsan-gce 2022/10/02 07:44 upstream b357fd1c2afc feb56351 .config log report info KCSAN: data-race in generic_fillattr / shmem_unlink
ci2-upstream-kcsan-gce 2022/10/01 13:26 upstream ffb4d94b4314 feb56351 .config log report info KCSAN: data-race in generic_fillattr / shmem_unlink
ci2-upstream-kcsan-gce 2022/09/30 19:02 upstream 70575e77839f feb56351 .config log report info KCSAN: data-race in generic_fillattr / shmem_unlink
ci2-upstream-kcsan-gce 2022/09/25 22:57 upstream 5e049663f678 0042f2b4 .config log report info KCSAN: data-race in generic_fillattr / shmem_unlink
ci2-upstream-kcsan-gce 2022/09/23 14:36 upstream bf682942cd26 0042f2b4 .config log report info KCSAN: data-race in generic_fillattr / shmem_unlink
ci2-upstream-kcsan-gce 2022/09/21 10:41 upstream 60891ec99e14 380f82fb .config log report info KCSAN: data-race in generic_fillattr / shmem_unlink
ci2-upstream-kcsan-gce 2022/09/19 08:08 upstream 521a547ced64 dd9a85ff .config log report info KCSAN: data-race in generic_fillattr / shmem_unlink
ci2-upstream-kcsan-gce 2022/09/16 16:27 upstream 6879c2d3b960 dd9a85ff .config log report info KCSAN: data-race in generic_fillattr / shmem_unlink
ci2-upstream-kcsan-gce 2022/09/15 07:22 upstream 3245cb65fd91 dd9a85ff .config log report info KCSAN: data-race in generic_fillattr / shmem_unlink
ci2-upstream-kcsan-gce 2022/09/12 23:23 upstream e839a756012b f371ed7e .config log report info KCSAN: data-race in generic_fillattr / shmem_unlink
ci2-upstream-kcsan-gce 2022/09/11 20:46 upstream 4ed9c1e971b1 356d8217 .config log report info KCSAN: data-race in generic_fillattr / shmem_unlink
ci2-upstream-kcsan-gce 2022/09/10 19:37 upstream b96fbd602d35 356d8217 .config log report info KCSAN: data-race in generic_fillattr / shmem_unlink
ci2-upstream-kcsan-gce 2022/09/08 14:11 upstream 26b1224903b3 f3027468 .config log report info KCSAN: data-race in generic_fillattr / shmem_unlink
ci2-upstream-kcsan-gce 2022/09/06 11:05 upstream 53e99dcff61e 65aea2b9 .config log report info KCSAN: data-race in generic_fillattr / shmem_unlink
ci2-upstream-kcsan-gce 2022/09/06 01:59 upstream 53e99dcff61e 9dcd38fc .config log report info KCSAN: data-race in generic_fillattr / shmem_unlink
ci2-upstream-kcsan-gce 2022/09/05 09:57 upstream 7e18e42e4b28 922294ab .config log report info KCSAN: data-race in generic_fillattr / shmem_unlink
ci2-upstream-kcsan-gce 2022/09/03 18:36 upstream 42cf58c272ee 28811d0a .config log report info KCSAN: data-race in generic_fillattr / shmem_unlink
ci2-upstream-kcsan-gce 2022/09/03 03:34 upstream d895ec7938c4 49e94a20 .config log report info KCSAN: data-race in generic_fillattr / shmem_unlink
ci2-upstream-kcsan-gce 2022/09/02 19:25 upstream 0b3acd1cc022 25194605 .config log report info KCSAN: data-race in generic_fillattr / shmem_unlink
ci2-upstream-kcsan-gce 2022/09/01 14:22 upstream c5e4d5e99162 86c46e46 .config log report info KCSAN: data-race in generic_fillattr / shmem_unlink
ci2-upstream-kcsan-gce 2022/08/29 11:06 upstream b90cb1053190 94da0b6b .config log report info KCSAN: data-race in generic_fillattr / shmem_unlink
ci2-upstream-kcsan-gce 2022/08/28 21:00 upstream 8379c0b31fbc 07177916 .config log report info KCSAN: data-race in generic_fillattr / shmem_unlink
ci2-upstream-kcsan-gce 2022/08/27 19:45 upstream 89b749d8552d 07177916 .config log report info KCSAN: data-race in generic_fillattr / shmem_unlink
ci2-upstream-kcsan-gce 2022/08/27 06:58 upstream e022620b5d05 07177916 .config log report info KCSAN: data-race in generic_fillattr / shmem_unlink
ci2-upstream-kcsan-gce 2022/08/24 17:24 upstream c40e8341e3b3 514514f6 .config log report info KCSAN: data-race in generic_fillattr / shmem_unlink
ci2-upstream-kcsan-gce 2022/08/24 11:16 upstream c40e8341e3b3 514514f6 .config log report info KCSAN: data-race in generic_fillattr / shmem_unlink
ci2-upstream-kcsan-gce 2022/08/23 13:32 upstream 072e51356cd5 cea8b0f7 .config log report info KCSAN: data-race in generic_fillattr / shmem_unlink
ci2-upstream-kcsan-gce 2022/08/21 08:31 upstream 15b3f48a4339 26a13b38 .config log report info KCSAN: data-race in generic_fillattr / shmem_unlink
ci2-upstream-kcsan-gce 2022/08/20 18:37 upstream f31c32efd57c 26a13b38 .config log report info KCSAN: data-race in generic_fillattr / shmem_unlink
ci2-upstream-kcsan-gce 2022/08/19 23:53 upstream 50cd95ac4654 26a13b38 .config log report info KCSAN: data-race in generic_fillattr / shmem_unlink
ci2-upstream-kcsan-gce 2022/08/19 10:16 upstream 4c2d0b039c5c 26a13b38 .config log report info KCSAN: data-race in generic_fillattr / shmem_unlink
ci2-upstream-kcsan-gce 2022/08/18 09:59 upstream 3b06a2755758 d58e263f .config log report info KCSAN: data-race in generic_fillattr / shmem_unlink
ci2-upstream-kcsan-gce 2022/08/17 21:40 upstream 274a2eebf80c a9409d47 .config log report info KCSAN: data-race in generic_fillattr / shmem_unlink
ci2-upstream-kcsan-gce 2022/08/12 22:41 upstream 7ebfc85e2cd7 8dfcaa3d .config log report info KCSAN: data-race in generic_fillattr / shmem_unlink
ci2-upstream-kcsan-gce 2022/08/11 09:27 upstream ffcf9c5700e4 787ed7e0 .config log report info KCSAN: data-race in generic_fillattr / shmem_unlink
ci2-upstream-kcsan-gce 2022/08/11 01:23 upstream f41445645ab5 a6201f11 .config log report info KCSAN: data-race in generic_fillattr / shmem_unlink
ci2-upstream-kcsan-gce 2022/08/09 21:25 upstream 426b4ca2d6a5 c2a623d6 .config log report info KCSAN: data-race in generic_fillattr / shmem_unlink
ci2-upstream-kcsan-gce 2022/08/09 08:45 upstream eb555cb5b794 da700653 .config log report info KCSAN: data-race in generic_fillattr / shmem_unlink
ci2-upstream-kcsan-gce 2022/08/07 02:45 upstream 1612c382ffbd 88e3a122 .config log report info KCSAN: data-race in generic_fillattr / shmem_unlink
ci2-upstream-kcsan-gce 2022/08/06 12:47 upstream 6614a3c3164a 88e3a122 .config log report info KCSAN: data-race in generic_fillattr / shmem_unlink
ci2-upstream-kcsan-gce 2022/08/05 22:04 upstream 9e2f40233670 e853abd9 .config log report info KCSAN: data-race in generic_fillattr / shmem_unlink
ci2-upstream-kcsan-gce 2022/08/05 07:52 upstream c040862bfbd9 a65a7ce9 .config log report info KCSAN: data-race in generic_fillattr / shmem_unlink
ci2-upstream-kcsan-gce 2022/08/05 04:43 upstream c040862bfbd9 1c9013ac .config log report info KCSAN: data-race in generic_fillattr / shmem_unlink
ci2-upstream-kcsan-gce 2022/08/03 09:47 upstream e2b542100719 1c9013ac .config log report info KCSAN: data-race in generic_fillattr / shmem_unlink
ci2-upstream-kcsan-gce 2022/07/31 07:15 upstream 6a010258447d fef302b1 .config log report info KCSAN: data-race in generic_fillattr / shmem_unlink
ci2-upstream-kcsan-gce 2022/07/30 17:48 upstream 620725263f42 fef302b1 .config log report info KCSAN: data-race in generic_fillattr / shmem_unlink
ci2-upstream-kcsan-gce 2022/07/29 10:48 upstream 6e2c0490769e fef302b1 .config log report info KCSAN: data-race in generic_fillattr / shmem_unlink
ci2-upstream-kcsan-gce 2022/03/13 04:35 upstream aad611a868d1 9e8eaa75 .config log report info KCSAN: data-race in generic_fillattr / shmem_unlink
ci2-upstream-kcsan-gce 2022/01/13 13:48 upstream 455e73a07f6e 44d1319a .config log report info KCSAN: data-race in generic_fillattr / shmem_unlink
* Struck through repros no longer work on HEAD.