From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=209.85.160.70 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1795056819; b=l3u75D3pf5N2auTMH7R6tNrsqhJJcIyZpG3M3qLsYFmRhK6mSXxFDvx4kObsTNG4srAi gWQwOGs8MuQ7aRNFnGsoSGxDjxqnVk1H7aDIH0D/YxZLFg2xHyvyOdEM9MTOcg+Sek9Ro fqrP+9wGU94v22w42e8d34KmM7KYHF/Wj0iHfCsBL2CQ5wLUwTbuk0HWn2FE9p0DmUn64 qCvSk4865cYzSsfKwOQJzTd9xlhwlg8U8dkz9E5FuN2JGdmvXm7/gZDktAsSTWHtnRhYI GjfHaSDB7bL/oped1uPyotpzvgdKSOwknRqUTwHsfiFpI0X4GvtfeaKrUgIXt5peMyg== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1795056819; h=DMARC-Filter:Received:X-Google-DKIM-Signature:X-Forwarded-Encrypted: X-Gm-Message-State:MIME-Version:X-Received:Date: X-Google-Appengine-App-Id:X-Google-Appengine-App-Id-Alias:Message-ID: Subject:From:To:Content-Type; bh=9tWToM0lifFSyYKYANxc0yn8qaqJFP/ZYyDXn3gAv98=; b=f7djISOsv5IXia3hSyapdKvCL7HbjLTFL3nwu0IBduFp4UEYcNC5a7zjsi4BCS4dtMfp kE9PnpTBkx2NPBHmxaWa7yKFIWMYgyDI2nWBHYr2xhe7GcAU9mIhxX6dsEYhRciQGPCN4 tkk+Z3BRTqwJ4PoddIggjwinjB0DJyKZnw7Ll1ERJsz7VZB7wRdHDaDf9yX4EhOir/lEM RIozf9jgKMYkCt3wo4j9LWjHNqr324GV37lJFIwCJ7VurzNOZ2CBXNsa9d30wi4uoa/Jd KMN8AJ/rmaQ1AFCum0iAHI6PAZO3x+B85JNl+L1fz5z3uerTlmStcTKNAIWY3oCp44g== ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=fail header.from=syzkaller.appspotmail.com; spf=pass smtp.mailfrom=M3KW2WVRGUFZ5GODRSRYTGD7.apphosting.bounces.google.com; arc=none smtp.remote-ip=209.85.160.70 Received: from mail-oa1-f70.google.com (mail-oa1-f70.google.com [209.85.160.70]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature ECDSA (prime256v1) server-digest SHA256) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id C21E6606A32C for ; Thu, 19 Nov 2026 02:53:38 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org C21E6606A32C Authentication-Results: smtp.subspace.kernel.org; dmarc=fail (p=none dis=none) header.from=syzkaller.appspotmail.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=M3KW2WVRGUFZ5GODRSRYTGD7.apphosting.bounces.google.com Received: by mail-oa1-f70.google.com with SMTP id 586e51a60fabf-4ae40674bd0so1270501fac.2 for ; Wed, 18 Nov 2026 18:53:38 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1795056818; x=1795661618; h=content-type:to:from:subject:message-id:date:mime-version :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to :content-type; bh=9tWToM0lifFSyYKYANxc0yn8qaqJFP/ZYyDXn3gAv98=; b=sAjH7iKwd06VFb3Ql+HvHK1s0KFn6VoLNEPaOxt59Z7kXU6RCasc3SO8+SRDkZ5R4L 7HZMwBdK/HczAObXOCGmIkZsSJi6uI6ZXUSYwJC8H0BrFmRORl8PSuL1Kn5Ab1Cr9Po+ t5Q8qwP2WKo2SBIxsRgpPJlbgwJpG+eG8A0tkLpA0ClIujEjpFPzCG3ze3qDUaYpdH9A 8bbYdLEi+qUCTQ4ZqkJEDQZxx4HEis8Uli/7bHD4ZZDs8JsS+HfLDdO1ZrZoOJMEvj/8 5U7Ba8U792E1KQQGzXbI8r2QMd27DWXviZR4uRZLJkJwU833y169P3/6KRdZSYvcrS5b BzHw== X-Forwarded-Encrypted: i=1; AL+hErGE/iUUtXWqCfwVZnMR3KJKcqDGsuDnmWJsgCYpYFXRJze0Y1zDMcV11BfHnxvrUtfZp4MDvnFccg+H2Ug=@vger.kernel.org X-Gm-Message-State: APuU4Z8S2zL1HRtZUrqYOvCen/4GyE+jcR2Yvi8wJ3p+KD+68ZntPAfQ aXOS/tig9QtDUTS6q0CIffg9Kro2jpp+taEXZ125TBXOdurCTx9uGkIzxpqY7wqMj9NsH1DbJTG /Fz3mdVoYSChA6rMW+RgjdPJOiPch6lmj97YsqBxtyyznEW5YugWLza90wKg= X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list MIME-Version: 1.0 X-Received: by 2002:a05:6808:4f54:b0:4c3:db9b:3ead with SMTP id 5614622812f47-5773db23e12mr5790184b6e.3.1795056817810; Wed, 18 Nov 2026 18:53:37 -0800 (PST) Date: Wed, 18 Nov 2026 18:53:37 -0800 X-Google-Appengine-App-Id: s~syzkaller X-Google-Appengine-App-Id-Alias: syzkaller Message-ID: <6afe64b1.92f98041.20636d.0000.GAE@google.com> Subject: [syzbot] [net?] KCSAN: data-race in __seccomp_filter / bpf_sk_storage_free From: syzbot To: ameryhung@gmail.com, ast@kernel.org, davem@davemloft.net, edumazet@kernel.org, horms@kernel.org, josef@toxicpanda.com, kuba@kernel.org, linux-kernel@vger.kernel.org, martin.lau@kernel.org, netdev@vger.kernel.org, pabeni@redhat.com, syzkaller-bugs@googlegroups.com Content-Type: text/plain; charset="UTF-8" Hello, syzbot found the following issue on: HEAD commit: 666539eecdf4 Merge tag 'assoc-array-fixes-v2' git tree: upstream console output: https://syzkaller.appspot.com/x/log.txt?x=146ba4b5580000 kernel config: https://syzkaller.appspot.com/x/.config?x=b949a9d3c1d44ceb dashboard link: https://syzkaller.appspot.com/bug?extid=dbe9d09c93ae0bb86ae1 compiler: Debian clang version 22.1.8 (1~deb13u4), Debian LLD 22.1.8 Unfortunately, I don't have any reproducer for this issue yet. Downloadable assets: disk image: https://storage.googleapis.com/syzbot-assets/a943b9915869/disk-666539ee.raw.xz vmlinux: https://storage.googleapis.com/syzbot-assets/9bfd839d7ea5/vmlinux-666539ee.xz kernel image: https://storage.googleapis.com/syzbot-assets/0f20b9720a71/bzImage-666539ee.xz AI-generated root cause summary: Commit 378b7708194f moved __migrate_disable() and __migrate_enable() inline from kernel/sched/core.c (where KCSAN instrumentation is disabled via KCSAN_SANITIZE := n) into include/linux/sched.h. In __migrate_disable(), this_rq_pinned()++ is updated with only preemption disabled (via guard(preempt)()), without disabling hardware interrupts. When an interrupt fires on the same CPU while a task is executing __migrate_disable(), the interrupt exit path invokes softirqs (such as RCU core callbacks running deferred_put_nlk_sk -> bpf_sk_storage_free), which calls rcu_read_lock_dont_migrate() -> migrate_disable(), resulting in an uninstrumented/non-IRQ-safe nested read-modify-write on CPU 0's rq->nr_pinned that triggers KCSAN. full analysis: https://syzkaller.appspot.com/x/ai_root_cause?x=dbe9d09c93ae0bb86ae1 IMPORTANT: if you fix the issue, please add the following tag to the commit: Reported-by: syzbot+dbe9d09c93ae0bb86ae1@syzkaller.appspotmail.com ================================================================== BUG: KCSAN: data-race in __seccomp_filter / bpf_sk_storage_free read-write to 0xffff888237c2ccf0 of 4 bytes by interrupt on cpu 0: __migrate_disable include/linux/sched.h:2495 [inline] migrate_disable include/linux/sched.h:2512 [inline] rcu_read_lock_dont_migrate include/linux/rcupdate.h:990 [inline] bpf_sk_storage_free+0x7b/0x210 net/core/bpf_sk_storage.c:52 __sk_destruct+0x12e/0x4d0 net/core/sock.c:2398 sk_destruct net/core/sock.c:2448 [inline] __sk_free+0x23c/0x280 net/core/sock.c:2459 sk_free+0x55/0x90 net/core/sock.c:2470 deferred_put_nlk_sk+0x89/0xc0 net/netlink/af_netlink.c:712 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 delay_tsc+0x32/0xa0 arch/x86/lib/delay.c:71 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 __migrate_disable include/linux/sched.h:2495 [inline] migrate_disable include/linux/sched.h:2512 [inline] bpf_prog_run_pin_on_cpu include/linux/filter.h:836 [inline] seccomp_run_filters kernel/seccomp.c:426 [inline] __seccomp_filter+0x362/0x1400 kernel/seccomp.c:1283 __seccomp_permit_syscall+0x7d/0x150 kernel/seccomp.c:1410 syscall_trace_enter include/linux/entry-common.h:98 [inline] syscall_enter_from_user_mode_work include/linux/entry-common.h:147 [inline] do_syscall_64+0xce/0x3a0 arch/x86/entry/syscall_64.c:86 entry_SYSCALL_64_after_hwframe+0x77/0x7f read-write to 0xffff888237c2ccf0 of 4 bytes by task 6079 on cpu 0: __migrate_disable include/linux/sched.h:2495 [inline] migrate_disable include/linux/sched.h:2512 [inline] bpf_prog_run_pin_on_cpu include/linux/filter.h:836 [inline] seccomp_run_filters kernel/seccomp.c:426 [inline] __seccomp_filter+0x362/0x1400 kernel/seccomp.c:1283 __seccomp_permit_syscall+0x7d/0x150 kernel/seccomp.c:1410 syscall_trace_enter include/linux/entry-common.h:98 [inline] syscall_enter_from_user_mode_work include/linux/entry-common.h:147 [inline] do_syscall_64+0xce/0x3a0 arch/x86/entry/syscall_64.c:86 entry_SYSCALL_64_after_hwframe+0x77/0x7f Reported by Kernel Concurrency Sanitizer on: CPU: 0 UID: 0 PID: 6079 Comm: syz.0.1215 Not tainted syzkaller #0 PREEMPT(lazy) Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 11/06/2026 ================================================================== --- This report is generated by a bot. It may contain errors. See https://goo.gl/tpsmEJ for more information about syzbot. syzbot engineers can be reached at syzkaller@googlegroups.com. syzbot will keep track of this issue. See: https://goo.gl/tpsmEJ#status for how to communicate with syzbot. If the report is already addressed, let syzbot know by replying with: #syz fix: exact-commit-title If you want to overwrite report's subsystems, reply with: #syz set subsystems: new-subsystem (See the list of subsystem names on the web dashboard) If the report is a duplicate of another one, reply with: #syz dup: exact-subject-of-another-report If you want to undo deduplication, reply with: #syz undup