syzbot


KCSAN: data-race in __delete_from_page_cache / file_write_and_wait_range (2)

Status: auto-closed as invalid on 2021/06/25 01:53
Subsystems: iomap
[Documentation on labels]
Reported-by: syzbot+798ec11280d97ae7b4c0@syzkaller.appspotmail.com
First crash: 1331d, last: 1010d
Similar bugs (3)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream KCSAN: data-race in __delete_from_page_cache / file_write_and_wait_range (3) iomap 1 933d 933d 0/26 auto-closed as invalid on 2021/09/09 20:32
upstream KCSAN: data-race in __delete_from_page_cache / file_write_and_wait_range (4) mm 7 773d 868d 0/26 auto-closed as invalid on 2022/02/16 13:29
upstream KCSAN: data-race in __delete_from_page_cache / file_write_and_wait_range iomap 8 1369d 1463d 0/26 closed as invalid on 2020/06/18 14:24

Sample crash report:
==================================================================
BUG: KCSAN: data-race in __delete_from_page_cache / file_write_and_wait_range

write to 0xffff8881065d5c20 of 8 bytes by task 14441 on cpu 0:
 page_cache_delete mm/filemap.c:145 [inline]
 __delete_from_page_cache+0x1c1/0x260 mm/filemap.c:230
 invalidate_complete_page2 mm/truncate.c:579 [inline]
 invalidate_inode_pages2_range+0x51a/0x780 mm/truncate.c:668
 __iomap_dio_rw+0x69a/0xad0 fs/iomap/direct-io.c:543
 iomap_dio_rw+0x30/0x70 fs/iomap/direct-io.c:649
 ext4_dio_write_iter fs/ext4/file.c:568 [inline]
 ext4_file_write_iter+0xa04/0x11d0 fs/ext4/file.c:678
 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:1325 [inline]
 __se_sys_sendfile64 fs/read_write.c:1311 [inline]
 __x64_sys_sendfile64+0xf2/0x130 fs/read_write.c:1311
 do_syscall_64+0x4a/0x90 arch/x86/entry/common.c:47
 entry_SYSCALL_64_after_hwframe+0x44/0xae

read to 0xffff8881065d5c20 of 8 bytes by task 14451 on cpu 1:
 mapping_needs_writeback mm/filemap.c:621 [inline]
 file_write_and_wait_range+0x48/0x210 mm/filemap.c:791
 ext4_sync_file+0x105/0x670 fs/ext4/fsync.c:151
 vfs_fsync_range+0x107/0x120 fs/sync.c:200
 generic_write_sync include/linux/fs.h:2982 [inline]
 ext4_buffered_write_iter+0x39c/0x3f0 fs/ext4/file.c:277
 ext4_file_write_iter+0x2e7/0x11d0 fs/ext4/file.c:519
 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_64+0x4a/0x90 arch/x86/entry/common.c:47
 entry_SYSCALL_64_after_hwframe+0x44/0xae

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

