Your message dated Tue, 30 Jul 2024 14:29:57 +0900
with message-id <Zqh6VQNQIr6YrMzo@voleno>
and subject line Re: kpatch-dkms: fails to build module for Linux 5.10: uses 
unknown struct stack_trace
has caused the Debian Bug report #983648,
regarding kpatch-dkms: fails to build module for Linux 5.10: uses unknown 
struct stack_trace
to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact [email protected]
immediately.)


-- 
983648: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=983648
Debian Bug Tracking System
Contact [email protected] with problems
--- Begin Message ---
Package: kpatch-dkms
Version: 0.6.0-0.2
Severity: serious
Tags: sid bullseye
User: [email protected]
Usertags: piuparts

Hi,

kpatch-dkms fails to build a module for the current kernel in sid:

DKMS make.log for kpatch-0.6.0 for kernel 5.10.0-3-amd64 (x86_64)
Sun Feb 28 01:36:52 CET 2021
make: Entering directory '/var/lib/dkms/kpatch/0.6.0/build/kmod'
make -C core clean
make[1]: Entering directory '/var/lib/dkms/kpatch/0.6.0/build/kmod/core'
rm -f -Rf .*.o.cmd .*.ko.cmd .tmp_versions *.o *.ko *.mod.c \
Module.symvers
make[1]: Leaving directory '/var/lib/dkms/kpatch/0.6.0/build/kmod/core'
make -C core
make[1]: Entering directory '/var/lib/dkms/kpatch/0.6.0/build/kmod/core'
make -C /lib/modules/5.10.0-3-amd64/build 
M=/var/lib/dkms/kpatch/0.6.0/build/kmod/core kpatch.ko
make[2]: Entering directory '/var/lib/dkms/kpatch/0.6.0/build/kmod/core'
make[2]: warning: jobserver unavailable: using -j1.  Add '+' to parent make 
rule.
  CC [M]  /var/lib/dkms/kpatch/0.6.0/build/kmod/core/core.o
/var/lib/dkms/kpatch/0.6.0/build/kmod/core/core.c:143:15: error: variable 
'trace' has initializer but incomplete type
  143 | static struct stack_trace trace = {
      |               ^~~~~~~~~~~
/var/lib/dkms/kpatch/0.6.0/build/kmod/core/core.c:144:3: error: 'struct 
stack_trace' has no member named 'max_entries'
  144 |  .max_entries = ARRAY_SIZE(stack_entries),
      |   ^~~~~~~~~~~
In file included from 
/usr/src/linux-headers-5.10.0-3-common/include/linux/list.h:9,
                 from 
/usr/src/linux-headers-5.10.0-3-common/include/linux/module.h:12,
                 from /var/lib/dkms/kpatch/0.6.0/build/kmod/core/core.c:37:
/usr/src/linux-headers-5.10.0-3-common/include/linux/kernel.h:48:25: warning: 
excess elements in struct initializer
   48 | #define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0]) + 
__must_be_array(arr))
      |                         ^
/var/lib/dkms/kpatch/0.6.0/build/kmod/core/core.c:144:17: note: in expansion of 
macro 'ARRAY_SIZE'
  144 |  .max_entries = ARRAY_SIZE(stack_entries),
      |                 ^~~~~~~~~~
/usr/src/linux-headers-5.10.0-3-common/include/linux/kernel.h:48:25: note: 
(near initialization for 'trace')
   48 | #define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0]) + 
__must_be_array(arr))
      |                         ^
/var/lib/dkms/kpatch/0.6.0/build/kmod/core/core.c:144:17: note: in expansion of 
macro 'ARRAY_SIZE'
  144 |  .max_entries = ARRAY_SIZE(stack_entries),
      |                 ^~~~~~~~~~
/var/lib/dkms/kpatch/0.6.0/build/kmod/core/core.c:145:3: error: 'struct 
stack_trace' has no member named 'entries'
  145 |  .entries = &stack_entries[0],
      |   ^~~~~~~
