================================================================== BUG: KCSAN: data-race in macsec_handle_frame / macsec_handle_frame read-write to 0xffff888130f3d168 of 8 bytes by task 550 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:5387 __netif_receive_skb_one_core net/core/dev.c:5491 [inline] __netif_receive_skb+0x57/0x1b0 net/core/dev.c:5607 netif_receive_skb_internal net/core/dev.c:5693 [inline] netif_receive_skb+0x4a/0x310 net/core/dev.c:5752 tun_rx_batched+0x3bf/0x400 tun_get_user+0x1d24/0x22b0 drivers/net/tun.c:1997 tun_chr_write_iter+0x18e/0x240 drivers/net/tun.c:2043 call_write_iter include/linux/fs.h:1868 [inline] new_sync_write fs/read_write.c:491 [inline] vfs_write+0x47b/0x780 fs/read_write.c:584 ksys_write+0xeb/0x1a0 fs/read_write.c:637 __do_sys_write fs/read_write.c:649 [inline] __se_sys_write fs/read_write.c:646 [inline] __x64_sys_write+0x42/0x50 fs/read_write.c:646 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 read-write to 0xffff888130f3d168 of 8 bytes by task 549 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:5387 __netif_receive_skb_one_core net/core/dev.c:5491 [inline] __netif_receive_skb+0x57/0x1b0 net/core/dev.c:5607 netif_receive_skb_internal net/core/dev.c:5693 [inline] netif_receive_skb+0x4a/0x310 net/core/dev.c:5752 tun_rx_batched+0x3bf/0x400 tun_get_user+0x1d24/0x22b0 drivers/net/tun.c:1997 tun_chr_write_iter+0x18e/0x240 drivers/net/tun.c:2043 call_write_iter include/linux/fs.h:1868 [inline] new_sync_write fs/read_write.c:491 [inline] vfs_write+0x47b/0x780 fs/read_write.c:584 ksys_write+0xeb/0x1a0 fs/read_write.c:637 __do_sys_write fs/read_write.c:649 [inline] __se_sys_write fs/read_write.c:646 [inline] __x64_sys_write+0x42/0x50 fs/read_write.c:646 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: 0x0000000000000282 -> 0x0000000000000289 Reported by Kernel Concurrency Sanitizer on: CPU: 1 PID: 549 Comm: syz-executor.1 Not tainted 6.4.0-rc6-syzkaller-00195-g40f71e7cd3c6 #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 05/27/2023 ==================================================================