Your message dated Wed, 04 Oct 2023 22:36:07 +0000
with message-id <[email protected]>
and subject line Bug#1030248: fixed in kexec-tools 1:2.0.27-1
has caused the Debian Bug report #1030248,
regarding kexec-tools: please make kexec -a the default
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.)


-- 
1030248: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1030248
Debian Bug Tracking System
Contact [email protected] with problems
--- Begin Message ---
Package: kexec-tools
Version: 1:2.0.25-3+b1
Severity: normal
Tags: patch

Dear Maintainer,

AFAICT, there's no downside to this, and running into this each time
I want to kexec (and, presumably, a significant chunk of the population,
since lockdown is quite popular), then going to the manual, then finding
out I want the /auto/ flag(!!!) is quite annoying:
-- >8 --
# kexec -l /boot/vmlinuz-6.1.0-3-amd64 --initrd /boot/initrd.img-6.1.0-3-amd64 
--reuse-cmdline
kexec_load failed: Operation not permitted
entry       = 0x46eff7760 flags = 0x3e0000
nr_segments = 7
segment[0].buf   = 0x557cd303efa0
segment[0].bufsz = 0x70
segment[0].mem   = 0x100000
segment[0].memsz = 0x1000
segment[1].buf   = 0x557cd3046fe0
segment[1].bufsz = 0x190
segment[1].mem   = 0x101000
segment[1].memsz = 0x1000
segment[2].buf   = 0x557cd303f6e0
segment[2].bufsz = 0x30
segment[2].mem   = 0x102000
segment[2].memsz = 0x1000
segment[3].buf   = 0x7f658fa37010
segment[3].bufsz = 0x12a51b5
segment[3].mem   = 0x46a55a000
segment[3].memsz = 0x12a6000
segment[4].buf   = 0x7f6590ce1210
segment[4].bufsz = 0x7e99e0
segment[4].mem   = 0x46b800000
segment[4].memsz = 0x377c000
segment[5].buf   = 0x557cd3039350
segment[5].bufsz = 0x42fa
segment[5].mem   = 0x46eff2000
segment[5].memsz = 0x5000
segment[6].buf   = 0x557cd3032000
segment[6].bufsz = 0x70e0
segment[6].mem   = 0x46eff7000
segment[6].memsz = 0x9000
-- >8 --

I'm attaching a patch I've validated works as expected.

Best,
наб

-- System Information:
Debian Release: bookworm/sid
  APT prefers unstable-debug
  APT policy: (500, 'unstable-debug'), (500, 'unstable')
Architecture: amd64 (x86_64)
Foreign Architectures: i386

Kernel: Linux 6.0.0-5-amd64 (SMP w/8 CPU threads; PREEMPT)
Kernel taint flags: TAINT_PROPRIETARY_MODULE, TAINT_OOT_MODULE
Locale: LANG=en_GB.UTF-8, LC_CTYPE=en_GB.UTF-8 (charmap=UTF-8), LANGUAGE not set
Shell: /bin/sh linked to /usr/bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled

Versions of packages kexec-tools depends on:
ii  debconf [debconf-2.0]      1.5.82
ii  dpkg                       1.21.19
ii  libc6                      2.36-8
ii  libxenmisc4.17             4.17.0-1+b1
ii  lsb-base                   11.5
ii  sysvinit-utils [lsb-base]  3.06-2

kexec-tools recommends no packages.

kexec-tools suggests no packages.

-- debconf information excluded
--- kexec-tools-2.0.25.orig/kexec/kexec.c
+++ kexec-tools-2.0.25/kexec/kexec.c
@@ -1049,11 +1049,11 @@ void usage(void)
               "                      to original kernel.\n"
               " -s, --kexec-file-syscall Use file based syscall for kexec 
operation\n"
               " -c, --kexec-syscall  Use the kexec_load syscall for for 
compatibility\n"
-              "                      with systems that don't support -s 
(default)\n"
+              "                      with systems that don't support -s\n"
               " -a, --kexec-syscall-auto  Use file based syscall for kexec and 
