BUG: KCSAN: data-race in data_alloc / data_push_tail write to 0xffffffff883ef170 of 8 bytes by task 12648 on cpu 1: data_alloc+0x216/0x2c0 kernel/printk/printk_ringbuffer.c:1082 prb_reserve+0x85e/0xb60 kernel/printk/printk_ringbuffer.c:1669 vprintk_store+0x53f/0x810 kernel/printk/printk.c:2269 vprintk_emit+0x10c/0x5e0 kernel/printk/printk.c:2329 vprintk_default+0x26/0x30 kernel/printk/printk.c:2363 vprintk+0x75/0x80 kernel/printk/printk_safe.c:45 _printk+0x7a/0xa0 kernel/printk/printk.c:2373 batadv_check_known_mac_addr+0x153/0x180 net/batman-adv/hard-interface.c:528 batadv_hard_if_event+0x4b0/0x1000 net/batman-adv/hard-interface.c:998 notifier_call_chain kernel/notifier.c:93 [inline] raw_notifier_call_chain+0x6f/0x1d0 kernel/notifier.c:461 call_netdevice_notifiers_info+0xae/0x100 net/core/dev.c:1950 call_netdevice_notifiers_extack net/core/dev.c:1988 [inline] call_netdevice_notifiers net/core/dev.c:2002 [inline] dev_set_mac_address+0x1ff/0x260 net/core/dev.c:8955 dev_set_mac_address_user+0x31/0x50 net/core/dev.c:8969 do_setlink+0x510/0x2480 net/core/rtnetlink.c:2839 __rtnl_newlink net/core/rtnetlink.c:3680 [inline] rtnl_newlink+0x11a1/0x1690 net/core/rtnetlink.c:3727 rtnetlink_rcv_msg+0x82e/0x8e0 net/core/rtnetlink.c:6595 netlink_rcv_skb+0x12c/0x230 net/netlink/af_netlink.c:2559 rtnetlink_rcv+0x1c/0x30 net/core/rtnetlink.c:6613 netlink_unicast_kernel net/netlink/af_netlink.c:1335 [inline] netlink_unicast+0x58d/0x660 net/netlink/af_netlink.c:1361 netlink_sendmsg+0x5d3/0x6e0 net/netlink/af_netlink.c:1905 sock_sendmsg_nosec net/socket.c:730 [inline] __sock_sendmsg+0x140/0x180 net/socket.c:745 __sys_sendto+0x1e5/0x260 net/socket.c:2191 __do_sys_sendto net/socket.c:2203 [inline] __se_sys_sendto net/socket.c:2199 [inline] __x64_sys_sendto+0x78/0x90 net/socket.c:2199 x64_sys_call+0x16bb/0x2d30 arch/x86/include/generated/asm/syscalls_64.h:45 do_syscall_x64 arch/x86/entry/common.c:52 [inline] do_syscall_64+0xcd/0x1d0 arch/x86/entry/common.c:83 entry_SYSCALL_64_after_hwframe+0x77/0x7f read to 0xffffffff883ef170 of 8 bytes by task 12734 on cpu 0: data_make_reusable kernel/printk/printk_ringbuffer.c:594 [inline] data_push_tail+0x102/0x430 kernel/printk/printk_ringbuffer.c:679 data_realloc kernel/printk/printk_ringbuffer.c:1143 [inline] prb_reserve_in_last+0x773/0xc10 kernel/printk/printk_ringbuffer.c:1440 vprintk_store+0x45b/0x810 kernel/printk/printk.c:2246 vprintk_emit+0x10c/0x5e0 kernel/printk/printk.c:2329 vprintk_default+0x26/0x30 kernel/printk/printk.c:2363 vprintk+0x75/0x80 kernel/printk/printk_safe.c:45 _printk+0x7a/0xa0 kernel/printk/printk.c:2373 disk_unlock_native_capacity block/partitions/core.c:512 [inline] blk_add_partition block/partitions/core.c:535 [inline] blk_add_partitions block/partitions/core.c:626 [inline] bdev_disk_changed+0x99d/0xbe0 block/partitions/core.c:686 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+0x37f/0x470 block/ioctl.c:642 vfs_ioctl fs/ioctl.c:51 [inline] __do_sys_ioctl fs/ioctl.c:904 [inline] __se_sys_ioctl+0xd3/0x150 fs/ioctl.c:890 __x64_sys_ioctl+0x43/0x50 fs/ioctl.c:890 x64_sys_call+0x155d/0x2d30 arch/x86/include/generated/asm/syscalls_64.h:17 do_syscall_x64 arch/x86/entry/common.c:52 [inline] do_syscall_64+0xcd/0x1d0 arch/x86/entry/common.c:83 entry_SYSCALL_64_after_hwframe+0x77/0x7f value changed: 0x00000001000024f0 -> 0x00000001000031d4 Reported by Kernel Concurrency Sanitizer on: CPU: 0 PID: 12734 Comm: syz-executor.4 Tainted: G W 6.9.0-rc7-syzkaller-00023-g6d7ddd805123 #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 04/02/2024 ================================================================== truncated loop4: p73 start 16908800 is beyond EOD, truncated loop4: p75 start 16908800 is beyond EOD, truncated loop4: p77 start 16908800 is beyond EOD, truncated loop4: p79 start 16908800 is beyond EOD, truncated loop4: p81 start 16908800 is beyond EOD, truncated loop4: p83 start 16908800 is beyond EOD, truncated loop4: p85 start 16908800 is beyond EOD, truncated loop4: p87 start 16908800 is beyond EOD, truncated loop4: p89 start 16908800 is beyond EOD, truncated loop4: p91 start 16908800 is beyond EOD, truncated loop4: p93 start 16908800 is beyond EOD, truncated loop4: p95 start 16908800 is beyond EOD, truncated loop4: p97 start 16908800 is beyond EOD, truncated loop4: p99 start 16908800 is beyond EOD, truncated loop4: p101 start 16908800 is beyond EOD, truncated loop4: p103 start 16908800 is beyond EOD, truncated loop4: p105 start 16908800 is beyond EOD, truncated loop4: p107 start 16908800 is beyond EOD, truncated loop4: p109 start 16908800 is beyond EOD, truncated loop4: p111 start 16908800 is beyond EOD, truncated loop4: p113 start 16908800 is beyond EOD, truncated loop4: p115 start 16908800 is beyond EOD, truncated loop4: p117 start 16908800 is beyond EOD, truncated loop4: p119 start 16908800 is beyond EOD, truncated loop4: p121 start 16908800 is beyond EOD, truncated loop4: p123 start 16908800 is beyond EOD, truncated loop4: p125 start 16908800 is beyond EOD, truncated loop4: p127 start 16908800 is beyond EOD, truncated loop4: p129 start 16908800 is beyond EOD, truncated loop4: p131 start 16908800 is beyond EOD, truncated loop4: p133 start 16908800 is beyond EOD, truncated loop4: p135 start 16908800 is beyond EOD, truncated loop4: p137 start 16908800 is beyond EOD, truncated loop4: p139 start 16908800 is beyond EOD, truncated loop4: p141 start 16908800 is beyond EOD, truncated loop4: p143 start 16908800 is beyond EOD, truncated loop4: p145 start 16908800 is beyond EOD, truncated loop4: p147 start 16908800 is beyond EOD, truncated loop4: p149 start 16908800 is beyond EOD, truncated loop4: p151 start 16908800 is beyond EOD, truncated loop4: p153 start 16908800 is beyond EOD, truncated loop4: p155 start 16908800 is beyond EOD, truncated loop4: p157 start 16908800 is beyond EOD, truncated loop4: p159 start 16908800 is beyond EOD, truncated loop4: p161 start 16908800 is beyond EOD, truncated loop4: p163 start 16908800 is beyond EOD, truncated loop4: p165 start 16908800 is beyond EOD, truncated loop4: p167 start 16908800 is beyond EOD, truncated loop4: p169 start 16908800 is beyond EOD, truncated loop4: p171 start 16908800 is beyond EOD, truncated loop4: p173 start 16908800 is beyond EOD, truncated loop4: p175 start 16908800 is beyond EOD, truncated loop4: p177 start 16908800 is beyond EOD, truncated loop4: p179 start 16908800 is beyond EOD, truncated loop4: p181 start 16908800 is beyond EOD, truncated loop4: p183 start 16908800 is beyond EOD, truncated loop4: p185 start 16908800 is beyond EOD, truncated loop4: p187 start 16908800 is beyond EOD, truncated loop4: p189 start 16908800 is beyond EOD, truncated loop4: p191 start 16908800 is beyond EOD, truncated loop4: p193 start 16908800 is beyond EOD, truncated loop4: p195 start 16908800 is beyond EOD, truncated loop4: p197 start 16908800 is beyond EOD, truncated loop4: p199 start 16908800 is beyond EOD, truncated loop4: p201 start 16908800 is beyond EOD, truncated loop4: p203 start 16908800 is beyond EOD, truncated loop4: p205 start 16908800 is beyond EOD, truncated loop4: p207 start 16908800 is beyond EOD, truncated loop4: p209 start 16908800 is beyond EOD, truncated loop4: p211 start 16908800 is beyond EOD, truncated loop4: p213 start 16908800 is beyond EOD, truncated loop4: p215 start 16908800 is beyond EOD, truncated loop4: p217 start 16908800 is beyond EOD, truncated loop4: p219 start 16908800 is beyond EOD, truncated loop4: p221 start 16908800 is beyond EOD, truncated loop4: p223 start 16908800 is beyond EOD, truncated loop4: p225 start 16908800 is beyond EOD, truncated loop4: p227 start 16908800 is beyond EOD, truncated loop4: p229 start 16908800 is beyond EOD, truncated loop4: p231 start 16908800 is beyond EOD, truncated loop4: p233 start 16908800 is beyond EOD, truncated loop4: p235 start 16908800 is beyond EOD, truncated loop4: p237 start 16908800 is beyond EOD, truncated loop4: p239 start 16908800 is beyond EOD, truncated loop4: p241 start 16908800 is beyond EOD, truncated loop4: p243 start 16908800 is beyond EOD, truncated loop4: p245 start 16908800 is beyond EOD, truncated loop4: p247 start 16908800 is beyond EOD, truncated loop4: p249 start 16908800 is beyond EOD, truncated loop4: p251 start 16908800 is beyond EOD, truncated loop4: p253 start 16908800 is beyond EOD, truncated loop4: p255 start 16908800 is beyond EOD, truncated