syzbot


KCSAN: data-race in shmem_file_read_iter / shmem_write_end

Status: moderation: reported on 2020/01/03 23:05
Subsystems: mm
[Documentation on labels]
Reported-by: syzbot+5e4613548335cf05bf0e@syzkaller.appspotmail.com
First crash: 1588d, last: 3d06h

Sample crash report:
==================================================================
BUG: KCSAN: data-race in shmem_file_read_iter / shmem_write_end

write to 0xffff88813d54b5b0 of 8 bytes by task 9741 on cpu 0:
 i_size_write include/linux/fs.h:934 [inline]
 shmem_write_end+0x9a/0x470 mm/shmem.c:2741
 generic_perform_write+0x267/0x410 mm/filemap.c:3941
 shmem_file_write_iter+0xc8/0xe0 mm/shmem.c:2893
 call_write_iter include/linux/fs.h:2087 [inline]
 new_sync_write fs/read_write.c:497 [inline]
 vfs_write+0x760/0x8d0 fs/read_write.c:590
 ksys_write+0xeb/0x1a0 fs/read_write.c:643
 __do_sys_write fs/read_write.c:655 [inline]
 __se_sys_write fs/read_write.c:652 [inline]
 __x64_sys_write+0x42/0x50 fs/read_write.c:652
 do_syscall_x64 arch/x86/entry/common.c:52 [inline]
 do_syscall_64+0xcd/0x1d0 arch/x86/entry/common.c:83
 entry_SYSCALL_64_after_hwframe+0x63/0x6b

read to 0xffff88813d54b5b0 of 8 bytes by task 6696 on cpu 1:
 i_size_read include/linux/fs.h:912 [inline]
 shmem_file_read_iter+0x96/0x550 mm/shmem.c:2777
 call_read_iter include/linux/fs.h:2081 [inline]
 new_sync_read fs/read_write.c:395 [inline]
 vfs_read+0x5ab/0x6a0 fs/read_write.c:476
 ksys_read+0xeb/0x1a0 fs/read_write.c:619
 __do_sys_read fs/read_write.c:629 [inline]
 __se_sys_read fs/read_write.c:627 [inline]
 __x64_sys_read+0x42/0x50 fs/read_write.c:627
 do_syscall_x64 arch/x86/entry/common.c:52 [inline]
 do_syscall_64+0xcd/0x1d0 arch/x86/entry/common.c:83
 entry_SYSCALL_64_after_hwframe+0x63/0x6b

value changed: 0x00000000002f3000 -> 0x00000000002f6000

Reported by Kernel Concurrency Sanitizer on:
CPU: 1 PID: 6696 Comm: udevd Not tainted 6.8.0-rc5-syzkaller-00278-g603c04e27c3e #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/25/2024
==================================================================

