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: 384d, last: 32m
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 960d 959d 0/24 auto-closed as invalid on 2020/07/21 00:44
upstream KCSAN: data-race in generic_fillattr / shmem_unlink 3 1177d 1191d 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 0xffff888104dfda28 of 8 bytes by task 3518 on cpu 1:
 shmem_unlink+0xfe/0x190 mm/shmem.c:3028
 shmem_rename2+0x194/0x2f0 mm/shmem.c:3105
 vfs_rename+0x8f5/0xb60 fs/namei.c:4779
 do_renameat2+0x6b8/0x9d0 fs/namei.c:4930
 __do_sys_rename fs/namei.c:4976 [inline]
 __se_sys_rename fs/namei.c:4974 [inline]
 __x64_sys_rename+0x58/0x60 fs/namei.c:4974
 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 0xffff888104dfda28 of 8 bytes by task 3810 on cpu 0:
 i_size_read include/linux/fs.h:864 [inline]
 generic_fillattr+0x220/0x2d0 fs/stat.c:57
 shmem_getattr+0x310/0x390 mm/shmem.c:1069
 vfs_getattr_nosec fs/stat.c:127 [inline]
 vfs_getattr fs/stat.c:164 [inline]
 vfs_statx+0x266/0x460 fs/stat.c:236
 vfs_fstatat fs/stat.c:270 [inline]
 __do_sys_newfstatat fs/stat.c:440 [inline]
 __se_sys_newfstatat+0x8a/0x290 fs/stat.c:434
 __x64_sys_newfstatat+0x51/0x60 fs/stat.c:434
 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: 0x000000000000170c -> 0x00000000000016f8

Reported by Kernel Concurrency Sanitizer on:
CPU: 0 PID: 3810 Comm: udevd Not tainted 6.2.0-rc6-syzkaller-00011-gc0b67534c95c-dirty #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/12/2023
==================================================================

