]> git.proxmox.com Git - pve-kernel.git/commit - patches/kernel/0006-do-not-generate-split-BTF-type-info-per-default.patch
build: re-enable BTF
authorFabian Grünbichler <f.gruenbichler@proxmox.com>
Mon, 30 Jan 2023 13:27:19 +0000 (14:27 +0100)
committerThomas Lamprecht <t.lamprecht@proxmox.com>
Tue, 31 Jan 2023 16:44:18 +0000 (17:44 +0100)
commit826eb0ff893008bd723c189f58f8143eecd7497f
tree96d3b71ddad5668aa024bb65d879ada9dfbc191c
parent2162f4c4e7be2e2421d1c81e0770b17c186a1403
build: re-enable BTF

but allow discarding BTF information when loading modules, so that upgrades
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 built for.

in case of a mismatch, the kernel will log a warning when loading the module,
for example:

Jan 30 13:57:58 test kernel: BPF:          type_id=184 bits_offset=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

Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com>
27 files changed:
debian/rules
patches/kernel/0005-net-core-downgrade-unregister_netdevice-refcount-lea.patch
patches/kernel/0006-bug-introduce-ASSERT_STRUCT_OFFSET.patch [new file with mode: 0644]
patches/kernel/0006-do-not-generate-split-BTF-type-info-per-default.patch [deleted file]
patches/kernel/0007-KVM-x86-emulator-update-the-emulation-mode-after-rsm.patch [new file with mode: 0644]
patches/kernel/0007-bug-introduce-ASSERT_STRUCT_OFFSET.patch [deleted file]
patches/kernel/0008-KVM-x86-emulator-smm-add-structs-for-KVM-s-smram-lay.patch [new file with mode: 0644]
patches/kernel/0008-KVM-x86-emulator-update-the-emulation-mode-after-rsm.patch [deleted file]
patches/kernel/0009-KVM-x86-emulator-smm-add-structs-for-KVM-s-smram-lay.patch [deleted file]
patches/kernel/0009-KVM-x86-emulator-smm-use-smram-structs-in-the-common.patch [new file with mode: 0644]
patches/kernel/0010-KVM-x86-emulator-smm-use-smram-struct-for-32-bit-smr.patch [new file with mode: 0644]
patches/kernel/0010-KVM-x86-emulator-smm-use-smram-structs-in-the-common.patch [deleted file]
patches/kernel/0011-KVM-x86-emulator-smm-use-smram-struct-for-32-bit-smr.patch [deleted file]
patches/kernel/0011-KVM-x86-emulator-smm-use-smram-struct-for-64-bit-smr.patch [new file with mode: 0644]
patches/kernel/0012-KVM-x86-SVM-use-smram-structs.patch [new file with mode: 0644]
patches/kernel/0012-KVM-x86-emulator-smm-use-smram-struct-for-64-bit-smr.patch [deleted file]
patches/kernel/0013-KVM-x86-SVM-don-t-save-SVM-state-to-SMRAM-when-VM-is.patch [new file with mode: 0644]
patches/kernel/0013-KVM-x86-SVM-use-smram-structs.patch [deleted file]
patches/kernel/0014-KVM-x86-SVM-don-t-save-SVM-state-to-SMRAM-when-VM-is.patch [deleted file]
patches/kernel/0014-KVM-x86-emulator-smm-preserve-interrupt-shadow-in-SM.patch [new file with mode: 0644]
patches/kernel/0015-KVM-x86-emulator-smm-preserve-interrupt-shadow-in-SM.patch [deleted file]
patches/kernel/0015-Revert-RDMA-irdma-Report-the-correct-link-speed.patch [new file with mode: 0644]
patches/kernel/0016-Revert-RDMA-irdma-Report-the-correct-link-speed.patch [deleted file]
patches/kernel/0016-Revert-gro-add-support-of-hw-gro-packets-to-gro-stac.patch [new file with mode: 0644]
patches/kernel/0017-Revert-fortify-Do-not-cast-to-unsigned-char.patch [new file with mode: 0644]
patches/kernel/0017-Revert-gro-add-support-of-hw-gro-packets-to-gro-stac.patch [deleted file]
patches/kernel/0018-Revert-fortify-Do-not-cast-to-unsigned-char.patch [deleted file]