public inbox for pve-devel@lists.proxmox.com
 help / color / mirror / Atom feed
* [pve-devel] [PATCH master/5.13 kernel 1/2] d/control: add zstd to B-D
@ 2021-12-01  9:57 Fabian Grünbichler
  2021-12-01  9:57 ` [pve-devel] [PATCH master/5.13 kernel 2/2] KConfig: disable module BTF debug info Fabian Grünbichler
  2021-12-14 11:46 ` [pve-devel] [PATCH master/5.13 kernel 1/2] d/control: add zstd to B-D Thomas Lamprecht
  0 siblings, 2 replies; 4+ messages in thread
From: Fabian Grünbichler @ 2021-12-01  9:57 UTC (permalink / raw)
  To: pve-devel

used for compressing the kernel image, build fails if not installed.

Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com>
---
 debian/control.in | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/debian/control.in b/debian/control.in
index ee91978..f924ab2 100644
--- a/debian/control.in
+++ b/debian/control.in
@@ -32,7 +32,8 @@ Build-Depends: asciidoc-base,
                sphinx-common,
                tar,
                xmlto,
-               zlib1g-dev
+               zlib1g-dev,
+               zstd,
 Build-Conflicts: pve-headers-@KVNAME@
 Vcs-Git: git://git.proxmox.com/git/pve-kernel
 Vcs-Browser: https://git.proxmox.com/?p=pve-kernel.git
-- 
2.30.2





^ permalink raw reply	[flat|nested] 4+ messages in thread

* [pve-devel] [PATCH master/5.13 kernel 2/2] KConfig: disable module BTF debug info
  2021-12-01  9:57 [pve-devel] [PATCH master/5.13 kernel 1/2] d/control: add zstd to B-D Fabian Grünbichler
@ 2021-12-01  9:57 ` Fabian Grünbichler
  2021-12-14 11:46 ` [pve-devel] [PATCH master/5.13 kernel 1/2] d/control: add zstd to B-D Thomas Lamprecht
  1 sibling, 0 replies; 4+ messages in thread
From: Fabian Grünbichler @ 2021-12-01  9:57 UTC (permalink / raw)
  To: pve-devel

enabling this effectively makes the debug info of the kernel image part
of the kernel <-> module ABI[0], potentially breaking module loading for
otherwise compatible kernel/module combinations.

there were several user reports[1,2,3,..], and although a workaround
exists (re-installing the currently booted version, loading the module,
then upgrading again) disabling this until it's clear how to proceed
seems like the way to go.

disabling via patch is needed, since leaving it unset via `-d` or
explicitly disabled via `--set-val` doesn't work - it's auto-enabled
based on build-env pahole supporting split BTF generation.

0: https://lore.kernel.org/all/1637926692.uyvrkty41j.astroid@nora.none/
1: https://forum.proxmox.com/threads/realtek-8156-2-5gbe-usb-nic.69903/#post-433793
2: https://forum.proxmox.com/threads/usb-storage-can-not-be-mounted.100480/
3: https://forum.proxmox.com/threads/neuer-server-und-probleme.99098/#post-427862

Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com>
---
patch number is different depending on branch (11 for 5.13, 9 for
master), but patch applies as-is to both.

note that disabling BTF for modules implies an ABI bump, as there is
some conditional compilation based on that KConfig value..

 patches/kernel/0012-disable-split-btf.patch | 13 +++++++++++++
 1 file changed, 13 insertions(+)
 create mode 100644 patches/kernel/0012-disable-split-btf.patch

diff --git a/patches/kernel/0011-disable-split-btf.patch b/patches/kernel/0011-disable-split-btf.patch
new file mode 100644
index 0000000..3f3a498
--- /dev/null
+++ b/patches/kernel/0011-disable-split-btf.patch
@@ -0,0 +1,13 @@
+diff --git a/lib/Kconfig.debug b/lib/Kconfig.debug
+index 25dc20175bba..7ff51a3f65e6 100644
+--- a/lib/Kconfig.debug
++++ b/lib/Kconfig.debug
+@@ -314,7 +314,7 @@ config PAHOLE_HAS_SPLIT_BTF
+ 	def_bool $(success, test `$(PAHOLE) --version | sed -E 's/v([0-9]+)\.([0-9]+)/\1\2/'` -ge "119")
+ 
+ config DEBUG_INFO_BTF_MODULES
+-	def_bool y
++	def_bool n
+ 	depends on DEBUG_INFO_BTF && MODULES && PAHOLE_HAS_SPLIT_BTF
+ 	help
+ 	  Generate compact split BTF type information for kernel modules.
-- 
2.30.2





