syzbot


KCSAN: data-race in shmem_file_read_iter / shmem_write_end

Status: moderation: reported on 2020/01/03 23:05
Reported-by: syzbot+5e4613548335cf05bf0e@syzkaller.appspotmail.com
First crash: 1197d, last: 2h23m

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

write to 0xffff8881229eb738 of 8 bytes by task 26856 on cpu 0:
 i_size_write include/linux/fs.h:886 [inline]
 shmem_write_end+0x59/0x380 mm/shmem.c:2567
 generic_perform_write+0x264/0x3f0 mm/filemap.c:3783
 __generic_file_write_iter+0xe3/0x280 mm/filemap.c:3900
 generic_file_write_iter+0x79/0x1c0 mm/filemap.c:3932
 do_iter_write+0x494/0x750 fs/read_write.c:861
 vfs_iter_write+0x4c/0x70 fs/read_write.c:902
 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:1255
 __do_sys_sendfile64 fs/read_write.c:1317 [inline]
 __se_sys_sendfile64 fs/read_write.c:1309 [inline]
 __x64_sys_sendfile64+0xb9/0x150 fs/read_write.c:1309
 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 0xffff8881229eb738 of 8 bytes by task 26862 on cpu 1:
 i_size_read include/linux/fs.h:864 [inline]
 shmem_file_read_iter+0x440/0x580 mm/shmem.c:2614
 call_read_iter include/linux/fs.h:2183 [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:1255
 __do_sys_sendfile64 fs/read_write.c:1317 [inline]
 __se_sys_sendfile64 fs/read_write.c:1309 [inline]
 __x64_sys_sendfile64+0xb9/0x150 fs/read_write.c:1309
 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: 0x0000000000000dc6 -> 0x0000000000000dc9

Reported by Kernel Concurrency Sanitizer on:
CPU: 1 PID: 26862 Comm: syz-executor.3 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 (1144):
Manager Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets Title
ci2-upstream-kcsan-gce 2023/02/01 14:46 upstream c0b67534c95c 9a6f477c .config console log report info [disk image] [vmlinux] [kernel image] KCSAN: data-race in shmem_file_read_iter / shmem_write_end
ci2-upstream-kcsan-gce 2023/02/01 06:15 upstream c0b67534c95c b68fb8d6 .config console log report info [disk image] [vmlinux] [kernel image] KCSAN: data-race in shmem_file_read_iter / shmem_write_end
ci2-upstream-kcsan-gce 2023/01/31 14:55 upstream 22b8077d0fce b68fb8d6 .config console log report info [disk image] [vmlinux] [kernel image] KCSAN: data-race in shmem_file_read_iter / shmem_write_end
ci2-upstream-kcsan-gce 2023/01/31 00:42 upstream 6d796c50f84c b68fb8d6 .config console log report info [disk image] [vmlinux] [kernel image] KCSAN: data-race in shmem_file_read_iter / shmem_write_end
ci2-upstream-kcsan-gce 2023/01/30 13:10 upstream 6d796c50f84c b68fb8d6 .config console log report info [disk image] [vmlinux] [kernel image] KCSAN: data-race in shmem_file_read_iter / shmem_write_end
ci2-upstream-kcsan-gce 2023/01/29 21:03 upstream ab072681eabe 9dfcf09c .config console log report info [disk image] [vmlinux] [kernel image] KCSAN: data-race in shmem_file_read_iter / shmem_write_end
ci2-upstream-kcsan-gce 2023/01/27 23:39 upstream 83abd4d4c4be 9dfcf09c .config console log report info [disk image] [vmlinux] [kernel image] KCSAN: data-race in shmem_file_read_iter / shmem_write_end
ci2-upstream-kcsan-gce 2023/01/24 22:58 upstream fb6e71db53f3 9dfcf09c .config console log report info [disk image] [vmlinux] [kernel image] KCSAN: data-race in shmem_file_read_iter / shmem_write_end
ci2-upstream-kcsan-gce 2023/01/23 23:33 upstream 7bf70dbb1882 9dfcf09c .config console log report info [disk image] [vmlinux] [kernel image] KCSAN: data-race in shmem_file_read_iter / shmem_write_end
ci2-upstream-kcsan-gce 2023/01/23 15:31 upstream 2475bf0250de 9dfcf09c .config console log report info [disk image] [vmlinux] [kernel image] KCSAN: data-race in shmem_file_read_iter / shmem_write_end
ci2-upstream-kcsan-gce 2023/01/23 08:01 upstream 2475bf0250de 44388686 .config console log report info [disk image] [vmlinux] [kernel image] KCSAN: data-race in shmem_file_read_iter / shmem_write_end
ci2-upstream-kcsan-gce 2023/01/22 21:33 upstream 2475bf0250de cc0f9968 .config console log report info [disk image] [vmlinux] [kernel image] KCSAN: data-race in shmem_file_read_iter / shmem_write_end
ci2-upstream-kcsan-gce 2023/01/21 19:11 upstream f883675bf652 cc0f9968 .config console log report info [disk image] [vmlinux] [kernel image] KCSAN: data-race in shmem_file_read_iter / shmem_write_end
ci2-upstream-kcsan-gce 2023/01/21 03:37 upstream edc00350d205 cc0f9968 .config console log report info [disk image] [vmlinux] [kernel image] KCSAN: data-race in shmem_file_read_iter / shmem_write_end
ci2-upstream-kcsan-gce 2023/01/20 00:44 upstream 081edded9b38 71197f3a .config console log report info [disk image] [vmlinux] [kernel image] KCSAN: data-race in shmem_file_read_iter / shmem_write_end
ci2-upstream-kcsan-gce 2023/01/19 08:07 upstream 7287904c8771 66fca3ae .config console log report info [disk image] [vmlinux] [kernel image] KCSAN: data-race in shmem_file_read_iter / shmem_write_end
ci2-upstream-kcsan-gce 2023/01/18 16:16 upstream c1649ec55708 4620c2d9 .config console log report info [disk image] [vmlinux] [kernel image] KCSAN: data-race in shmem_file_read_iter / shmem_write_end
ci2-upstream-kcsan-gce 2023/01/16 04:47 upstream 5dc4c995db9e a63719e7 .config console log report info [disk image] [vmlinux] [kernel image] KCSAN: data-race in shmem_file_read_iter / shmem_write_end
ci2-upstream-kcsan-gce 2023/01/15 13:48 upstream 7c6984405241 a63719e7 .config console log report info [disk image] [vmlinux] [kernel image] KCSAN: data-race in shmem_file_read_iter / shmem_write_end
ci2-upstream-kcsan-gce 2023/01/14 11:52 upstream 97ec4d559d93 a63719e7 .config console log report info [disk image] [vmlinux] [kernel image] KCSAN: data-race in shmem_file_read_iter / shmem_write_end
ci2-upstream-kcsan-gce 2023/01/13 16:44 upstream d9fc1511728c 529798b0 .config console log report info [disk image] [vmlinux] [kernel image] KCSAN: data-race in shmem_file_read_iter / shmem_write_end
ci2-upstream-kcsan-gce 2023/01/12 08:45 upstream e8f60cd7db24 96166539 .config console log report info [disk image] [vmlinux] [kernel image] KCSAN: data-race in shmem_file_read_iter / shmem_write_end
ci2-upstream-kcsan-gce 2023/01/11 13:48 upstream 7dd4b804e080 96166539 .config console log report info [disk image] [vmlinux] [kernel image] KCSAN: data-race in shmem_file_read_iter / shmem_write_end
ci2-upstream-kcsan-gce 2023/01/11 03:39 upstream 40c18f363a08 48bc529a .config console log report info [disk image] [vmlinux] [kernel image] KCSAN: data-race in shmem_file_read_iter / shmem_write_end
ci2-upstream-kcsan-gce 2023/01/10 10:08 upstream 5a41237ad1d4 48bc529a .config console log report info [disk image] [vmlinux] [kernel image] KCSAN: data-race in shmem_file_read_iter / shmem_write_end
ci2-upstream-kcsan-gce 2023/01/10 00:05 upstream 1fe4fd6f5cad 48bc529a .config console log report info [disk image] [vmlinux] [kernel image] KCSAN: data-race in shmem_file_read_iter / shmem_write_end
ci2-upstream-kcsan-gce 2023/01/09 03:24 upstream 1fe4fd6f5cad 1dac8c7a .config console log report info [disk image] [vmlinux] [kernel image] KCSAN: data-race in shmem_file_read_iter / shmem_write_end
ci2-upstream-kcsan-gce 2023/01/08 09:33 upstream 9b43a525db12 1dac8c7a .config console log report info [disk image] [vmlinux] [kernel image] KCSAN: data-race in shmem_file_read_iter / shmem_write_end
ci2-upstream-kcsan-gce 2023/01/07 19:05 upstream 0a71553536d2 1dac8c7a .config console log report info [disk image] [vmlinux] [kernel image] KCSAN: data-race in shmem_file_read_iter / shmem_write_end
ci2-upstream-kcsan-gce 2023/01/06 21:54 upstream 1f5abbd77e2c 1dac8c7a .config console log report info [disk image] [vmlinux] [kernel image] KCSAN: data-race in shmem_file_read_iter / shmem_write_end
ci2-upstream-kcsan-gce 2023/01/05 06:58 upstream 512dee0c00ad 1dac8c7a .config console log report info [disk image] [vmlinux] [kernel image] KCSAN: data-race in shmem_file_read_iter / shmem_write_end
ci2-upstream-kcsan-gce 2023/01/04 09:18 upstream 69b41ac87e4a 1dac8c7a .config console log report info [disk image] [vmlinux] [kernel image] KCSAN: data-race in shmem_file_read_iter / shmem_write_end
ci2-upstream-kcsan-gce 2023/01/03 11:50 upstream 69b41ac87e4a f0036e18 .config console log report info [disk image] [vmlinux] [kernel image] KCSAN: data-race in shmem_file_read_iter / shmem_write_end
ci2-upstream-kcsan-gce 2023/01/03 03:42 upstream 69b41ac87e4a ab32d508 .config console log report info [disk image] [vmlinux] [kernel image] KCSAN: data-race in shmem_file_read_iter / shmem_write_end
ci2-upstream-kcsan-gce 2023/01/02 06:40 upstream 88603b6dc419 ab32d508 .config console log report info [disk image] [vmlinux] [kernel image] KCSAN: data-race in shmem_file_read_iter / shmem_write_end
ci2-upstream-kcsan-gce 2022/12/31 17:03 upstream c8451c141e07 ab32d508 .config console log report info [disk image] [vmlinux] [kernel image] KCSAN: data-race in shmem_file_read_iter / shmem_write_end
ci2-upstream-kcsan-gce 2022/12/30 21:06 upstream bff687b3dad6 ab32d508 .config console log report info [disk image] [vmlinux] [kernel image] KCSAN: data-race in shmem_file_read_iter / shmem_write_end
ci2-upstream-kcsan-gce 2022/12/30 04:11 upstream 2258c2dc850b 44712fbc .config console log report info [disk image] [vmlinux] [kernel image] KCSAN: data-race in shmem_file_read_iter / shmem_write_end
ci2-upstream-kcsan-gce 2022/12/27 15:56 upstream 1b929c02afd3 44712fbc .config console log report info [disk image] [vmlinux] [kernel image] KCSAN: data-race in shmem_file_read_iter / shmem_write_end
ci2-upstream-kcsan-gce 2022/12/26 01:08 upstream 1b929c02afd3 9da18ae8 .config console log report info [disk image] [vmlinux] [kernel image] KCSAN: data-race in shmem_file_read_iter / shmem_write_end
ci2-upstream-kcsan-gce 2022/12/24 17:57 upstream 72a85e2b0a1e 9da18ae8 .config console log report info [disk image] [vmlinux] [kernel image] KCSAN: data-race in shmem_file_read_iter / shmem_write_end
ci2-upstream-kcsan-gce 2022/12/24 01:57 upstream 51094a24b85e 9da18ae8 .config console log report info [disk image] [vmlinux] [kernel image] KCSAN: data-race in shmem_file_read_iter / shmem_write_end
ci2-upstream-kcsan-gce 2022/12/23 09:01 upstream 8395ae05cb5a 9da18ae8 .config console log report info [disk image] [vmlinux] [kernel image] KCSAN: data-race in shmem_file_read_iter / shmem_write_end
ci2-upstream-kcsan-gce 2022/12/22 15:06 upstream 0a924817d2ed 9da18ae8 .config console log report info [disk image] [vmlinux] [kernel image] KCSAN: data-race in shmem_file_read_iter / shmem_write_end
ci2-upstream-kcsan-gce 2022/12/22 10:55 upstream b6bb9676f216 4067838e .config console log report info [disk image] [vmlinux] [kernel image] KCSAN: data-race in shmem_file_read_iter / shmem_write_end
ci2-upstream-kcsan-gce 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
* Struck through repros no longer work on HEAD.