Crashes (320):
Manager Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets Title
ci2-upstream-kcsan-gce 2023/02/01 16:15 upstream c0b67534c95c 9a6f477c .config console log report info [disk image] [vmlinux] [kernel image] KCSAN: data-race in generic_fillattr / shmem_unlink
ci2-upstream-kcsan-gce 2023/01/31 00:40 upstream 6d796c50f84c b68fb8d6 .config console log report info [disk image] [vmlinux] [kernel image] KCSAN: data-race in generic_fillattr / shmem_unlink
ci2-upstream-kcsan-gce 2023/01/29 22:16 upstream ab072681eabe 9dfcf09c .config console log report info [disk image] [vmlinux] [kernel image] KCSAN: data-race in generic_fillattr / shmem_unlink
ci2-upstream-kcsan-gce 2023/01/29 06:39 upstream c96618275234 9dfcf09c .config console log report info [disk image] [vmlinux] [kernel image] KCSAN: data-race in generic_fillattr / shmem_unlink
ci2-upstream-kcsan-gce 2023/01/27 22:05 upstream 83abd4d4c4be 9dfcf09c .config console log report info [disk image] [vmlinux] [kernel image] KCSAN: data-race in generic_fillattr / shmem_unlink
ci2-upstream-kcsan-gce 2023/01/24 22:41 upstream fb6e71db53f3 9dfcf09c .config console log report info [disk image] [vmlinux] [kernel image] KCSAN: data-race in generic_fillattr / shmem_unlink
ci2-upstream-kcsan-gce 2023/01/23 12:09 upstream 2475bf0250de 44388686 .config console log report info [disk image] [vmlinux] [kernel image] KCSAN: data-race in generic_fillattr / shmem_unlink
ci2-upstream-kcsan-gce 2023/01/22 21:19 upstream 2475bf0250de cc0f9968 .config console log report info [disk image] [vmlinux] [kernel image] KCSAN: data-race in generic_fillattr / shmem_unlink
ci2-upstream-kcsan-gce 2023/01/22 07:27 upstream 2241ab53cbb5 cc0f9968 .config console log report info [disk image] [vmlinux] [kernel image] KCSAN: data-race in generic_fillattr / shmem_unlink
ci2-upstream-kcsan-gce 2023/01/21 15:25 upstream f883675bf652 cc0f9968 .config console log report info [disk image] [vmlinux] [kernel image] KCSAN: data-race in generic_fillattr / shmem_unlink
ci2-upstream-kcsan-gce 2023/01/20 08:57 upstream d368967cb103 dd15ff29 .config console log report info [disk image] [vmlinux] [kernel image] KCSAN: data-race in generic_fillattr / shmem_unlink
ci2-upstream-kcsan-gce 2023/01/19 22:28 upstream 081edded9b38 71197f3a .config console log report info [disk image] [vmlinux] [kernel image] KCSAN: data-race in generic_fillattr / shmem_unlink
ci2-upstream-kcsan-gce 2023/01/19 07:24 upstream 7287904c8771 66fca3ae .config console log report info [disk image] [vmlinux] [kernel image] KCSAN: data-race in generic_fillattr / shmem_unlink
ci2-upstream-kcsan-gce 2023/01/18 11:46 upstream c1649ec55708 4620c2d9 .config console log report info [disk image] [vmlinux] [kernel image] KCSAN: data-race in generic_fillattr / shmem_unlink
ci2-upstream-kcsan-gce 2023/01/17 16:39 upstream 6e50979a9c87 42660d9e .config console log report info [disk image] [vmlinux] [kernel image] KCSAN: data-race in generic_fillattr / shmem_unlink
ci2-upstream-kcsan-gce 2023/01/16 02:28 upstream 5dc4c995db9e a63719e7 .config console log report info [disk image] [vmlinux] [kernel image] KCSAN: data-race in generic_fillattr / shmem_unlink
ci2-upstream-kcsan-gce 2023/01/13 06:06 upstream c757fc92a3f7 96166539 .config console log report info [disk image] [vmlinux] [kernel image] KCSAN: data-race in generic_fillattr / shmem_unlink
ci2-upstream-kcsan-gce 2023/01/08 12:01 upstream 9b43a525db12 1dac8c7a .config console log report info [disk image] [vmlinux] [kernel image] KCSAN: data-race in generic_fillattr / shmem_unlink
ci2-upstream-kcsan-gce 2023/01/07 15:21 upstream 0a71553536d2 1dac8c7a .config console log report info [disk image] [vmlinux] [kernel image] KCSAN: data-race in generic_fillattr / shmem_unlink
ci2-upstream-kcsan-gce 2023/01/06 04:07 upstream 41c03ba9beea 1dac8c7a .config console log report info [disk image] [vmlinux] [kernel image] KCSAN: data-race in generic_fillattr / shmem_unlink
ci2-upstream-kcsan-gce 2023/01/03 03:18 upstream 69b41ac87e4a ab32d508 .config console log report info [disk image] [vmlinux] [kernel image] KCSAN: data-race in generic_fillattr / shmem_unlink
ci2-upstream-kcsan-gce 2023/01/02 08:01 upstream 88603b6dc419 ab32d508 .config console log report info [disk image] [vmlinux] [kernel image] KCSAN: data-race in generic_fillattr / shmem_unlink
ci2-upstream-kcsan-gce 2022/12/30 23:16 upstream bff687b3dad6 ab32d508 .config console log report info [disk image] [vmlinux] [kernel image] KCSAN: data-race in generic_fillattr / shmem_unlink
ci2-upstream-kcsan-gce 2022/12/27 12:45 upstream 1b929c02afd3 44712fbc .config console log report info [disk image] [vmlinux] [kernel image] KCSAN: data-race in generic_fillattr / shmem_unlink
ci2-upstream-kcsan-gce 2022/12/25 22:40 upstream 1b929c02afd3 9da18ae8 .config console log report info [disk image] [vmlinux] [kernel image] KCSAN: data-race in generic_fillattr / shmem_unlink
ci2-upstream-kcsan-gce 2022/12/23 22:10 upstream 51094a24b85e 9da18ae8 .config console log report info [disk image] [vmlinux] [kernel image] KCSAN: data-race in generic_fillattr / shmem_unlink
ci2-upstream-kcsan-gce 2022/12/23 08:57 upstream 8395ae05cb5a 9da18ae8 .config console log report info [disk image] [vmlinux] [kernel image] KCSAN: data-race in generic_fillattr / shmem_unlink
ci2-upstream-kcsan-gce 2022/12/18 09:39 upstream f9ff5644bcc0 05494336 .config console log report info [disk image] [vmlinux] [kernel image] KCSAN: data-race in generic_fillattr / shmem_unlink
ci2-upstream-kcsan-gce 2022/12/16 09:49 upstream 851f657a8642 6f9c033e .config console log report info [disk image] [vmlinux] [kernel image] KCSAN: data-race in generic_fillattr / shmem_unlink
ci2-upstream-kcsan-gce 2022/12/15 11:21 upstream 041fae9c105a 6f9c033e .config console log report info [disk image] [vmlinux] [kernel image] KCSAN: data-race in generic_fillattr / shmem_unlink
ci2-upstream-kcsan-gce 2022/12/14 01:29 upstream 764822972d64 f6511626 .config console log report info [disk image] [vmlinux] [kernel image] KCSAN: data-race in generic_fillattr / shmem_unlink
ci2-upstream-kcsan-gce 2022/12/13 08:15 upstream 9b93f5069fd9 67be1ae7 .config console log report info [disk image] [vmlinux] [kernel image] KCSAN: data-race in generic_fillattr / shmem_unlink
ci2-upstream-kcsan-gce 2022/12/12 04:54 upstream 4cee37b3a4e6 67be1ae7 .config console log report info [disk image] [vmlinux] [kernel image] KCSAN: data-race in generic_fillattr / shmem_unlink
ci2-upstream-kcsan-gce 2022/12/11 05:05 upstream 296a7b7eb792 67be1ae7 .config console log report info [disk image] [vmlinux] [kernel image] KCSAN: data-race in generic_fillattr / shmem_unlink
ci2-upstream-kcsan-gce 2022/12/08 18:29 upstream 479174d402bc 1034e5fa .config console log report info [disk image] [vmlinux] [kernel image] KCSAN: data-race in generic_fillattr / shmem_unlink
ci2-upstream-kcsan-gce 2022/12/08 03:36 upstream 479174d402bc d88f3abb .config console log report info [disk image] [vmlinux] [kernel image] KCSAN: data-race in generic_fillattr / shmem_unlink
ci2-upstream-kcsan-gce 2022/12/03 06:58 upstream 97ee9d1c1696 e080de16 .config console log report info [disk image] [vmlinux] [kernel image] KCSAN: data-race in generic_fillattr / shmem_unlink
ci2-upstream-kcsan-gce 2022/11/29 07:04 upstream ca57f02295f1 ca9683b8 .config console log report info [disk image] [vmlinux] [kernel image] KCSAN: data-race in generic_fillattr / shmem_unlink
ci2-upstream-kcsan-gce 2022/11/29 06:04 upstream b7b275e60bcd ca9683b8 .config console log report info [disk image] [vmlinux] [kernel image] KCSAN: data-race in generic_fillattr / shmem_unlink
ci2-upstream-kcsan-gce 2022/11/25 21:13 upstream 08ad43d554ba f4470a7b .config console log report info [disk image] [vmlinux] [kernel image] KCSAN: data-race in generic_fillattr / shmem_unlink
ci2-upstream-kcsan-gce 2022/11/25 05:03 upstream c3eb11fbb826 74a66371 .config console log report info [disk image] [vmlinux] [kernel image] KCSAN: data-race in generic_fillattr / shmem_unlink
ci2-upstream-kcsan-gce 2022/11/23 16:55 upstream eb7081409f94 52fdf57a .config console log report info [disk image] [vmlinux] [kernel image] KCSAN: data-race in generic_fillattr / shmem_unlink
ci2-upstream-kcsan-gce 2022/11/20 00:31 upstream fe24a97cf254 5bb70014 .config console log report info [disk image] [vmlinux] [kernel image] KCSAN: data-race in generic_fillattr / shmem_unlink
ci2-upstream-kcsan-gce 2022/11/17 21:16 upstream 81ac25651a62 4ba8ab94 .config console log report info [disk image] [vmlinux] [kernel image] KCSAN: data-race in generic_fillattr / shmem_unlink
ci2-upstream-kcsan-gce 2022/11/16 06:20 upstream 81e7cfa3a9eb 3a127a31 .config console log report info [disk image] [vmlinux] [kernel image] KCSAN: data-race in generic_fillattr / shmem_unlink
ci2-upstream-kcsan-gce 2022/11/13 04:28 upstream fef7fd48922d f42ee5d8 .config console log report info [disk image] [vmlinux] [kernel image] KCSAN: data-race in generic_fillattr / shmem_unlink
ci2-upstream-kcsan-gce 2022/11/12 08:57 upstream 8f2975c2bb4c f42ee5d8 .config console log report info [disk image] [vmlinux] [kernel image] KCSAN: data-race in generic_fillattr / shmem_unlink
ci2-upstream-kcsan-gce 2022/11/12 00:26 upstream eb037f16f7e8 f42ee5d8 .config console log report info [disk image] [vmlinux] [kernel image] KCSAN: data-race in generic_fillattr / shmem_unlink
ci2-upstream-kcsan-gce 2022/11/07 12:32 upstream f0c4d9fc9cc9 a779b11a .config console log report info [disk image] [vmlinux] [kernel image] KCSAN: data-race in generic_fillattr / shmem_unlink
ci2-upstream-kcsan-gce 2022/11/06 10:46 upstream 2f5065a0bc9d 6d752409 .config console log report info [disk image] [vmlinux] [kernel image] KCSAN: data-race in generic_fillattr / shmem_unlink
ci2-upstream-kcsan-gce 2022/11/05 15:05 upstream b208b9fbbcba 6d752409 .config console log report info [disk image] [vmlinux] [kernel image] KCSAN: data-race in generic_fillattr / shmem_unlink
ci2-upstream-kcsan-gce 2022/03/13 04:35 upstream aad611a868d1 9e8eaa75 .config console log report info KCSAN: data-race in generic_fillattr / shmem_unlink
ci2-upstream-kcsan-gce 2022/01/13 13:48 upstream 455e73a07f6e 44d1319a .config console log report info KCSAN: data-race in generic_fillattr / shmem_unlink
* Struck through repros no longer work on HEAD.