/var/lib/dkms/kpatch/0.6.0/build/kmod/core/core.c:145:13: warning: excess 
elements in struct initializer
  145 |  .entries = &stack_entries[0],
      |             ^
/var/lib/dkms/kpatch/0.6.0/build/kmod/core/core.c:145:13: note: (near 
initialization for 'trace')
/var/lib/dkms/kpatch/0.6.0/build/kmod/core/core.c: In function 
'kpatch_verify_activeness_safety':
/var/lib/dkms/kpatch/0.6.0/build/kmod/core/core.c:274:8: error: invalid use of 
undefined type 'struct stack_trace'
  274 |   trace.nr_entries = 0;
      |        ^
/var/lib/dkms/kpatch/0.6.0/build/kmod/core/core.c:275:3: error: implicit 
declaration of function 'save_stack_trace_tsk' 
[-Werror=implicit-function-declaration]
  275 |   save_stack_trace_tsk(t, &trace);
      |   ^~~~~~~~~~~~~~~~~~~~
/var/lib/dkms/kpatch/0.6.0/build/kmod/core/core.c:276:12: error: invalid use of 
undefined type 'struct stack_trace'
  276 |   if (trace.nr_entries >= trace.max_entries) {
      |            ^
/var/lib/dkms/kpatch/0.6.0/build/kmod/core/core.c:276:32: error: invalid use of 
undefined type 'struct stack_trace'
  276 |   if (trace.nr_entries >= trace.max_entries) {
      |                                ^
In file included from 
/usr/src/linux-headers-5.10.0-3-common/include/linux/kernel.h:16,
                 from 
/usr/src/linux-headers-5.10.0-3-common/include/linux/list.h:9,
                 from 
/usr/src/linux-headers-5.10.0-3-common/include/linux/module.h:12,
                 from /var/lib/dkms/kpatch/0.6.0/build/kmod/core/core.c:37:
/var/lib/dkms/kpatch/0.6.0/build/kmod/core/core.c:279:16: error: invalid use of 
undefined type 'struct stack_trace'
  279 |           trace.max_entries);
      |                ^
/usr/src/linux-headers-5.10.0-3-common/include/linux/printk.h:343:33: note: in 
definition of macro 'pr_err'
  343 |  printk(KERN_ERR pr_fmt(fmt), ##__VA_ARGS__)
      |                                 ^~~~~~~~~~~
/var/lib/dkms/kpatch/0.6.0/build/kmod/core/core.c:283:38: error: invalid use of 
undefined type 'struct stack_trace'
  283 |                 for (i = 0; i < trace.nr_entries; i++) {
      |                                      ^
/var/lib/dkms/kpatch/0.6.0/build/kmod/core/core.c:284:13: error: invalid use of 
undefined type 'struct stack_trace'
  284 |    if (trace.entries[i] == ULONG_MAX)
      |             ^
/var/lib/dkms/kpatch/0.6.0/build/kmod/core/core.c:287:19: error: invalid use of 
undefined type 'struct stack_trace'
  287 |              trace.entries[i]);
      |                   ^
/var/lib/dkms/kpatch/0.6.0/build/kmod/core/core.c:297:24: error: invalid use of 
undefined type 'struct stack_trace'
  297 |   for (i = 0; i < trace.nr_entries; i++) {
      |                        ^
/var/lib/dkms/kpatch/0.6.0/build/kmod/core/core.c:298:13: error: invalid use of 
undefined type 'struct stack_trace'
  298 |    if (trace.entries[i] == ULONG_MAX)
      |             ^
In file included from 
/usr/src/linux-headers-5.10.0-3-common/include/linux/kernel.h:16,
                 from 
/usr/src/linux-headers-5.10.0-3-common/include/linux/list.h:9,
                 from 
/usr/src/linux-headers-5.10.0-3-common/include/linux/module.h:12,
                 from /var/lib/dkms/kpatch/0.6.0/build/kmod/core/core.c:37:
/var/lib/dkms/kpatch/0.6.0/build/kmod/core/core.c:301:24: error: invalid use of 
undefined type 'struct stack_trace'
  301 |           (void *)trace.entries[i],
      |                        ^
/usr/src/linux-headers-5.10.0-3-common/include/linux/printk.h:343:33: note: in 
definition of macro 'pr_err'
  343 |  printk(KERN_ERR pr_fmt(fmt), ##__VA_ARGS__)
      |                                 ^~~~~~~~~~~
/var/lib/dkms/kpatch/0.6.0/build/kmod/core/core.c:302:24: error: invalid use of 
undefined type 'struct stack_trace'
  302 |           (void *)trace.entries[i]);
      |                        ^
/usr/src/linux-headers-5.10.0-3-common/include/linux/printk.h:343:33: note: in 
definition of macro 'pr_err'
  343 |  printk(KERN_ERR pr_fmt(fmt), ##__VA_ARGS__)
      |                                 ^~~~~~~~~~~
/var/lib/dkms/kpatch/0.6.0/build/kmod/core/core.c: In function 
'kpatch_find_external_symbol':
/var/lib/dkms/kpatch/0.6.0/build/kmod/core/core.c:661:8: error: implicit 
declaration of function 'find_symbol'; did you mean 'sprint_symbol'? 
[-Werror=implicit-function-declaration]
  661 |  sym = find_symbol(name, NULL, NULL, true, true);
      |        ^~~~~~~~~~~
      |        sprint_symbol
/var/lib/dkms/kpatch/0.6.0/build/kmod/core/core.c:661:6: warning: assignment to 
'const struct kernel_symbol *' from 'int' makes pointer from integer without a 
cast [-Wint-conversion]
  661 |  sym = find_symbol(name, NULL, NULL, true, true);
      |      ^
/var/lib/dkms/kpatch/0.6.0/build/kmod/core/core.c: In function 
'kpatch_write_relocations':
/var/lib/dkms/kpatch/0.6.0/build/kmod/core/core.c:766:9: error: implicit 
declaration of function 'probe_kernel_write'; did you mean 'kernel_write'? 
[-Werror=implicit-function-declaration]
  766 |   ret = probe_kernel_write((void *)loc, &val, size);
      |         ^~~~~~~~~~~~~~~~~~
      |         kernel_write
/var/lib/dkms/kpatch/0.6.0/build/kmod/core/core.c: At top level:
/var/lib/dkms/kpatch/0.6.0/build/kmod/core/core.c:143:27: error: storage size 
of 'trace' isn't known
  143 | static struct stack_trace trace = {
      |                           ^~~~~
cc1: some warnings being treated as errors
make[4]: *** 
[/usr/src/linux-headers-5.10.0-3-common/scripts/Makefile.build:284: 
/var/lib/dkms/kpatch/0.6.0/build/kmod/core/core.o] Error 1
make[3]: *** [/usr/src/linux-headers-5.10.0-3-common/Makefile:1817: 
/var/lib/dkms/kpatch/0.6.0/build/kmod/core] Error 2
make[2]: *** [/usr/src/linux-headers-5.10.0-3-common/Makefile:185: __sub-make] 
Error 2
make[2]: Leaving directory '/usr/src/linux-headers-5.10.0-3-amd64'
make[1]: *** [Makefile:13: kpatch.ko] Error 2
make[1]: Leaving directory '/var/lib/dkms/kpatch/0.6.0/build/kmod/core'
make: *** [Makefile:7: all] Error 2
make: Leaving directory '/var/lib/dkms/kpatch/0.6.0/build/kmod'


Andreas

--- End Message ---
--- Begin Message ---
Version: 0.9.9-1

El 28/02/21 a las 01:43, Andreas Beckmann escribió:
> Package: kpatch-dkms
> Version: 0.6.0-0.2
> Severity: serious
> Tags: sid bullseye
> User: [email protected]
> Usertags: piuparts
> 
> Hi,
> 
> kpatch-dkms fails to build a module for the current kernel in sid:
> 
> DKMS make.log for kpatch-0.6.0 for kernel 5.10.0-3-amd64 (x86_64)

[snip]

I've been able to build a patch for 5.10 with kpatch 0.9.9-1.

So closing.


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256

Format: 1.8
Date: Thu, 11 Jul 2024 17:14:56 -0300
Source: kpatch
Architecture: source
Version: 0.9.9-1
Distribution: unstable
Urgency: low
Maintainer: Ubuntu Kernel Team <[email protected]>
Changed-By: Santiago Ruano Rincón <[email protected]>
Closes: 1029189 1073855
Changes:
 kpatch (0.9.9-1) unstable; urgency=low
 .
   [ Santiago Ruano Rincón ]
   * New upstream version 0.9.9
   * Update and refresh d/patches/*
   * Update d/patches/shellcheck.patch (Closes: #1029189)
   * Move kpatch-build dependency from pkg-config to pkgconf
   * Wrap and sort
   * Add initial debian/salsa-ci.yml
   * Add Emmanuel and myself as Uploaders (Closes: #1073855)
 .
   [ Emmanuel Arias ]
   * d/patches/handle_paravirt_absence_linux_v6.8+.patch: Add an upsream patch
     to fix an issue in kpatch-build when it try to check paravirt patching
     code that was removed from linux v6.8+.
   * d/patches/remove_cdo_flag_from_script_not_used.patch: Add patch to remove
     CDO_FLAGS variable from the create-diff-object call.
   * d/patches/handle_paravirt_absence_linux_v6.8+.patch: Add an upsream patch
     to fix an issue in kpatch-build when it try to check paravirt patching
     code that was removed from linux v6.8+.
   * d/patches/remove_cdo_flag_from_script_not_used.patch: Add patch to remove
     CDO_FLAGS variable from the create-diff-object call.
Checksums-Sha1:
 265e1f832bbaee16184ef1443ee98c0d0639a439 1505 kpatch_0.9.9-1.dsc
 4d8e473c311849563b40c194130ba4ccb5b262f3 313366 kpatch_0.9.9.orig.tar.gz
 09973a387b9295be378957e1ee583b41371fd21d 10928 kpatch_0.9.9-1.debian.tar.xz
 efa9e5c1ce77b371e2af0f2037adb5865f7cc2ee 5586 kpatch_0.9.9-1_amd64.buildinfo
Checksums-Sha256:
 e0e4ec5745fd544bc5cd48174dacddc4fa979363995541c8353b629a396bb400 1505 
kpatch_0.9.9-1.dsc
 a7a980fdd33d0793f8d3a7da00546adc6129e504a3c9d54079231f7de77b397f 313366 
kpatch_0.9.9.orig.tar.gz
 5bddfbb9432e66f1443ea9d860fa4d1d490c51422bc724a5774685403360ffe7 10928 
kpatch_0.9.9-1.debian.tar.xz
 2c67209076bdd325e1684af953606306fcb6be41aabcb43e3077cf1e255a37e2 5586 
kpatch_0.9.9-1_amd64.buildinfo
Files:
 2f100b1576cb114dfbcbf6d16c6b196b 1505 kernel optional kpatch_0.9.9-1.dsc
 a1d65808389a3343a2fad87d9deb6946 313366 kernel optional 
kpatch_0.9.9.orig.tar.gz
 574f1f571fda3986c5fc8d1e5be7790f 10928 kernel optional 
kpatch_0.9.9-1.debian.tar.xz
 9e73a34a7bda2b1b968e37ab0dfb680b 5586 kernel optional 
kpatch_0.9.9-1_amd64.buildinfo

-----BEGIN PGP SIGNATURE-----

iIoEARYIADIWIQR+lHTq7mkJOyB6t2Un3j1FEEiG7wUCZpBGQBQcc2FudGlhZ29A
ZGViaWFuLm9yZwAKCRAn3j1FEEiG75d7AQDAr8rQCxFHJB0ErOvA1o0IFamerxAr
GFqwCN+0gvti0QD/cxHCeC+2tS29G3VA+LUiRa/lwWpZxyjpOIp6cB3BgQ8=
=iRjS
-----END PGP SIGNATURE-----

Attachment: signature.asc
Description: PGP signature


--- End Message ---

Reply via email to