From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-dl1-f47.google.com (mail-dl1-f47.google.com [74.125.82.47]) (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 623784963DF for ; Tue, 9 Jun 2026 16:47:45 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=74.125.82.47 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1781023667; cv=none; b=F+JCAY6LLRrLm4DCJ+unqlzhmIVVlUprAJG4GQGO7FxtVpbEAhoVTHv/tIQjk690QnqC7JzMQonqYKk/kzQul2i9uS4nRSBcOkfJ0VN/JjAGTHOf1+QPMQRudNU0+o2x4mbjO5ujnwyQmjHOGYP0Xi3gL4JS/MNEDRyVQ4mIMLQ= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1781023667; c=relaxed/simple; bh=8tfPgrZ5njwmpOJtSnueMm9pFl26DajhtsqxQdPZBho=; h=Message-ID:Subject:From:To:Cc:Date:In-Reply-To:References: Content-Type:MIME-Version; b=NFHRp7arUQ2P56xbxpY4uQd+6/ucwi5CaOBY7RoHuZOUJnaJlYiwUQPbCWMmuUF7aWUNgAsjHBv6B3vnP7Ywi56rP6vcgCGUhA3ucqtXf+IzW4OEiYMLLiw9akgwZPbNB6lOvQXJNSbclTPtEnUL5OUcfjtpMmPaoLbvjV7ya3A= 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=g+UUsVQl; arc=none smtp.client-ip=74.125.82.47 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="g+UUsVQl" Received: by mail-dl1-f47.google.com with SMTP id a92af1059eb24-13721dfd471so7567588c88.1 for ; Tue, 09 Jun 2026 09:47:45 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20251104; t=1781023664; x=1781628464; 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=8tfPgrZ5njwmpOJtSnueMm9pFl26DajhtsqxQdPZBho=; b=g+UUsVQlOBTpDMk+OabNam55ZBM9vrq1xEKWCft+aUs0+F989KaB5Ai+62pLRWg17U 4x+hezgfs9n7+La/v+Arpuo88g0Q2ApY6JVzmhCzAUCg1XCef07gP+LBGRE4cacTHYU4 /05SmcLddo++RRHT0WGwnlTEjhMxFDV4wJHyWIGTNtjRUvK+ECWGuIdYzjN4oOT5aP7G tVdJtBuy9Qs7Zz+mAzCpTxz7AgEVgAvQKbq8qfg7/wtk9VrN2YrBzZk8KlcxU6rNeO3f zf2DeoULvEpVrlQrVzulSYtRwykpoEROezkCcilpbKE1Ro0KBequ0O2eMLt+eCurgi4J IsUQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1781023664; x=1781628464; 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=8tfPgrZ5njwmpOJtSnueMm9pFl26DajhtsqxQdPZBho=; b=eTyu70N4XBEmZdLww7Tvi/NJVRFvnFIZT+vghlg3rIQhW24GH861hOZyeyjg3qo+Kv pQBMBwJ2XvS63VwPJNdJlW6RpO2JXwZdFkCVRpZCSEBj9K4L63Nb8BYX2V4HRERNzT2n GrUyZ/j6gM+vXSJsgPTtOiFD+lXym5sK1Lc57FDKxNAlFpAWr4hBuiE86kzazOJp0pZx rw/1HW3qsfCP6tAwWvecDiFllO9LVLxcYVEfvAOcrmYFCbY5WMmbDUrZ+B/2wCcXR39k kEmyNTyn/Q3fNclOXaZ/Sq9YYdglc6vho6zyPEpdksvhJBkkNRnSNUqPS6K+aZpqUomP jtSQ== X-Forwarded-Encrypted: i=1; AFNElJ8d5bD/WSwGvcEbf9KuIbG79satvFFElO/V/brWKIUO2xV42b7yK6iWvxKEs90ubKVrUYqe909ll+K0ujE=@vger.kernel.org X-Gm-Message-State: AOJu0Yw8EgafIvtNiPE+dILQOWl3GQAlpP0YK4H+9bdkucxH0k424R+c 0KFJkVBe50jD/k3kID2opV2mG5xeNL5mIyBLPsZkW2sGcSPfn0mAUuIB X-Gm-Gg: Acq92OFzLopGKs2puV7wAMJNYvd8DhbrClp/QQKDo6yceKtaYnqMUg0/JA/SVfNQk5N W/5rYDNfszYvHYj0ibgHinJ7oKOrI/2+7+boddSRAvpDBEIJyYvI6+UUwSSsx5N7pit4CNr0jYi j+bKqFZ8xlawA/bnb0/kL/948TCzxN8W5gbODl+h80Vbj2yyqQ4CohsEMeeSi0Ap9hOuy3HZ5zP D4Meata/kgiRChzSyRCPawJoT0XkpjwxHMS5cByO8sPJqBPxj+gUcC/g8pNvv0DSbzGEW4/W1M2 2waQHW/lVSn8g5Vh5cExDUvd33lRW7pHFxq3axyABuhX99axdzeV8RH137eOtHQYl3Y1Uq7Po+5 YKmhBXydwPxOlabqCqMItlecKNNVs1PxFe46UR9SBhDG/ofhntnRVcAbaNKNjANnSwTSe4/jsz4 DQiXGtYlehaGZmRM3DL15BhwCjZjVtkuNUPpIjLul5YVkbKg4djtye4Ef9yrHroBaPfqFsuYJSX yRP/F6aM1VzCbasbdY= X-Received: by 2002:a05:7022:211:b0:128:d967:4673 with SMTP id a92af1059eb24-138066a8020mr11624934c88.16.1781023664342; Tue, 09 Jun 2026 09:47:44 -0700 (PDT) Received: from ?IPv6:2a03:83e0:115c:1:bc91:a683:c279:a106? ([2620:10d:c090:500::3:1322]) by smtp.gmail.com with ESMTPSA id a92af1059eb24-137f553ab33sm15118442c88.10.2026.06.09.09.47.42 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 09 Jun 2026 09:47:44 -0700 (PDT) Message-ID: Subject: Re: [PATCH bpf] selftests/bpf: Add BTF repeated field count overflow test From: Eduard Zingerman To: Paul Moses , martin.lau@linux.dev, ast@kernel.org, daniel@iogearbox.net, andrii@kernel.org, memxor@gmail.com, bpf@vger.kernel.org Cc: song@kernel.org, yonghong.song@linux.dev, jolsa@kernel.org, houtao1@huawei.com, linux-kernel@vger.kernel.org, stable@vger.kernel.org Date: Tue, 09 Jun 2026 09:47:41 -0700 In-Reply-To: References: 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 Tue, 2026-06-09 at 11:37 +0000, Paul Moses wrote: > From 7129e266643883a4f83e65fce3ce20c7f7269fb3 Mon Sep 17 00:00:00 2001 > From: Paul Moses > Date: Tue, 9 Jun 2026 05:08:54 -0500 > Subject: [PATCH bpf] selftests/bpf: Add BTF repeated field count overflow= test >=20 > Add a raw BTF test that exercises repeated special-field expansion with a > large array count. The compact element layout keeps the array byte size > representable while the repeated field count overflows the old u32 capaci= ty > calculation in btf_repeat_fields(). >=20 > Signed-off-by: Paul Moses > --- Note that this selftest is depending on a fix: https://lore.kernel.org/bpf/DJ4DWMO4HXCM.3NVLDGNT2704E@gmail.com/T/#t W/o the fix KASAN warning is reported when executing the test. Tested-by: Eduard Zingerman [...]