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=1796221594; b=2I4s8Rx0hY0cCZBSTr7Kc4JYQK5WcJh2SQUizNmaWVX3teX6pJgfL2s+bKNzbc3DdA5f /KEhpjIhwoHbCyj/xhunQQxV3L4BPwCFgKLZ3KsLle9To7BiFSbn/n+s45+kfH6nlM52O oTLfMNWhp4m4wXqjCzV+fbh5vAVZseKurJwg9TH/8i3ECYDAdFSMfKs6ijJEG2YzRxx8V t8pK1KOlumD27itftoPpNo/zPE+CRDwcNyfJMh0G/vWUxx5cR4x44w8nziraddj+FQ2qf 3PieB0WNmzOwKr6CM5S+P26hGGYbhL4HMi/Lfh0BxT8ZxryR+vLDgfaw4IUadKx3J0A== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796221594; h=Received:DKIM-Signature:Message-ID:From:Subject:Reply-To:To: In-Reply-To:References:Content-Type:Content-Transfer-Encoding:Date; bh=zYSdnhTAMcfdBCnxUrI5+oUIIYPScm/MtS5R14kJ7/Q=; b=DbvwKHC4yBFNPH0BmZRYM+bF3f6VP7NSCTdOZB8OOu7eFww2YTF7BHRe/odr+xV7CYy0 v6n+P4y/L0fCAD2KBK0AtvsjmiSq9047DfixaY+l/780yWSR+CUQ1K5qpYe5/hXuzYrK4 CsCha+21ylh00yEpEhhe8CEZZRzMb92fgfgl7RJxn6V8xiruqt2mVWGlupcyt4SRGXuG3 Rhg2tWTB9ms+lVesWQrMGK/M8GnzojnXBSExrE613IGMd+2dn7vvnBE+KOdT4Ho8v+PcW hVwkolpMvOeEXnCis0JkX+dXIORZe4+N6sBTmiEUNooKSKL8gxzbj2OyR/Pq32JcxtQ== 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=HvkkGeFn; 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 0E556606A31A for ; Wed, 2 Dec 2026 14:26:33 +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=HvkkGeFn Received: by smtp.kernel.org (Postfix) with ESMTPSA id 76C271F000C1; Wed, 2 Dec 2026 14:26:33 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel.org; s=k20260515; t=1796221593; bh=zYSdnhTAMcfdBCnxUrI5+oUIIYPScm/MtS5R14kJ7/Q=; h=From:Subject:Reply-To:To:In-Reply-To:References:Date; b=HvkkGeFncdBkY+HZV7HXDSViYCdI6AjE/R5YfTERyaJ7pppT00ClX24eJiahmgy2G OprtcujrdKShXYBwe15aDO7Z3HQjna52JoXOwyCbnvuAZqDpeElJMH4NBWyiC4HjlN U2ZhAkGPDwfqqSoUW6y41pw3EWriu2lV0mjxYZPdpacl+XKryZMWSTi9cCQbOlnXf9 w3RrjUVZ0dj87ZEHy8NH4MiC7QRoLFn5tJP78P60dt6P83B+V/zTwCmJXCAbByGDRL RFsQbeT/dGmOmFXFc8BBpEdXNKa2BfysXwnZr0GHbe7VrVujcOB5FFVaCu6pEfsKUP zpo671Vd3B+jA== Message-ID: From: sashiko-bot@kernel.org Subject: Re: [PATCH bpf] libbpf: Ignore integer type names in CO-RE type matching Reply-To: sashiko-reviews@lists.linux.dev To: "Haowen Deng" , bpf@vger.kernel.org In-Reply-To: <20261202141620.366-1-denghaowen59@gmail.com> References: <20261202141620.366-1-denghaowen59@gmail.com> Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Date: Wed, 02 Dec 2026 14:26:33 +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: - [Low] libbpf: non-standard multi-line comment style in __bpf_core_types_match() -- commit f67211ffe5606e27596cd47c946078ed431f5a75 Author: Haowen Deng libbpf: Ignore integer type names in CO-RE type matching This commit skips the BTF type name comparison for BTF_KIND_INT in __bpf_core_types_match() so integer types match solely by size and signedness across compilers, and adds a corresponding selftest. > diff --git a/tools/lib/bpf/relo_core.c b/tools/lib/bpf/relo_core.c > index 2672623a41989..9d81688bb4cbc 100644 > --- a/tools/lib/bpf/relo_core.c > +++ b/tools/lib/bpf/relo_core.c > @@ -1582,16 +1582,20 @@ int __bpf_core_types_match(const struct btf *loca= l_btf, __u32 local_id, const st > if (!local_t || !targ_t) > return -EINVAL; > =20 > - /* While the name check happens after typedefs are skipped, root-level > + local_k =3D btf_kind(local_t); > + targ_k =3D btf_kind(targ_t); > + > + /* Integer type names can differ by compiler. Match them by size and > + * signedness below. > + * > + * While the name check happens after typedefs are skipped, root-level > * typedefs would still be name-matched as that's the contract with > * callers. > */ [Severity: Low] This isn't a bug, but BPF multi-line comment style puts the opening /* on its own line with the comment text starting on the next line. --=20 Sashiko AI review =C2=B7 https://sashiko.dev/#/patchset/20261202141620.366-= 1-denghaowen59@gmail.com?part=3D1