syzbot


KCSAN: data-race in filemap_read / generic_write_end (3)
Status: moderation: reported on 2022/01/31 16:57
Reported-by: syzbot+e1ffd4430e9e7942349a@syzkaller.appspotmail.com
First crash: 199d, last: 1d12h
similar bugs (2):
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream KCSAN: data-race in filemap_read / generic_write_end 3 371d 380d 0/22 auto-closed as invalid on 2021/06/25 01:21
upstream KCSAN: data-race in filemap_read / generic_write_end (2) 8 241d 314d 0/22 auto-closed as invalid on 2021/11/02 13:17

Sample crash report:
==================================================================
BUG: KCSAN: data-race in filemap_read / generic_write_end

write to 0xffff8881204c2ad8 of 8 bytes by task 2592 on cpu 0:
 i_size_write include/linux/fs.h:862 [inline]
 generic_write_end+0x98/0x230 fs/buffer.c:2183
 ext4_da_write_end+0x26c/0x620 fs/ext4/inode.c:3078
 generic_perform_write+0x264/0x3f0 mm/filemap.c:3775
 ext4_buffered_write_iter+0x222/0x330 fs/ext4/file.c:270
 ext4_file_write_iter+0x2e3/0x1210
 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:1311 [inline]
 __se_sys_sendfile64 fs/read_write.c:1297 [inline]
 __x64_sys_sendfile64+0x10c/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 0xffff8881204c2ad8 of 8 bytes by task 2585 on cpu 1:
 i_size_read include/linux/fs.h:840 [inline]
 filemap_read+0xde9/0x1400 mm/filemap.c:2691
 generic_file_read_iter+0x72/0x320 mm/filemap.c:2825
 ext4_file_read_iter+0x1e9/0x2a0
 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:1311 [inline]
 __se_sys_sendfile64 fs/read_write.c:1297 [inline]
 __x64_sys_sendfile64+0x10c/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: 0x0000000001223600 -> 0x0000000001224000

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

