Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1666752

Re: [PATCH 2/2] x86/boot/KASLR: Restrict kernel to be randomized in mirror regions if existed

From kbuild test robot <lkp@intel.com>
Newsgroups linux.kernel
Subject Re: [PATCH 2/2] x86/boot/KASLR: Restrict kernel to be randomized in mirror regions if existed
Date 2017-06-15 16:10 +0200
Message-ID <tSDDb-3sa-5@gated-at.bofh.it> (permalink)
References <tSxR7-88I-3@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


[Multipart message — attachments visible in raw view] - view raw

Hi Baoquan,

[auto build test WARNING on tip/auto-latest]
[also build test WARNING on next-20170615]
[cannot apply to tip/x86/core v4.12-rc5]
[if your patch is applied to the wrong git tree, please drop us a note to help improve the system]

url:    https://github.com/0day-ci/linux/commits/Baoquan-He/x86-boot-KASLR-Restrict-kernel-to-be-randomized-in-mirror-regions-if-existed/20170615-204125
config: i386-defconfig (attached as .config)
compiler: gcc-6 (Debian 6.2.0-3) 6.2.0 20160901
reproduce:
        # save the attached .config to linux build tree
        make ARCH=i386 

All warnings (new ones prefixed by >>):

   arch/x86/boot/compressed/kaslr.c: In function 'process_efi_entry':
>> arch/x86/boot/compressed/kaslr.c:604:24: warning: 'return' with a value, in function returning void
                    return -EINVAL;
                           ^
   arch/x86/boot/compressed/kaslr.c:566:13: note: declared here
    static void process_efi_entry(unsigned long minimum, unsigned long image_size)
                ^~~~~~~~~~~~~~~~~

vim +/return +604 arch/x86/boot/compressed/kaslr.c

   588	
   589		/*
   590		 * Mirrored regions are meaningful only if "kernelcore=mirror"
   591		 * specified.
   592		 */
   593		str = strstr(cmdline, "kernelcore=");
   594		if (!str)
   595			return;
   596		str += strlen("kernelcore=");
   597		if (strncmp(str, "mirror", 6))
   598			return;
   599	
   600	#ifdef CONFIG_X86_32
   601	       /* Can't handle data above 4GB at this time */
   602	       if (e->efi_memmap_hi) {
   603	                warn("Memory map is above 4GB, disabling EFI.\n");
 > 604	                return -EINVAL;
   605	        }
   606	        pmap =  e->efi_memmap;
   607	#else
   608	        pmap = (e->efi_memmap | ((__u64)e->efi_memmap_hi << 32));
   609	#endif
   610	
   611		nr_desc = e->efi_memmap_size / e->efi_memdesc_size;
   612		for (i = 0; i < nr_desc; i++) {

---
0-DAY kernel test infrastructure                Open Source Technology Center
https://lists.01.org/pipermail/kbuild-all                   Intel Corporation

Back to linux.kernel | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

[PATCH 2/2] x86/boot/KASLR: Restrict kernel to be randomized in mirror regions if existed Baoquan He <bhe@redhat.com> - 2017-06-15 10:00 +0200
  Re: [PATCH 2/2] x86/boot/KASLR: Restrict kernel to be randomized in  mirror regions if existed kbuild test robot <lkp@intel.com> - 2017-06-15 16:10 +0200
    Re: [PATCH 2/2] x86/boot/KASLR: Restrict kernel to be randomized in  mirror regions if existed Baoquan He <bhe@redhat.com> - 2017-06-15 17:10 +0200

csiph-web