================================================================== BUG: KCSAN: data-race in data_alloc / data_push_tail write to 0xffffffff88f27f38 of 8 bytes by task 13342 on cpu 1: data_alloc+0x205/0x2b0 kernel/printk/printk_ringbuffer.c:1071 prb_reserve+0x8f0/0xbc0 kernel/printk/printk_ringbuffer.c:1549 vprintk_store+0x3e9/0x9c0 kernel/printk/printk.c:2029 vprintk_emit+0xca/0x3e0 kernel/printk/printk.c:2081 vprintk_default+0x22/0x30 kernel/printk/printk.c:2115 vprintk_func+0x11b/0x120 kernel/printk/printk_safe.c:401 printk+0x62/0x82 kernel/printk/printk.c:2146 fail_dump lib/fault-inject.c:45 [inline] should_fail+0x223/0x250 lib/fault-inject.c:146 should_fail_usercopy+0x16/0x20 lib/fault-inject-usercopy.c:37 _copy_from_user+0x1c/0xd0 lib/usercopy.c:14 copy_from_user include/linux/uaccess.h:192 [inline] ____sys_sendmsg+0x1a3/0x4d0 net/socket.c:2328 ___sys_sendmsg net/socket.c:2404 [inline] __sys_sendmsg+0x1ed/0x270 net/socket.c:2433 __do_sys_sendmsg net/socket.c:2442 [inline] __se_sys_sendmsg net/socket.c:2440 [inline] __x64_sys_sendmsg+0x42/0x50 net/socket.c:2440 do_syscall_64+0x39/0x80 arch/x86/entry/common.c:46 entry_SYSCALL_64_after_hwframe+0x44/0xae read to 0xffffffff88f27f38 of 8 bytes by task 13346 on cpu 0: data_make_reusable kernel/printk/printk_ringbuffer.c:587 [inline] data_push_tail+0x125/0x460 kernel/printk/printk_ringbuffer.c:672 data_alloc+0xbc/0x2b0 kernel/printk/printk_ringbuffer.c:1043 prb_reserve+0x8f0/0xbc0 kernel/printk/printk_ringbuffer.c:1549 vprintk_store+0x3e9/0x9c0 kernel/printk/printk.c:2029 vprintk_emit+0xca/0x3e0 kernel/printk/printk.c:2081 vprintk_default+0x22/0x30 kernel/printk/printk.c:2115 vprintk_func+0x11b/0x120 kernel/printk/printk_safe.c:401 printk+0x62/0x82 kernel/printk/printk.c:2146 set_capacity_and_notify+0x141/0x1a0 block/genhd.c:75 loop_set_size drivers/block/loop.c:254 [inline] loop_configure+0xafc/0xcb0 drivers/block/loop.c:1161 lo_ioctl+0x555/0x11f0 drivers/block/loop.c:1689 blkdev_ioctl+0x1d0/0x3c0 block/ioctl.c:583 block_ioctl+0x6d/0x80 fs/block_dev.c:1671 vfs_ioctl fs/ioctl.c:48 [inline] __do_sys_ioctl fs/ioctl.c:753 [inline] __se_sys_ioctl+0xcb/0x140 fs/ioctl.c:739 __x64_sys_ioctl+0x3f/0x50 fs/ioctl.c:739 do_syscall_64+0x39/0x80 arch/x86/entry/common.c:46 entry_SYSCALL_64_after_hwframe+0x44/0xae Reported by Kernel Concurrency Sanitizer on: CPU: 0 PID: 13346 Comm: syz-executor.4 Tainted: G W 5.12.0-rc7-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 ==================================================================