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=1796138573; b=JuGPfxGdH/VVTQVMNGIjKNn2/VqE5nMhxFUUwZ/MeItmDHFYrmFVBN0WEBw3zHaGiNkH yymSyyYSpJYymTPC4s36qdpy8zSNOT3Bkd3mi22qGW5IBsZpbJqJdGZ/n70Ze7VuaNzfn eX96ZAXnYI8iVjR3C/oxpZZlkalRSlnUTnBNpPIZbFdWT1Dn8jwbrc4HxRPESt7Oa/MMi WVyY1bxKCc2Dz0iRSbUAJkfm3jMh3wlWnBsaTwHC1uR9yWcGOA3uYdfIUixpD8UKpR5OM 2Gt8LjhHdk3YBmbb96JFcWGi2DHcc/xQpoLRDDGss0zDvh92pfbJNrZuQ/BH//S/z1g== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796138573; h=Received:DKIM-Signature:Message-ID:From:Subject:Reply-To:To:Cc: In-Reply-To:References:Content-Type:Content-Transfer-Encoding:Date; bh=mbs0gFfWSh03USc8eNAi47B5XgY5TMKiIKmSoiFiXDM=; b=ZLr+XKwy4Onqfqnqm1pbvNL5PPd/fgsDIeOLRVfvHaYYhMfEC29zv8QIRmbpSW1nCQPt H1aihVkTgb4BRTj63CPdoqztBBpCHj6ck2hOLnP4+bK4/egtYQfytRnsxIihAC6WyPIlx 0YXSgWJ6HnqeMvdszUiUpjZyU/lVQBevE+99HkIbTjjqCLFagRPQcWHTL9y3AUSzXi4yR tUZ58Ga6Li85f0ptmPTCDlh/ZpeXbKYMos8DVg+c4GRJdqyGf8FAKlvFjBuqdsv2QfpNS 0B13cNMSDbjaPIv7Ipvb6cKm3MYtH85CSufnLoqoHQRq4KxtobxXns0nnBWLnIek3SQ== 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=ZHD+vtiJ; 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 6E32D606A31A; Tue, 1 Dec 2026 15:22:53 +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=ZHD+vtiJ Received: by smtp.kernel.org (Postfix) with ESMTPSA id 606891F00898; Tue, 1 Dec 2026 15:22:52 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel.org; s=k20260515; t=1796138572; bh=mbs0gFfWSh03USc8eNAi47B5XgY5TMKiIKmSoiFiXDM=; h=From:Subject:Reply-To:To:Cc:In-Reply-To:References:Date; b=ZHD+vtiJVA+Wu4jyEcPlm4ppAJa9S/z87oHcNymuoKb0aMQ0bzv2Xg5en+H4mE1Ao 1aPDhLgyGstr0uMQ9BN5avHgWY00Za1CnliYGZcp8geFeSzWbpEVo9NOzHK2skHORk 7FlFUyYSMz9R3fKcxA89xochJTiHjaQk8J48sjovf4AV6DbZcJT9XfHYdb6p8RWSwv v6Qj6xeIGDOlqGUxo5Sw3hVdpc6gqG4gQQjr3j9tvpM0/7wJhvqCVHGtd9Ch9rmLnS KQ2ZtDsGq6xncJMEJbzsil0a2bDnFY+K+slqzxI9Pj7Iqoj97BhsxxPP+1wJ3zsQsD C/JGSfhaURljA== Message-ID: From: sashiko-bot@kernel.org Subject: Re: [PATCH] objtool/klp: Add test for computed-goto jump tables Reply-To: sashiko-reviews@lists.linux.dev To: "Seke Kazuru" , joe.lawrence@redhat.com Cc: live-patching@vger.kernel.org, jpoimboe@kernel.org, mbenes@suse.cz, pmladek@suse.com, song@kernel.org, peterz@infradead.org, bpf@vger.kernel.org In-Reply-To: <20261201151430.1712-1-kazuruuni@gmail.com> References: <20261201151430.1712-1-kazuruuni@gmail.com> Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Date: Tue, 01 Dec 2026 15:22:51 +0000 X-Mailing-List: bpf@vger.kernel.org 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: - [Medium] objtool/klp: test-computed-goto-table.sh fails due to correlated jump tables -- commit 97b09a5c42cefb33596dc72561fccb7f73672b2a Author: Seke Kazuru objtool/klp: Add test for computed-goto jump tables This commit adds a livepatch diff test and fixture covering static local computed-goto jump tables when label offsets move or remain unchanged. Link: https://lore.kernel.org/live-patching/CAJATrkz6CgsaAFjeGT_1TuUTxrpVYE= o=3D9rGuobnhpU-LPxv_dA@mail.gmail.com/ > diff --git a/tools/objtool/tests/generic/test-computed-goto-table.sh b/to= ols/objtool/tests/generic/test-computed-goto-table.sh > new file mode 100755 > index 0000000000000..46789654c9910 > --- /dev/null > +++ b/tools/objtool/tests/generic/test-computed-goto-table.sh > @@ -0,0 +1,137 @@ [ ... ] > + run_diff > + > + assert_patched interp > + assert_not_patched other > + > + # The table is the patch's own copy, pointing into the new interp > + # (klp diff names it by the function symbol, interp + ). > + assert_no_klp_sym "$table" > + assert_symbol "$table" [ ... ] > +# Labels move: rejected as "changed data" today. Unconditional, so the = test > +# can never skip as a whole. > +check > +check -DANNOTATE > + > +# Labels stay: the silent case. Built last, since a compiler which move= s a > +# label anyway can only skip it. > +check -DSAME_SIZE > +check -DANNOTATE -DSAME_SIZE > + > +# The same in a module: the state it shares is the module's. > +MODULE=3Dklp_test_mod check -DANNOTATE -DSAME_SIZE > + > +pass "computed-goto table carried with its function, whether or not its = labels move" [Severity: Medium] Should test-computed-goto-table.sh use xfail or be paired with the corresponding tools/objtool/klp-diff.c fix so it does not break the objtool test suite? Without a change in dont_correlate() / is_uncorrelated_static_local() to leave static local computed-goto jump tables uncorrelated, correlate_symbol= s() pairs orig.o's and patched.o's jumptable symbols. In the segments where labels move, mark_changed_functions() rejects the table with "changed data", causing run_diff to fail; in the -DSAME_SIZE segments, klp diff emits a .klp.sym reference to the original kernel's table, causing assert_no_klp_sym "$table" to fail. As a result, running "make -C tools/objtool tests" fails unconditionally on every run. --=20 Sashiko AI review =C2=B7 https://sashiko.dev/#/patchset/20261201151430.1712= -1-kazuruuni@gmail.com?part=3D1