syzbot


KCSAN: data-race in filemap_read / simple_write_end (2)

Status: auto-closed as invalid on 2022/01/13 14:25
Reported-by: syzbot+@syzkaller.appspotmail.com
First crash: 425d, last: 354d
similar bugs (1):
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream KCSAN: data-race in filemap_read / simple_write_end 52 492d 509d 0/24 auto-closed as invalid on 2021/08/27 20:52

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

write to 0xffff8881321583e8 of 8 bytes by task 5280 on cpu 1:
 i_size_write include/linux/fs.h:913 [inline]
 simple_write_end+0x238/0x2d0 fs/libfs.c:618
 generic_perform_write+0x261/0x400 mm/filemap.c:3767
 __generic_file_write_iter+0xf7/0x2b0 mm/filemap.c:3883
 generic_file_write_iter+0x75/0x130 mm/filemap.c:3915
 call_write_iter include/linux/fs.h:2162 [inline]
 do_iter_readv_writev+0x2de/0x380 fs/read_write.c:725
 do_iter_write+0x192/0x5c0 fs/read_write.c:851
 vfs_iter_write+0x4c/0x70 fs/read_write.c:892
 iter_file_splice_write+0x43a/0x790 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/0x650 fs/splice.c:891
 do_splice_direct+0x106/0x190 fs/splice.c:979
 do_sendfile+0x675/0xc40 fs/read_write.c:1245
 __do_sys_sendfile64 fs/read_write.c:1310 [inline]
 __se_sys_sendfile64 fs/read_write.c:1296 [inline]
 __x64_sys_sendfile64+0x102/0x140 fs/read_write.c:1296
 do_syscall_x64 arch/x86/entry/common.c:50 [inline]
 do_syscall_64+0x44/0xd0 arch/x86/entry/common.c:80
 entry_SYSCALL_64_after_hwframe+0x44/0xae

read to 0xffff8881321583e8 of 8 bytes by task 5275 on cpu 0:
 i_size_read include/linux/fs.h:891 [inline]
 filemap_read+0x1208/0x16d0 mm/filemap.c:2654
 generic_file_read_iter+0x72/0x2a0 mm/filemap.c:2792
 call_read_iter include/linux/fs.h:2156 [inline]
 generic_file_splice_read+0x24f/0x330 fs/splice.c:311
 do_splice_to fs/splice.c:796 [inline]
 splice_direct_to_actor+0x2aa/0x650 fs/splice.c:870
 do_splice_direct+0x106/0x190 fs/splice.c:979
 do_sendfile+0x675/0xc40 fs/read_write.c:1245
 __do_sys_sendfile64 fs/read_write.c:1310 [inline]
 __se_sys_sendfile64 fs/read_write.c:1296 [inline]
 __x64_sys_sendfile64+0x102/0x140 fs/read_write.c:1296
 do_syscall_x64 arch/x86/entry/common.c:50 [inline]
 do_syscall_64+0x44/0xd0 arch/x86/entry/common.c:80
 entry_SYSCALL_64_after_hwframe+0x44/0xae

value changed: 0x0000000001341800 -> 0x0000000001343000

Reported by Kernel Concurrency Sanitizer on:
CPU: 0 PID: 5275 Comm: syz-executor.0 Not tainted 5.16.0-rc4-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
==================================================================

Crashes (15):
Manager Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Title
ci2-upstream-kcsan-gce 2021/12/09 14:23 upstream 2a987e65025e b54aa474 .config log report info KCSAN: data-race in filemap_read / simple_write_end
ci2-upstream-kcsan-gce 2021/12/08 09:58 upstream 2a987e65025e a4a2a501 .config log report info KCSAN: data-race in filemap_read / simple_write_end
ci2-upstream-kcsan-gce 2021/12/08 01:22 upstream 2a987e65025e 0230ba3e .config log report info KCSAN: data-race in filemap_read / simple_write_end
ci2-upstream-kcsan-gce 2021/12/07 16:46 upstream cd8c917a56f2 0230ba3e .config log report info KCSAN: data-race in filemap_read / simple_write_end
ci2-upstream-kcsan-gce 2021/11/16 09:07 upstream 8ab774587903 75b04091 .config log report info KCSAN: data-race in filemap_read / simple_write_end
ci2-upstream-kcsan-gce 2021/11/11 10:10 upstream debe436e77c7 75b04091 .config log report info KCSAN: data-race in filemap_read / simple_write_end
ci2-upstream-kcsan-gce 2021/11/07 04:42 upstream 512b7931ad05 4c1be0be .config log report info KCSAN: data-race in filemap_read / simple_write_end
ci2-upstream-kcsan-gce 2021/11/03 05:48 upstream bfc484fe6abb 17f3edd2 .config log report info KCSAN: data-race in filemap_read / simple_write_end
ci2-upstream-kcsan-gce 2021/10/10 15:58 upstream 7fd2bf83d59a 838e7e2c .config log report info KCSAN: data-race in filemap_read / simple_write_end
ci2-upstream-kcsan-gce 2021/10/05 18:15 upstream f6274b06e326 8a6b1a8d .config log report info KCSAN: data-race in filemap_read / simple_write_end
ci2-upstream-kcsan-gce 2021/10/05 11:26 upstream f6274b06e326 ce697b49 .config log report info KCSAN: data-race in filemap_read / simple_write_end
ci2-upstream-kcsan-gce 2021/10/01 18:26 upstream 24f67d82c43c cc80db95 .config log report info KCSAN: data-race in filemap_read / simple_write_end
ci2-upstream-kcsan-gce 2021/10/01 04:53 upstream 4de593fb965f 1d849ab4 .config log report info KCSAN: data-race in filemap_read / simple_write_end
ci2-upstream-kcsan-gce 2021/09/30 12:53 upstream 02d5e016800d 0f01403d .config log report info KCSAN: data-race in filemap_read / simple_write_end
ci2-upstream-kcsan-gce 2021/09/29 05:55 upstream a4e6f95a891a d82cb927 .config log report info KCSAN: data-race in filemap_read / simple_write_end
* Struck through repros no longer work on HEAD.