fall\n"
               "                      back to the compatibility syscall when 
file based\n"
               "                      syscall is not supported or the kernel 
did not\n"
-              "                      understand the image\n"
+              "                      understand the image (default)\n"
               " -d, --debug          Enable debugging to help spot a 
failure.\n"
               " -S, --status         Return 1 if the type (by default crash) 
is loaded,\n"
               "                      0 if not.\n"
@@ -1407,8 +1407,8 @@ int main(int argc, char *argv[])
        int do_ifdown = 0, skip_ifdown = 0;
        int do_unload = 0;
        int do_reuse_initrd = 0;
-       int do_kexec_file_syscall = 0;
-       int do_kexec_fallback = 0;
+       int do_kexec_file_syscall = 1;
+       int do_kexec_fallback = 1;
        int skip_checks = 0;
        int do_status = 0;
        void *entry = 0;
--- kexec-tools-2.0.25.orig/kexec/kexec.8
+++ kexec-tools-2.0.25/kexec/kexec.8
@@ -151,14 +151,14 @@ Specify that the new kernel is of this
 Specify that the new KEXEC_FILE_LOAD syscall should be used exclusively.
 .TP
 .BI \-c\ (\-\-kexec-syscall)
-Specify that the old KEXEC_LOAD syscall should be used exclusively (the 
default).
+Specify that the old KEXEC_LOAD syscall should be used exclusively.
 .TP
 .BI \-a\ (\-\-kexec-syscall-auto)
 Try the new KEXEC_FILE_LOAD syscall first and when it is not supported or the
 kernel does not understand the supplied image fall back to the old KEXEC_LOAD
 interface.
 
-There is no one single interface that always works.
+There is no one single interface that always works, so this is the default.
 
 KEXEC_FILE_LOAD is required on systems that use locked-down secure boot to
 verify the kernel signature.  KEXEC_LOAD may be also disabled in the kernel

Attachment: signature.asc
Description: PGP signature


--- End Message ---
--- Begin Message ---
Source: kexec-tools
Source-Version: 1:2.0.27-1
Done: Khalid Aziz <[email protected]>

We believe that the bug you reported is fixed in the latest version of
kexec-tools, which is due to be installed in the Debian FTP archive.

A summary of the changes between this version and the previous one is
attached.

Thank you for reporting the bug, which will now be closed.  If you
have further comments please address them to [email protected],
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
pp.
Khalid Aziz <[email protected]> (supplier of updated kexec-tools package)

(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing [email protected])


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA512

