loop3: p2 start 4294902784 is beyond EOD, ================================================================== BUG: KCSAN: data-race in data_alloc / data_push_tail write to 0xffffffff883b45d0 of 8 bytes by task 12442 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+0x147/0x180 net/batman-adv/hard-interface.c:526 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 0xffffffff883b45d0 of 8 bytes by task 12571 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: 0x00000000ffffed0a -> 0x00000000fffff861 Reported by Kernel Concurrency Sanitizer on: CPU: 0 PID: 12571 Comm: syz-executor.3 Not tainted 6.9.0-rc7-syzkaller-00056-g45db3ab70092 #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 04/02/2024 ================================================================== truncated loop3: p3 start 4278191616 is beyond EOD, truncated