================================================================== BUG: KCSAN: data-race in blkdev_get_by_dev / blkdev_put write to 0xffff88810042d6e8 of 4 bytes by task 1822 on cpu 1: blkdev_get_by_dev+0x88b/0x9e0 blkdev_open+0xac/0x140 block/fops.c:498 do_dentry_open+0x519/0x830 fs/open.c:824 vfs_open+0x43/0x50 fs/open.c:958 do_open fs/namei.c:3476 [inline] path_openat+0x16cf/0x1b30 fs/namei.c:3609 do_filp_open+0x105/0x220 fs/namei.c:3636 do_sys_openat2+0xb5/0x2a0 fs/open.c:1213 do_sys_open fs/open.c:1229 [inline] __do_sys_openat fs/open.c:1245 [inline] __se_sys_openat fs/open.c:1240 [inline] __x64_sys_openat+0xef/0x110 fs/open.c:1240 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+0x44/0xae read to 0xffff88810042d6e8 of 4 bytes by task 1441 on cpu 0: blkdev_put+0x3b/0x440 block/bdev.c:902 blkdev_close+0x32/0x40 block/fops.c:512 __fput+0x292/0x510 fs/file_table.c:317 ____fput+0x11/0x20 fs/file_table.c:350 task_work_run+0x8e/0x110 kernel/task_work.c:164 resume_user_mode_work include/linux/resume_user_mode.h:49 [inline] exit_to_user_mode_loop+0x124/0x130 kernel/entry/common.c:169 exit_to_user_mode_prepare kernel/entry/common.c:201 [inline] __syscall_exit_to_user_mode_work kernel/entry/common.c:283 [inline] syscall_exit_to_user_mode+0x6a/0x90 kernel/entry/common.c:294 do_syscall_64+0x37/0x70 arch/x86/entry/common.c:86 entry_SYSCALL_64_after_hwframe+0x44/0xae value changed: 0x00000001 -> 0x00000002 Reported by Kernel Concurrency Sanitizer on: CPU: 0 PID: 1441 Comm: udevd Not tainted 5.18.0-rc3-syzkaller-00007-g559089e0a93d-dirty #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 ==================================================================