syzbot


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

Status: auto-closed as invalid on 2022/03/13 05:54
Subsystems: block
[Documentation on labels]
First crash: 1121d, last: 1087d
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 686d 686d 0/28 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 1009d 1009d 0/28 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 1342d 1342d 0/28 auto-closed as invalid on 2021/07/01 20:49
upstream KCSAN: data-race in force_page_cache_ra / set_capacity_and_notify (4) block 2 888d 889d 0/28 auto-closed as invalid on 2022/09/28 03:19

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

write to 0xffff888100405418 of 8 bytes by task 3511 on cpu 0:
 i_size_write include/linux/fs.h:907 [inline]
 set_capacity block/genhd.c:62 [inline]
 set_capacity_and_notify+0x9d/0x1d0 block/genhd.c:77
 loop_set_size drivers/block/loop.c:231 [inline]
 loop_configure+0xd53/0xf50 drivers/block/loop.c:1054
 lo_ioctl+0x633/0x1280
 blkdev_ioctl+0x20e/0x440 block/ioctl.c:588
 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/0xd0 arch/x86/entry/common.c:80
 entry_SYSCALL_64_after_hwframe+0x44/0xae

read to 0xffff888100405418 of 8 bytes by task 3449 on cpu 1:
 i_size_read include/linux/fs.h:885 [inline]
 do_page_cache_ra mm/readahead.c:255 [inline]
 force_page_cache_ra+0x170/0x220 mm/readahead.c:300
 force_page_cache_readahead mm/internal.h:92 [inline]
 generic_fadvise+0x2e0/0x430 mm/fadvise.c:107
 vfs_fadvise mm/fadvise.c:186 [inline]
 ksys_fadvise64_64 mm/fadvise.c:200 [inline]
 __do_sys_fadvise64 mm/fadvise.c:215 [inline]
 __se_sys_fadvise64 mm/fadvise.c:213 [inline]
 __x64_sys_fadvise64+0xc5/0x100 mm/fadvise.c:213
 do_syscall_x64 arch/x86/entry/common.c:50 [inline]
 do_syscall_64+0x44/0xd0 arch/x86/entry/common.c:80
 entry_SYSCALL_64_after_hwframe+0x44/0xae

value changed: 0x0000000000000000 -> 0x0000000000018400

Reported by Kernel Concurrency Sanitizer on:
CPU: 1 PID: 3449 Comm: syz-executor.4 Not tainted 5.17.0-rc2-syzkaller-00353-g90c9e950c0de-dirty #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
==================================================================

Crashes (3):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2022/02/06 05:54 upstream 90c9e950c0de a7dab638 .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in force_page_cache_ra / set_capacity_and_notify
2022/01/16 02:10 upstream a33f5c380c4b 723cfaf0 .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in force_page_cache_ra / set_capacity_and_notify
2022/01/03 19:05 upstream c9e6606c7fe9 4a3f34f2 .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.