Your message dated Wed, 09 Jul 2014 19:33:39 +0000 with message-id <[email protected]> and subject line Bug#735360: fixed in kexec-tools 1:2.0.7-1 has caused the Debian Bug report #735360, regarding kexec-tools: Multiboot mem_lower is always zero after kexec 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.) -- 735360: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=735360 Debian Bug Tracking System Contact [email protected] with problems
--- Begin Message ---Package: kexec-tools Version: 1:2.0.4-1 Severity: normal Tags: upstream, patch Dear Maintainer, I'm trying to use kexec to boot a multiboot image. My image relies on mbi->mem_lower being correct, but the current code combined with a stock debian kernel always fills this field in with zero. The problem is that the debian stock kernel protects the first few pages (from physical address zero) so they don't appear in /proc/iomem -- so the test in kexec-multiboot-x86.c to find the low memory fails -- there's never any visible memroy at location zero in /proc/iomem. My suggested fix is attached. --- kexec/arch/i386/kexec-multiboot-x86.c | 14 +++++++++++--- 1 file changed, 11 insertions(+), 3 deletions(-) Index: kexec-tools-2.0.4/kexec/arch/i386/kexec-multiboot-x86.c =================================================================== --- kexec-tools-2.0.4.orig/kexec/arch/i386/kexec-multiboot-x86.c 2013-03-14 18:45:16.000000000 +1000 +++ kexec-tools-2.0.4/kexec/arch/i386/kexec-multiboot-x86.c 2014-01-15 10:21:02.138172304 +1000 @@ -261,10 +261,18 @@ int multiboot_x86_load(int argc, char ** mmap[i].length_high = length >> 32; if (range[i].type == RANGE_RAM) { mmap[i].Type = 1; /* RAM */ - /* Is this the "low" memory? */ - if ((range[i].start == 0) - && (range[i].end > mem_lower)) + /* + * Is this the "low" memory? Can't just test + * against zero, because Linux protects (and + * hides) the first few pages of physical + * memory. + */ + + if ((range[i].start <= 64*1024) + && (range[i].end > mem_lower)) { + range[i].start = 0; mem_lower = range[i].end; + } /* Is this the "high" memory? */ if ((range[i].start <= 0x100000) && (range[i].end > mem_upper + 0x100000)) -- System Information: Debian Release: jessie/sid APT prefers unstable APT policy: (990, 'unstable'), (500, 'stable') Architecture: amd64 (x86_64) Foreign Architectures: i386 Kernel: Linux 3.13.0-rc8 (SMP w/8 CPU cores) Locale: LANG=en_AU.UTF-8, LC_CTYPE=en_AU.UTF-8 (charmap=UTF-8) Shell: /bin/sh linked to /bin/bash Versions of packages kexec-tools depends on: ii debconf [debconf-2.0] 1.5.52 ii libc6 2.17-97 kexec-tools recommends no packages. kexec-tools suggests no packages. -- debconf information: * kexec-tools/load_kexec: true kexec-tools/use_grub_config: false
--- End Message ---
--- Begin Message ---Source: kexec-tools Source-Version: 1:2.0.7-1 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: SHA1 Format: 1.8 Date: Wed, 09 Jul 2014 10:44:35 -0600 Source: kexec-tools Binary: kexec-tools kexec-tools-udeb Architecture: source amd64 Version: 1:2.0.7-1 Distribution: unstable Urgency: low Maintainer: Khalid Aziz <[email protected]> Changed-By: Khalid Aziz <[email protected]> Description: kexec-tools - tools to support fast kexec reboots kexec-tools-udeb - tools to support fast kexec reboots (udeb) (udeb) Closes: 735360 Changes: kexec-tools (1:2.0.7-1) unstable; urgency=low . * New upstream release. Refreshed patches to apply without offsets * Stopped passing start/stop to update-rc.d * Includes fix for multiboot image booting bug from upstream (closes: Bug#735360) Checksums-Sha1: d77214f88c4df8d0c6d142f3ba6c2b9de2c202b2 1432 kexec-tools_2.0.7-1.dsc 8c32284c87bffa2d2dfea3f3252afdff63a6ac44 379404 kexec-tools_2.0.7.orig.tar.gz 172b520aea6d6e51e876c4252b45b7b64e63d4c8 18272 kexec-tools_2.0.7-1.debian.tar.xz fd66e87b16b1a23fb155c71747b19728ae7fc3a7 78714 kexec-tools_2.0.7-1_amd64.deb fea52a77447cb606758985f1b3826bfa00148fae 51304 kexec-tools-udeb_2.0.7-1_amd64.udeb Checksums-Sha256: 6b38b7ac87490cb0fa0a1d3129e560afd6c05720a19348395e4cffcfb1aec8c9 1432 kexec-tools_2.0.7-1.dsc dde5c38be39882c6c91f0129647349c4e1943b077d3020af1970b481ee954eb0 379404 kexec-tools_2.0.7.orig.tar.gz d4367050118b3bd8d37bb1f6404b5dc734cf7b1311e4a107b16e2d7b15974b4a 18272 kexec-tools_2.0.7-1.debian.tar.xz b33ade08e5d1ddbec4e55ae8e131315f0ec581f765da8bdc135c35c6a9dba3f4 78714 kexec-tools_2.0.7-1_amd64.deb 7f357b7b7e2ab02ca9bb8f51588a73ceeec1309dca06ebd358725ab49b5dcf89 51304 kexec-tools-udeb_2.0.7-1_amd64.udeb Files: 9505bd39ceec3c3735b29527af86b3c4 78714 admin optional kexec-tools_2.0.7-1_amd64.deb c81cb714196e67a0b9ed9c479897163d 51304 debian-installer optional kexec-tools-udeb_2.0.7-1_amd64.udeb 518ca5ad16b09105217e5b157cf1b0ee 1432 admin optional kexec-tools_2.0.7-1.dsc 2309ba43981cb6d39d07ac3a9aac30ab 379404 admin optional kexec-tools_2.0.7.orig.tar.gz 49eca22248467329bc339785709938b9 18272 admin optional kexec-tools_2.0.7-1.debian.tar.xz Package-Type: udeb -----BEGIN PGP SIGNATURE----- Version: GnuPG v1 iEYEARECAAYFAlO9mJYACgkQlQEY26iVtiFb4QCgq3MSbo2zJ5FYG0oLltzaRJSY ipUAoIRvY9koZeI/2LiV47vgbNCLFTRs =uejE -----END PGP SIGNATURE-----
--- End Message ---

