syzbot


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

Status: auto-obsoleted due to no activity on 2023/01/01 01:23
Subsystems: block
[Documentation on labels]
First crash: 536d, last: 536d
Similar bugs (1)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream KCSAN: data-race in blkdev_read_iter / set_capacity_and_notify block 57 607d 848d 0/26 auto-obsoleted due to no activity on 2022/10/16 11:46

Sample crash report:
I/O error, dev loop5, sector 0 op 0x0:(READ) flags 0x80700 phys_seg 1 prio class 2
==================================================================
BUG: KCSAN: data-race in blkdev_read_iter / set_capacity_and_notify

write to 0xffff888100405048 of 8 bytes by task 30331 on cpu 0:
 set_capacity block/genhd.c:64 [inline]
 set_capacity_and_notify+0xab/0x1d0 block/genhd.c:78
 loop_set_size+0x2e/0x70 drivers/block/loop.c:237
 loop_configure+0xb1b/0xc30 drivers/block/loop.c:1100
 lo_ioctl+0x641/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 0xffff888100405048 of 8 bytes by task 1910 on cpu 1:
 bdev_nr_sectors include/linux/blkdev.h:790 [inline]
 bdev_nr_bytes include/linux/blkdev.h:795 [inline]
 blkdev_read_iter+0x40/0x370 block/fops.c:552
 call_read_iter include/linux/fs.h:2185 [inline]
 new_sync_read fs/read_write.c:389 [inline]
 vfs_read+0x3a5/0x560 fs/read_write.c:470
 ksys_read+0xe8/0x1a0 fs/read_write.c:613
 __do_sys_read fs/read_write.c:623 [inline]
 __se_sys_read fs/read_write.c:621 [inline]
 __x64_sys_read+0x3e/0x50 fs/read_write.c:621
 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 -> 0x0000000000000017

Reported by Kernel Concurrency Sanitizer on:
CPU: 1 PID: 1910 Comm: udevd Not tainted 6.1.0-rc6-syzkaller-dirty #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 10/26/2022
==================================================================
blk_print_req_error: 1 callbacks suppressed
I/O error, dev loop5, sector 0 op 0x0:(READ) flags 0x80700 phys_seg 1 prio class 2
I/O error, dev loop5, sector 0 op 0x0:(READ) flags 0x80700 phys_seg 1 prio class 2

Crashes (1):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2022/11/21 18:03 upstream eb7081409f94 5bb70014 .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in blkdev_read_iter / set_capacity_and_notify
* Struck through repros no longer work on HEAD.