From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=100.103.45.18 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1796154688; b=VMSAlxpP5zRnp8PKdBaNBTEWnSjDox06B4lX3q55HwuexzXd/8ozdgUCxip2iQf9n2F5 dllDFvpL77rQCqxeWnmBMkuBqyGEYW1JSEyoug8G5Cka98Uz2H58nZZzqnLrVx1yBR+Or NyPOZlj57LQStEuLAkXLVHsCs4UiheQkPbRl1kVze5O4G3C6a/F+DYieM1nBtyxzpbhxw 4Stfosr00VFWqFx6DykUl+bGCnjb2XxsLWrwahclM1z5GonqKtGT2vRKPRdNP+u8Oqu2s FlpXqplF4SPuD+oGwcsagZaWwONSSfKRroORlZelOIa6z2GWbDi9mjmD6jZlOiyy9ow== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796154688; h=Received:DKIM-Signature:Message-ID:From:Subject:Reply-To:To:Cc: In-Reply-To:References:Content-Type:Content-Transfer-Encoding:Date; bh=LwB5aOUFSSYM9XhOWJ1QuwxzwlKn4Dc5jyvByfcyvcU=; b=31qke6f3weTeX+9CPz3lcNm3Rhi4aA9OAerWVKJ3K3DNEibL6kL8IZCHRh0gAWXu2Wz6 80FM2PTPqtAiYoKktxHDBagjINg5VIPEmpCZyRGF1zlYCiMDqOAKGBNwTrpfIneXr6k8H FeQSBMFrQxa+vjROy8pVU8uc3XdleXWxhT6GNUzALPP7hUCEz/vI44dlnTunmgvzrYZ6R DAI5deZmSPuxAYjO36j3I/fl1cfj2gzTj5FFGzOWO8HqX1MbuwQlIe7JF6HspgZss83iS WaYnpcCCENp3Rncvx39l0bPKrgKfPZvY2LFGZ5SDSWF9rZOBtFJaY7LAc59Ac26wISQ== ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20260515 header.b=L5CgejaH; arc=none smtp.remote-ip=100.103.45.18 Received: from smtp.kernel.org (quasi.space.kernel.org [100.103.45.18]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (prime256v1)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 3329A606A31A; Tue, 1 Dec 2026 19:51:28 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20260515 header.b=L5CgejaH Received: by smtp.kernel.org (Postfix) with ESMTPSA id B4AFF1F00898; Tue, 1 Dec 2026 19:51:27 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel.org; s=k20260515; t=1796154688; bh=LwB5aOUFSSYM9XhOWJ1QuwxzwlKn4Dc5jyvByfcyvcU=; h=From:Subject:Reply-To:To:Cc:In-Reply-To:References:Date; b=L5CgejaHRFLFUGiiHBK11xhyTKeapKPCVd2BelKucwCQC7Hm5xr1sU2EECA16rNGY xbMJCAdfrNvzwEkqEkmFa1VFhdqKgk92y/PPE6QDRnRkg1BZsbTT4mr3gXYQUQDGhc ljb0R94vsgz4ET+LcgJIaLHADFXhE48DbZLNtesbH4S9xabKJH62DRL3z8m/ck8Med KP0b8Bjus+ppnLUUSgS5hH3wq38ceY9AcbGJC2SbyNZa6J/REW2gyDZf1VQuNkdGwL Yh6RkUv8ZkUDK6EWLScv7yu5zCv8sWxNjwRqKicDik8CDWGiqtMqWxzz0DMCmKdl49 Pckmy00C4Fa2Q== Message-ID: From: sashiko-bot@kernel.org Subject: Re: [PATCH v13 35/36] selftests/sched: Test PI against hotplug and rebuilds in deadline_bw_test Reply-To: sashiko-reviews@lists.linux.dev To: "Mathieu Desnoyers" Cc: linux-rt-devel@lists.linux.dev, tj@kernel.org, hannes@cmpxchg.org, mkoutny@suse.com, linux-kernel@vger.kernel.org In-Reply-To: References: Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Date: Tue, 01 Dec 2026 19:51:27 +0000 X-Mailing-List: linux-rt-devel@lists.linux.dev List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list Thank you for your contribution! Sashiko AI review found 1 potential issue to consider: - [Low] selftests/sched: out-of-bounds read in pi_deboost_during_rebuild() -- commit 03c5e3bed0b33b1aacdfd04e920a11ba863127a5 Author: Mathieu Desnoyers selftests/sched: Test PI against hotplug and rebuilds in deadline_bw_test This commit adds the pi_departed_offline_boost and pi_deboost_during_rebuild test cases to deadline_bw_test to test priority inheritance against CPU hotplug and bandwidth accounting rebuilds. > diff --git a/tools/testing/selftests/sched/deadline/deadline_bw_test.c b/= tools/testing/selftests/sched/deadline/deadline_bw_test.c > index bca333d5498c6..e68d9437580fa 100644 > --- a/tools/testing/selftests/sched/deadline/deadline_bw_test.c > +++ b/tools/testing/selftests/sched/deadline/deadline_bw_test.c [ ... ] > @@ -12596,6 +12755,320 @@ static int affinity_vs_setattr(void) > +static int pi_deboost_during_rebuild(void) > +{ > + int cpu[2] =3D { top_cpu(4), top_cpu(3) }, q_root =3D 1, ret =3D KSFT_F= AIL, i; > + long long base, bw_t, bw_w, tb; > + char cg_r[PATH_MAX + 32], cpus[32]; > + pid_t filler =3D -1, proc =3D -1; > + uint64_t end, d, dmax =3D 0; > + > + if (ncpus < 5) { > + ksft_print_msg("needs 5 non-isolated CPUs\n"); > + return KSFT_SKIP; > + } [Severity: Low] Can the cpu[2] initializer read out of bounds before the ncpus < 5 check? top_cpu(n) returns online[ncpus - n], and main() runs p_cases[] as long as ncpus >=3D 3. On a machine with 3 non-isolated CPUs, top_cpu(4) reads online[-1] before the ncpus < 5 check skips the test. --=20 Sashiko AI review =C2=B7 https://sashiko.dev/#/patchset/cover.1796146461.gi= t.mathieu.desnoyers@efficios.com?part=3D35