syzbot


KCSAN: data-race in shmem_getpage_gfp / shmem_write_end

Status: moderation: reported on 2020/02/05 07:38
Reported-by: syzbot+9b7038569bf2cea1082a@syzkaller.appspotmail.com
First crash: 1070d, last: 13h20m

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

write to 0xffff88813fe2ba88 of 8 bytes by task 31658 on cpu 0:
 i_size_write include/linux/fs.h:886 [inline]
 shmem_write_end+0x59/0x380 mm/shmem.c:2535
 generic_perform_write+0x264/0x3f0 mm/filemap.c:3749
 __generic_file_write_iter+0xe3/0x280 mm/filemap.c:3866
 generic_file_write_iter+0x79/0x1c0 mm/filemap.c:3898
 do_iter_write+0x494/0x750 fs/read_write.c:855
 vfs_iter_write+0x4c/0x70 fs/read_write.c:896
 iter_file_splice_write+0x44a/0x7c0 fs/splice.c:686
 do_splice_from fs/splice.c:764 [inline]
 direct_splice_actor+0x80/0xa0 fs/splice.c:931
 splice_direct_to_actor+0x305/0x620 fs/splice.c:886
 do_splice_direct+0xfb/0x180 fs/splice.c:974
 do_sendfile+0x3bf/0x910 fs/read_write.c:1249
 __do_sys_sendfile64 fs/read_write.c:1311 [inline]
 __se_sys_sendfile64 fs/read_write.c:1303 [inline]
 __x64_sys_sendfile64+0xb9/0x150 fs/read_write.c:1303
 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 0xffff88813fe2ba88 of 8 bytes by task 31664 on cpu 1:
 i_size_read include/linux/fs.h:864 [inline]
 shmem_getpage_gfp+0x1a3/0x1750 mm/shmem.c:1854
 shmem_getpage mm/shmem.c:150 [inline]
 shmem_file_read_iter+0x161/0x6c0 mm/shmem.c:2592
 call_read_iter include/linux/fs.h:2181 [inline]
 generic_file_splice_read+0xde/0x2b0 fs/splice.c:309
 do_splice_to fs/splice.c:793 [inline]
 splice_direct_to_actor+0x26c/0x620 fs/splice.c:865
 do_splice_direct+0xfb/0x180 fs/splice.c:974
 do_sendfile+0x3bf/0x910 fs/read_write.c:1249
 __do_sys_sendfile64 fs/read_write.c:1311 [inline]
 __se_sys_sendfile64 fs/read_write.c:1303 [inline]
 __x64_sys_sendfile64+0xb9/0x150 fs/read_write.c:1303
 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: 0x0000000000000e3d -> 0x0000000000000e3e

Reported by Kernel Concurrency Sanitizer on:
CPU: 1 PID: 31664 Comm: syz-executor.1 Not tainted 6.0.0-rc7-syzkaller-00042-g46452d3786a8-dirty #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 08/26/2022
==================================================================

