loop2: p3 start 225 is beyond EOD, truncated loop2: p4 size 3657465856 extends beyond EOD, truncated ================================================================== BUG: KCSAN: data-race in blkdev_get_whole / blkdev_put write to 0xffff88810042c0a0 of 4 bytes by task 9787 on cpu 0: blkdev_get_whole+0x308/0x350 fs/block_dev.c:1270 blkdev_get_by_dev+0x2ad/0x8d0 fs/block_dev.c:1417 blkdev_open+0xb3/0x130 fs/block_dev.c:1512 do_dentry_open+0x529/0x850 fs/open.c:826 vfs_open+0x43/0x50 fs/open.c:949 do_open fs/namei.c:3374 [inline] path_openat+0x1787/0x1f20 fs/namei.c:3507 do_filp_open+0xe9/0x200 fs/namei.c:3534 do_sys_openat2+0xa3/0x250 fs/open.c:1204 do_sys_open fs/open.c:1220 [inline] __do_sys_openat fs/open.c:1236 [inline] __se_sys_openat fs/open.c:1231 [inline] __x64_sys_openat+0xef/0x110 fs/open.c:1231 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 0xffff88810042c0a0 of 4 bytes by task 1040 on cpu 1: blkdev_put+0x3b/0x4e0 fs/block_dev.c:1531 blkdev_reread_part block/ioctl.c:105 [inline] blkdev_common_ioctl+0x101d/0x1040 block/ioctl.c:510 blkdev_ioctl+0x16e/0x3c0 block/ioctl.c:579 block_ioctl+0x6d/0x80 fs/block_dev.c:1604 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: 0x00000003 -> 0x00000004 Reported by Kernel Concurrency Sanitizer on: CPU: 1 PID: 1040 Comm: systemd-udevd Not tainted 5.14.0-rc6-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 ================================================================== loop2: p1 p2 p3 p4 loop2: p1 start 10 is beyond EOD, truncated loop2: p2 size 1073872896 extends beyond EOD, truncated loop2: p3 start 225 is beyond EOD, truncated loop2: p4 size 3657465856 extends beyond EOD, truncated loop2: p1 p2 p3 p4 loop2: p1 start 10 is beyond EOD, truncated loop2: p2 size 1073872896 extends beyond EOD, truncated loop2: p3 start 225 is beyond EOD, truncated loop2: p4 size 3657465856 extends beyond EOD, truncated