From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from firstgate.proxmox.com (firstgate.proxmox.com [212.224.123.68]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by lists.proxmox.com (Postfix) with ESMTPS id 1BC7D90EFC for ; Tue, 31 Jan 2023 17:46:52 +0100 (CET) Received: from firstgate.proxmox.com (localhost [127.0.0.1]) by firstgate.proxmox.com (Proxmox) with ESMTP id 041DD26FB8 for ; Tue, 31 Jan 2023 17:46:52 +0100 (CET) Received: from proxmox-new.maurer-it.com (proxmox-new.maurer-it.com [94.136.29.106]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by firstgate.proxmox.com (Proxmox) with ESMTPS for ; Tue, 31 Jan 2023 17:46:50 +0100 (CET) Received: from proxmox-new.maurer-it.com (localhost.localdomain [127.0.0.1]) by proxmox-new.maurer-it.com (Proxmox) with ESMTP id 2E4EC456F8 for ; Tue, 31 Jan 2023 17:46:50 +0100 (CET) Message-ID: Date: Tue, 31 Jan 2023 17:46:49 +0100 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:110.0) Gecko/20100101 Thunderbird/110.0 Content-Language: en-GB, de-AT To: Proxmox VE development discussion , =?UTF-8?Q?Fabian_Gr=C3=BCnbichler?= References: <20230130132719.1191559-1-f.gruenbichler@proxmox.com> From: Thomas Lamprecht In-Reply-To: <20230130132719.1191559-1-f.gruenbichler@proxmox.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-SPAM-LEVEL: Spam detection results: 0 AWL -0.051 Adjusted score from AWL reputation of From: address BAYES_00 -1.9 Bayes spam probability is 0 to 1% KAM_DMARC_STATUS 0.01 Test Rule for DKIM or SPF Failure with Strict Alignment SPF_HELO_NONE 0.001 SPF: HELO does not publish an SPF Record SPF_PASS -0.001 SPF: sender matches SPF record URIBL_BLOCKED 0.001 ADMINISTRATOR NOTICE: The query to URIBL was blocked. See http://wiki.apache.org/spamassassin/DnsBlocklists#dnsbl-block for more information. [control.in] Subject: [pve-devel] applied: [PATCH pve-kernel] build: re-enable BTF X-BeenThere: pve-devel@lists.proxmox.com X-Mailman-Version: 2.1.29 Precedence: list List-Id: Proxmox VE development discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 31 Jan 2023 16:46:52 -0000 Am 30/01/2023 um 14:27 schrieb Fabian Gr=C3=BCnbichler: > but allow discarding BTF information when loading modules, so that upgr= ades > which are otherwise ABI compatible still work. this allows using BTF > information when matching and available, while degrading gracefully if = the > currently running kernel is not identical to the one that module was bu= ilt for. >=20 > in case of a mismatch, the kernel will log a warning when loading the m= odule, > for example: >=20 > Jan 30 13:57:58 test kernel: BPF: type_id=3D184 bits_offset=3D= 4096 > Jan 30 13:57:58 test kernel: BPF: > Jan 30 13:57:58 test kernel: BPF: Invalid name > Jan 30 13:57:58 test kernel: BPF: > Jan 30 13:57:58 test kernel: failed to validate module [bonding] BTF: -= 22 >=20 > Signed-off-by: Fabian Gr=C3=BCnbichler > --- >=20 > Notes: > two things that are worth mentioning: > - BTF information will only be generated if paholes is new enough, = for bullseye > this means the version from backports, where it got split out of = the dwarves > package - it might be worth it to enforce this in d/control.in an= d upload it > to our -devel repository > - this will cause an ABI bump > =20 > tested by doing two test builds > - first with this patch + ABI bump > - second rebuild with additional package revision bump on top, BTF = offsets > will change >=20 > debian/rules | 1 + > ...de-unregister_netdevice-refcount-lea.patch | 4 +++ > ...-bug-introduce-ASSERT_STRUCT_OFFSET.patch} | 4 +++ > ...rate-split-BTF-type-info-per-default.patch | 28 -------------------= > ...update-the-emulation-mode-after-rsm.patch} | 4 +++ > ...smm-add-structs-for-KVM-s-smram-lay.patch} | 4 +++ > ...smm-use-smram-structs-in-the-common.patch} | 4 +++ > ...smm-use-smram-struct-for-32-bit-smr.patch} | 4 +++ > ...smm-use-smram-struct-for-64-bit-smr.patch} | 4 +++ > ... 0012-KVM-x86-SVM-use-smram-structs.patch} | 4 +++ > ...-save-SVM-state-to-SMRAM-when-VM-is.patch} | 4 +++ > ...smm-preserve-interrupt-shadow-in-SM.patch} | 4 +++ > ...irdma-Report-the-correct-link-speed.patch} | 4 +++ > ...pport-of-hw-gro-packets-to-gro-stac.patch} | 4 +++ > ...ortify-Do-not-cast-to-unsigned-char.patch} | 4 +++ > 15 files changed, 53 insertions(+), 28 deletions(-) > rename patches/kernel/{0007-bug-introduce-ASSERT_STRUCT_OFFSET.patch =3D= > 0006-bug-introduce-ASSERT_STRUCT_OFFSET.patch} (92%) > delete mode 100644 patches/kernel/0006-do-not-generate-split-BTF-type-= info-per-default.patch > rename patches/kernel/{0008-KVM-x86-emulator-update-the-emulation-mode= -after-rsm.patch =3D> 0007-KVM-x86-emulator-update-the-emulation-mode-aft= er-rsm.patch} (88%) > rename patches/kernel/{0009-KVM-x86-emulator-smm-add-structs-for-KVM-s= -smram-lay.patch =3D> 0008-KVM-x86-emulator-smm-add-structs-for-KVM-s-smr= am-lay.patch} (98%) > rename patches/kernel/{0010-KVM-x86-emulator-smm-use-smram-structs-in-= the-common.patch =3D> 0009-KVM-x86-emulator-smm-use-smram-structs-in-the-= common.patch} (97%) > rename patches/kernel/{0011-KVM-x86-emulator-smm-use-smram-struct-for-= 32-bit-smr.patch =3D> 0010-KVM-x86-emulator-smm-use-smram-struct-for-32-b= it-smr.patch} (98%) > rename patches/kernel/{0012-KVM-x86-emulator-smm-use-smram-struct-for-= 64-bit-smr.patch =3D> 0011-KVM-x86-emulator-smm-use-smram-struct-for-64-b= it-smr.patch} (98%) > rename patches/kernel/{0013-KVM-x86-SVM-use-smram-structs.patch =3D> 0= 012-KVM-x86-SVM-use-smram-structs.patch} (95%) > rename patches/kernel/{0014-KVM-x86-SVM-don-t-save-SVM-state-to-SMRAM-= when-VM-is.patch =3D> 0013-KVM-x86-SVM-don-t-save-SVM-state-to-SMRAM-when= -VM-is.patch} (89%) > rename patches/kernel/{0015-KVM-x86-emulator-smm-preserve-interrupt-sh= adow-in-SM.patch =3D> 0014-KVM-x86-emulator-smm-preserve-interrupt-shadow= -in-SM.patch} (97%) > rename patches/kernel/{0016-Revert-RDMA-irdma-Report-the-correct-link-= speed.patch =3D> 0015-Revert-RDMA-irdma-Report-the-correct-link-speed.pat= ch} (93%) > rename patches/kernel/{0017-Revert-gro-add-support-of-hw-gro-packets-t= o-gro-stac.patch =3D> 0016-Revert-gro-add-support-of-hw-gro-packets-to-gr= o-stac.patch} (96%) > rename patches/kernel/{0018-Revert-fortify-Do-not-cast-to-unsigned-cha= r.patch =3D> 0017-Revert-fortify-Do-not-cast-to-unsigned-char.patch} (86%= ) >=20 > applied, thanks!