syzbot


KCSAN: data-race in force_page_cache_ra / set_capacity_and_notify (4)

Status: auto-closed as invalid on 2022/09/28 03:19
Subsystems: block
[Documentation on labels]
First crash: 605d, last: 604d
Similar bugs (4)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream KCSAN: data-race in force_page_cache_ra / set_capacity_and_notify (5) block 1 402d 402d 0/26 auto-obsoleted due to no activity on 2023/04/25 17:21
upstream KCSAN: data-race in force_page_cache_ra / set_capacity_and_notify (3) block 1 725d 725d 0/26 auto-closed as invalid on 2022/05/30 07:23
upstream KCSAN: data-race in force_page_cache_ra / set_capacity_and_notify block 1 1058d 1058d 0/26 auto-closed as invalid on 2021/07/01 20:49
upstream KCSAN: data-race in force_page_cache_ra / set_capacity_and_notify (2) block 3 803d 837d 0/26 auto-closed as invalid on 2022/03/13 05:54

Sample crash report:
==================================================================
BUG: KCSAN: data-race in force_page_cache_ra / set_capacity_and_notify

write to 0xffff8881023a1a60 of 8 bytes by task 2768 on cpu 0:
 i_size_write include/linux/fs.h:886 [inline]
 set_capacity block/genhd.c:63 [inline]
 set_capacity_and_notify+0x9d/0x1d0 block/genhd.c:78
 loop_set_size drivers/block/loop.c:237 [inline]
 loop_set_status+0x33f/0x4f0 drivers/block/loop.c:1298
 lo_ioctl+0x83e/0x1290
 blkdev_ioctl+0x20e/0x440 block/ioctl.c:614
 vfs_ioctl fs/ioctl.c:51 [inline]
 __do_sys_ioctl fs/ioctl.c:870 [inline]
 __se_sys_ioctl+0xcb/0x140 fs/ioctl.c:856
 __x64_sys_ioctl+0x3f/0x50 fs/ioctl.c:856
 do_syscall_x64 arch/x86/entry/common.c:50 [inline]
 do_syscall_64+0x2b/0x70 arch/x86/entry/common.c:80
 entry_SYSCALL_64_after_hwframe+0x63/0xcd

read to 0xffff8881023a1a60 of 8 bytes by task 2746 on cpu 1:
 i_size_read include/linux/fs.h:864 [inline]
 do_page_cache_ra mm/readahead.c:280 [inline]
 force_page_cache_ra+0x150/0x200 mm/readahead.c:324
 force_page_cache_readahead mm/internal.h:104 [inline]
 generic_fadvise+0x2c8/0x3f0 mm/fadvise.c:107
 vfs_fadvise mm/fadvise.c:185 [inline]
 ksys_fadvise64_64 mm/fadvise.c:199 [inline]
 __do_sys_fadvise64 mm/fadvise.c:214 [inline]
 __se_sys_fadvise64 mm/fadvise.c:212 [inline]
 __x64_sys_fadvise64+0xc5/0x100 mm/fadvise.c:212
 do_syscall_x64 arch/x86/entry/common.c:50 [inline]
 do_syscall_64+0x2b/0x70 arch/x86/entry/common.c:80
 entry_SYSCALL_64_after_hwframe+0x63/0xcd

value changed: 0x0000000000000000 -> 0x000000003d507400

Reported by Kernel Concurrency Sanitizer on:
CPU: 1 PID: 2746 Comm: syz-executor.3 Not tainted 6.0.0-rc2-syzkaller-00044-gdf0219d11b6f-dirty #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 07/22/2022
==================================================================

Crashes (2):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2022/08/24 03:18 upstream df0219d11b6f cea8b0f7 .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in force_page_cache_ra / set_capacity_and_notify
2022/08/23 06:31 upstream 072e51356cd5 26a13b38 .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in force_page_cache_ra / set_capacity_and_notify
* Struck through repros no longer work on HEAD.