Crashes (217):
Manager Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Title
ci2-upstream-kcsan-gce 2022/05/26 06:20 upstream d7227785e384 3037caa9 .config log report info KCSAN: data-race in filemap_read / generic_write_end
ci2-upstream-kcsan-gce 2022/05/24 10:34 upstream 143a6252e1b8 fcfad4ff .config log report info KCSAN: data-race in filemap_read / generic_write_end
ci2-upstream-kcsan-gce 2022/05/23 09:10 upstream 4b0986a3613c 7268fa62 .config log report info KCSAN: data-race in filemap_read / generic_write_end
ci2-upstream-kcsan-gce 2022/05/22 20:00 upstream 978df3e15846 7268fa62 .config log report info KCSAN: data-race in filemap_read / generic_write_end
ci2-upstream-kcsan-gce 2022/05/21 17:28 upstream 6c3f5bec9b40 7268fa62 .config log report info KCSAN: data-race in filemap_read / generic_write_end
ci2-upstream-kcsan-gce 2022/05/21 04:13 upstream 3b5e1590a267 7268fa62 .config log report info KCSAN: data-race in filemap_read / generic_write_end
ci2-upstream-kcsan-gce 2022/05/20 14:15 upstream 3d7285a335ed cb1ac2e7 .config log report info KCSAN: data-race in filemap_read / generic_write_end
ci2-upstream-kcsan-gce 2022/05/20 00:55 upstream b015dcd62b86 cb1ac2e7 .config log report info KCSAN: data-race in filemap_read / generic_write_end
ci2-upstream-kcsan-gce 2022/05/19 12:09 upstream f993aed406ea cb1ac2e7 .config log report info KCSAN: data-race in filemap_read / generic_write_end
ci2-upstream-kcsan-gce 2022/05/18 16:51 upstream ef1302160bfb 50c53f39 .config log report info KCSAN: data-race in filemap_read / generic_write_end
ci2-upstream-kcsan-gce 2022/05/18 13:53 upstream 210e04ff7681 50c53f39 .config log report info KCSAN: data-race in filemap_read / generic_write_end
ci2-upstream-kcsan-gce 2022/05/16 03:36 upstream 42226c989789 744a39e2 .config log report info KCSAN: data-race in filemap_read / generic_write_end
ci2-upstream-kcsan-gce 2022/05/15 14:15 upstream bc403203d65a 744a39e2 .config log report info KCSAN: data-race in filemap_read / generic_write_end
ci2-upstream-kcsan-gce 2022/05/15 00:19 upstream 2fe1020d73ca 744a39e2 .config log report info KCSAN: data-race in filemap_read / generic_write_end
ci2-upstream-kcsan-gce 2022/05/13 08:22 upstream f3f19f939c11 9ad6612a .config log report info KCSAN: data-race in filemap_read / generic_write_end
ci2-upstream-kcsan-gce 2022/05/12 18:59 upstream 0ac824f379fb 9ad6612a .config log report info KCSAN: data-race in filemap_read / generic_write_end
ci2-upstream-kcsan-gce 2022/05/09 09:11 upstream c5eb0a61238d e60b1103 .config log report info KCSAN: data-race in filemap_read / generic_write_end
ci2-upstream-kcsan-gce 2022/05/08 22:50 upstream 379c72654524 e60b1103 .config log report info KCSAN: data-race in filemap_read / generic_write_end
ci2-upstream-kcsan-gce 2022/05/08 19:25 upstream 379c72654524 e60b1103 .config log report info KCSAN: data-race in filemap_read / generic_write_end
ci2-upstream-kcsan-gce 2022/05/08 17:52 upstream 379c72654524 e60b1103 .config log report info KCSAN: data-race in filemap_read / generic_write_end
ci2-upstream-kcsan-gce 2022/05/08 16:08 upstream 30c8e80f7932 e60b1103 .config log report info KCSAN: data-race in filemap_read / generic_write_end
ci2-upstream-kcsan-gce 2022/05/08 14:47 upstream 30c8e80f7932 e60b1103 .config log report info KCSAN: data-race in filemap_read / generic_write_end
ci2-upstream-kcsan-gce 2022/05/08 12:45 upstream 30c8e80f7932 e60b1103 .config log report info KCSAN: data-race in filemap_read / generic_write_end
ci2-upstream-kcsan-gce 2022/05/08 11:25 upstream 30c8e80f7932 e60b1103 .config log report info KCSAN: data-race in filemap_read / generic_write_end
ci2-upstream-kcsan-gce 2022/05/08 09:38 upstream 30c8e80f7932 e60b1103 .config log report info KCSAN: data-race in filemap_read / generic_write_end
ci2-upstream-kcsan-gce 2022/05/08 08:20 upstream 30c8e80f7932 e60b1103 .config log report info KCSAN: data-race in filemap_read / generic_write_end
ci2-upstream-kcsan-gce 2022/05/08 06:47 upstream 30c8e80f7932 e60b1103 .config log report info KCSAN: data-race in filemap_read / generic_write_end
ci2-upstream-kcsan-gce 2022/05/08 06:11 upstream 30c8e80f7932 e60b1103 .config log report info KCSAN: data-race in filemap_read / generic_write_end
ci2-upstream-kcsan-gce 2022/05/08 04:01 upstream 30c8e80f7932 e60b1103 .config log report info KCSAN: data-race in filemap_read / generic_write_end
ci2-upstream-kcsan-gce 2022/05/08 02:39 upstream 30c8e80f7932 e60b1103 .config log report info KCSAN: data-race in filemap_read / generic_write_end
ci2-upstream-kcsan-gce 2022/05/08 01:24 upstream 30c8e80f7932 e60b1103 .config log report info KCSAN: data-race in filemap_read / generic_write_end
ci2-upstream-kcsan-gce 2022/05/07 23:57 upstream 30c8e80f7932 e60b1103 .config log report info KCSAN: data-race in filemap_read / generic_write_end
ci2-upstream-kcsan-gce 2022/05/07 20:49 upstream 30c8e80f7932 e60b1103 .config log report info KCSAN: data-race in filemap_read / generic_write_end
ci2-upstream-kcsan-gce 2022/05/07 19:48 upstream 30c8e80f7932 e60b1103 .config log report info KCSAN: data-race in filemap_read / generic_write_end
ci2-upstream-kcsan-gce 2022/05/07 17:05 upstream 4b97bac0756a e60b1103 .config log report info KCSAN: data-race in filemap_read / generic_write_end
ci2-upstream-kcsan-gce 2022/05/07 15:33 upstream 4b97bac0756a e60b1103 .config log report info KCSAN: data-race in filemap_read / generic_write_end
ci2-upstream-kcsan-gce 2022/05/07 13:09 upstream 4b97bac0756a e60b1103 .config log report info KCSAN: data-race in filemap_read / generic_write_end
ci2-upstream-kcsan-gce 2022/05/07 11:26 upstream 4b97bac0756a e60b1103 .config log report info KCSAN: data-race in filemap_read / generic_write_end
ci2-upstream-kcsan-gce 2022/05/07 10:14 upstream 4b97bac0756a e60b1103 .config log report info KCSAN: data-race in filemap_read / generic_write_end
ci2-upstream-kcsan-gce 2022/05/07 09:38 upstream 4b97bac0756a e60b1103 .config log report info KCSAN: data-race in filemap_read / generic_write_end
ci2-upstream-kcsan-gce 2022/05/07 05:45 upstream 4b97bac0756a e60b1103 .config log report info KCSAN: data-race in filemap_read / generic_write_end
ci2-upstream-kcsan-gce 2022/05/07 04:42 upstream 4b97bac0756a e60b1103 .config log report info KCSAN: data-race in filemap_read / generic_write_end
ci2-upstream-kcsan-gce 2022/05/07 02:59 upstream 4b97bac0756a e60b1103 .config log report info KCSAN: data-race in filemap_read / generic_write_end
ci2-upstream-kcsan-gce 2022/05/07 01:58 upstream 4b97bac0756a e60b1103 .config log report info KCSAN: data-race in filemap_read / generic_write_end
ci2-upstream-kcsan-gce 2022/05/07 00:57 upstream 4b97bac0756a e60b1103 .config log report info KCSAN: data-race in filemap_read / generic_write_end
ci2-upstream-kcsan-gce 2022/05/06 22:00 upstream 64267926e01b e60b1103 .config log report info KCSAN: data-race in filemap_read / generic_write_end
ci2-upstream-kcsan-gce 2022/01/31 07:57 upstream 26291c54e111 a491ad2d .config log report info KCSAN: data-race in filemap_read / generic_write_end
ci2-upstream-kcsan-gce 2022/01/29 21:14 upstream f8c7e4ede46f 495e00c5 .config log report info KCSAN: data-race in filemap_read / generic_write_end
ci2-upstream-kcsan-gce 2021/11/09 13:53 upstream d2f38a3c6507 59bcaf9a .config log report info KCSAN: data-race in filemap_read / generic_write_end