syzbot


KCSAN: data-race in blkdev_ioctl / set_capacity_and_notify

Status: auto-closed as invalid on 2021/08/15 23:16
Subsystems: block
[Documentation on labels]
First crash: 1014d, last: 1012d
Similar bugs (1)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream KCSAN: data-race in blkdev_ioctl / set_capacity_and_notify (2) block 1 976d 976d 0/26 auto-closed as invalid on 2021/09/20 19:03

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

write to 0xffff8881017aa4d8 of 8 bytes by task 28573 on cpu 0:
 i_size_write include/linux/fs.h:871 [inline]
 set_capacity block/genhd.c:41 [inline]
 set_capacity_and_notify+0xaa/0x1c0 block/genhd.c:55
 loop_set_size drivers/block/loop.c:257 [inline]
 loop_configure+0xb58/0xd10 drivers/block/loop.c:1243
 lo_ioctl+0x558/0x1210 drivers/block/loop.c:1781
 blkdev_ioctl+0x1d0/0x3c0 block/ioctl.c:585
 block_ioctl+0x6d/0x80 fs/block_dev.c:1602
 vfs_ioctl fs/ioctl.c:51 [inline]
 __do_sys_ioctl fs/ioctl.c:1069 [inline]
 __se_sys_ioctl+0xcb/0x140 fs/ioctl.c:1055
 __x64_sys_ioctl+0x3f/0x50 fs/ioctl.c:1055
 do_syscall_x64 arch/x86/entry/common.c:50 [inline]
 do_syscall_64+0x3d/0x90 arch/x86/entry/common.c:80
 entry_SYSCALL_64_after_hwframe+0x44/0xae

read to 0xffff8881017aa4d8 of 8 bytes by task 28572 on cpu 1:
 i_size_read include/linux/fs.h:849 [inline]
 blkdev_ioctl+0x147/0x3c0 block/ioctl.c:570
 block_ioctl+0x6d/0x80 fs/block_dev.c:1602
 vfs_ioctl fs/ioctl.c:51 [inline]
 __do_sys_ioctl fs/ioctl.c:1069 [inline]
 __se_sys_ioctl+0xcb/0x140 fs/ioctl.c:1055
 __x64_sys_ioctl+0x3f/0x50 fs/ioctl.c:1055
 do_syscall_x64 arch/x86/entry/common.c:50 [inline]
 do_syscall_64+0x3d/0x90 arch/x86/entry/common.c:80
 entry_SYSCALL_64_after_hwframe+0x44/0xae

value changed: 0x0000000000000000 -> 0x0000000000011800

Reported by Kernel Concurrency Sanitizer on:
CPU: 1 PID: 28572 Comm: systemd-udevd Tainted: G        W         5.13.0-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
==================================================================

Crashes (2):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2021/07/11 23:09 upstream 98f7fdced2e0 8f5a7b8c .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in blkdev_ioctl / set_capacity_and_notify
2021/07/10 13:26 upstream 3dbdb38e2869 8f5a7b8c .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in blkdev_ioctl / set_capacity_and_notify
* Struck through repros no longer work on HEAD.