lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [day] [month] [year] [list]
Message-ID: <201703162142.HQQX9P7C%fengguang.wu@intel.com>
Date:   Thu, 16 Mar 2017 21:39:58 +0800
From:   kbuild test robot <fengguang.wu@...el.com>
To:     Thomas Garnier <thgarnie@...gle.com>
Cc:     kbuild-all@...org, linux-kernel@...r.kernel.org,
        tipbuild@...or.com, Ingo Molnar <mingo@...nel.org>
Subject: [tip:x86/mm 1/3] fs/proc/kcore.c:626:40: note: in expansion of macro
 'MODULES_END'

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/tip/tip.git x86/mm
head:   45fc8757d1d2128e342b4e7ef39adedf7752faac
commit: f06bdd4001c257792c54dce9427399f2896470af [1/3] x86/mm: Adapt MODULES_END based on fixmap section size
config: x86_64-randconfig-b0-03161924 (attached as .config)
compiler: gcc-6 (Debian 6.2.0-3) 6.2.0 20160901
reproduce:
        git checkout f06bdd4001c257792c54dce9427399f2896470af
        # save the attached .config to linux build tree
        make ARCH=x86_64 

All warnings (new ones prefixed by >>):

   In file included from arch/x86/include/asm/pgtable_types.h:240:0,
                    from arch/x86/include/asm/paravirt_types.h:44,
                    from arch/x86/include/asm/ptrace.h:71,
                    from arch/x86/include/asm/math_emu.h:4,
                    from arch/x86/include/asm/processor.h:11,
                    from arch/x86/include/asm/cpufeature.h:4,
                    from arch/x86/include/asm/thread_info.h:52,
                    from include/linux/thread_info.h:25,
                    from arch/x86/include/asm/preempt.h:6,
                    from include/linux/preempt.h:80,
                    from include/linux/spinlock.h:50,
                    from include/linux/mmzone.h:7,
                    from include/linux/gfp.h:5,
                    from include/linux/mm.h:9,
                    from fs/proc/kcore.c:12:
   fs/proc/kcore.c: In function 'add_modules_range':
   arch/x86/include/asm/pgtable_64_types.h:72:23: error: implicit declaration of function '__fix_to_virt' [-Werror=implicit-function-declaration]
    #define MODULES_END   __fix_to_virt(__end_of_fixed_addresses + 1)
                          ^
>> fs/proc/kcore.c:626:40: note: in expansion of macro 'MODULES_END'
     if (MODULES_VADDR != VMALLOC_START && MODULES_END != VMALLOC_END) {
                                           ^~~~~~~~~~~
   arch/x86/include/asm/pgtable_64_types.h:72:37: error: '__end_of_fixed_addresses' undeclared (first use in this function)
    #define MODULES_END   __fix_to_virt(__end_of_fixed_addresses + 1)
                                        ^
>> fs/proc/kcore.c:626:40: note: in expansion of macro 'MODULES_END'
     if (MODULES_VADDR != VMALLOC_START && MODULES_END != VMALLOC_END) {
                                           ^~~~~~~~~~~
   arch/x86/include/asm/pgtable_64_types.h:72:37: note: each undeclared identifier is reported only once for each function it appears in
    #define MODULES_END   __fix_to_virt(__end_of_fixed_addresses + 1)
                                        ^
>> fs/proc/kcore.c:626:40: note: in expansion of macro 'MODULES_END'
     if (MODULES_VADDR != VMALLOC_START && MODULES_END != VMALLOC_END) {
                                           ^~~~~~~~~~~
   cc1: some warnings being treated as errors

vim +/MODULES_END +626 fs/proc/kcore.c

9492587c KAMEZAWA Hiroyuki 2009-09-22  610  {
36e15263 Wu Fengguang      2010-05-26  611  	kclist_add(&kcore_text, _text, _end - _text, KCORE_TEXT);
9492587c KAMEZAWA Hiroyuki 2009-09-22  612  }
9492587c KAMEZAWA Hiroyuki 2009-09-22  613  #else
9492587c KAMEZAWA Hiroyuki 2009-09-22  614  static void __init proc_kcore_text_init(void)
9492587c KAMEZAWA Hiroyuki 2009-09-22  615  {
9492587c KAMEZAWA Hiroyuki 2009-09-22  616  }
9492587c KAMEZAWA Hiroyuki 2009-09-22  617  #endif
9492587c KAMEZAWA Hiroyuki 2009-09-22  618  
81ac3ad9 KAMEZAWA Hiroyuki 2009-09-22  619  #if defined(CONFIG_MODULES) && defined(MODULES_VADDR)
81ac3ad9 KAMEZAWA Hiroyuki 2009-09-22  620  /*
81ac3ad9 KAMEZAWA Hiroyuki 2009-09-22  621   * MODULES_VADDR has no intersection with VMALLOC_ADDR.
81ac3ad9 KAMEZAWA Hiroyuki 2009-09-22  622   */
81ac3ad9 KAMEZAWA Hiroyuki 2009-09-22  623  struct kcore_list kcore_modules;
81ac3ad9 KAMEZAWA Hiroyuki 2009-09-22  624  static void __init add_modules_range(void)
81ac3ad9 KAMEZAWA Hiroyuki 2009-09-22  625  {
bf3e2692 Baoquan He        2014-10-09 @626  	if (MODULES_VADDR != VMALLOC_START && MODULES_END != VMALLOC_END) {
81ac3ad9 KAMEZAWA Hiroyuki 2009-09-22  627  		kclist_add(&kcore_modules, (void *)MODULES_VADDR,
81ac3ad9 KAMEZAWA Hiroyuki 2009-09-22  628  			MODULES_END - MODULES_VADDR, KCORE_VMALLOC);
81ac3ad9 KAMEZAWA Hiroyuki 2009-09-22  629  	}
bf3e2692 Baoquan He        2014-10-09  630  }
81ac3ad9 KAMEZAWA Hiroyuki 2009-09-22  631  #else
81ac3ad9 KAMEZAWA Hiroyuki 2009-09-22  632  static void __init add_modules_range(void)
81ac3ad9 KAMEZAWA Hiroyuki 2009-09-22  633  {
81ac3ad9 KAMEZAWA Hiroyuki 2009-09-22  634  }

:::::: The code at line 626 was first introduced by commit
:::::: bf3e2692468fe46eed57d18b3dd1af5b30049122 fs/proc/kcore.c: don't add modules range to kcore if it's equal to vmcore range

:::::: TO: Baoquan He <bhe@...hat.com>
:::::: CC: Linus Torvalds <torvalds@...ux-foundation.org>

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

Download attachment ".config.gz" of type "application/gzip" (27600 bytes)

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