^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [pve-devel] [PATCH master/5.13 kernel 1/2] d/control: add zstd to B-D
  2021-12-01  9:57 [pve-devel] [PATCH master/5.13 kernel 1/2] d/control: add zstd to B-D Fabian Grünbichler
  2021-12-01  9:57 ` [pve-devel] [PATCH master/5.13 kernel 2/2] KConfig: disable module BTF debug info Fabian Grünbichler
@ 2021-12-14 11:46 ` Thomas Lamprecht
  2021-12-14 13:39   ` [pve-devel] applied-series: " Fabian Grünbichler
  1 sibling, 1 reply; 4+ messages in thread
From: Thomas Lamprecht @ 2021-12-14 11:46 UTC (permalink / raw)
  To: Proxmox VE development discussion, Fabian Grünbichler

On 01.12.21 10:57, Fabian Grünbichler wrote:
> used for compressing the kernel image, build fails if not installed.
> 
> Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com>
> ---
>  debian/control.in | 3 ++-
>  1 file changed, 2 insertions(+), 1 deletion(-)
> 
> diff --git a/debian/control.in b/debian/control.in
> index ee91978..f924ab2 100644
> --- a/debian/control.in
> +++ b/debian/control.in
> @@ -32,7 +32,8 @@ Build-Depends: asciidoc-base,
>                 sphinx-common,
>                 tar,
>                 xmlto,
> -               zlib1g-dev
> +               zlib1g-dev,
> +               zstd,
>  Build-Conflicts: pve-headers-@KVNAME@
>  Vcs-Git: git://git.proxmox.com/git/pve-kernel
>  Vcs-Browser: https://git.proxmox.com/?p=pve-kernel.git

for both patches on both branches:

Acked-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
Reviewed-by: Thomas Lamprecht <t.lamprecht@proxmox.com>




^ permalink raw reply	[flat|nested] 4+ messages in thread

* [pve-devel] applied-series: [PATCH master/5.13 kernel 1/2] d/control: add zstd to B-D
  2021-12-14 11:46 ` [pve-devel] [PATCH master/5.13 kernel 1/2] d/control: add zstd to B-D Thomas Lamprecht
@ 2021-12-14 13:39   ` Fabian Grünbichler
  0 siblings, 0 replies; 4+ messages in thread
From: Fabian Grünbichler @ 2021-12-14 13:39 UTC (permalink / raw)
  To: Proxmox VE development discussion, Thomas Lamprecht

On December 14, 2021 12:46 pm, Thomas Lamprecht wrote:
> On 01.12.21 10:57, Fabian Grünbichler wrote:
>> used for compressing the kernel image, build fails if not installed.
>> 
>> Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com>
>> ---
>>  debian/control.in | 3 ++-
>>  1 file changed, 2 insertions(+), 1 deletion(-)
>> 
>> diff --git a/debian/control.in b/debian/control.in
>> index ee91978..f924ab2 100644
>> --- a/debian/control.in
>> +++ b/debian/control.in
>> @@ -32,7 +32,8 @@ Build-Depends: asciidoc-base,
>>                 sphinx-common,
>>                 tar,
>>                 xmlto,
>> -               zlib1g-dev
>> +               zlib1g-dev,
>> +               zstd,
>>  Build-Conflicts: pve-headers-@KVNAME@
>>  Vcs-Git: git://git.proxmox.com/git/pve-kernel
>>  Vcs-Browser: https://git.proxmox.com/?p=pve-kernel.git
> 
> for both patches on both branches:
> 
> Acked-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
> Reviewed-by: Thomas Lamprecht <t.lamprecht@proxmox.com>

applied with that, next update needs an ABI bump ;)




^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2021-12-14 13:39 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-12-01  9:57 [pve-devel] [PATCH master/5.13 kernel 1/2] d/control: add zstd to B-D Fabian Grünbichler
2021-12-01  9:57 ` [pve-devel] [PATCH master/5.13 kernel 2/2] KConfig: disable module BTF debug info Fabian Grünbichler
2021-12-14 11:46 ` [pve-devel] [PATCH master/5.13 kernel 1/2] d/control: add zstd to B-D Thomas Lamprecht
2021-12-14 13:39   ` [pve-devel] applied-series: " Fabian Grünbichler

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
Service provided by Proxmox Server Solutions GmbH | Privacy | Legal