================================================================== BUG: KCSAN: data-race in icmp_global_allow / icmp_global_allow write to 0xffffffff861a9294 of 4 bytes by interrupt on cpu 1: icmp_global_allow+0x174/0x1b0 net/ipv4/icmp.c:272 icmpv6_global_allow net/ipv6/icmp.c:184 [inline] icmpv6_global_allow net/ipv6/icmp.c:179 [inline] icmp6_send+0x493/0x1140 net/ipv6/icmp.c:514 icmpv6_send+0x71/0xb0 net/ipv6/ip6_icmp.c:43 ip6_link_failure+0x43/0x180 net/ipv6/route.c:2640 dst_link_failure include/net/dst.h:419 [inline] ip6_tnl_xmit+0x296/0x1780 net/ipv6/ip6_tunnel.c:1222 ip6ip6_tnl_xmit net/ipv6/ip6_tunnel.c:1376 [inline] ip6_tnl_start_xmit+0xead/0x1160 net/ipv6/ip6_tunnel.c:1402 __netdev_start_xmit include/linux/netdevice.h:4413 [inline] netdev_start_xmit include/linux/netdevice.h:4427 [inline] xmit_one net/core/dev.c:3199 [inline] dev_hard_start_xmit+0xef/0x430 net/core/dev.c:3215 __dev_queue_xmit+0x14ab/0x1b40 net/core/dev.c:3792 dev_queue_xmit+0x21/0x30 net/core/dev.c:3825 neigh_direct_output+0x1f/0x30 net/core/neighbour.c:1530 neigh_output include/net/neighbour.h:511 [inline] ip6_finish_output2+0x7a2/0xec0 net/ipv6/ip6_output.c:116 __ip6_finish_output net/ipv6/ip6_output.c:142 [inline] __ip6_finish_output+0x2d7/0x330 net/ipv6/ip6_output.c:127 ip6_finish_output+0x41/0x160 net/ipv6/ip6_output.c:152 NF_HOOK_COND include/linux/netfilter.h:294 [inline] ip6_output+0xf2/0x280 net/ipv6/ip6_output.c:175 dst_output include/net/dst.h:436 [inline] NF_HOOK include/linux/netfilter.h:305 [inline] NF_HOOK include/linux/netfilter.h:299 [inline] ip6_xmit+0x6cb/0xcd0 net/ipv6/ip6_output.c:279 inet6_csk_xmit+0x170/0x1f0 net/ipv6/inet6_connection_sock.c:135 __tcp_transmit_skb+0xe81/0x1d60 net/ipv4/tcp_output.c:1169 tcp_transmit_skb net/ipv4/tcp_output.c:1185 [inline] tcp_xmit_probe_skb+0x19b/0x1d0 net/ipv4/tcp_output.c:3735 tcp_write_wakeup+0x12e/0x3b0 net/ipv4/tcp_output.c:3788 tcp_send_probe0+0x3a/0x286 net/ipv4/tcp_output.c:3803 tcp_probe_timer net/ipv4/tcp_timer.c:381 [inline] tcp_write_timer_handler+0x48e/0x510 net/ipv4/tcp_timer.c:603 tcp_write_timer+0xd1/0xf0 net/ipv4/tcp_timer.c:619 call_timer_fn+0x5f/0x2f0 kernel/time/timer.c:1404 expire_timers kernel/time/timer.c:1449 [inline] __run_timers kernel/time/timer.c:1773 [inline] __run_timers kernel/time/timer.c:1740 [inline] run_timer_softirq+0xc0c/0xcd0 kernel/time/timer.c:1786 __do_softirq+0x115/0x33f kernel/softirq.c:292 invoke_softirq kernel/softirq.c:373 [inline] irq_exit+0xbb/0xe0 kernel/softirq.c:413 exiting_irq arch/x86/include/asm/apic.h:536 [inline] smp_apic_timer_interrupt+0xe6/0x280 arch/x86/kernel/apic/apic.c:1137 apic_timer_interrupt+0xf/0x20 arch/x86/entry/entry_64.S:830 write_comp_data+0x0/0x70 kernel/kcov.c:112 __destroy_inode+0x45/0x3b0 fs/inode.c:253 destroy_inode+0x81/0x140 fs/inode.c:278 evict+0x32a/0x410 fs/inode.c:591 iput_final fs/inode.c:1563 [inline] iput+0x371/0x4e0 fs/inode.c:1589 dentry_unlink_inode+0x270/0x2e0 fs/dcache.c:374 __dentry_kill+0x220/0x3c0 fs/dcache.c:579 dentry_kill fs/dcache.c:686 [inline] dput+0x442/0x750 fs/dcache.c:859 __fput+0x2ac/0x520 fs/file_table.c:293 ____fput+0x1f/0x30 fs/file_table.c:313 task_work_run+0xf6/0x130 kernel/task_work.c:113 tracehook_notify_resume include/linux/tracehook.h:188 [inline] exit_to_usermode_loop+0x2b4/0x2c0 arch/x86/entry/common.c:163 prepare_exit_to_usermode arch/x86/entry/common.c:194 [inline] syscall_return_slowpath arch/x86/entry/common.c:274 [inline] do_syscall_64+0x353/0x370 arch/x86/entry/common.c:300 entry_SYSCALL_64_after_hwframe+0x44/0xa9 read to 0xffffffff861a9294 of 4 bytes by interrupt on cpu 0: icmp_global_allow+0x36/0x1b0 net/ipv4/icmp.c:254 icmpv6_global_allow net/ipv6/icmp.c:184 [inline] icmpv6_global_allow net/ipv6/icmp.c:179 [inline] icmp6_send+0x493/0x1140 net/ipv6/icmp.c:514 icmpv6_send+0x71/0xb0 net/ipv6/ip6_icmp.c:43 ip6_link_failure+0x43/0x180 net/ipv6/route.c:2640 dst_link_failure include/net/dst.h:419 [inline] ip6_tnl_xmit+0x296/0x1780 net/ipv6/ip6_tunnel.c:1222 ip6ip6_tnl_xmit net/ipv6/ip6_tunnel.c:1376 [inline] ip6_tnl_start_xmit+0xead/0x1160 net/ipv6/ip6_tunnel.c:1402 __netdev_start_xmit include/linux/netdevice.h:4413 [inline] netdev_start_xmit include/linux/netdevice.h:4427 [inline] xmit_one net/core/dev.c:3199 [inline] dev_hard_start_xmit+0xef/0x430 net/core/dev.c:3215 __dev_queue_xmit+0x14ab/0x1b40 net/core/dev.c:3792 dev_queue_xmit+0x21/0x30 net/core/dev.c:3825 neigh_direct_output+0x1f/0x30 net/core/neighbour.c:1530 neigh_output include/net/neighbour.h:511 [inline] ip6_finish_output2+0x7a2/0xec0 net/ipv6/ip6_output.c:116 __ip6_finish_output net/ipv6/ip6_output.c:142 [inline] __ip6_finish_output+0x2d7/0x330 net/ipv6/ip6_output.c:127 ip6_finish_output+0x41/0x160 net/ipv6/ip6_output.c:152 NF_HOOK_COND include/linux/netfilter.h:294 [inline] ip6_output+0xf2/0x280 net/ipv6/ip6_output.c:175 dst_output include/net/dst.h:436 [inline] NF_HOOK include/linux/netfilter.h:305 [inline] NF_HOOK include/linux/netfilter.h:299 [inline] ip6_xmit+0x6cb/0xcd0 net/ipv6/ip6_output.c:279 inet6_csk_xmit+0x170/0x1f0 net/ipv6/inet6_connection_sock.c:135 __tcp_transmit_skb+0xe81/0x1d60 net/ipv4/tcp_output.c:1169 tcp_transmit_skb net/ipv4/tcp_output.c:1185 [inline] tcp_xmit_probe_skb+0x19b/0x1d0 net/ipv4/tcp_output.c:3735 tcp_write_wakeup+0x12e/0x3b0 net/ipv4/tcp_output.c:3788 tcp_send_probe0+0x3a/0x286 net/ipv4/tcp_output.c:3803 tcp_probe_timer net/ipv4/tcp_timer.c:381 [inline] tcp_write_timer_handler+0x48e/0x510 net/ipv4/tcp_timer.c:603 tcp_write_timer+0xd1/0xf0 net/ipv4/tcp_timer.c:619 call_timer_fn+0x5f/0x2f0 kernel/time/timer.c:1404 expire_timers kernel/time/timer.c:1449 [inline] __run_timers kernel/time/timer.c:1773 [inline] __run_timers kernel/time/timer.c:1740 [inline] run_timer_softirq+0xc0c/0xcd0 kernel/time/timer.c:1786 __do_softirq+0x115/0x33f kernel/softirq.c:292 invoke_softirq kernel/softirq.c:373 [inline] irq_exit+0xbb/0xe0 kernel/softirq.c:413 exiting_irq arch/x86/include/asm/apic.h:536 [inline] smp_apic_timer_interrupt+0xe6/0x280 arch/x86/kernel/apic/apic.c:1137 apic_timer_interrupt+0xf/0x20 arch/x86/entry/entry_64.S:830 arch_local_irq_restore arch/x86/include/asm/paravirt.h:756 [inline] kcsan_setup_watchpoint+0x205/0x410 kernel/kcsan/core.c:369 check_access kernel/kcsan/core.c:409 [inline] __tsan_read1+0x13f/0x1e0 kernel/kcsan/core.c:527 tomoyo_check_acl+0x98/0x270 security/tomoyo/domain.c:170 tomoyo_path_permission security/tomoyo/file.c:586 [inline] tomoyo_path_permission+0xe3/0x160 security/tomoyo/file.c:573 tomoyo_path_perm+0x23e/0x390 security/tomoyo/file.c:838 tomoyo_inode_getattr+0x26/0x40 security/tomoyo/tomoyo.c:129 security_inode_getattr+0x9b/0xd0 security/security.c:1222 vfs_getattr+0x2e/0x70 fs/stat.c:115 vfs_statx_fd+0x7a/0xd0 fs/stat.c:145 vfs_fstat include/linux/fs.h:3258 [inline] __do_sys_newfstat+0x49/0xa0 fs/stat.c:378 __se_sys_newfstat fs/stat.c:375 [inline] __x64_sys_newfstat+0x3a/0x50 fs/stat.c:375 do_syscall_64+0xcc/0x370 arch/x86/entry/common.c:290 entry_SYSCALL_64_after_hwframe+0x44/0xa9 Reported by Kernel Concurrency Sanitizer on: CPU: 0 PID: 18876 Comm: udevd Not tainted 5.4.0-rc6+ #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 ==================================================================