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: <202106140602.HKKWkVLD-lkp@intel.com>
Date:   Mon, 14 Jun 2021 06:16:09 +0800
From:   kernel test robot <lkp@...el.com>
To:     Ingo Molnar <mingo@...nel.org>
Cc:     kbuild-all@...ts.01.org, linux-kernel@...r.kernel.org,
        x86@...nel.org
Subject: [tip:tmp.tmp2 181/364] arch/x86/include/asm/page_64_types.h:75:21:
 error: implicit declaration of function 'test_thread_flag'

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/tip/tip.git tmp.tmp2
head:   adcceb5eb7aee38e4a9c15bdf599655f0e1b1324
commit: ce4bb9d9b7175b1ac35cc13dd65b06aed1cb4fdd [181/364] sched/headers, x86/mm: Remove <linux/thread_info_api.h> from <asm/elf.h>
config: x86_64-kexec (attached as .config)
compiler: gcc-9 (Debian 9.3.0-22) 9.3.0
reproduce (this is a W=1 build):
        # https://git.kernel.org/pub/scm/linux/kernel/git/tip/tip.git/commit/?id=ce4bb9d9b7175b1ac35cc13dd65b06aed1cb4fdd
        git remote add tip https://git.kernel.org/pub/scm/linux/kernel/git/tip/tip.git
        git fetch --no-tags tip tmp.tmp2
        git checkout ce4bb9d9b7175b1ac35cc13dd65b06aed1cb4fdd
        # save the attached .config to linux build tree
        make W=1 ARCH=x86_64 

If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp@...el.com>

All errors (new ones prefixed by >>):

   In file included from arch/x86/include/asm/page_types.h:46,
                    from arch/x86/include/asm/page.h:9,
                    from arch/x86/include/asm/spinlock.h:7,
                    from include/linux/spinlock.h:91,
                    from include/linux/mmzone.h:8,
                    from include/linux/gfp.h:7,
                    from include/linux/mm.h:12,
                    from include/linux/mman.h:5,
                    from lib/test_user_copy.c:13:
   lib/test_user_copy.c: In function 'test_user_copy_init':
>> arch/x86/include/asm/page_64_types.h:75:21: error: implicit declaration of function 'test_thread_flag' [-Werror=implicit-function-declaration]
      75 | #define TASK_SIZE  (test_thread_flag(TIF_ADDR32) ? \
         |                     ^~~~~~~~~~~~~~~~
   lib/test_user_copy.c:201:35: note: in expansion of macro 'TASK_SIZE'
     201 |  if (user_addr >= (unsigned long)(TASK_SIZE)) {
         |                                   ^~~~~~~~~
   cc1: some warnings being treated as errors


vim +/test_thread_flag +75 arch/x86/include/asm/page_64_types.h

999c83e8ffd90c Christoph Hellwig 2020-09-03  66  
999c83e8ffd90c Christoph Hellwig 2020-09-03  67  /* This decides where the kernel will search for a free chunk of vm
999c83e8ffd90c Christoph Hellwig 2020-09-03  68   * space during mmap's.
999c83e8ffd90c Christoph Hellwig 2020-09-03  69   */
999c83e8ffd90c Christoph Hellwig 2020-09-03  70  #define IA32_PAGE_OFFSET	((current->personality & ADDR_LIMIT_3GB) ? \
999c83e8ffd90c Christoph Hellwig 2020-09-03  71  					0xc0000000 : 0xFFFFe000)
999c83e8ffd90c Christoph Hellwig 2020-09-03  72  
999c83e8ffd90c Christoph Hellwig 2020-09-03  73  #define TASK_SIZE_LOW		(test_thread_flag(TIF_ADDR32) ? \
999c83e8ffd90c Christoph Hellwig 2020-09-03  74  					IA32_PAGE_OFFSET : DEFAULT_MAP_WINDOW)
999c83e8ffd90c Christoph Hellwig 2020-09-03 @75  #define TASK_SIZE		(test_thread_flag(TIF_ADDR32) ? \
999c83e8ffd90c Christoph Hellwig 2020-09-03  76  					IA32_PAGE_OFFSET : TASK_SIZE_MAX)
999c83e8ffd90c Christoph Hellwig 2020-09-03  77  #define TASK_SIZE_OF(child)	((test_tsk_thread_flag(child, TIF_ADDR32)) ? \
999c83e8ffd90c Christoph Hellwig 2020-09-03  78  					IA32_PAGE_OFFSET : TASK_SIZE_MAX)
999c83e8ffd90c Christoph Hellwig 2020-09-03  79  

:::::: The code at line 75 was first introduced by commit
:::::: 999c83e8ffd90caa00ee6caf054e037cf8a27d0e x86: move PAGE_OFFSET, TASK_SIZE & friends to page_{32,64}_types.h

:::::: TO: Christoph Hellwig <hch@....de>
:::::: CC: Al Viro <viro@...iv.linux.org.uk>

---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org

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

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