syzbot


KCSAN: data-race in __add_to_page_cache_locked / generic_file_direct_write

Status: auto-closed as invalid on 2020/09/08 11:28
Subsystems: fs mm
[Documentation on labels]
First crash: 1353d, last: 1353d
Similar bugs (2)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream KCSAN: data-race in __add_to_page_cache_locked / generic_file_direct_write (3) fs mm 3 950d 980d 0/26 auto-closed as invalid on 2021/10/16 20:07
upstream KCSAN: data-race in __add_to_page_cache_locked / generic_file_direct_write (2) fs 4 1310d 1315d 0/26 auto-closed as invalid on 2020/10/21 16:12

Sample crash report:
==================================================================
BUG: KCSAN: data-race in __add_to_page_cache_locked / generic_file_direct_write

write to 0xffff8881128be2a0 of 8 bytes by task 15141 on cpu 1:
 __add_to_page_cache_locked+0x2cc/0x6e0 mm/filemap.c:867
 add_to_page_cache_lru+0xa0/0x1b0 mm/filemap.c:918
 page_cache_readahead_unbounded+0x234/0x440 mm/readahead.c:228
 ondemand_readahead+0x4e4/0x6e0 mm/readahead.c:273
 page_cache_sync_readahead+0x178/0x1a0 mm/readahead.c:585
 generic_file_buffered_read+0x2db/0x1cf0 mm/filemap.c:2092
 generic_file_read_iter+0x7d/0x3e0 mm/filemap.c:2396
 call_read_iter include/linux/fs.h:1862 [inline]
 generic_file_splice_read+0x22b/0x310 fs/splice.c:312
 do_splice_to fs/splice.c:870 [inline]
 splice_direct_to_actor+0x2a8/0x660 fs/splice.c:950
 do_splice_direct+0xf2/0x170 fs/splice.c:1059
 do_sendfile+0x562/0xb10 fs/read_write.c:1540
 __do_sys_sendfile64 fs/read_write.c:1601 [inline]
 __se_sys_sendfile64 fs/read_write.c:1587 [inline]
 __x64_sys_sendfile64+0xf2/0x130 fs/read_write.c:1587
 do_syscall_64+0x51/0xb0 arch/x86/entry/common.c:384
 entry_SYSCALL_64_after_hwframe+0x44/0xa9

read to 0xffff8881128be2a0 of 8 bytes by task 15159 on cpu 0:
 generic_file_direct_write+0x27a/0x3e0 mm/filemap.c:3306
 __generic_file_write_iter+0x19c/0x330 mm/filemap.c:3474
 generic_file_write_iter+0x2f3/0x3e0 mm/filemap.c:3549
 call_write_iter include/linux/fs.h:1868 [inline]
 do_iter_readv_writev+0x32e/0x3d0 fs/read_write.c:713
 do_iter_write+0x10e/0x470 fs/read_write.c:1018
 vfs_iter_write+0x4c/0x70 fs/read_write.c:1059
 iter_file_splice_write+0x41a/0x770 fs/splice.c:750
 do_splice_from fs/splice.c:846 [inline]
 direct_splice_actor+0x95/0x160 fs/splice.c:1016
 splice_direct_to_actor+0x365/0x660 fs/splice.c:971
 do_splice_direct+0xf2/0x170 fs/splice.c:1059
 do_sendfile+0x562/0xb10 fs/read_write.c:1540
 __do_sys_sendfile64 fs/read_write.c:1601 [inline]
 __se_sys_sendfile64 fs/read_write.c:1587 [inline]
 __x64_sys_sendfile64+0xf2/0x130 fs/read_write.c:1587
 do_syscall_64+0x51/0xb0 arch/x86/entry/common.c:384
 entry_SYSCALL_64_after_hwframe+0x44/0xa9

Reported by Kernel Concurrency Sanitizer on:
CPU: 0 PID: 15159 Comm: syz-executor.2 Not tainted 5.8.0-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
2020/08/04 11:27 upstream c0842fbc1b18 80a06902 .config console log report ci2-upstream-kcsan-gce
* Struck through repros no longer work on HEAD.