Crashes (646):
Manager Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Title
ci2-upstream-kcsan-gce 2022/09/28 02:13 upstream 46452d3786a8 75c78242 .config log report info KCSAN: data-race in shmem_getpage_gfp / shmem_write_end
ci2-upstream-kcsan-gce 2022/09/27 07:25 upstream 3800a713b607 10323ddf .config log report info KCSAN: data-race in shmem_getpage_gfp / shmem_write_end
ci2-upstream-kcsan-gce 2022/09/27 03:38 upstream 3800a713b607 d59ba983 .config log report info KCSAN: data-race in shmem_getpage_gfp / shmem_write_end
ci2-upstream-kcsan-gce 2022/09/26 23:33 upstream f76349cf4145 d59ba983 .config log report info KCSAN: data-race in shmem_getpage_gfp / shmem_write_end
ci2-upstream-kcsan-gce 2022/09/25 04:57 upstream 1a61b828566f 0042f2b4 .config log report info KCSAN: data-race in shmem_getpage_gfp / shmem_write_end
ci2-upstream-kcsan-gce 2022/09/24 19:22 upstream a63f2e7cb110 0042f2b4 .config log report info KCSAN: data-race in shmem_getpage_gfp / shmem_write_end
ci2-upstream-kcsan-gce 2022/09/23 11:09 upstream dc164f4fb00a 0042f2b4 .config log report info KCSAN: data-race in shmem_getpage_gfp / shmem_write_end
ci2-upstream-kcsan-gce 2022/09/21 21:21 upstream 06f7db949993 380f82fb .config log report info KCSAN: data-race in shmem_getpage_gfp / shmem_write_end
ci2-upstream-kcsan-gce 2022/09/19 03:39 upstream 38eddeedbbea dd9a85ff .config log report info KCSAN: data-race in shmem_getpage_gfp / shmem_write_end
ci2-upstream-kcsan-gce 2022/09/17 06:56 upstream a335366bad13 dd9a85ff .config log report info KCSAN: data-race in shmem_getpage_gfp / shmem_write_end
ci2-upstream-kcsan-gce 2022/09/17 00:01 upstream 6879c2d3b960 dd9a85ff .config log report info KCSAN: data-race in shmem_getpage_gfp / shmem_write_end
ci2-upstream-kcsan-gce 2022/09/15 08:57 upstream 3245cb65fd91 dd9a85ff .config log report info KCSAN: data-race in shmem_getpage_gfp / shmem_write_end
ci2-upstream-kcsan-gce 2022/09/13 14:50 upstream d1221cea11fc a08652b0 .config log report info KCSAN: data-race in shmem_getpage_gfp / shmem_write_end
ci2-upstream-kcsan-gce 2022/09/13 09:53 upstream e839a756012b a08652b0 .config log report info KCSAN: data-race in shmem_getpage_gfp / shmem_write_end
ci2-upstream-kcsan-gce 2022/09/12 23:50 upstream e839a756012b f371ed7e .config log report info KCSAN: data-race in shmem_getpage_gfp / shmem_write_end
ci2-upstream-kcsan-gce 2022/09/12 17:06 upstream 80e78fcce86d f371ed7e .config log report info KCSAN: data-race in shmem_getpage_gfp / shmem_write_end
ci2-upstream-kcsan-gce 2022/09/10 20:15 upstream b96fbd602d35 356d8217 .config log report info KCSAN: data-race in shmem_getpage_gfp / shmem_write_end
ci2-upstream-kcsan-gce 2022/09/10 09:46 upstream ce888220d5c7 356d8217 .config log report info KCSAN: data-race in shmem_getpage_gfp / shmem_write_end
ci2-upstream-kcsan-gce 2022/09/09 13:14 upstream 9b4509495418 90058bdc .config log report info KCSAN: data-race in shmem_getpage_gfp / shmem_write_end
ci2-upstream-kcsan-gce 2022/09/09 11:43 upstream 506357871c18 90058bdc .config log report info KCSAN: data-race in shmem_getpage_gfp / shmem_write_end
ci2-upstream-kcsan-gce 2022/09/08 14:51 upstream 26b1224903b3 f3027468 .config log report info KCSAN: data-race in shmem_getpage_gfp / shmem_write_end
ci2-upstream-kcsan-gce 2022/09/06 22:58 upstream d2ec799d1c1b 5fc30c37 .config log report info KCSAN: data-race in shmem_getpage_gfp / shmem_write_end
ci2-upstream-kcsan-gce 2022/09/05 11:47 upstream 7e18e42e4b28 922294ab .config log report info KCSAN: data-race in shmem_getpage_gfp / shmem_write_end
ci2-upstream-kcsan-gce 2022/09/05 01:35 upstream 7e18e42e4b28 28811d0a .config log report info KCSAN: data-race in shmem_getpage_gfp / shmem_write_end
ci2-upstream-kcsan-gce 2022/09/02 15:57 upstream 42e66b1cc3a0 25194605 .config log report info KCSAN: data-race in shmem_getpage_gfp / shmem_write_end
ci2-upstream-kcsan-gce 2022/09/02 05:01 upstream 42e66b1cc3a0 a805568e .config log report info KCSAN: data-race in shmem_getpage_gfp / shmem_write_end
ci2-upstream-kcsan-gce 2022/09/01 06:56 upstream c5e4d5e99162 b01ec571 .config log report info KCSAN: data-race in shmem_getpage_gfp / shmem_write_end
ci2-upstream-kcsan-gce 2022/08/31 17:21 upstream dcf8e5633e2e 51e54e30 .config log report info KCSAN: data-race in shmem_getpage_gfp / shmem_write_end
ci2-upstream-kcsan-gce 2022/08/30 18:35 upstream dcf8e5633e2e 4a380809 .config log report info KCSAN: data-race in shmem_getpage_gfp / shmem_write_end
ci2-upstream-kcsan-gce 2022/08/29 12:19 upstream b90cb1053190 94da0b6b .config log report info KCSAN: data-race in shmem_getpage_gfp / shmem_write_end
ci2-upstream-kcsan-gce 2022/08/27 18:32 upstream 89b749d8552d 07177916 .config log report info KCSAN: data-race in shmem_getpage_gfp / shmem_write_end
ci2-upstream-kcsan-gce 2022/08/27 06:53 upstream e022620b5d05 07177916 .config log report info KCSAN: data-race in shmem_getpage_gfp / shmem_write_end
ci2-upstream-kcsan-gce 2022/08/23 11:21 upstream 072e51356cd5 cea8b0f7 .config log report info KCSAN: data-race in shmem_getpage_gfp / shmem_write_end
ci2-upstream-kcsan-gce 2022/08/21 22:46 upstream e3f259d33c0e 26a13b38 .config log report info KCSAN: data-race in shmem_getpage_gfp / shmem_write_end
ci2-upstream-kcsan-gce 2022/08/21 08:19 upstream 15b3f48a4339 26a13b38 .config log report info KCSAN: data-race in shmem_getpage_gfp / shmem_write_end
ci2-upstream-kcsan-gce 2022/08/20 20:15 upstream f31c32efd57c 26a13b38 .config log report info KCSAN: data-race in shmem_getpage_gfp / shmem_write_end
ci2-upstream-kcsan-gce 2022/08/20 00:36 upstream 50cd95ac4654 26a13b38 .config log report info KCSAN: data-race in shmem_getpage_gfp / shmem_write_end
ci2-upstream-kcsan-gce 2022/08/19 19:28 upstream 4c2d0b039c5c 26a13b38 .config log report info KCSAN: data-race in shmem_getpage_gfp / shmem_write_end
ci2-upstream-kcsan-gce 2022/08/16 20:35 upstream 7ebfc85e2cd7 9e4b39c2 .config log report info KCSAN: data-race in shmem_getpage_gfp / shmem_write_end
ci2-upstream-kcsan-gce 2022/08/16 01:05 upstream 7ebfc85e2cd7 7a7cb304 .config log report info KCSAN: data-race in shmem_getpage_gfp / shmem_write_end
ci2-upstream-kcsan-gce 2022/08/15 02:38 upstream 7ebfc85e2cd7 8dfcaa3d .config log report info KCSAN: data-race in shmem_getpage_gfp / shmem_write_end
ci2-upstream-kcsan-gce 2022/08/12 13:38 upstream 7ebfc85e2cd7 402cd70d .config log report info KCSAN: data-race in shmem_getpage_gfp / shmem_write_end
ci2-upstream-kcsan-gce 2022/08/11 22:28 upstream 2ae08b36c06e 21724cb2 .config log report info KCSAN: data-race in shmem_getpage_gfp / shmem_write_end
ci2-upstream-kcsan-gce 2022/08/10 22:11 upstream f41445645ab5 a6201f11 .config log report info KCSAN: data-race in shmem_getpage_gfp / shmem_write_end
ci2-upstream-kcsan-gce 2022/08/09 00:18 upstream 3466f49dd0dd da700653 .config log report info KCSAN: data-race in shmem_getpage_gfp / shmem_write_end
ci2-upstream-kcsan-gce 2022/08/08 16:41 upstream 4e23eeebb2e5 da700653 .config log report info KCSAN: data-race in shmem_getpage_gfp / shmem_write_end
ci2-upstream-kcsan-gce 2022/08/05 22:03 upstream 9e2f40233670 e853abd9 .config log report info KCSAN: data-race in shmem_getpage_gfp / shmem_write_end
ci2-upstream-kcsan-gce 2021/01/16 04:49 upstream 5ee88057889b 65a7a854 .config log report info
ci2-upstream-kcsan-gce 2020/02/02 23:47 https://github.com/google/ktsan.git kcsan 245a43005292 93e5e335 .config log report
ci2-upstream-kcsan-gce 2020/02/01 07:18 https://github.com/google/ktsan.git kcsan 245a43005292 0eb59c27 .config log report
ci2-upstream-kcsan-gce 2019/10/24 11:19 https://github.com/google/ktsan.git kcsan 05f2236801fe d01bb02a .config log report
* Struck through repros no longer work on HEAD.