================================================================== BUG: KCSAN: data-race in _prb_read_valid / prb_reserve write to 0xffffffff866ad418 of 8 bytes by task 24241 on cpu 0: prb_reserve+0x740/0xb60 vprintk_store+0x53f/0x810 kernel/printk/printk.c:2269 vprintk_emit+0x13a/0x610 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 __netdev_printk+0x2d1/0x3e0 net/core/dev.c:11770 netdev_warn+0x99/0xc0 net/core/dev.c:11815 hsr_dev_open+0x14b/0x1a0 net/hsr/hsr_device.c:159 __dev_open+0x1f7/0x2e0 net/core/dev.c:1474 __dev_change_flags+0x155/0x410 net/core/dev.c:8838 dev_change_flags+0x59/0xd0 net/core/dev.c:8910 do_setlink+0x844/0x2490 net/core/rtnetlink.c:2900 __rtnl_newlink net/core/rtnetlink.c:3696 [inline] rtnl_newlink+0x11a3/0x1690 net/core/rtnetlink.c:3743 rtnetlink_rcv_msg+0x6aa/0x710 net/core/rtnetlink.c:6647 netlink_rcv_skb+0x12c/0x230 net/netlink/af_netlink.c:2550 rtnetlink_rcv+0x1c/0x30 net/core/rtnetlink.c:6665 netlink_unicast_kernel net/netlink/af_netlink.c:1331 [inline] netlink_unicast+0x599/0x670 net/netlink/af_netlink.c:1357 netlink_sendmsg+0x5cc/0x6e0 net/netlink/af_netlink.c:1901 sock_sendmsg_nosec net/socket.c:730 [inline] __sock_sendmsg+0x140/0x180 net/socket.c:745 __sys_sendto+0x1e5/0x260 net/socket.c:2204 __do_sys_sendto net/socket.c:2216 [inline] __se_sys_sendto net/socket.c:2212 [inline] __x64_sys_sendto+0x78/0x90 net/socket.c:2212 x64_sys_call+0x2959/0x2d60 arch/x86/include/generated/asm/syscalls_64.h:45 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 0xffffffff866ad418 of 8 bytes by task 2951 on cpu 1: desc_read kernel/printk/printk_ringbuffer.c:486 [inline] desc_read_finalized_seq kernel/printk/printk_ringbuffer.c:1874 [inline] prb_read kernel/printk/printk_ringbuffer.c:1922 [inline] _prb_read_valid+0x1ec/0xba0 kernel/printk/printk_ringbuffer.c:2113 prb_read_valid+0x3d/0x60 kernel/printk/printk_ringbuffer.c:2182 syslog_print+0x26f/0x760 kernel/printk/printk.c:1599 do_syslog+0x393/0x7d0 kernel/printk/printk.c:1734 __do_sys_syslog kernel/printk/printk.c:1826 [inline] __se_sys_syslog kernel/printk/printk.c:1824 [inline] __x64_sys_syslog+0x43/0x50 kernel/printk/printk.c:1824 x64_sys_call+0x1677/0x2d60 arch/x86/include/generated/asm/syscalls_64.h:104 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: 0x0000000000002491 -> 0x0000000000004491 Reported by Kernel Concurrency Sanitizer on: CPU: 1 UID: 0 PID: 2951 Comm: klogd Not tainted 6.11.0-rc7-syzkaller-00020-g8d8d276ba2fb #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 08/06/2024 ==================================================================