From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from out-181.mta1.migadu.com (out-181.mta1.migadu.com [95.215.58.181]) (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 AE1F3303A0A for ; Sat, 21 Mar 2026 16:55:28 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=95.215.58.181 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1774112130; cv=none; b=GXcNvVBOLRQxZSRi8unE+XwbCSF7XHoXNo265lXsfFqU4zoImQiPbL1m/Wtcow17RQVXuYJtaTabOmW3rTrm3SfgoVon0SFCCNhGX2IXZPn6VK+ovClGTIWb4XoWiPD8U119673Td6J7RjJ9hm9yYjl04O9W2lLCYlhiess68V8= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1774112130; c=relaxed/simple; bh=MKn/1LL70V0yuCTc9ZKa5/QA2zU32c+fbOYMAks8u4g=; h=Message-ID:Date:MIME-Version:Subject:To:Cc:References:From: In-Reply-To:Content-Type; b=ObLE7lYNinME7c+vHts30jDmIbSG3IhvZum/6+qgo+VV/+zaLiWjY9fuLLOSjvbpElCWFGrscucHugGBDaAQ/R4IJNaLRRhqw4HwhvogDvOEvFIYplZ9ew9evVIt1R/xsPRaLOVl2++gYZX21znpmR0QAPipiPwwOoHi7md9ZaY= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.dev; spf=pass smtp.mailfrom=linux.dev; dkim=pass (1024-bit key) header.d=linux.dev header.i=@linux.dev header.b=g/rXUFhk; arc=none smtp.client-ip=95.215.58.181 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.dev Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linux.dev Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linux.dev header.i=@linux.dev header.b="g/rXUFhk" Message-ID: <98688c8e-9f10-4b8c-96a6-a692bb9c4e24@linux.dev> DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux.dev; s=key1; t=1774112126; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=tCl0T88JvDdkpY9oIKdf6SD9Jh/555wS+PDgvRNEt8o=; b=g/rXUFhkV0sRpBBS+k8oRTvdEUURRjIm0khQoRTQMytKzWcbNSbnL4E4dPyEfCxqaPJ+vl 0j9BhUgd1FoLmoJ6b2gVveSbaq/yqxhbVnXnQ0XI+EpsKeUJ4uO/i/0ZWp1yvbX00XHCXa 1jwuWZRbevAes0uE8D6gpQLIEhavybY= Date: Sat, 21 Mar 2026 09:55:14 -0700 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Subject: Re: [PATCH bpf v2 2/2] selftests/bpf: Add tests for bpf_throw lock leak from subprogs Content-Language: en-GB To: Ihor Solodrai , Alexei Starovoitov , Andrii Nakryiko , Daniel Borkmann , Eduard Zingerman , Martin KaFai Lau Cc: Kumar Kartikeya Dwivedi , bpf@vger.kernel.org, linux-kernel@vger.kernel.org, kernel-team@meta.com References: <20260320000809.643798-1-ihor.solodrai@linux.dev> <20260320000809.643798-2-ihor.solodrai@linux.dev> X-Report-Abuse: Please report any abuse attempt to abuse@migadu.com and include these headers. From: Yonghong Song In-Reply-To: <20260320000809.643798-2-ihor.solodrai@linux.dev> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Migadu-Flow: FLOW_OUT On 3/19/26 5:08 PM, Ihor Solodrai wrote: > Add test cases to ensure the verifier correctly rejects bpf_throw from > subprogs when RCU, preempt, or IRQ locks are held: > > * reject_subprog_rcu_lock_throw: subprog acquires bpf_rcu_read_lock and > then calls bpf_throw > * reject_subprog_throw_preempt_lock: always-throwing subprog called while > caller holds bpf_preempt_disable > * reject_subprog_throw_irq_lock: always-throwing subprog called while > caller holds bpf_local_irq_save > > Assisted-by: Claude:claude-opus-4-6 > Signed-off-by: Ihor Solodrai Acked-by: Yonghong Song