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=1796506391; b=vcnciHMOYaU1XLemkb9+fK5GA4OyEqwd5wYHaEzlGK2xgS1bbtz8CQ2kCUytxAFpjkyl ggOzNkZmJ1NKVhJQmKhyCZ8HOaWSirkDq5zLK5VGewOvGqEyERum+jK6S5Tfdj3kDDwnu DgNJyUqx533J7U4jerKEH3cE9chO0Q24kPL3TEEU9VbzNaRBuZvtBrj5xuhIvfgH8Hd2U iWHN15OH9NAw4N55rD9ANhcMpbR3rPj7ZaEBfp91sE65k6uDw1+8t5J1u5R8DVnDB+kvt JLIz6v9RzzcKsK7qWYQB9ZdRqdB/Beuc5U6Us53c/QTJPKVHjJuWVfZtzQ7k9l1feVQ== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796506391; h=Received:DKIM-Signature:Message-ID:From:Subject:Reply-To:To: In-Reply-To:References:Content-Type:Content-Transfer-Encoding:Date; bh=rMgFpBRuedkVEqAd0SuklZj+toCFr08jntCEHgb3gBw=; b=zuuU+Y3Sb22oh2uqj+3JfKnFiHXdScZUr51Wiwu+K+Ja03/SqYaOk47zQJe4zQ/mTqTz kFBiiBXXM976Vffzbn8Tiw73q9ZHzLqPzo+rzppAEz5V3WTZXFTLeMzlK1+oVhsX38OEO ZahZpUSTmRA6AEzRPQHrsTC/hQy71UBoe0iYD0KbcW3TNuQUR9X9D4h1RNdqmS5C85miN slBAUCqhc5khM8a1pc9O4IX82Mqxhi2WCE6oxxwKVVSJIxZa8GTPFjQkQLwEmYdnovMQD KzmcRMVoJOq/Qunsr6ZqJx43ojEfzDBqhGmgR0WHVB5OwmAsHAA9EgAuhyV7DvWK5wQ== 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=h089d2cp; 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 2BA5B606A31F for ; Sat, 5 Dec 2026 21:33:10 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key, unprotected) header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20260515 header.b=h089d2cp Received: by smtp.kernel.org (Postfix) with ESMTPSA id 53E3B1F00936; Sat, 5 Dec 2026 21:33:10 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel.org; s=k20260515; t=1796506390; bh=rMgFpBRuedkVEqAd0SuklZj+toCFr08jntCEHgb3gBw=; h=From:Subject:Reply-To:To:In-Reply-To:References:Date; b=h089d2cpc7xzF6n8wd/PlbiS26W1WUzqmxoHLhwzacJAdUtYcabM8EtJD1S279eNZ d++oow8Lxa3jnZHV67fOiIH1i8yxs5DBapx6AMpT4fp05hZWjcobZ3ZTXUCRcgI5Pg lrnHtlm27+ZPReB7mz4AmGu6Q1s/vAXaWnXm2YJgsVBhk/GUAmnQUzqsffxMW2JJ2Z W/4FIofLCyX/Pw0FUOp2qNiPKOUW96LcHI9RDfvSnHoo5Zh8Cf/0voepYCvznWeCsU PTVIm8CWr+FGdjORn9mHlLc9QYgEgFYadoMh+ENY2hBEBKBxMEtOQ4ajMUOxUBzPOn wuMKCIdFBdkIA== Message-ID: From: sashiko-bot@kernel.org Subject: Re: [PATCH bpf-next 1/3] libbpf: Do not resolve typed ksyms through kallsyms Reply-To: sashiko-reviews@lists.linux.dev To: =?utf-8?b?R2V5c2xhbiBHcmVnw7NyaW8=?= , bpf@vger.kernel.org In-Reply-To: <20261205-libbpf-weak-typed-ksyms-no-vmlinux-btf-v1-1-77cc642f7d4b@condado.dev> References: <20261205-libbpf-weak-typed-ksyms-no-vmlinux-btf-v1-0-77cc642f7d4b@condado.dev> <20261205-libbpf-weak-typed-ksyms-no-vmlinux-btf-v1-1-77cc642f7d4b@condado.dev> Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Date: Sat, 05 Dec 2026 21:33:09 +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: multi-line comment style violation in kallsyms_cb() -- commit f31b5ccf34e4344898624b3e8f6fa70dfe8ca091 Author: Geyslan Greg=C3=B3rio libbpf: Do not resolve typed ksyms through kallsyms This commit changes kallsyms_cb() to skip typed ksyms instead of only skipping non-variable ksyms, so weak typed variables missing from kernel BTF are not marked as resolved via /proc/kallsyms. > diff --git a/tools/lib/bpf/libbpf.c b/tools/lib/bpf/libbpf.c > index 2b188e64e3566..6fe0143ea9590 100644 > --- a/tools/lib/bpf/libbpf.c > +++ b/tools/lib/bpf/libbpf.c [ ... ] > @@ -9781,8 +9780,10 @@ static int kallsyms_cb(unsigned long long sym_addr= , char sym_type, > if (!ext || ext->type !=3D EXT_KSYM) > return 0; > =20 > - t =3D btf__type_by_id(obj->btf, ext->btf_id); > - if (!btf_is_var(t)) > + /* Typed ksyms, variables and functions, are resolved through kernel > + * BTF only. > + */ [Severity: Low] BPF code uses the kernel multi-line comment style where the opening /* sits on its own line and the text starts on the next line. Should this comment move the opening /* to its own line (or be shortened to a single line)? --=20 Sashiko AI review =C2=B7 https://sashiko.dev/#/patchset/20261205-libbpf-wea= k-typed-ksyms-no-vmlinux-btf-v1-0-77cc642f7d4b@condado.dev?part=3D1