==================================================================
BUG: KCSAN: data-race in blkdev_put / blkdev_put
read-write to 0xffff8881004266a8 of 4 bytes by task 10985 on cpu 0:
blkdev_put_whole block/bdev.c:686 [inline]
blkdev_put+0x2c7/0x440 block/bdev.c:947
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
read to 0xffff8881004266a8 of 4 bytes by task 1440 on cpu 1:
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: 0x00000002 -> 0x00000001
Reported by Kernel Concurrency Sanitizer on:
CPU: 1 PID: 1440 Comm: udevd Not tainted 5.18.0-syzkaller-dirty #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
==================================================================
I/O error, dev loop1, sector 0 op 0x0:(READ) flags 0x0 phys_seg 1 prio class 0
Buffer I/O error on dev loop1, logical block 0, async page read
loop1: unable to read partition table
loop1: partition table beyond EOD, truncated
I/O error, dev loop5, sector 0 op 0x0:(READ) flags 0x0 phys_seg 1 prio class 0
Buffer I/O error on dev loop5, logical block 0, async page read
loop5: unable to read partition table
loop5: partition table beyond EOD, truncated
I/O error, dev loop1, sector 0 op 0x0:(READ) flags 0x0 phys_seg 1 prio class 0
Buffer I/O error on dev loop1, logical block 0, async page read
loop1: unable to read partition table
loop1: partition table beyond EOD, truncated
I/O error, dev loop4, sector 0 op 0x0:(READ) flags 0x0 phys_seg 1 prio class 0
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
I/O error, dev loop5, sector 0 op 0x0:(READ) flags 0x0 phys_seg 1 prio class 0
Buffer I/O error on dev loop5, logical block 0, async page read
loop5: unable to read partition table
loop5: partition table beyond EOD, truncated
I/O error, dev loop4, sector 0 op 0x0:(READ) flags 0x0 phys_seg 1 prio class 0
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
loop4: unable to read partition table
loop4: partition table beyond EOD, truncated
loop0: unable to read partition table
loop0: partition table beyond EOD, truncated
loop2: unable to read partition table
loop2: partition table beyond EOD, truncated
loop1: unable to read partition table
loop1: partition table beyond EOD, truncated
loop2: unable to read partition table
loop2: partition table beyond EOD, truncated
loop5: unable to read partition table
loop5: partition table beyond EOD, truncated
loop4: unable to read partition table
loop4: partition table beyond EOD, truncated
loop2: unable to read partition table
loop2: partition table beyond EOD, truncated
loop0: unable to read partition table
loop0: partition table beyond EOD, truncated
loop1: unable to read partition table
loop1: partition table beyond EOD, truncated
loop4: unable to read partition table
loop4: partition table beyond EOD, truncated
loop5: unable to read partition table
loop5: partition table beyond EOD, truncated
loop0: unable to read partition table
loop0: partition table beyond EOD, truncated
loop0: unable to read partition table
loop0: partition table beyond EOD, truncated
loop2: unable to read partition table
loop2: partition table beyond EOD, truncated
loop2: unable to read partition table
loop2: partition table beyond EOD, truncated
loop4: unable to read partition table
loop4: partition table beyond EOD, truncated
loop5: unable to read partition table
loop5: partition table beyond EOD, truncated
loop4: unable to read partition table
loop4: partition table beyond EOD, truncated
loop2: unable to read partition table
loop2: partition table beyond EOD, truncated
loop1: unable to read partition table
loop1: partition table beyond EOD, truncated
loop5: unable to read partition table
loop5: partition table beyond EOD, truncated
loop2: unable to read partition table
loop2: partition table beyond EOD, truncated
blk_print_req_error: 23 callbacks suppressed
I/O error, dev loop4, sector 0 op 0x0:(READ) flags 0x0 phys_seg 1 prio class 0
loop4: unable to read partition table
loop4: partition table beyond EOD, truncated
I/O error, dev loop0, sector 0 op 0x0:(READ) flags 0x0 phys_seg 1 prio class 0
buffer_io_error: 24 callbacks suppressed
Buffer I/O error on dev loop0, logical block 0, async page read
loop0: unable to read partition table
loop0: partition table beyond EOD, truncated
I/O error, dev loop4, sector 0 op 0x0:(READ) flags 0x0 phys_seg 1 prio class 0
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
I/O error, dev loop0, sector 0 op 0x0:(READ) flags 0x0 phys_seg 1 prio class 0
Buffer I/O error on dev loop0, logical block 0, async page read
loop0: unable to read partition table
loop0: partition table beyond EOD, truncated
I/O error, dev loop1, sector 0 op 0x0:(READ) flags 0x0 phys_seg 1 prio class 0
Buffer I/O error on dev loop1, logical block 0, async page read
loop1: unable to read partition table
loop1: partition table beyond EOD, truncated
I/O error, dev loop2, sector 0 op 0x0:(READ) flags 0x0 phys_seg 1 prio class 0
Buffer I/O error on dev loop2, logical block 0, async page read
loop2: unable to read partition table
loop2: partition table beyond EOD, truncated
I/O error, dev loop1, sector 0 op 0x0:(READ) flags 0x0 phys_seg 1 prio class 0
Buffer I/O error on dev loop1, logical block 0, async page read
loop1: unable to read partition table
loop1: partition table beyond EOD, truncated
I/O error, dev loop4, sector 0 op 0x0:(READ) flags 0x0 phys_seg 1 prio class 0
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
I/O error, dev loop0, sector 0 op 0x0:(READ) flags 0x0 phys_seg 1 prio class 0
Buffer I/O error on dev loop0, logical block 0, async page read
loop0: unable to read partition table
loop0: partition table beyond EOD, truncated
I/O error, dev loop0, sector 0 op 0x0:(READ) flags 0x0 phys_seg 1 prio class 0
Buffer I/O error on dev loop0, logical block 0, async page read
loop0: unable to read partition table
loop0: partition table beyond EOD, truncated
Buffer I/O error on dev loop0, logical block 0, async page read
loop0: unable to read partition table
loop0: partition table beyond EOD, truncated
loop4: unable to read partition table
loop4: partition table beyond EOD, truncated
loop1: unable to read partition table
loop1: partition table beyond EOD, truncated
loop0: unable to read partition table
loop0: partition table beyond EOD, truncated
loop1: unable to read partition table
loop1: partition table beyond EOD, truncated
loop4: unable to read partition table
loop4: partition table beyond EOD, truncated
loop2: unable to read partition table
loop2: partition table beyond EOD, truncated
loop5: unable to read partition table
loop5: partition table beyond EOD, truncated
loop4: unable to read partition table
loop4: partition table beyond EOD, truncated
loop1: unable to read partition table
loop1: partition table beyond EOD, truncated
loop0: unable to read partition table
loop0: partition table beyond EOD, truncated
loop2: unable to read partition table
loop2: partition table beyond EOD, truncated
loop5: unable to read partition table
loop5: partition table beyond EOD, truncated
loop5: unable to read partition table
loop5: partition table beyond EOD, truncated
loop4: unable to read partition table
loop4: partition table beyond EOD, truncated
loop2: unable to read partition table
loop2: partition table beyond EOD, truncated
loop4: unable to read partition table
loop4: partition table beyond EOD, truncated
loop1: unable to read partition table
loop1: partition table beyond EOD, truncated
loop5: unable to read partition table
loop5: partition table beyond EOD, truncated
loop2: unable to read partition table
loop2: partition table beyond EOD, truncated
loop2: unable to read partition table
loop2: partition table beyond EOD, truncated
loop5: unable to read partition table
loop5: partition table beyond EOD, truncated
loop0: unable to read partition table
loop0: partition table beyond EOD, truncated
loop0: unable to read partition table
loop0: partition table beyond EOD, truncated
loop1: unable to read partition table
loop1: partition table beyond EOD, truncated
loop4: unable to read partition table
loop4: partition table beyond EOD, truncated
loop1: unable to read partition table
loop1: partition table beyond EOD, truncated
loop5: unable to read partition table
loop5: partition table beyond EOD, truncated
loop5: unable to read partition table
loop5: partition table beyond EOD, truncated
loop0: unable to read partition table
loop0: partition table beyond EOD, truncated
blk_print_req_error: 30 callbacks suppressed
I/O error, dev loop2, sector 0 op 0x0:(READ) flags 0x0 phys_seg 1 prio class 0
buffer_io_error: 29 callbacks suppressed
Buffer I/O error on dev loop2, logical block 0, async page read
loop2: unable to read partition table
loop2: partition table beyond EOD, truncated
I/O error, dev loop4, sector 0 op 0x0:(READ) flags 0x0 phys_seg 1 prio class 0
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
I/O error, dev loop2, sector 0 op 0x0:(READ) flags 0x0 phys_seg 1 prio class 0
Buffer I/O error on dev loop2, logical block 0, async page read
loop2: unable to read partition table
loop2: partition table beyond EOD, truncated
I/O error, dev loop5, sector 0 op 0x0:(READ) flags 0x0 phys_seg 1 prio class 0
Buffer I/O error on dev loop5, logical block 0, async page read
loop5: unable to read partition table
loop5: partition table beyond EOD, truncated
I/O error, dev loop2, sector 0 op 0x0:(READ) flags 0x0 phys_seg 1 prio class 0
Buffer I/O error on dev loop2, logical block 0, async page read
loop2: unable to read partition table
loop2: partition table beyond EOD, truncated
I/O error, dev loop0, sector 0 op 0x0:(READ) flags 0x0 phys_seg 1 prio class 0
Buffer I/O error on dev loop0, logical block 0, async page read
loop0: unable to read partition table
loop0: partition table beyond EOD, truncated
I/O error, dev loop4, sector 0 op 0x0:(READ) flags 0x0 phys_seg 1 prio class 0
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
I/O error, dev loop0, sector 0 op 0x0:(READ) flags 0x0 phys_seg 1 prio class 0
Buffer I/O error on dev loop0, logical block 0, async page read
loop0: unable to read partition table
loop0: partition table beyond EOD, truncated
I/O error, dev loop2, sector 0 op 0x0:(READ) flags 0x0 phys_seg 1 prio class 0
Buffer I/O error on dev loop2, logical block 0, async page read
loop2: unable to read partition table
loop2: partition table beyond EOD, truncated