From nobody Sun Feb 8 05:41:29 2026 Received: from mail-il1-f208.google.com (mail-il1-f208.google.com [209.85.166.208]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 5EB9430BB95 for ; Mon, 10 Nov 2025 19:01:42 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.166.208 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1762801304; cv=none; b=AaNktvlQ1Y+3VuVcnXkhZCfjmJL+PPGs69dnQgc72DalfSKY5qCbAue90N4PmUuUwtdI3wvp6E71N1F58eg8Ox+gh0ah2uV74f70MxfRs7RkgdQGvDJsWaD6B3qlNpafeVG9RmhvrehIybQW8SiHDGGZVjQzi8mgj+Gun3uxFqI= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1762801304; c=relaxed/simple; bh=CtJjIVCozGoxnl/YnDsJ9euvZLtczherF/NHaaFFE1o=; h=MIME-Version:Date:In-Reply-To:Message-ID:Subject:From:To: Content-Type; b=dFPKRn2OBSSDACcNwtqNMP9NNvbaN4k4PWdZt7scEzBM+wx/sdv/1PSDvSb8Rg8B2QbT2kfMdGwJt8OcpaZweNgaKt3IyYV73uRIVS0WT6oAHVE1zEdIcGxf8DgQZGiiJnx+9zPoce6zUT+8J2kc/AKSC02CO6/LDs6g30oUKls= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=fail (p=none dis=none) header.from=syzkaller.appspotmail.com; spf=pass smtp.mailfrom=M3KW2WVRGUFZ5GODRSRYTGD7.apphosting.bounces.google.com; arc=none smtp.client-ip=209.85.166.208 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-il1-f208.google.com with SMTP id e9e14a558f8ab-4337e902d2bso14587265ab.3 for ; Mon, 10 Nov 2025 11:01:42 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1762801301; x=1763406101; h=to:from:subject:message-id:in-reply-to:date:mime-version :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=JVoyYeuJL//FvxlkfjGcCf8LDeV1EsoUSvPnL0cwUqg=; b=Fw4CVn3Q+YmcGWM3zT0LFRdrbxbdXUZPk+knkBU3rnDRv9rdWdX7o88TagVwGSL8Ap CvBsqv9YQKCubMGxUWbCHpsHZxm5b7KxjHbPkbAaeb/ZpDwyeVNLqvDfWYJ08ZknAeUS a0k1KEbOmSv6WsirIldoifzcEj823mQR4clG5k714iVBBDyD1N1HohQfW8yoQ0AxSh4g RdLHCa8D1Dx+gMJdRWB7jRnuJThy9tRq41WvTswU8LQIL8kORtroR2K2UYo2psWQJ7w6 zeeymOrJWiaHpUWH3gPQwUPt70eTQUlMFDDs/9vZi2pE8gEcQTW7qe3+FzFhXYxYvuZN yTVw== X-Gm-Message-State: AOJu0Yx6yIr2/vN/J0k255gATSVss4bEuM1DDy7U55vQXJW09ZbLErGT klgrITHu3MlrAQIQa7Z+9+4+Uz2ttAjfbei6IkUiIfZOlqcrt84/QQzKGGXHxuD8THdgmgjY8c7 Nk6zSRLzZX586z49JwTiosKZQm4nv+6oAGC4hsIe5kNKryuGljj6POi9gI/E/dg== X-Google-Smtp-Source: AGHT+IElVkIjAazOhcfWzHB48JxAuMSzO9a5g+WwcLqU6yg31gZzETnGsBkMbcg+On3DL28BeT1OWsglNtlSfbbZIH1xGuBTWTU4 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-Received: by 2002:a05:6e02:1fc3:b0:430:aea6:833f with SMTP id e9e14a558f8ab-43367de82c6mr120562845ab.8.1762801301108; Mon, 10 Nov 2025 11:01:41 -0800 (PST) Date: Mon, 10 Nov 2025 11:01:41 -0800 In-Reply-To: <691231dc.a70a0220.22f260.0101.GAE@google.com> X-Google-Appengine-App-Id: s~syzkaller X-Google-Appengine-App-Id-Alias: syzkaller Message-ID: <69123695.a70a0220.22f260.0103.GAE@google.com> Subject: Forwarded: Re: [syzbot] [bpf?] KASAN: stack-out-of-bounds Write in __bpf_get_stack From: syzbot To: linux-kernel@vger.kernel.org, syzkaller-bugs@googlegroups.com Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" For archival purposes, forwarding an incoming command email to linux-kernel@vger.kernel.org, syzkaller-bugs@googlegroups.com. *** Subject: Re: [syzbot] [bpf?] KASAN: stack-out-of-bounds Write in __bpf_get_= stack Author: listout@listout.xyz On 10.11.2025 10:41, syzbot wrote: > Hello, >=20 > syzbot found the following issue on: >=20 > HEAD commit: f8c67d8550ee bpf: Use kmalloc_nolock() in range tree > git tree: bpf-next > console output: https://syzkaller.appspot.com/x/log.txt?x=3D121a50b4580000 > kernel config: https://syzkaller.appspot.com/x/.config?x=3De46b8a1c64546= 5a9 > dashboard link: https://syzkaller.appspot.com/bug?extid=3Dd1b7fa1092def36= 28bd7 > compiler: Debian clang version 20.1.8 (++20250708063551+0c9f909b797= 6-1~exp1~20250708183702.136), Debian LLD 20.1.8 > syz repro: https://syzkaller.appspot.com/x/repro.syz?x=3D12270412580= 000 > C reproducer: https://syzkaller.appspot.com/x/repro.c?x=3D128bd084580000 >=20 > Downloadable assets: > disk image: https://storage.googleapis.com/syzbot-assets/d9e95bfbe4ee/dis= k-f8c67d85.raw.xz > vmlinux: https://storage.googleapis.com/syzbot-assets/0766b6dd0e91/vmlinu= x-f8c67d85.xz > kernel image: https://storage.googleapis.com/syzbot-assets/79089f9e9e93/b= zImage-f8c67d85.xz >=20 > The issue was bisected to: >=20 > commit e17d62fedd10ae56e2426858bd0757da544dbc73 > Author: Arnaud Lecomte > Date: Sat Oct 25 19:28:58 2025 +0000 >=20 > bpf: Refactor stack map trace depth calculation into helper function >=20 > bisection log: https://syzkaller.appspot.com/x/bisect.txt?x=3D1632d0b458= 0000 > final oops: https://syzkaller.appspot.com/x/report.txt?x=3D1532d0b458= 0000 > console output: https://syzkaller.appspot.com/x/log.txt?x=3D1132d0b4580000 >=20 > IMPORTANT: if you fix the issue, please add the following tag to the comm= it: > Reported-by: syzbot+d1b7fa1092def3628bd7@syzkaller.appspotmail.com > Fixes: e17d62fedd10 ("bpf: Refactor stack map trace depth calculation int= o helper function") >=20 > =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D > BUG: KASAN: stack-out-of-bounds in __bpf_get_stack+0x5a3/0xaa0 kernel/bpf= /stackmap.c:493 > Write of size 168 at addr ffffc900030e73a8 by task syz.1.44/6108 #syz test diff --git a/kernel/bpf/stackmap.c b/kernel/bpf/stackmap.c index 2365541c81dd..c68589d0f5f0 100644 --- a/kernel/bpf/stackmap.c +++ b/kernel/bpf/stackmap.c @@ -479,7 +479,6 @@ static long __bpf_get_stack(struct pt_regs *regs, struc= t task_struct *task, goto err_fault; } =20 - trace_nr =3D trace->nr - skip; copy_len =3D trace_nr * elem_size; =20 ips =3D trace->ip + skip; --=20 Regards, listout