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: 134d, last: 2d13h
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 711d 709d 0/22 auto-closed as invalid on 2020/07/21 00:44
upstream KCSAN: data-race in generic_fillattr / shmem_unlink 3 928d 941d 0/22 closed as invalid on 2019/11/19 14:54

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

read-write to 0xffff888103e8a408 of 8 bytes by task 2211 on cpu 0:
 shmem_unlink+0xfe/0x180 mm/shmem.c:2927
 shmem_rename2+0x194/0x2c0 mm/shmem.c:3003
 vfs_rename+0x8f5/0xb60 fs/namei.c:4676
 do_renameat2+0x6ce/0x9f0 fs/namei.c:4827
 __do_sys_rename fs/namei.c:4873 [inline]
 __se_sys_rename fs/namei.c:4871 [inline]
 __x64_sys_rename+0x58/0x60 fs/namei.c:4871
 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+0x46/0xb0

read to 0xffff888103e8a408 of 8 bytes by task 1904 on cpu 1:
 i_size_read include/linux/fs.h:840 [inline]
 generic_fillattr+0x203/0x2b0 fs/stat.c:53
 shmem_getattr+0x22c/0x2c0 mm/shmem.c:1061
 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+0x46/0xb0

value changed: 0x0000000000001748 -> 0x0000000000001734

Reported by Kernel Concurrency Sanitizer on:
CPU: 1 PID: 1904 Comm: udevd Not tainted 5.18.0-syzkaller-02752-gfdaf9a5840ac-dirty #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
==================================================================
I/O error, dev loop3, sector 0 op 0x0:(READ) flags 0x0 phys_seg 1 prio class 0
Buffer I/O error on dev loop3, logical block 0, async page read
I/O error, dev loop3, sector 6 op 0x0:(READ) flags 0x0 phys_seg 1 prio class 0
Buffer I/O error on dev loop3, logical block 3, async page read
I/O error, dev loop5, sector 0 op 0x0:(READ) flags 0x80700 phys_seg 1 prio class 0

