================================================================== BUG: KCSAN: data-race in sockopt_lock_sock / trace_call_bpf read-write to 0xffff8881048be2a8 of 8 bytes by interrupt on cpu 1: bpf_set_run_ctx include/linux/bpf.h:2760 [inline] bpf_prog_run_array include/linux/bpf.h:2797 [inline] trace_call_bpf+0x13e/0x420 kernel/trace/bpf_trace.c:147 perf_trace_run_bpf_submit+0x4e/0x110 kernel/events/core.c:11549 do_perf_trace_kmem_cache_free include/trace/events/kmem.h:117 [inline] perf_trace_kmem_cache_free+0x131/0x170 include/trace/events/kmem.h:117 __do_trace_kmem_cache_free include/trace/events/kmem.h:117 [inline] trace_kmem_cache_free include/trace/events/kmem.h:117 [inline] kmem_cache_free+0x350/0x3b0 mm/slub.c:6756 __d_free+0x26/0x30 fs/dcache.c:349 rcu_do_batch kernel/rcu/tree.c:2650 [inline] rcu_core+0x76e/0xcb0 kernel/rcu/tree.c:2919 rcu_core_si+0xd/0x20 kernel/rcu/tree.c:2936 handle_softirqs+0x109/0x310 kernel/softirq.c:669 __do_softirq kernel/softirq.c:703 [inline] invoke_softirq kernel/softirq.c:542 [inline] __irq_exit_rcu+0x40/0xf0 kernel/softirq.c:786 instr_sysvec_apic_timer_interrupt arch/x86/kernel/apic/apic.c:1062 [inline] sysvec_apic_timer_interrupt+0x74/0x80 arch/x86/kernel/apic/apic.c:1062 asm_sysvec_apic_timer_interrupt+0x1a/0x20 arch/x86/include/asm/idtentry.h:674 __preempt_count_add arch/x86/include/asm/preempt.h:98 [inline] delay_tsc+0x4b/0xa0 arch/x86/lib/delay.c:77 udelay include/asm-generic/delay.h:64 [inline] delay_access kernel/kcsan/core.c:332 [inline] kcsan_setup_watchpoint+0x255/0x3f0 kernel/kcsan/core.c:622 has_current_bpf_ctx include/linux/bpf.h:3422 [inline] sockopt_lock_sock+0x23/0x50 net/core/sock.c:1152 do_ip_getsockopt+0xc66/0x1340 net/ipv4/ip_sockglue.c:1703 ip_getsockopt+0x5c/0x180 net/ipv4/ip_sockglue.c:1773 tcp_getsockopt+0xad/0xe0 net/ipv4/tcp.c:4885 sock_common_getsockopt+0x60/0x70 net/core/sock.c:4096 do_sock_getsockopt+0x2ce/0x350 net/socket.c:2505 __sys_getsockopt net/socket.c:2536 [inline] __do_sys_getsockopt net/socket.c:2543 [inline] __se_sys_getsockopt net/socket.c:2540 [inline] __x64_sys_getsockopt+0x11d/0x1a0 net/socket.c:2540 x64_sys_call+0x1032/0x2550 arch/x86/include/generated/asm/syscalls_64.h:56 do_syscall_x64 arch/x86/entry/syscall_64.c:61 [inline] do_syscall_64+0x11e/0x3a0 arch/x86/entry/syscall_64.c:89 entry_SYSCALL_64_after_hwframe+0x77/0x7f read to 0xffff8881048be2a8 of 8 bytes by task 3302 on cpu 1: has_current_bpf_ctx include/linux/bpf.h:3422 [inline] sockopt_lock_sock+0x23/0x50 net/core/sock.c:1152 do_ip_getsockopt+0xc66/0x1340 net/ipv4/ip_sockglue.c:1703 ip_getsockopt+0x5c/0x180 net/ipv4/ip_sockglue.c:1773 tcp_getsockopt+0xad/0xe0 net/ipv4/tcp.c:4885 sock_common_getsockopt+0x60/0x70 net/core/sock.c:4096 do_sock_getsockopt+0x2ce/0x350 net/socket.c:2505 __sys_getsockopt net/socket.c:2536 [inline] __do_sys_getsockopt net/socket.c:2543 [inline] __se_sys_getsockopt net/socket.c:2540 [inline] __x64_sys_getsockopt+0x11d/0x1a0 net/socket.c:2540 x64_sys_call+0x1032/0x2550 arch/x86/include/generated/asm/syscalls_64.h:56 do_syscall_x64 arch/x86/entry/syscall_64.c:61 [inline] do_syscall_64+0x11e/0x3a0 arch/x86/entry/syscall_64.c:89 entry_SYSCALL_64_after_hwframe+0x77/0x7f Reported by Kernel Concurrency Sanitizer on: CPU: 1 UID: 0 PID: 3302 Comm: syz-executor Not tainted syzkaller #0 PREEMPT(lazy) Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 11/06/2026 ==================================================================