[rgushchin:kmem_reparent.2 270/351] arch/arm64/include/asm/elf.h:117:3: error: implicit declaration of function 'is_compat_task'; did you mean 'is_idle_task'?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



tree:   https://github.com/rgushchin/linux.git kmem_reparent.2
head:   9bcad55670928ba9722a8f9872d4db60d5bddea8
commit: 09d6592c219876dd21a11f1c3d35134ccb6937e1 [270/351] binfmt_elf: Update READ_IMPLIES_EXEC logic for modern CPUs
config: arm64-alldefconfig (attached as .config)
compiler: aarch64-linux-gnu-gcc (Debian 7.2.0-11) 7.2.0
reproduce:
        wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
        chmod +x ~/bin/make.cross
        git checkout 09d6592c219876dd21a11f1c3d35134ccb6937e1
        # save the attached .config to linux build tree
        GCC_VERSION=7.2.0 make.cross ARCH=arm64 

If you fix the issue, kindly add following tag
Reported-by: kbuild test robot <lkp@xxxxxxxxx>
All error/warnings (new ones prefixed by >>):

   In file included from include/linux/elf.h:5:0,
                    from include/linux/module.h:15,
                    from fs/binfmt_elf.c:12:
   fs/binfmt_elf.c: In function 'load_elf_binary':
>> arch/arm64/include/asm/elf.h:117:3: error: implicit declaration of function 'is_compat_task'; did you mean 'is_idle_task'? [-Werror=implicit-function-declaration]
     (is_compat_task() && stk == EXSTACK_DEFAULT)
      ^
>> fs/binfmt_elf.c:873:6: note: in expansion of macro 'elf_read_implies_exec'
     if (elf_read_implies_exec(loc->elf_ex, executable_stack))
         ^~~~~~~~~~~~~~~~~~~~~
   cc1: some warnings being treated as errors

vim +117 arch/arm64/include/asm/elf.h

   109	
   110	/*
   111	 * 64-bit processes should not automatically gain READ_IMPLIES_EXEC. Only
   112	 * 32-bit processes without PT_GNU_STACK should trigger READ_IMPLIES_EXEC
   113	 * out of an abundance of caution against ancient toolchains not knowing
   114	 * how to mark memory protection flags correctly.
   115	 */
   116	#define elf_read_implies_exec(ex, stk)			\
 > 117		(is_compat_task() && stk == EXSTACK_DEFAULT)
   118	

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

Attachment: .config.gz
Description: application/gzip


[Index of Archives]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Bugtraq]     [Linux OMAP]     [Linux MIPS]     [eCos]     [Asterisk Internet PBX]     [Linux API]

  Powered by Linux