syzbot


KCSAN: data-race in filemap_read / simple_write_end

Status: auto-closed as invalid on 2021/08/27 20:52
Subsystems: fs
[Documentation on labels]
Reported-by: syzbot+fb24e9f8609a0c1f26f7@syzkaller.appspotmail.com
First crash: 1351d, last: 1216d
Similar bugs (3)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream KCSAN: data-race in filemap_read / simple_write_end (2) fs 15 1077d 1149d 0/28 auto-closed as invalid on 2022/01/13 14:25
upstream KCSAN: data-race in filemap_read / simple_write_end (4) fs 2 601d 616d 0/28 auto-obsoleted due to no activity on 2023/05/05 08:51
upstream KCSAN: data-race in filemap_read / simple_write_end (3) fs 1 730d 730d 0/28 auto-obsoleted due to no activity on 2023/01/02 10:55

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

write to 0xffff88810041b050 of 8 bytes by task 8236 on cpu 0:
 i_size_write include/linux/fs.h:871 [inline]
 simple_write_end+0x293/0x330 fs/libfs.c:591
 generic_perform_write+0x22a/0x3c0 mm/filemap.c:3667
 __generic_file_write_iter+0x161/0x300 mm/filemap.c:3783
 generic_file_write_iter+0x75/0x130 mm/filemap.c:3815
 call_write_iter include/linux/fs.h:2114 [inline]
 do_iter_readv_writev+0x2cb/0x360 fs/read_write.c:740
 do_iter_write+0x112/0x4c0 fs/read_write.c:866
 vfs_iter_write+0x4c/0x70 fs/read_write.c:907
 iter_file_splice_write+0x40a/0x750 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+0xf5/0x170 fs/splice.c:979
 do_sendfile+0x773/0xda0 fs/read_write.c:1260
 __do_sys_sendfile64 fs/read_write.c:1319 [inline]
 __se_sys_sendfile64 fs/read_write.c:1311 [inline]
 __x64_sys_sendfile64+0xa9/0x130 fs/read_write.c:1311
 do_syscall_x64 arch/x86/entry/common.c:50 [inline]
 do_syscall_64+0x3d/0x90 arch/x86/entry/common.c:80
 entry_SYSCALL_64_after_hwframe+0x44/0xae

read to 0xffff88810041b050 of 8 bytes by task 8243 on cpu 1:
 i_size_read include/linux/fs.h:849 [inline]
 filemap_read+0xd58/0x1220 mm/filemap.c:2562
 generic_file_read_iter+0x75/0x2c0 mm/filemap.c:2701
 call_read_iter include/linux/fs.h:2108 [inline]
 generic_file_splice_read+0x22a/0x310 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+0xf5/0x170 fs/splice.c:979
 do_sendfile+0x773/0xda0 fs/read_write.c:1260
 __do_sys_sendfile64 fs/read_write.c:1319 [inline]
 __se_sys_sendfile64 fs/read_write.c:1311 [inline]
 __x64_sys_sendfile64+0xa9/0x130 fs/read_write.c:1311
 do_syscall_x64 arch/x86/entry/common.c:50 [inline]
 do_syscall_64+0x3d/0x90 arch/x86/entry/common.c:80
 entry_SYSCALL_64_after_hwframe+0x44/0xae

value changed: 0x0000000000006c55 -> 0x0000000000006c5e

Reported by Kernel Concurrency Sanitizer on:
CPU: 1 PID: 8243 Comm: syz-executor.4 Tainted: G        W         5.14.0-rc2-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
==================================================================

