syzbot


KCSAN: data-race in delete_from_page_cache_batch / filemap_write_and_wait_range

Status: auto-closed as invalid on 2021/05/17 11:06
Subsystems: ext4
[Documentation on labels]
First crash: 1135d, last: 1135d

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

write to 0xffff8880129b97f8 of 8 bytes by task 26481 on cpu 0:
 page_cache_delete_batch mm/filemap.c:342 [inline]
 delete_from_page_cache_batch+0x597/0x820 mm/filemap.c:360
 truncate_inode_pages_range+0x1d4/0xd60 mm/truncate.c:330
 truncate_inode_pages mm/truncate.c:428 [inline]
 truncate_pagecache+0x4f/0x70 mm/truncate.c:754
 ext4_setattr+0xae7/0xf60 fs/ext4/inode.c:5500
 notify_change+0x88f/0xa80 fs/attr.c:398
 do_truncate+0xe8/0x130 fs/open.c:64
 handle_truncate fs/namei.c:3018 [inline]
 do_open fs/namei.c:3369 [inline]
 path_openat+0x1b78/0x21b0 fs/namei.c:3498
 do_filp_open+0xbd/0x1d0 fs/namei.c:3525
 do_sys_openat2+0xa3/0x250 fs/open.c:1187
 do_sys_open fs/open.c:1203 [inline]
 __do_sys_creat fs/open.c:1277 [inline]
 __se_sys_creat fs/open.c:1271 [inline]
 __x64_sys_creat+0x62/0x80 fs/open.c:1271
 do_syscall_64+0x39/0x80 arch/x86/entry/common.c:46
 entry_SYSCALL_64_after_hwframe+0x44/0xae

read to 0xffff8880129b97f8 of 8 bytes by task 26487 on cpu 1:
 mapping_needs_writeback mm/filemap.c:632 [inline]
 filemap_write_and_wait_range+0x65/0x2a0 mm/filemap.c:656
 ext4_dio_write_iter fs/ext4/file.c:583 [inline]
 ext4_file_write_iter+0xfc2/0x10b0 fs/ext4/file.c:661
 call_write_iter include/linux/fs.h:1977 [inline]
 aio_write+0x2b9/0x3a0 fs/aio.c:1581
 __io_submit_one fs/aio.c:1840 [inline]
 io_submit_one+0x814/0x1280 fs/aio.c:1883
 __do_sys_io_submit fs/aio.c:1942 [inline]
 __se_sys_io_submit+0xf5/0x270 fs/aio.c:1912
 __x64_sys_io_submit+0x3f/0x50 fs/aio.c:1912
 do_syscall_64+0x39/0x80 arch/x86/entry/common.c:46
 entry_SYSCALL_64_after_hwframe+0x44/0xae

Reported by Kernel Concurrency Sanitizer on:
CPU: 1 PID: 26487 Comm: syz-executor.1 Not tainted 5.12.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/03/30 10:49 upstream 1e43c377a79f 6a81331a .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in delete_from_page_cache_batch / filemap_write_and_wait_range
* Struck through repros no longer work on HEAD.