================================================================== BUG: KCSAN: data-race in blkdev_get_by_dev / blkdev_put write to 0xffff888101b95728 of 4 bytes by task 1899 on cpu 0: blkdev_get_by_dev+0xa58/0xcf0 blkdev_open+0xb3/0x140 block/fops.c:503 do_dentry_open+0x52c/0x860 fs/open.c:824 vfs_open+0x43/0x50 fs/open.c:959 do_open fs/namei.c:3476 [inline] path_openat+0x170c/0x1f30 fs/namei.c:3609 do_filp_open+0x105/0x220 fs/namei.c:3636 do_sys_openat2+0xb5/0x2b0 fs/open.c:1214 do_sys_open fs/open.c:1230 [inline] __do_sys_openat fs/open.c:1246 [inline] __se_sys_openat fs/open.c:1241 [inline] __x64_sys_openat+0xef/0x110 fs/open.c:1241 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 0xffff888101b95728 of 4 bytes by task 1439 on cpu 1: blkdev_put+0x3b/0x4a0 block/bdev.c:899 blkdev_close+0x32/0x40 block/fops.c:517 __fput+0x295/0x520 fs/file_table.c:317 ____fput+0x11/0x20 fs/file_table.c:350 task_work_run+0x8e/0x110 kernel/task_work.c:164 tracehook_notify_resume include/linux/tracehook.h:188 [inline] exit_to_user_mode_loop kernel/entry/common.c:175 [inline] exit_to_user_mode_prepare+0x160/0x190 kernel/entry/common.c:207 __syscall_exit_to_user_mode_work kernel/entry/common.c:289 [inline] syscall_exit_to_user_mode+0x20/0x40 kernel/entry/common.c:300 do_syscall_64+0x50/0xd0 arch/x86/entry/common.c:86 entry_SYSCALL_64_after_hwframe+0x44/0xae value changed: 0x00000003 -> 0x00000004 Reported by Kernel Concurrency Sanitizer on: CPU: 1 PID: 1439 Comm: udevd Not tainted 5.17.0-rc6-syzkaller-00066-g5859a2b19911-dirty #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 ================================================================== Buffer I/O error on dev loop4, logical block 0, async page read loop4: unable to read partition table loop4: partition table beyond EOD, truncated Buffer I/O error on dev loop4, logical block 0, async page read loop4: unable to read partition table loop4: partition table beyond EOD, truncated Buffer I/O error on dev loop4, logical block 0, async page read loop4: unable to read partition table loop4: partition table beyond EOD, truncated