Crashes (52):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2021/07/23 20:51 upstream 8baef6386baa bc5f1d88 .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in filemap_read / simple_write_end
2021/07/18 20:02 upstream f0eb870a8422 f115ae98 .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in filemap_read / simple_write_end
2021/07/05 04:42 upstream 3dbdb38e2869 55aa55c2 .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in filemap_read / simple_write_end
2021/07/01 23:13 upstream e058a84bfddc 658ebc66 .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in filemap_read / simple_write_end
2021/06/29 14:17 upstream c54b245d0118 9d2ab5df .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in filemap_read / simple_write_end
2021/06/23 17:33 upstream 7266f2030eb0 aba2b2fb .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in filemap_read / simple_write_end
2021/06/23 15:51 upstream 0c18f29aae7c aba2b2fb .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in filemap_read / simple_write_end
2021/06/20 18:05 upstream 913ec3c22ef4 aba2b2fb .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in filemap_read / simple_write_end
2021/06/16 17:21 upstream 6b00bc639f1f c06f97ad .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in filemap_read / simple_write_end
2021/06/15 18:35 upstream 94f0b2d4a1d0 8022d7e3 .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in filemap_read / simple_write_end
2021/06/15 04:38 upstream 009c9aa5be65 1ba81399 .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in filemap_read / simple_write_end
2021/06/13 02:07 upstream 8ecfa36cd4db 1ba81399 .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in filemap_read / simple_write_end
2021/06/13 02:01 upstream 8ecfa36cd4db 1ba81399 .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in filemap_read / simple_write_end
2021/06/12 12:48 upstream ad347abe4a98 1ba81399 .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in filemap_read / simple_write_end
2021/06/08 18:03 upstream 4c8684fe555e 5c2fe346 .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in filemap_read / simple_write_end
2021/06/06 21:25 upstream decad3e1d1ed 500c2339 .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in filemap_read / simple_write_end
2021/06/05 23:57 upstream f5b6eb1e0182 500c2339 .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in filemap_read / simple_write_end
2021/05/31 19:43 upstream c2131f7e73c9 032639db .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in filemap_read / simple_write_end
2021/05/31 11:01 upstream 8124c8a6b353 032639db .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in filemap_read / simple_write_end
2021/05/31 01:06 upstream 8124c8a6b353 325a8dab .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in filemap_read / simple_write_end
2021/05/30 06:33 upstream b90e90f40b4f 325a8dab .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in filemap_read / simple_write_end
2021/05/29 09:49 upstream 6799d4f2da49 858ea628 .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in filemap_read / simple_write_end
2021/05/28 20:43 upstream 5ff2756afde0 858ea628 .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in filemap_read / simple_write_end
2021/05/26 23:38 upstream 7ac3a1c1ae51 858ea628 .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in filemap_read / simple_write_end
2021/05/26 07:13 upstream ad9f25d33860 93d3a9f6 .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in filemap_read / simple_write_end
2021/05/23 08:43 upstream 4d7620341eda 3c7fef33 .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in filemap_read / simple_write_end
2021/05/22 19:21 upstream 23d729263037 3c7fef33 .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in filemap_read / simple_write_end
2021/05/21 20:56 upstream 79a106fc6585 3c7fef33 .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in filemap_read / simple_write_end
2021/05/20 18:23 upstream f01da525b3de c560a65d .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in filemap_read / simple_write_end
2021/05/20 12:07 upstream c3d0e3fd41b7 c560a65d .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in filemap_read / simple_write_end
2021/05/19 17:37 upstream c3d0e3fd41b7 a343ba6b .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in filemap_read / simple_write_end
2021/05/17 22:20 upstream 8ac91e6c6033 a343ba6b .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in filemap_read / simple_write_end
2021/05/17 09:01 upstream d07f6ca923ea a2eb125d .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in filemap_read / simple_write_end
2021/05/17 04:55 upstream d07f6ca923ea f54a5c09 .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in filemap_read / simple_write_end
2021/05/16 02:23 upstream c12a29ed9094 f54a5c09 .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in filemap_read / simple_write_end
2021/05/15 03:57 upstream bd3c9cdb21a2 8bdd5343 .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in filemap_read / simple_write_end
2021/05/11 14:44 upstream 1140ab592e2e ca873091 .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in filemap_read / simple_write_end
2021/05/05 03:03 upstream d665ea6ea86c 06c27ff5 .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in filemap_read / simple_write_end
2021/05/02 12:48 upstream 17ae69aba89d 77e2b668 .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in filemap_read / simple_write_end
2021/05/02 04:08 upstream 10a3efd0fee5 77e2b668 .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in filemap_read / simple_write_end
2021/04/23 00:12 upstream 90c911ad7445 590921a5 .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in filemap_read / simple_write_end
2021/04/21 00:36 upstream 1fe5501ba1ab c0ced557 .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in filemap_read / simple_write_end
2021/04/20 07:27 upstream 7af08140979a c0ced557 .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in filemap_read / simple_write_end
2021/04/18 05:29 upstream 194cf4825638 7e2b734b .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in filemap_read / simple_write_end
2021/04/14 22:34 upstream 7f75285ca572 fcdb12ba .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in filemap_read / simple_write_end
2021/04/14 12:48 upstream 50987beca096 3134b37f .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in filemap_read / simple_write_end
2021/04/12 10:14 upstream d434405aaab7 6a81331a .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in filemap_read / simple_write_end
2021/04/11 06:12 upstream 52e44129fba5 6a81331a .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in filemap_read / simple_write_end
2021/03/11 08:05 upstream a74e6a014c9d c2ca1f2a .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in filemap_read / simple_write_end
* Struck through repros no longer work on HEAD.