From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-dl1-f45.google.com (mail-dl1-f45.google.com [74.125.82.45]) (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 F28F533F584 for ; Mon, 22 Jun 2026 18:51:14 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=74.125.82.45 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1782154276; cv=none; b=NbmTcIpRzicsqX8//VZYMPy7e20m0Jk5R3a8YMdEIsAEqQ4/euj2KZHIHFm45WGq4EfstmS0ZMsynLzLSd/Vu/LQskWua4EfX056hEUcBQ76MlJpIQROZzy0ZUy+9LbNgyykDvwRc1dIE+1VIGt+uF1I2IuolNOkZE1uL5lxOVM= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1782154276; c=relaxed/simple; bh=6UIQirELPadVMjM0vUy1/xS19vG9UcIUXiKx10fU0u0=; h=Message-ID:Subject:From:To:Cc:Date:In-Reply-To:References: Content-Type:MIME-Version; b=gHZag58s0kQtLVXYvqtbSBTFMvgfqFFi4p9+jdX+7/LruAuvJZ64pgyCF8Plsr1cA7/gENumia5sU3YljScxyp4HPSkSzRpCUlY97aRIi6MaXqst3V9jOYZ1prphAgoRRCZUyf2sx7g/56N4NVSEesNHk168ze4JNqloQraTZrI= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com; spf=pass smtp.mailfrom=gmail.com; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b=VeP4nh0L; arc=none smtp.client-ip=74.125.82.45 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="VeP4nh0L" Received: by mail-dl1-f45.google.com with SMTP id a92af1059eb24-139a5f4ca15so3342918c88.1 for ; Mon, 22 Jun 2026 11:51:14 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20251104; t=1782154274; x=1782759074; darn=vger.kernel.org; h=mime-version:user-agent:content-transfer-encoding:references :in-reply-to:date:cc:to:from:subject:message-id:from:to:cc:subject :date:message-id:reply-to; bh=6UIQirELPadVMjM0vUy1/xS19vG9UcIUXiKx10fU0u0=; b=VeP4nh0LzHki/gljTQ5NRvRV5oYNZY61x2h6AXttAp4J8B3P8LqCh0VKTfwtfqPsc8 hihRlFishlhVUoSB64AjJdJxiuugTTX53hplFbAvVkCDuM0COJZ9dpEH/wfuu2QthdjV 24mrQuMsO6g/4oCwFuLZE3vmHZDy/gsHR/pIlUMMVPH4yk1RLE3yPgM7oaALGSNpHoy2 5r1C5AW8Rn3Phh0vD7DEMC3ATlEw0UOdyI2gUn+W6NC6Ako4diXrCFU1WanVdlqhLyVg AmhnpNjchMZM1/Nqh9JtpRF1j6HVQAHj9fEm2+yGP3qdj00SUJ5+DubqoODzF99JYyNX ckWA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1782154274; x=1782759074; h=mime-version:user-agent:content-transfer-encoding:references :in-reply-to:date:cc:to:from:subject:message-id:x-gm-gg :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=6UIQirELPadVMjM0vUy1/xS19vG9UcIUXiKx10fU0u0=; b=qcPeCHBBtARZJ9ANXyfqMTzf/KOapOQWf1hV+t2xaqWqrs4GLATGmIcE7COZ0lvNmy ZDb/wwyQKVyAwEu8a7fP3SoAFMhmFIvVCoxsf8f04n6S4Khms3uCSTEMJsX6HHn6xJQx dXqOfJqMDnPPvgL1ZUQPnOhT6Ed2MgRQEcOgKgz3pqaLoprMGphHzp3gyL8oDhQTdPFk eRNqrSFavUbCNEzPagHDlegFMZohVnjxQtb9AlHRehxbaSlOsA0wX5j99hfscD5U1P4M 2yOYezhuSqjFSlxHk6pDvUrg83HqmHPsLiL6o1KjoErKYZ6mwCNGQ++HZEpjB6qhpjmK SfrA== X-Forwarded-Encrypted: i=1; AFNElJ/rxgWRaEscnxzC1Qdw3eVV5nZ7ARfERfJjarl3JwAAQCkIb4S9NZfA2tcQ/gvNvC1MzYj8ue+ONHESld8=@vger.kernel.org X-Gm-Message-State: AOJu0YxYzncKtCReB4EzDcJZps/2/HpdVKtnEzdCJy1CbqRwP9w4d3dd vS5214zkLzdh99tkszBFtHoMwP7L2ZT4bD5s23tjaYS+i/tgidih4iti X-Gm-Gg: AfdE7cnptV8a7YZsfLbqquYz/7hsc5xnGvGcl0EewiFPmSuaKcJY50vDX425pqNNUHy dNAbHKVv0Bc7o/aKjRl8uI8ezUuu/vMPpT7/BLFMt8sHANOp5XHuXk0qVV+PxHgrzJz0u49z3xt 7YzpMeGp64/7khtwiHU4X6XFtgC5gGlLIoYnfrvzwoy2+wro47P/Fp/RtLLSp8Z34vhNg1BxUqW Gfqw5VV+V/7UkVNEaN4J4lQUmNpCDBb1Gb8SQIrHrenWO1ugCkC5i+jXR4wYNgirrORPcs4x9t6 YGBn166laFaSram6cqD7sclkEK2KrT7mKD6Db5zcxpkhSaWxMaLLm+nBmLX1ZYMBQLns6bo5u5B Xg00AunaT2oYX8mBV8/6GlgCAV1+AT6NBT8niG7VYwb9/N1Wc+7hoHubg9dfMxVZrJNaMKMM4Wf 3YzSQYQrEPBBEgagsEI1xC9rTMnXU/e6TwMrJQTng2CQm3ozs7tcs7t5DpMWIftbXR8jw= X-Received: by 2002:a05:7022:ff44:b0:136:5c88:d917 with SMTP id a92af1059eb24-139a34dbbaamr8472687c88.2.1782154274017; Mon, 22 Jun 2026 11:51:14 -0700 (PDT) Received: from ?IPv6:2a03:83e0:115c:1:6e2:c699:67c:63fe? ([2620:10d:c090:500::1:5387]) by smtp.gmail.com with ESMTPSA id a92af1059eb24-139adcc5f14sm9247956c88.6.2026.06.22.11.51.12 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 22 Jun 2026 11:51:13 -0700 (PDT) Message-ID: <935a7c6dd40466aca387d270c233ce9a8fa4eea1.camel@gmail.com> Subject: Re: [PATCH bpf-next 2/2] selftests/bpf: Cover flexible-array allocation rejection From: Eduard Zingerman To: Yiyang Chen , Alexei Starovoitov , Daniel Borkmann , Andrii Nakryiko , Kumar Kartikeya Dwivedi Cc: John Fastabend , Martin KaFai Lau , Song Liu , Yonghong Song , Jiri Olsa , Emil Tsalapatis , Shuah Khan , bpf@vger.kernel.org, linux-kselftest@vger.kernel.org, linux-kernel@vger.kernel.org Date: Mon, 22 Jun 2026 11:51:11 -0700 In-Reply-To: <5b0ecdf774f8f5de5c1d8ecd56368720afb5a14d.1782100805.git.chenyy23@mails.tsinghua.edu.cn> References: <5b0ecdf774f8f5de5c1d8ecd56368720afb5a14d.1782100805.git.chenyy23@mails.tsinghua.edu.cn> Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable User-Agent: Evolution 3.60.1 (3.60.1-1.fc44) Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 On Mon, 2026-06-22 at 04:56 +0000, Yiyang Chen wrote: > Add a linked_list negative loader case for a program-BTF type whose last > member is a zero-length flexible array. The program writes through the > first flexible-array element so an incorrect allocation-time acceptance > would leave the verifier to approve an access outside the allocated objec= t. >=20 > Use the explicit _impl kfunc forms in this negative test so the case is > scoped to the allocation type check and not to implicit kfunc wrapper > resolution. >=20 > Signed-off-by: Yiyang Chen > --- Acked-by: Eduard Zingerman [...]