syzbot


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

Status: auto-obsoleted due to no activity on 2023/04/25 17:21
Subsystems: block
[Documentation on labels]
First crash: 415d, last: 415d
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 (3) block 1 738d 738d 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 1070d 1070d 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 (4) block 2 617d 618d 0/26 auto-closed as invalid on 2022/09/28 03:19
upstream KCSAN: data-race in force_page_cache_ra / set_capacity_and_notify (2) block 3 816d 849d 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 0xffff888102427b20 of 8 bytes by task 30507 on cpu 0:
 i_size_write include/linux/fs.h:888 [inline]
 set_capacity block/genhd.c:63 [inline]
 set_capacity_and_notify+0xa1/0x1d0 block/genhd.c:78
 loop_set_size drivers/block/loop.c:237 [inline]
 loop_set_status+0x397/0x540 drivers/block/loop.c:1303
 lo_ioctl+0x898/0x12f0
 blkdev_ioctl+0x3a0/0x490 block/ioctl.c:615
 vfs_ioctl fs/ioctl.c:51 [inline]
 __do_sys_ioctl fs/ioctl.c:870 [inline]
 __se_sys_ioctl+0xc9/0x140 fs/ioctl.c:856
 __x64_sys_ioctl+0x43/0x50 fs/ioctl.c:856
 do_syscall_x64 arch/x86/entry/common.c:50 [inline]
 do_syscall_64+0x41/0xc0 arch/x86/entry/common.c:80
 entry_SYSCALL_64_after_hwframe+0x63/0xcd

read to 0xffff888102427b20 of 8 bytes by task 30517 on cpu 1:
 i_size_read include/linux/fs.h:866 [inline]
 do_page_cache_ra mm/readahead.c:287 [inline]
 force_page_cache_ra+0x12c/0x1d0 mm/readahead.c:331
 force_page_cache_readahead mm/internal.h:124 [inline]
 generic_fadvise+0x2c4/0x460 mm/fadvise.c:107
 vfs_fadvise mm/fadvise.c:188 [inline]
 ksys_fadvise64_64 mm/fadvise.c:202 [inline]
 __do_sys_fadvise64 mm/fadvise.c:217 [inline]
 __se_sys_fadvise64 mm/fadvise.c:215 [inline]
 __x64_sys_fadvise64+0xc9/0x100 mm/fadvise.c:215
 do_syscall_x64 arch/x86/entry/common.c:50 [inline]
 do_syscall_64+0x41/0xc0 arch/x86/entry/common.c:80
 entry_SYSCALL_64_after_hwframe+0x63/0xcd

value changed: 0x0000000000081800 -> 0x0000000000000000

Reported by Kernel Concurrency Sanitizer on:
CPU: 1 PID: 30517 Comm: syz-executor.3 Not tainted 6.3.0-rc2-syzkaller-00006-gfc89d7fb499b #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 03/02/2023
==================================================================

Crashes (1):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2023/03/14 16:37 upstream fc89d7fb499b 0d5c4377 .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.