================================================================== BUG: KCSAN: data-race in data_alloc / prb_reserve write to 0xffffffff8607a598 of 8 bytes by task 14608 on cpu 1: data_alloc+0x291/0x2c0 kernel/printk/printk_ringbuffer.c:1096 prb_reserve+0x85e/0xb60 kernel/printk/printk_ringbuffer.c:1669 vprintk_store+0x53f/0x810 kernel/printk/printk.c:2266 vprintk_emit+0x10c/0x5e0 kernel/printk/printk.c:2326 vprintk_default+0x26/0x30 kernel/printk/printk.c:2360 vprintk+0x75/0x80 kernel/printk/printk_safe.c:45 _printk+0x7a/0xa0 kernel/printk/printk.c:2370 blk_add_partition block/partitions/core.c:541 [inline] blk_add_partitions block/partitions/core.c:623 [inline] bdev_disk_changed+0x84b/0xbb0 block/partitions/core.c:683 loop_reread_partitions drivers/block/loop.c:514 [inline] loop_set_status+0x4ab/0x550 drivers/block/loop.c:1316 lo_ioctl+0x892/0x1330 blkdev_ioctl+0x35f/0x450 block/ioctl.c:676 vfs_ioctl fs/ioctl.c:51 [inline] __do_sys_ioctl fs/ioctl.c:907 [inline] __se_sys_ioctl+0xd3/0x150 fs/ioctl.c:893 __x64_sys_ioctl+0x43/0x50 fs/ioctl.c:893 x64_sys_call+0x1581/0x2d70 arch/x86/include/generated/asm/syscalls_64.h:17 do_syscall_x64 arch/x86/entry/common.c:52 [inline] do_syscall_64+0xc9/0x1c0 arch/x86/entry/common.c:83 entry_SYSCALL_64_after_hwframe+0x77/0x7f read to 0xffffffff8607a598 of 8 bytes by task 14699 on cpu 0: desc_read kernel/printk/printk_ringbuffer.c:482 [inline] desc_push_tail kernel/printk/printk_ringbuffer.c:778 [inline] desc_reserve kernel/printk/printk_ringbuffer.c:924 [inline] prb_reserve+0x235/0xb60 kernel/printk/printk_ringbuffer.c:1619 vprintk_store+0x53f/0x810 kernel/printk/printk.c:2266 vprintk_emit+0x10c/0x5e0 kernel/printk/printk.c:2326 vprintk_default+0x26/0x30 kernel/printk/printk.c:2360 vprintk+0x75/0x80 kernel/printk/printk_safe.c:45 _printk+0x7a/0xa0 kernel/printk/printk.c:2370 __netdev_printk+0x2d1/0x3e0 net/core/dev.c:11633 netdev_info+0x99/0xc0 net/core/dev.c:11680 __dev_set_promiscuity+0x165/0x340 net/core/dev.c:8570 __dev_change_flags+0x1ed/0x410 net/core/dev.c:8790 rtnl_configure_link net/core/rtnetlink.c:3321 [inline] rtnl_newlink_create net/core/rtnetlink.c:3518 [inline] __rtnl_newlink net/core/rtnetlink.c:3730 [inline] rtnl_newlink+0x121e/0x1690 net/core/rtnetlink.c:3743 rtnetlink_rcv_msg+0x85e/0x910 net/core/rtnetlink.c:6635 netlink_rcv_skb+0x12c/0x230 net/netlink/af_netlink.c:2564 rtnetlink_rcv+0x1c/0x30 net/core/rtnetlink.c:6653 netlink_unicast_kernel net/netlink/af_netlink.c:1335 [inline] netlink_unicast+0x58d/0x660 net/netlink/af_netlink.c:1361 netlink_sendmsg+0x5ca/0x6e0 net/netlink/af_netlink.c:1905 sock_sendmsg_nosec net/socket.c:730 [inline] __sock_sendmsg+0x140/0x180 net/socket.c:745 ____sys_sendmsg+0x312/0x410 net/socket.c:2585 ___sys_sendmsg net/socket.c:2639 [inline] __sys_sendmsg+0x1e9/0x280 net/socket.c:2668 __do_sys_sendmsg net/socket.c:2677 [inline] __se_sys_sendmsg net/socket.c:2675 [inline] __x64_sys_sendmsg+0x46/0x50 net/socket.c:2675 x64_sys_call+0xb25/0x2d70 arch/x86/include/generated/asm/syscalls_64.h:47 do_syscall_x64 arch/x86/entry/common.c:52 [inline] do_syscall_64+0xc9/0x1c0 arch/x86/entry/common.c:83 entry_SYSCALL_64_after_hwframe+0x77/0x7f value changed: 0x000000000000b8f0 -> 0x00000000000b76e8 Reported by Kernel Concurrency Sanitizer on: CPU: 0 PID: 14699 Comm: syz-executor.2 Tainted: G W 6.10.0-rc3-syzkaller-00044-g2ccbdf43d5e7 #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 06/07/2024 ================================================================== geneve2: entered promiscuous mode geneve2: entered allmulticast mode