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: 946d, last: 16h33m

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

write to 0xffff8881378ed9e8 of 8 bytes by task 3087 on cpu 0:
 i_size_write include/linux/fs.h:862 [inline]
 shmem_write_end+0x59/0x380 mm/shmem.c:2469
 generic_perform_write+0x264/0x3f0 mm/filemap.c:3775
 __generic_file_write_iter+0xe3/0x280 mm/filemap.c:3892
 generic_file_write_iter+0x75/0x130 mm/filemap.c:3924
 do_iter_readv_writev+0x27b/0x300
 do_iter_write+0x16f/0x5c0 fs/read_write.c:852
 vfs_iter_write+0x4c/0x70 fs/read_write.c:893
 iter_file_splice_write+0x44a/0x7c0 fs/splice.c:689
 do_splice_from fs/splice.c:767 [inline]
 direct_splice_actor+0x80/0xa0 fs/splice.c:936
 splice_direct_to_actor+0x345/0x660 fs/splice.c:891
 do_splice_direct+0xfb/0x180 fs/splice.c:979
 do_sendfile+0x3ad/0x900 fs/read_write.c:1246
 __do_sys_sendfile64 fs/read_write.c:1305 [inline]
 __se_sys_sendfile64 fs/read_write.c:1297 [inline]
 __x64_sys_sendfile64+0xb9/0x150 fs/read_write.c:1297
 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 0xffff8881378ed9e8 of 8 bytes by task 3089 on cpu 1:
 i_size_read include/linux/fs.h:840 [inline]
 shmem_getpage_gfp+0x17c/0x16c0 mm/shmem.c:1805
 shmem_getpage mm/shmem.c:149 [inline]
 shmem_file_read_iter+0x151/0x6a0 mm/shmem.c:2526
 call_read_iter include/linux/fs.h:2035 [inline]
 generic_file_splice_read+0x1de/0x2c0 fs/splice.c:311
 do_splice_to fs/splice.c:796 [inline]
 splice_direct_to_actor+0x2ac/0x660 fs/splice.c:870
 do_splice_direct+0xfb/0x180 fs/splice.c:979
 do_sendfile+0x3ad/0x900 fs/read_write.c:1246
 __do_sys_sendfile64 fs/read_write.c:1305 [inline]
 __se_sys_sendfile64 fs/read_write.c:1297 [inline]
 __x64_sys_sendfile64+0xb9/0x150 fs/read_write.c:1297
 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: 0x0000000000000f5f -> 0x0000000000000f64

Reported by Kernel Concurrency Sanitizer on:
CPU: 1 PID: 3089 Comm: syz-executor.1 Not tainted 5.18.0-syzkaller-09061-g16477cdfefdb-dirty #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
==================================================================

