================================================================== BUG: KCSAN: data-race in macsec_handle_frame / macsec_handle_frame read-write to 0xffff8881376f4168 of 8 bytes by interrupt on cpu 1: handle_not_macsec drivers/net/macsec.c:1072 [inline] macsec_handle_frame+0x341/0x1410 drivers/net/macsec.c:1119 __netif_receive_skb_core+0x9e8/0x1e80 net/core/dev.c:5346 __netif_receive_skb_one_core net/core/dev.c:5450 [inline] __netif_receive_skb+0x57/0x1b0 net/core/dev.c:5566 process_backlog+0x21f/0x380 net/core/dev.c:5894 __napi_poll+0x60/0x3b0 net/core/dev.c:6460 napi_poll net/core/dev.c:6527 [inline] net_rx_action+0x32b/0x750 net/core/dev.c:6660 __do_softirq+0xc1/0x265 kernel/softirq.c:553 do_softirq+0x5e/0x90 kernel/softirq.c:454 __local_bh_enable_ip+0x64/0x70 kernel/softirq.c:381 __raw_read_unlock_bh include/linux/rwlock_api_smp.h:257 [inline] _raw_read_unlock_bh+0x1b/0x20 kernel/locking/spinlock.c:284 ipv6_get_lladdr+0x116/0x150 net/ipv6/addrconf.c:1876 mld_newpack+0x1f1/0x480 net/ipv6/mcast.c:1756 add_grhead net/ipv6/mcast.c:1851 [inline] add_grec+0x9f3/0xbb0 net/ipv6/mcast.c:1989 mld_send_cr net/ipv6/mcast.c:2115 [inline] mld_ifc_work+0x4cb/0x7b0 net/ipv6/mcast.c:2653 process_one_work+0x434/0x860 kernel/workqueue.c:2597 worker_thread+0x5f2/0xa10 kernel/workqueue.c:2748 kthread+0x1d7/0x210 kernel/kthread.c:389 ret_from_fork+0x2e/0x40 arch/x86/kernel/process.c:145 ret_from_fork_asm+0x11/0x20 arch/x86/entry/entry_64.S:304 read-write to 0xffff8881376f4168 of 8 bytes by interrupt on cpu 0: handle_not_macsec drivers/net/macsec.c:1072 [inline] macsec_handle_frame+0x341/0x1410 drivers/net/macsec.c:1119 __netif_receive_skb_core+0x9e8/0x1e80 net/core/dev.c:5346 __netif_receive_skb_one_core net/core/dev.c:5450 [inline] __netif_receive_skb+0x57/0x1b0 net/core/dev.c:5566 process_backlog+0x21f/0x380 net/core/dev.c:5894 __napi_poll+0x60/0x3b0 net/core/dev.c:6460 napi_poll net/core/dev.c:6527 [inline] net_rx_action+0x32b/0x750 net/core/dev.c:6660 __do_softirq+0xc1/0x265 kernel/softirq.c:553 invoke_softirq kernel/softirq.c:427 [inline] __irq_exit_rcu kernel/softirq.c:632 [inline] irq_exit_rcu+0x3b/0x90 kernel/softirq.c:644 sysvec_apic_timer_interrupt+0x6d/0x80 arch/x86/kernel/apic/apic.c:1109 asm_sysvec_apic_timer_interrupt+0x1a/0x20 arch/x86/include/asm/idtentry.h:645 kcsan_setup_watchpoint+0x3fe/0x410 kernel/kcsan/core.c:705 vsscanf+0x1186/0x12c0 lib/vsprintf.c:3446 sscanf+0x84/0xb0 lib/vsprintf.c:3716 __dev_alloc_name net/core/dev.c:1092 [inline] dev_alloc_name_ns+0x497/0x600 net/core/dev.c:1126 dev_get_valid_name+0x120/0x1f0 net/core/dev.c:1161 register_netdevice+0x144/0xcd0 net/core/dev.c:9970 macvlan_common_newlink+0xa1b/0xbc0 drivers/net/macvlan.c:1551 macvlan_newlink+0x35/0x40 drivers/net/macvlan.c:1587 rtnl_newlink_create net/core/rtnetlink.c:3472 [inline] __rtnl_newlink net/core/rtnetlink.c:3689 [inline] rtnl_newlink+0xe83/0x1600 net/core/rtnetlink.c:3702 rtnetlink_rcv_msg+0x807/0x8c0 net/core/rtnetlink.c:6424 netlink_rcv_skb+0x126/0x220 net/netlink/af_netlink.c:2549 rtnetlink_rcv+0x1c/0x20 net/core/rtnetlink.c:6442 netlink_unicast_kernel net/netlink/af_netlink.c:1339 [inline] netlink_unicast+0x56f/0x640 net/netlink/af_netlink.c:1365 netlink_sendmsg+0x665/0x770 net/netlink/af_netlink.c:1914 sock_sendmsg_nosec net/socket.c:725 [inline] sock_sendmsg net/socket.c:748 [inline] ____sys_sendmsg+0x37c/0x4d0 net/socket.c:2494 ___sys_sendmsg net/socket.c:2548 [inline] __sys_sendmsg+0x1e9/0x270 net/socket.c:2577 __do_sys_sendmsg net/socket.c:2586 [inline] __se_sys_sendmsg net/socket.c:2584 [inline] __x64_sys_sendmsg+0x46/0x50 net/socket.c:2584 do_syscall_x64 arch/x86/entry/common.c:50 [inline] do_syscall_64+0x41/0xc0 arch/x86/entry/common.c:80 entry_SYSCALL_64_after_hwframe+0x63/0xcd value changed: 0x0000000000008906 -> 0x0000000000008907 Reported by Kernel Concurrency Sanitizer on: CPU: 0 PID: 16849 Comm: syz-executor.3 Not tainted 6.5.0-rc4-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 07/12/2023 ==================================================================