syzbot


KCSAN: data-race in __delete_from_page_cache / filemap_write_and_wait_range (7)

Status: auto-closed as invalid on 2021/11/19 18:15
Subsystems: mm
[Documentation on labels]
First crash: 916d, last: 916d
Similar bugs (6)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream KCSAN: data-race in __delete_from_page_cache / filemap_write_and_wait_range (2) fs 1 1439d 1439d 0/26 auto-closed as invalid on 2020/06/18 13:13
upstream KCSAN: data-race in __delete_from_page_cache / filemap_write_and_wait_range (3) mm 3 1310d 1359d 0/26 auto-closed as invalid on 2020/10/21 02:12
upstream KCSAN: data-race in __delete_from_page_cache / filemap_write_and_wait_range (6) iomap 1 1041d 1041d 0/26 auto-closed as invalid on 2021/07/17 19:01
upstream KCSAN: data-race in __delete_from_page_cache / filemap_write_and_wait_range (4) iomap 1 1156d 1156d 0/26 auto-closed as invalid on 2021/03/24 09:14
upstream KCSAN: data-race in __delete_from_page_cache / filemap_write_and_wait_range ext4 1 1636d 1636d 0/26 closed as invalid on 2019/11/19 13:44
upstream KCSAN: data-race in __delete_from_page_cache / filemap_write_and_wait_range (5) mm 1 1076d 1076d 0/26 auto-closed as invalid on 2021/06/12 11:45

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

write to 0xffff8881004055a8 of 8 bytes by task 380 on cpu 1:
 page_cache_delete mm/filemap.c:147 [inline]
 __delete_from_page_cache+0x1de/0x280 mm/filemap.c:232
 __remove_mapping+0x35b/0x470 mm/vmscan.c:1174
 remove_mapping+0x22/0x60 mm/vmscan.c:1196
 invalidate_complete_page mm/truncate.c:206 [inline]
 invalidate_inode_page+0x15d/0x190 mm/truncate.c:255
 __invalidate_mapping_pages+0x110/0x340 mm/truncate.c:494
 invalidate_mapping_pages+0x23/0x30 mm/truncate.c:533
 invalidate_bdev+0x67/0x80 block/bdev.c:88
 bdev_disk_changed+0xf6/0xe60 block/partitions/core.c:676
 blkdev_get_whole block/bdev.c:681 [inline]
 blkdev_get_by_dev+0x6aa/0xca0 block/bdev.c:823
 blkdev_reread_part block/ioctl.c:103 [inline]
 blkdev_common_ioctl+0x10a1/0x1110 block/ioctl.c:513
 blkdev_ioctl+0x16e/0x3f0 block/ioctl.c:583
 block_ioctl+0x6e/0x80 block/fops.c:478
 vfs_ioctl fs/ioctl.c:51 [inline]
 __do_sys_ioctl fs/ioctl.c:874 [inline]
 __se_sys_ioctl+0xcb/0x140 fs/ioctl.c:860
 __x64_sys_ioctl+0x3f/0x50 fs/ioctl.c:860
 do_syscall_x64 arch/x86/entry/common.c:50 [inline]
 do_syscall_64+0x44/0xa0 arch/x86/entry/common.c:80
 entry_SYSCALL_64_after_hwframe+0x44/0xae

read to 0xffff8881004055a8 of 8 bytes by task 31048 on cpu 0:
 mapping_needs_writeback mm/filemap.c:639 [inline]
 filemap_write_and_wait_range+0x36/0x3c0 mm/filemap.c:703
 generic_file_direct_write+0xb4/0x410 mm/filemap.c:3648
 __generic_file_write_iter+0x1bc/0x310 mm/filemap.c:3854
 blkdev_write_iter+0x1fd/0x2c0 block/fops.c:519
 call_write_iter include/linux/fs.h:2163 [inline]
 do_iter_readv_writev+0x2de/0x380 fs/read_write.c:729
 do_iter_write+0x192/0x5c0 fs/read_write.c:855
 vfs_iter_write+0x4c/0x70 fs/read_write.c:896
 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+0x63e/0xbb0 fs/read_write.c:1249
 __do_sys_sendfile64 fs/read_write.c:1314 [inline]
 __se_sys_sendfile64 fs/read_write.c:1300 [inline]
 __x64_sys_sendfile64+0x102/0x140 fs/read_write.c:1300
 do_syscall_x64 arch/x86/entry/common.c:50 [inline]
 do_syscall_64+0x44/0xa0 arch/x86/entry/common.c:80
 entry_SYSCALL_64_after_hwframe+0x44/0xae

value changed: 0x0000000000000e6e -> 0x0000000000000e6b

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

Crashes (1):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2021/10/15 18:11 upstream 8fe31e0995f0 0c5d9412 .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in __delete_from_page_cache / filemap_write_and_wait_range
* Struck through repros no longer work on HEAD.