Format: 1.8
Date: Wed, 04 Oct 2023 16:17:28 -0600
Source: kexec-tools
Architecture: source
Version: 1:2.0.27-1
Distribution: unstable
Urgency: medium
Maintainer: Khalid Aziz <[email protected]>
Changed-By: Khalid Aziz <[email protected]>
Closes: 1028416 1030248 1032000 1034616 1039248 1051962
Changes:
 kexec-tools (1:2.0.27-1) unstable; urgency=medium
 .
   * New upstream release (Closes: #1051962)
   * Updated turkish translation (Closes: #1034616)
   * Added romanian translation (Closes: #1032000)
   * Make "kexec -a" the default. This fix was pulled into upstream
     2.0.26 release (Closes: #1030248)
   * Removed trailing whitespaves from rules and changelog files
   * Updated version for watch file and replaced http with https
   * Updated control file, cleaned up rules file, made copyright file
     dep5 compliant
   * Removed init files. Removed automatic kexec reboot when enabled
     and associated config option (kexec-tools/load_kexec or
     LOAD_KEXEC in /etc/default/kexec). kexec reboot functionality
     has been integrated into systemctl now and will likely move to
     logind in near future. (Closes: #1039248)
   * Package now provides a script - kexec-load-kernel. To perform a
     kexec reboot, ensure /etc/default/kexec has the desired value for
     USE_GRUB_CONFIG. Use the sequence "kexec-load-kernel;
     systemctl kexec" or "kexec-load-kernel; reboot"
     (Closes: #1028416)
Checksums-Sha1:
 56e50779d23ba4b081857693dcbc66d0c8ba9c92 1997 kexec-tools_2.0.27-1.dsc
 ed15f191adee22ab0721ba62af1cae67eb981670 308540 kexec-tools_2.0.27.orig.tar.xz
 63887b052566afe636df387e985f817ef96ce0f2 26012 
kexec-tools_2.0.27-1.debian.tar.xz
 026d2f6771844a459a23d5853180b43113184823 6422 
kexec-tools_2.0.27-1_source.buildinfo
Checksums-Sha256:
 6ad08199fc383fc6a5de2e9c481c0dcf794e784196f954d3fb5403aee4316ee5 1997 
kexec-tools_2.0.27-1.dsc
 38d78bcfa33a88928324b57dc81f50c1dfc279eede45e80957ca18f4e84b8187 308540 
kexec-tools_2.0.27.orig.tar.xz
 641d8c1c2265010507ace885f136b6f8ff6328372a5a3c2d4d99181cf5b3fa7f 26012 
kexec-tools_2.0.27-1.debian.tar.xz
 1827a7e72f2306e6c9f0a6dc316632144470cdadf5045eb4f15805fe298b9ac3 6422 
kexec-tools_2.0.27-1_source.buildinfo
Files:
 e2d7844967362dbe10727487add4b3d2 1997 admin optional kexec-tools_2.0.27-1.dsc
 70472060cdcbfdb0de6ae651193fbc7d 308540 admin optional 
kexec-tools_2.0.27.orig.tar.xz
 632f50ac57ff794bbeabbeea85eb90d6 26012 admin optional 
kexec-tools_2.0.27-1.debian.tar.xz
 b145a3f8d4e703cf52f12b5fcd439ada 6422 admin optional 
kexec-tools_2.0.27-1_source.buildinfo

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

iQIzBAEBCgAdFiEELNgYv/ZGGerbWCE0zVihsX7QM/oFAmUd5LAACgkQzVihsX7Q
M/qijxAAmGv6C/NhDxBi4ZpgRyJb6UL0/9rilDg4P5gsL4LtMZhNCYUwSdT5/wxF
sLD5tsNWh8RaPOikm+l0UV8rgnBFMNP3eJHF0t3ACSfAAgX6fo08lDtWM19bfzke
4/WCX3AJi5ZoEuqaOu0mlkQW+ji2h4OraitLmPCW8Uu1+TgpoWtVtSVAiN86Z1qX
+mpWRQKYTVxzanUsPicIC00qmQUpVEyYBJNEM/w82tziM5eoolPbG//de5SA4DiQ
KmITiqSjbJfrGFB8HPafqqdp/hRv8GIWZoFX0fie578+dDkAYF3mBy91Ii/KUeJn
Eu4d1CMk3WkZy0pFYtj4GhdPaeu3KyViRsyCuA3s3XMU7X04TgbNs4tbLDFQzbG7
hF9qlWKCXuaj/23SBH8Jw6r+2x+2zoVBadm4nNIIodcAWP8awLnDqn1YI4G/fgEp
qKNdXivibIvH/WGCQRgUf6/pfbzD7WZh9BN8/wNoTCBdZXCIsIq1+jja8oflnBzt
r+RG7m4PiejWxGq68QguWc4JDC4giM/D639qH6uZt2cFfUYCH77SDHG+m13YU/dk
9NuBBOexowV9dF2woC9WTSxgI+ogNBMvELKKmXodQkLDQBRPSVH/js+ujLaeV9c0
tdTVoXMaB1Qoqoe/mkZHkCfZlb7/91Wh5x8aHpN8yn4kN1YJGd4=
=qTKJ
-----END PGP SIGNATURE-----

--- End Message ---

Reply via email to