Crashes (221):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2021/05/21 01:52 upstream ba816d3c265c 3c7fef33 .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in __delete_from_page_cache / file_write_and_wait_range
2021/05/02 12:15 upstream 17ae69aba89d 77e2b668 .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in __delete_from_page_cache / file_write_and_wait_range
2021/04/23 21:05 upstream 18a3c5f7abfd 17f0b706 .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in __delete_from_page_cache / file_write_and_wait_range
2021/04/15 00:18 upstream 7f75285ca572 fcdb12ba .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in __delete_from_page_cache / file_write_and_wait_range
2021/04/14 14:31 upstream 50987beca096 3134b37f .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in __delete_from_page_cache / file_write_and_wait_range
2021/04/13 21:43 upstream eebe426d32e1 a184b83e .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in __delete_from_page_cache / file_write_and_wait_range
2021/04/11 09:09 upstream 52e44129fba5 6a81331a .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in __delete_from_page_cache / file_write_and_wait_range
2021/04/10 15:15 upstream d4961772226d 6a81331a .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in __delete_from_page_cache / file_write_and_wait_range
2021/04/08 10:12 upstream 454859c552da 6a81331a .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in __delete_from_page_cache / file_write_and_wait_range
2021/04/07 20:00 upstream 3a22981230f9 6a81331a .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in __delete_from_page_cache / file_write_and_wait_range
2021/04/06 21:55 upstream 2d743660786e 6a81331a .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in __delete_from_page_cache / file_write_and_wait_range
2021/04/05 21:11 upstream 0a50438c8436 6a81331a .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in __delete_from_page_cache / file_write_and_wait_range
2021/04/04 03:55 upstream 2023a53bdf41 6a81331a .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in __delete_from_page_cache / file_write_and_wait_range
2021/04/02 07:50 upstream 1678e493d530 6a81331a .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in __delete_from_page_cache / file_write_and_wait_range
2021/03/31 21:42 upstream d19cc4bfbff1 6a81331a .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in __delete_from_page_cache / file_write_and_wait_range
2021/03/27 01:09 upstream 0f4498cef9f5 a8529b82 .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in __delete_from_page_cache / file_write_and_wait_range
2021/03/25 22:16 upstream 002322402daf 6a383ecf .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in __delete_from_page_cache / file_write_and_wait_range
2021/03/25 09:40 upstream e138138003eb 6a383ecf .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in __delete_from_page_cache / file_write_and_wait_range
2021/03/24 14:53 upstream 7acac4b3196c 607e3baf .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in __delete_from_page_cache / file_write_and_wait_range
2021/03/23 22:29 upstream 7acac4b3196c e613994b .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in __delete_from_page_cache / file_write_and_wait_range
2021/03/22 20:40 upstream 0d02ec6b3136 8092f30d .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in __delete_from_page_cache / file_write_and_wait_range
2021/03/22 17:02 upstream 0d02ec6b3136 bea32f74 .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in __delete_from_page_cache / file_write_and_wait_range
2021/03/21 15:11 upstream 812da4d39463 4c9a64da .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in __delete_from_page_cache / file_write_and_wait_range
2021/03/20 11:01 upstream 1c273e10bc0c e45f5621 .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in __delete_from_page_cache / file_write_and_wait_range
2021/03/18 10:29 upstream 6417f03132a6 7216542e .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in __delete_from_page_cache / file_write_and_wait_range
2021/03/16 21:46 upstream 1df27313f50a fdb2bb2c .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in __delete_from_page_cache / file_write_and_wait_range
2021/03/16 05:42 upstream 1a4431a5db2b fdb2bb2c .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in __delete_from_page_cache / file_write_and_wait_range
2021/03/14 21:46 upstream 75013c6c52d8 cc1cff8f .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in __delete_from_page_cache / file_write_and_wait_range
2021/03/14 01:16 upstream 88fe49249c99 4a003785 .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in __delete_from_page_cache / file_write_and_wait_range
2021/03/13 03:52 upstream f296bfd5cd04 429d8a6b .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in __delete_from_page_cache / file_write_and_wait_range
2021/03/12 11:25 upstream f78d76e72a46 429d8a6b .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in __delete_from_page_cache / file_write_and_wait_range
2021/03/11 23:08 upstream 28806e4d9b97 429d8a6b .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in __delete_from_page_cache / file_write_and_wait_range
2021/03/11 06:42 upstream a74e6a014c9d c2ca1f2a .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in __delete_from_page_cache / file_write_and_wait_range
2021/03/10 18:03 upstream 05a59d79793d 764067f3 .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in __delete_from_page_cache / file_write_and_wait_range
2021/03/09 17:46 upstream 144c79ef3353 26967e35 .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in __delete_from_page_cache / file_write_and_wait_range
2021/03/06 15:31 upstream a38fd8748464 e4b4d570 .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in __delete_from_page_cache / file_write_and_wait_range
2021/02/24 08:02 upstream c03c21ba6f4e fcc6d71b .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in __delete_from_page_cache / file_write_and_wait_range
2021/02/21 09:18 upstream e767b3530acb 3e5ed8b4 .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in __delete_from_page_cache / file_write_and_wait_range
2021/02/20 11:35 upstream f40ddce88593 3e5ed8b4 .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in __delete_from_page_cache / file_write_and_wait_range
2021/02/19 16:29 upstream f40ddce88593 f689d40a .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in __delete_from_page_cache / file_write_and_wait_range
2021/02/13 11:08 upstream c6d8570e4d64 98682e5e .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in __delete_from_page_cache / file_write_and_wait_range
2021/02/13 00:26 upstream dcc0b49040c7 98682e5e .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in __delete_from_page_cache / file_write_and_wait_range
2021/01/16 21:50 upstream 54c6247d06f1 65a7a854 .config console log report info ci2-upstream-kcsan-gce
2020/09/20 22:19 upstream bdcf11de8f77 9564d2e9 .config console log report info ci2-upstream-kcsan-gce
2020/09/19 23:34 upstream eb5f95f1593f 53ce8104 .config console log report info ci2-upstream-kcsan-gce
2020/07/03 12:30 upstream cdd3bb54332f 6e569755 .config console log report ci2-upstream-kcsan-gce
* Struck through repros no longer work on HEAD.