Crashes (150):
Manager Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Title
ci2-upstream-kcsan-gce 2022/05/25 14:40 upstream fdaf9a5840ac 3037caa9 .config log report info KCSAN: data-race in generic_fillattr / shmem_unlink
ci2-upstream-kcsan-gce 2022/05/24 13:57 upstream 143a6252e1b8 fcfad4ff .config log report info KCSAN: data-race in generic_fillattr / shmem_unlink
ci2-upstream-kcsan-gce 2022/05/23 12:43 upstream 4b0986a3613c 4c7657cb .config log report info KCSAN: data-race in generic_fillattr / shmem_unlink
ci2-upstream-kcsan-gce 2022/05/23 09:13 upstream 4b0986a3613c 7268fa62 .config log report info KCSAN: data-race in generic_fillattr / shmem_unlink
ci2-upstream-kcsan-gce 2022/05/20 15:51 upstream 3d7285a335ed bd37ad7e .config log report info KCSAN: data-race in generic_fillattr / shmem_unlink
ci2-upstream-kcsan-gce 2022/05/18 00:58 upstream 210e04ff7681 744a39e2 .config log report info KCSAN: data-race in generic_fillattr / shmem_unlink
ci2-upstream-kcsan-gce 2022/05/15 14:10 upstream bc403203d65a 744a39e2 .config log report info KCSAN: data-race in generic_fillattr / shmem_unlink
ci2-upstream-kcsan-gce 2022/05/15 00:17 upstream 2fe1020d73ca 744a39e2 .config log report info KCSAN: data-race in generic_fillattr / shmem_unlink
ci2-upstream-kcsan-gce 2022/05/14 10:49 upstream ec7f49619d8e 744a39e2 .config log report info KCSAN: data-race in generic_fillattr / shmem_unlink
ci2-upstream-kcsan-gce 2022/05/13 13:29 upstream f3f19f939c11 7ce5a022 .config log report info KCSAN: data-race in generic_fillattr / shmem_unlink
ci2-upstream-kcsan-gce 2022/05/13 08:12 upstream f3f19f939c11 9ad6612a .config log report info KCSAN: data-race in generic_fillattr / shmem_unlink
ci2-upstream-kcsan-gce 2022/05/12 19:47 upstream 0ac824f379fb 9ad6612a .config log report info KCSAN: data-race in generic_fillattr / shmem_unlink
ci2-upstream-kcsan-gce 2022/05/11 17:09 upstream feb9c5e19e91 beb0b407 .config log report info KCSAN: data-race in generic_fillattr / shmem_unlink
ci2-upstream-kcsan-gce 2022/05/11 03:06 upstream feb9c5e19e91 8d7b3b67 .config log report info KCSAN: data-race in generic_fillattr / shmem_unlink
ci2-upstream-kcsan-gce 2022/05/09 16:22 upstream 9be9ed2612b5 8b277b8e .config log report info KCSAN: data-race in generic_fillattr / shmem_unlink
ci2-upstream-kcsan-gce 2022/05/09 07:45 upstream c5eb0a61238d e60b1103 .config log report info KCSAN: data-race in generic_fillattr / shmem_unlink
ci2-upstream-kcsan-gce 2022/05/09 05:41 upstream c5eb0a61238d e60b1103 .config log report info KCSAN: data-race in generic_fillattr / shmem_unlink
ci2-upstream-kcsan-gce 2022/05/09 04:40 upstream c5eb0a61238d e60b1103 .config log report info KCSAN: data-race in generic_fillattr / shmem_unlink
ci2-upstream-kcsan-gce 2022/05/09 03:15 upstream c5eb0a61238d e60b1103 .config log report info KCSAN: data-race in generic_fillattr / shmem_unlink
ci2-upstream-kcsan-gce 2022/05/08 23:21 upstream 379c72654524 e60b1103 .config log report info KCSAN: data-race in generic_fillattr / shmem_unlink
ci2-upstream-kcsan-gce 2022/05/08 21:08 upstream 379c72654524 e60b1103 .config log report info KCSAN: data-race in generic_fillattr / shmem_unlink
ci2-upstream-kcsan-gce 2022/05/08 18:30 upstream 379c72654524 e60b1103 .config log report info KCSAN: data-race in generic_fillattr / shmem_unlink
ci2-upstream-kcsan-gce 2022/05/08 13:57 upstream 30c8e80f7932 e60b1103 .config log report info KCSAN: data-race in generic_fillattr / shmem_unlink
ci2-upstream-kcsan-gce 2022/05/08 12:29 upstream 30c8e80f7932 e60b1103 .config log report info KCSAN: data-race in generic_fillattr / shmem_unlink
ci2-upstream-kcsan-gce 2022/05/08 10:59 upstream 30c8e80f7932 e60b1103 .config log report info KCSAN: data-race in generic_fillattr / shmem_unlink
ci2-upstream-kcsan-gce 2022/05/08 08:56 upstream 30c8e80f7932 e60b1103 .config log report info KCSAN: data-race in generic_fillattr / shmem_unlink
ci2-upstream-kcsan-gce 2022/05/08 07:55 upstream 30c8e80f7932 e60b1103 .config log report info KCSAN: data-race in generic_fillattr / shmem_unlink
ci2-upstream-kcsan-gce 2022/05/08 04:21 upstream 30c8e80f7932 e60b1103 .config log report info KCSAN: data-race in generic_fillattr / shmem_unlink
ci2-upstream-kcsan-gce 2022/05/08 03:10 upstream 30c8e80f7932 e60b1103 .config log report info KCSAN: data-race in generic_fillattr / shmem_unlink
ci2-upstream-kcsan-gce 2022/05/08 02:09 upstream 30c8e80f7932 e60b1103 .config log report info KCSAN: data-race in generic_fillattr / shmem_unlink
ci2-upstream-kcsan-gce 2022/05/08 00:17 upstream 30c8e80f7932 e60b1103 .config log report info KCSAN: data-race in generic_fillattr / shmem_unlink
ci2-upstream-kcsan-gce 2022/05/07 22:12 upstream 30c8e80f7932 e60b1103 .config log report info KCSAN: data-race in generic_fillattr / shmem_unlink
ci2-upstream-kcsan-gce 2022/05/07 21:02 upstream 30c8e80f7932 e60b1103 .config log report info KCSAN: data-race in generic_fillattr / shmem_unlink
ci2-upstream-kcsan-gce 2022/05/07 18:02 upstream 4b97bac0756a e60b1103 .config log report info KCSAN: data-race in generic_fillattr / shmem_unlink
ci2-upstream-kcsan-gce 2022/05/07 14:43 upstream 4b97bac0756a e60b1103 .config log report info KCSAN: data-race in generic_fillattr / shmem_unlink
ci2-upstream-kcsan-gce 2022/05/07 10:49 upstream 4b97bac0756a e60b1103 .config log report info KCSAN: data-race in generic_fillattr / shmem_unlink
ci2-upstream-kcsan-gce 2022/05/07 08:29 upstream 4b97bac0756a e60b1103 .config log report info KCSAN: data-race in generic_fillattr / shmem_unlink
ci2-upstream-kcsan-gce 2022/05/07 06:40 upstream 4b97bac0756a e60b1103 .config log report info KCSAN: data-race in generic_fillattr / shmem_unlink
ci2-upstream-kcsan-gce 2022/05/07 05:23 upstream 4b97bac0756a e60b1103 .config log report info KCSAN: data-race in generic_fillattr / shmem_unlink
ci2-upstream-kcsan-gce 2022/05/07 01:30 upstream 4b97bac0756a e60b1103 .config log report info KCSAN: data-race in generic_fillattr / shmem_unlink
ci2-upstream-kcsan-gce 2022/05/07 00:13 upstream 64267926e01b e60b1103 .config log report info KCSAN: data-race in generic_fillattr / shmem_unlink
ci2-upstream-kcsan-gce 2022/05/06 21:41 upstream 64267926e01b e60b1103 .config log report info KCSAN: data-race in generic_fillattr / shmem_unlink
ci2-upstream-kcsan-gce 2022/05/06 20:14 upstream 64267926e01b e60b1103 .config log report info KCSAN: data-race in generic_fillattr / shmem_unlink
ci2-upstream-kcsan-gce 2022/05/06 04:40 upstream fe27d189e3f4 efeff0a5 .config log report info KCSAN: data-race in generic_fillattr / shmem_unlink
ci2-upstream-kcsan-gce 2022/05/05 09:03 upstream a7391ad35724 b3f09415 .config log report info KCSAN: data-race in generic_fillattr / shmem_unlink
ci2-upstream-kcsan-gce 2022/05/03 02:17 upstream 9050ba3a61a4 2df221f6 .config log report info KCSAN: data-race in generic_fillattr / shmem_unlink
ci2-upstream-kcsan-gce 2022/04/30 23:18 upstream 57ae8a492116 2df221f6 .config log report info KCSAN: data-race in generic_fillattr / shmem_unlink
ci2-upstream-kcsan-gce 2022/04/30 03:04 upstream 8013d1d3d2e3 ad6b95d8 .config log report info KCSAN: data-race in generic_fillattr / shmem_unlink
ci2-upstream-kcsan-gce 2022/04/29 14:49 upstream 38d741cb70b3 44a5ca63 .config log report info KCSAN: data-race in generic_fillattr / shmem_unlink
ci2-upstream-kcsan-gce 2022/04/29 11:05 upstream 38d741cb70b3 e9076525 .config log report info KCSAN: data-race in generic_fillattr / shmem_unlink
ci2-upstream-kcsan-gce 2022/04/28 00:55 upstream 8f4dd16603ce 8a1f1f07 .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