Crashes (1509):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2024/02/24 12:03 upstream 603c04e27c3e 8d446f15 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in shmem_file_read_iter / shmem_write_end
2024/02/21 22:51 upstream 39133352cbed 345111b5 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in shmem_file_read_iter / shmem_write_end
2024/02/21 11:46 upstream 9fc1ccccfd8d 3af7dd65 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in shmem_file_read_iter / shmem_write_end
2024/02/19 13:30 upstream b401b621758e 3af7dd65 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in shmem_file_read_iter / shmem_write_end
2024/02/18 22:58 upstream b401b621758e 578f7538 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in shmem_file_read_iter / shmem_write_end
2024/02/18 10:04 upstream c02197fc9076 578f7538 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in shmem_file_read_iter / shmem_write_end
2024/02/17 20:42 upstream ced590523156 578f7538 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in shmem_file_read_iter / shmem_write_end
2024/02/16 18:15 upstream 0f1dd5e91e2b 578f7538 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in shmem_file_read_iter / shmem_write_end
2024/02/15 20:50 upstream 4f5e5092fdbf fd39cf6f .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in shmem_file_read_iter / shmem_write_end
2024/02/15 18:01 upstream 8d3dea210042 fd39cf6f .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in shmem_file_read_iter / shmem_write_end
2024/02/14 17:20 upstream 7e90b5c295ec d9b1cdd5 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in shmem_file_read_iter / shmem_write_end
2024/02/14 13:31 upstream 7e90b5c295ec d902085f .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in shmem_file_read_iter / shmem_write_end
2024/02/13 14:11 upstream c664e16bb1ba e66542d7 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in shmem_file_read_iter / shmem_write_end
2024/02/13 08:16 upstream c664e16bb1ba 77b23aa1 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in shmem_file_read_iter / shmem_write_end
2024/02/12 19:56 upstream 716f4aaa7b48 77b23aa1 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in shmem_file_read_iter / shmem_write_end
2024/02/11 22:15 upstream 7521f258ea30 77b23aa1 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in shmem_file_read_iter / shmem_write_end
2024/02/08 16:26 upstream 047371968ffc 7f07e9b0 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in shmem_file_read_iter / shmem_write_end
2024/02/07 22:56 upstream 547ab8fc4cb0 6404acf9 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in shmem_file_read_iter / shmem_write_end
2024/02/07 19:01 upstream 6d280f4d760e 6404acf9 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in shmem_file_read_iter / shmem_write_end
2024/02/05 15:17 upstream 54be6c6c5ae8 e23e8c20 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in shmem_file_read_iter / shmem_write_end
2024/02/01 00:48 upstream 6764c317b6bb 373b66cd .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in shmem_file_read_iter / shmem_write_end
2024/01/29 11:04 upstream 41bccc98fb79 991a98f4 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in shmem_file_read_iter / shmem_write_end
2024/01/29 07:40 upstream 4854cf9c61d0 cc4a4020 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in shmem_file_read_iter / shmem_write_end
2024/01/25 23:40 upstream ecb1b8288dc7 cc4a4020 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in shmem_file_read_iter / shmem_write_end
2024/01/20 18:00 upstream 125514880ddd 9bd8dcda .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in shmem_file_read_iter / shmem_write_end
2024/01/20 04:43 upstream 9d64bf433c53 9bd8dcda .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in shmem_file_read_iter / shmem_write_end
2024/01/19 16:12 upstream 9d1694dc91ce 9bd8dcda .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in shmem_file_read_iter / shmem_write_end
2024/01/16 02:19 upstream 052d534373b7 2a7bcc7f .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in shmem_file_read_iter / shmem_write_end
2024/01/12 23:49 upstream 70d201a40823 551587c1 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in shmem_file_read_iter / shmem_write_end
2024/01/12 07:17 upstream 3e7aeb78ab01 dda5a988 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in shmem_file_read_iter / shmem_write_end
2024/01/11 07:03 upstream de927f6c0b07 00f3cc59 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in shmem_file_read_iter / shmem_write_end
2024/01/11 05:24 upstream de927f6c0b07 04815ef1 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in shmem_file_read_iter / shmem_write_end
2024/01/05 10:38 upstream 1f874787ed9a 28c42cff .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in shmem_file_read_iter / shmem_write_end
2024/01/01 21:22 upstream 610a9b8f49fb fb427a07 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in shmem_file_read_iter / shmem_write_end
2024/01/01 00:36 upstream 2639772a11c8 fb427a07 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in shmem_file_read_iter / shmem_write_end
2023/12/24 10:38 upstream 861deac3b092 fb427a07 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in shmem_file_read_iter / shmem_write_end
2023/12/18 17:01 upstream ceb6a6f023fd 924661f4 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in shmem_file_read_iter / shmem_write_end
2023/12/17 05:32 upstream 3b8a9b2e6809 3222d10c .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in shmem_file_read_iter / shmem_write_end
2023/12/16 14:16 upstream c8e97fc6b4c0 3222d10c .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in shmem_file_read_iter / shmem_write_end
2023/12/16 00:53 upstream 3bd7d7488169 3222d10c .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in shmem_file_read_iter / shmem_write_end
2023/12/15 11:46 upstream 3f7168591ebf 3222d10c .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in shmem_file_read_iter / shmem_write_end
2023/12/15 06:14 upstream c7402612e2e6 3222d10c .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in shmem_file_read_iter / shmem_write_end
2023/12/13 09:38 upstream 88035e5694a8 ebcad15c .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in shmem_file_read_iter / shmem_write_end
2023/12/11 09:48 upstream a39b6ac3781d 28b24332 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in shmem_file_read_iter / shmem_write_end
2023/12/10 18:55 upstream c527f5606aa5 28b24332 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in shmem_file_read_iter / shmem_write_end
2023/12/08 18:11 upstream 5e3f5b81de80 28b24332 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in shmem_file_read_iter / shmem_write_end
2023/12/08 10:50 upstream 9ace34a8e446 28b24332 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in shmem_file_read_iter / shmem_write_end
2023/12/07 11:42 upstream bee0e7762ad2 0a02ce36 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in shmem_file_read_iter / shmem_write_end
2023/12/05 19:13 upstream bee0e7762ad2 858d62d1 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in shmem_file_read_iter / shmem_write_end
2023/12/05 08:49 upstream bee0e7762ad2 f819d6f7 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in shmem_file_read_iter / shmem_write_end
2021/01/16 02:32 upstream 5ee88057889b 65a7a854 .config console log report info ci2-upstream-kcsan-gce
2020/01/03 10:49 https://github.com/google/ktsan.git kcsan 245a43005292 9dcc1191 .config console log report ci2-upstream-kcsan-gce
2019/12/30 22:48 https://github.com/google/ktsan.git kcsan 245a43005292 6b36d338 .config console log report ci2-upstream-kcsan-gce
2019/10/23 05:39 https://github.com/google/ktsan.git kcsan 05f2236801fe d0686497 .config console log report ci2-upstream-kcsan-gce
* Struck through repros no longer work on HEAD.