================================================================== BUG: KCSAN: data-race in __bpf_get_stackid / bcmp write to 0xffff88810bc0c310 of 128 bytes by task 7063 on cpu 0: __bpf_get_stackid+0x761/0x800 kernel/bpf/stackmap.c:288 ____bpf_get_stackid kernel/bpf/stackmap.c:324 [inline] bpf_get_stackid+0xee/0x120 kernel/bpf/stackmap.c:300 ____bpf_get_stackid_raw_tp kernel/trace/bpf_trace.c:1811 [inline] bpf_get_stackid_raw_tp+0xf6/0x120 kernel/trace/bpf_trace.c:1800 bpf_prog_e6fc920cfeff8120+0x2a/0x32 bpf_dispatcher_nop_func include/linux/bpf.h:1322 [inline] __bpf_prog_run include/linux/filter.h:718 [inline] bpf_prog_run include/linux/filter.h:725 [inline] __bpf_trace_run kernel/trace/bpf_trace.c:2258 [inline] bpf_trace_run2+0x107/0x1c0 kernel/trace/bpf_trace.c:2299 __do_trace_kfree include/trace/events/kmem.h:94 [inline] trace_kfree include/trace/events/kmem.h:94 [inline] kfree+0x27b/0x320 mm/slub.c:4829 sctp_auth_shkey_destroy net/sctp/auth.c:101 [inline] sctp_auth_shkey_release+0xcb/0x110 net/sctp/auth.c:107 sctp_auth_destroy_keys+0x9c/0xd0 net/sctp/auth.c:128 sctp_association_free+0x54f/0x590 net/sctp/associola.c:391 __sctp_connect+0x753/0x7a0 net/sctp/socket.c:1253 __sctp_setsockopt_connectx net/sctp/socket.c:1337 [inline] sctp_getsockopt_connectx3+0x220/0x300 net/sctp/socket.c:1422 sctp_getsockopt+0x910/0xaa0 net/sctp/socket.c:8134 sock_common_getsockopt+0x5d/0x70 net/core/sock.c:3917 do_sock_getsockopt+0x1fd/0x240 net/socket.c:2357 __sys_getsockopt net/socket.c:2386 [inline] __do_sys_getsockopt net/socket.c:2393 [inline] __se_sys_getsockopt net/socket.c:2390 [inline] __x64_sys_getsockopt+0x11e/0x1a0 net/socket.c:2390 x64_sys_call+0x12aa/0x2fb0 arch/x86/include/generated/asm/syscalls_64.h:56 do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline] do_syscall_64+0xd2/0x200 arch/x86/entry/syscall_64.c:94 entry_SYSCALL_64_after_hwframe+0x77/0x7f read to 0xffff88810bc0c348 of 8 bytes by task 7064 on cpu 1: memcmp lib/string.c:683 [inline] bcmp+0x23/0x90 lib/string.c:715 memcmp include/linux/fortify-string.h:727 [inline] __bpf_get_stackid+0x371/0x800 kernel/bpf/stackmap.c:279 ____bpf_get_stackid kernel/bpf/stackmap.c:324 [inline] bpf_get_stackid+0xee/0x120 kernel/bpf/stackmap.c:300 ____bpf_get_stackid_raw_tp kernel/trace/bpf_trace.c:1811 [inline] bpf_get_stackid_raw_tp+0xf6/0x120 kernel/trace/bpf_trace.c:1800 bpf_prog_e6fc920cfeff8120+0x2a/0x32 bpf_dispatcher_nop_func include/linux/bpf.h:1322 [inline] __bpf_prog_run include/linux/filter.h:718 [inline] bpf_prog_run include/linux/filter.h:725 [inline] __bpf_trace_run kernel/trace/bpf_trace.c:2258 [inline] bpf_trace_run2+0x107/0x1c0 kernel/trace/bpf_trace.c:2299 __do_trace_kfree include/trace/events/kmem.h:94 [inline] trace_kfree include/trace/events/kmem.h:94 [inline] kfree+0x27b/0x320 mm/slub.c:4829 context_destroy security/selinux/ss/context.h:185 [inline] security_compute_sid+0x11da/0x1290 security/selinux/ss/services.c:1926 security_transition_sid+0x5a/0x70 security/selinux/ss/services.c:1948 selinux_determine_inode_label+0x1e3/0x210 security/selinux/hooks.c:1803 may_create+0x1e2/0x2b0 security/selinux/hooks.c:1837 selinux_inode_symlink+0x22/0x30 security/selinux/hooks.c:3041 security_inode_symlink+0x79/0xc0 security/security.c:2180 vfs_symlink+0x84/0x1e0 fs/namei.c:4735 do_symlinkat+0xc7/0x3c0 fs/namei.c:4765 __do_sys_symlinkat fs/namei.c:4781 [inline] __se_sys_symlinkat fs/namei.c:4778 [inline] __x64_sys_symlinkat+0x5a/0x70 fs/namei.c:4778 x64_sys_call+0x1558/0x2fb0 arch/x86/include/generated/asm/syscalls_64.h:267 do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline] do_syscall_64+0xd2/0x200 arch/x86/entry/syscall_64.c:94 entry_SYSCALL_64_after_hwframe+0x77/0x7f value changed: 0xffffffff81d34442 -> 0xffffffff84ff4533 Reported by Kernel Concurrency Sanitizer on: CPU: 1 UID: 0 PID: 7064 Comm: syz-executor Not tainted 6.16.0-rc4-syzkaller-00013-g66701750d556 #0 PREEMPT(voluntary) Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 05/07/2025 ==================================================================