Crashes (532):
Manager Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Title
ci2-upstream-kcsan-gce 2022/05/26 22:45 upstream 16477cdfefdb 3037caa9 .config log report info KCSAN: data-race in shmem_getpage_gfp / shmem_write_end
ci2-upstream-kcsan-gce 2022/05/26 08:41 upstream d7227785e384 3037caa9 .config log report info KCSAN: data-race in shmem_getpage_gfp / shmem_write_end
ci2-upstream-kcsan-gce 2022/05/25 12:08 upstream fdaf9a5840ac 647c0e27 .config log report info KCSAN: data-race in shmem_getpage_gfp / shmem_write_end
ci2-upstream-kcsan-gce 2022/05/24 00:26 upstream 140e40e39a29 e7f9308d .config log report info KCSAN: data-race in shmem_getpage_gfp / shmem_write_end
ci2-upstream-kcsan-gce 2022/05/23 12:16 upstream 4b0986a3613c 4c7657cb .config log report info KCSAN: data-race in shmem_getpage_gfp / shmem_write_end
ci2-upstream-kcsan-gce 2022/05/22 21:58 upstream 978df3e15846 7268fa62 .config log report info KCSAN: data-race in shmem_getpage_gfp / shmem_write_end
ci2-upstream-kcsan-gce 2022/05/22 06:54 upstream eaea45fc0e7b 7268fa62 .config log report info KCSAN: data-race in shmem_getpage_gfp / shmem_write_end
ci2-upstream-kcsan-gce 2022/05/21 17:41 upstream 6c3f5bec9b40 7268fa62 .config log report info KCSAN: data-race in shmem_getpage_gfp / shmem_write_end
ci2-upstream-kcsan-gce 2022/05/21 04:21 upstream 3b5e1590a267 7268fa62 .config log report info KCSAN: data-race in shmem_getpage_gfp / shmem_write_end
ci2-upstream-kcsan-gce 2022/05/20 16:42 upstream 3d7285a335ed bd37ad7e .config log report info KCSAN: data-race in shmem_getpage_gfp / shmem_write_end
ci2-upstream-kcsan-gce 2022/05/18 00:54 upstream 210e04ff7681 744a39e2 .config log report info KCSAN: data-race in shmem_getpage_gfp / shmem_write_end
ci2-upstream-kcsan-gce 2022/05/15 14:34 upstream bc403203d65a 744a39e2 .config log report info KCSAN: data-race in shmem_getpage_gfp / shmem_write_end
ci2-upstream-kcsan-gce 2022/05/15 10:13 upstream 2fe1020d73ca 744a39e2 .config log report info KCSAN: data-race in shmem_getpage_gfp / shmem_write_end
ci2-upstream-kcsan-gce 2022/05/14 12:22 upstream ec7f49619d8e 744a39e2 .config log report info KCSAN: data-race in shmem_getpage_gfp / shmem_write_end
ci2-upstream-kcsan-gce 2022/05/13 23:02 upstream f2dd007445b1 107f6434 .config log report info KCSAN: data-race in shmem_getpage_gfp / shmem_write_end
ci2-upstream-kcsan-gce 2022/05/13 10:19 upstream f3f19f939c11 7ce5a022 .config log report info KCSAN: data-race in shmem_getpage_gfp / shmem_write_end
ci2-upstream-kcsan-gce 2022/05/13 08:50 upstream f3f19f939c11 9ad6612a .config log report info KCSAN: data-race in shmem_getpage_gfp / shmem_write_end
ci2-upstream-kcsan-gce 2022/05/12 15:47 upstream feb9c5e19e91 9ad6612a .config log report info KCSAN: data-race in shmem_getpage_gfp / shmem_write_end
ci2-upstream-kcsan-gce 2022/05/12 07:23 upstream feb9c5e19e91 beb0b407 .config log report info KCSAN: data-race in shmem_getpage_gfp / shmem_write_end
ci2-upstream-kcsan-gce 2022/05/11 15:28 upstream feb9c5e19e91 8d7b3b67 .config log report info KCSAN: data-race in shmem_getpage_gfp / shmem_write_end
ci2-upstream-kcsan-gce 2022/05/09 10:56 upstream c5eb0a61238d 8b277b8e .config log report info KCSAN: data-race in shmem_getpage_gfp / shmem_write_end
ci2-upstream-kcsan-gce 2022/05/09 01:16 upstream c5eb0a61238d e60b1103 .config log report info KCSAN: data-race in shmem_getpage_gfp / shmem_write_end
ci2-upstream-kcsan-gce 2022/05/08 10:49 upstream 30c8e80f7932 e60b1103 .config log report info KCSAN: data-race in shmem_getpage_gfp / shmem_write_end
ci2-upstream-kcsan-gce 2022/05/08 01:13 upstream 30c8e80f7932 e60b1103 .config log report info KCSAN: data-race in shmem_getpage_gfp / shmem_write_end
ci2-upstream-kcsan-gce 2022/05/07 20:35 upstream 30c8e80f7932 e60b1103 .config log report info KCSAN: data-race in shmem_getpage_gfp / shmem_write_end
ci2-upstream-kcsan-gce 2022/05/07 18:58 upstream 30c8e80f7932 e60b1103 .config log report info KCSAN: data-race in shmem_getpage_gfp / shmem_write_end
ci2-upstream-kcsan-gce 2022/05/07 16:20 upstream 4b97bac0756a e60b1103 .config log report info KCSAN: data-race in shmem_getpage_gfp / shmem_write_end
ci2-upstream-kcsan-gce 2022/05/07 10:26 upstream 4b97bac0756a e60b1103 .config log report info KCSAN: data-race in shmem_getpage_gfp / shmem_write_end
ci2-upstream-kcsan-gce 2022/05/07 01:16 upstream 4b97bac0756a e60b1103 .config log report info KCSAN: data-race in shmem_getpage_gfp / shmem_write_end
ci2-upstream-kcsan-gce 2022/05/06 22:30 upstream 64267926e01b e60b1103 .config log report info KCSAN: data-race in shmem_getpage_gfp / shmem_write_end
ci2-upstream-kcsan-gce 2022/05/05 23:26 upstream 0f5d752b1395 efeff0a5 .config log report info KCSAN: data-race in shmem_getpage_gfp / shmem_write_end
ci2-upstream-kcsan-gce 2022/05/05 19:12 upstream 0f5d752b1395 b3f09415 .config log report info KCSAN: data-race in shmem_getpage_gfp / shmem_write_end
ci2-upstream-kcsan-gce 2022/05/05 09:19 upstream a7391ad35724 b3f09415 .config log report info KCSAN: data-race in shmem_getpage_gfp / shmem_write_end
ci2-upstream-kcsan-gce 2022/05/03 03:43 upstream 9050ba3a61a4 2df221f6 .config log report info KCSAN: data-race in shmem_getpage_gfp / shmem_write_end
ci2-upstream-kcsan-gce 2022/05/03 01:25 upstream 9050ba3a61a4 2df221f6 .config log report info KCSAN: data-race in shmem_getpage_gfp / shmem_write_end
ci2-upstream-kcsan-gce 2022/05/01 22:46 upstream b2da7df52e16 2df221f6 .config log report info KCSAN: data-race in shmem_getpage_gfp / shmem_write_end
ci2-upstream-kcsan-gce 2022/04/30 23:17 upstream 57ae8a492116 2df221f6 .config log report info KCSAN: data-race in shmem_getpage_gfp / shmem_write_end
ci2-upstream-kcsan-gce 2022/04/30 11:09 upstream 8013d1d3d2e3 2df221f6 .config log report info KCSAN: data-race in shmem_getpage_gfp / shmem_write_end
ci2-upstream-kcsan-gce 2022/04/30 04:43 upstream 8013d1d3d2e3 ad6b95d8 .config log report info KCSAN: data-race in shmem_getpage_gfp / shmem_write_end
ci2-upstream-kcsan-gce 2022/04/29 11:39 upstream 38d741cb70b3 e9076525 .config log report info KCSAN: data-race in shmem_getpage_gfp / shmem_write_end
ci2-upstream-kcsan-gce 2022/04/28 19:31 upstream 259b897e5a79 e9076525 .config log report info KCSAN: data-race in shmem_getpage_gfp / shmem_write_end
ci2-upstream-kcsan-gce 2022/04/28 01:30 upstream 8f4dd16603ce 8a1f1f07 .config log report info KCSAN: data-race in shmem_getpage_gfp / shmem_write_end
ci2-upstream-kcsan-gce 2022/04/27 10:51 upstream 46cf2c613f4b 1fa34c1b .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