From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-alma10-1.taild15c8.ts.net [100.103.45.18]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 0FEF75AEC7C; Mon, 31 Aug 2026 13:54:59 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=100.103.45.18 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1788184502; cv=none; b=YvMdxr3N7haSwfdLs7yu2PLoJSphdAc6dziqqUXXCFV9mSOFFpzPmpC3H0ewiD8QurpSpe5DkmUhutUnWZ7zMQz3/sdeLFntcrDzciCRmDrPALZBRzRADYwbiGwJPsz7oOk64Qri3Ll3aESNds0KkIbn/yRyD/9OipIHa/Bm51I= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1788184502; c=relaxed/simple; bh=YcybwtaTK9GC60DguMRDIY5FeMYbP28Nct8FtZZrmT8=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=YzWnNluo0bXB1CiU2agcfaH+eQX145XFtEN3mL2kD7IE1ukGf0NDaWWl569hgG/+76Th+5M6SvbGEiUKCVKdhnAG5CIk551ORmD6oUBqCTN9mN1jpbaRBwlgQKcrKXOY6jCX1wnoVYZkjx4irjpbtYhk/tEW/wP8vYSKnXb+9+c= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=LxKTrP9Q; arc=none smtp.client-ip=100.103.45.18 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b="LxKTrP9Q" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 2D5281F000E9; Mon, 31 Aug 2026 13:54:59 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=korg; t=1788184499; bh=0u+H4olGJmEUu0/hdhVFIU47Q4kjCxm9VO2Bh1JGyQc=; h=From:To:Cc:Subject:Date:In-Reply-To:References; b=LxKTrP9Q29AJO9/jwJ9pAdr3CcuMDv8PGK6SURM4hkCGF68Qc213xC+mfvU9/HiRe 1OVd9E6nU7iJMDwa6uUw84AjYNswvXEcPaeavqFxEvZl/1ZbovGWR7uABR5hFOcOXq 4xagNUrWrpdTx3MbmY8k15y2vpprjPNphd9Mzdfw= From: Greg Kroah-Hartman To: stable@vger.kernel.org Cc: Greg Kroah-Hartman , patches@lists.linux.dev, Martin KaFai Lau , syzbot+608a2acde8c5a101d07d@syzkaller.appspotmail.com, Sebastian Andrzej Siewior , Daniel Borkmann , Martin KaFai Lau , Sasha Levin Subject: [PATCH 6.6 08/91] bpf: Remove tst_run from lwt_seg6local_prog_ops. Date: Mon, 31 Aug 2026 15:33:56 +0200 Message-ID: <20260831133359.939415816@linuxfoundation.org> X-Mailer: git-send-email 2.55.0 In-Reply-To: <20260831133359.468089036@linuxfoundation.org> References: <20260831133359.468089036@linuxfoundation.org> User-Agent: quilt/0.69 X-stable: review X-Patchwork-Hint: ignore Precedence: bulk X-Mailing-List: patches@lists.linux.dev List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 6.6-stable review patch. If anyone has any objections, please let me know. ------------------ From: Sebastian Andrzej Siewior [ Upstream commit c13fda93aca118b8e5cd202e339046728ee7dddb ] The syzbot reported that the lwt_seg6 related BPF ops can be invoked via bpf_test_run() without without entering input_action_end_bpf() first. Martin KaFai Lau said that self test for BPF_PROG_TYPE_LWT_SEG6LOCAL probably didn't work since it was introduced in commit 04d4b274e2a ("ipv6: sr: Add seg6local action End.BPF"). The reason is that the per-CPU variable seg6_bpf_srh_states::srh is never assigned in the self test case but each BPF function expects it. Remove test_run for BPF_PROG_TYPE_LWT_SEG6LOCAL. Suggested-by: Martin KaFai Lau Reported-by: syzbot+608a2acde8c5a101d07d@syzkaller.appspotmail.com Fixes: d1542d4ae4df ("seg6: Use nested-BH locking for seg6_bpf_srh_states.") Fixes: 004d4b274e2a ("ipv6: sr: Add seg6local action End.BPF") Signed-off-by: Sebastian Andrzej Siewior Acked-by: Daniel Borkmann Link: https://lore.kernel.org/r/20240710141631.FbmHcQaX@linutronix.de Signed-off-by: Martin KaFai Lau Signed-off-by: Sasha Levin --- net/core/filter.c | 1 - 1 file changed, 1 deletion(-) diff --git a/net/core/filter.c b/net/core/filter.c index 62d21a961e5ec..23e9deba098c9 100644 --- a/net/core/filter.c +++ b/net/core/filter.c @@ -11117,7 +11117,6 @@ const struct bpf_verifier_ops lwt_seg6local_verifier_ops = { }; const struct bpf_prog_ops lwt_seg6local_prog_ops = { - .test_run = bpf_prog_test_run_skb, }; const struct bpf_verifier_ops cg_sock_verifier_ops = { -- 2.53.0