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: <202202252005.Ql6JvCzE-lkp@intel.com>
Date:   Fri, 25 Feb 2022 20:47:45 +0800
From:   kernel test robot <lkp@...el.com>
To:     Anshuman Khandual <anshuman.khandual@....com>
Cc:     kbuild-all@...ts.01.org, linux-kernel@...r.kernel.org,
        Dinh Nguyen <dinguyen@...nel.org>
Subject: [dinguyen:nios2_for_v5.18_4 1/1] mm/mmap.c:105:9: error: '__P000'
 undeclared here (not in a function)

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/dinguyen/linux.git nios2_for_v5.18_4
head:   1d8048ad8cff3e11dd5ed1860cd6b0cf198c9a5d
commit: 1d8048ad8cff3e11dd5ed1860cd6b0cf198c9a5d [1/1] nios2/mm: Enable ARCH_HAS_VM_GET_PAGE_PROT
config: nios2-allyesconfig (https://download.01.org/0day-ci/archive/20220225/202202252005.Ql6JvCzE-lkp@intel.com/config)
compiler: nios2-linux-gcc (GCC) 11.2.0
reproduce (this is a W=1 build):
        wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
        chmod +x ~/bin/make.cross
        # https://git.kernel.org/pub/scm/linux/kernel/git/dinguyen/linux.git/commit/?id=1d8048ad8cff3e11dd5ed1860cd6b0cf198c9a5d
        git remote add dinguyen https://git.kernel.org/pub/scm/linux/kernel/git/dinguyen/linux.git
        git fetch --no-tags dinguyen nios2_for_v5.18_4
        git checkout 1d8048ad8cff3e11dd5ed1860cd6b0cf198c9a5d
        # save the config file to linux build tree
        mkdir build_dir
        COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-11.2.0 make.cross O=build_dir ARCH=nios2 SHELL=/bin/bash

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 >>):

>> mm/mmap.c:105:9: error: '__P000' undeclared here (not in a function)
     105 |         __P000, __P001, __P010, __P011, __P100, __P101, __P110, __P111,
         |         ^~~~~~
>> mm/mmap.c:105:17: error: '__P001' undeclared here (not in a function)
     105 |         __P000, __P001, __P010, __P011, __P100, __P101, __P110, __P111,
         |                 ^~~~~~
>> mm/mmap.c:105:25: error: '__P010' undeclared here (not in a function)
     105 |         __P000, __P001, __P010, __P011, __P100, __P101, __P110, __P111,
         |                         ^~~~~~
>> mm/mmap.c:105:33: error: '__P011' undeclared here (not in a function)
     105 |         __P000, __P001, __P010, __P011, __P100, __P101, __P110, __P111,
         |                                 ^~~~~~
>> mm/mmap.c:105:41: error: '__P100' undeclared here (not in a function)
     105 |         __P000, __P001, __P010, __P011, __P100, __P101, __P110, __P111,
         |                                         ^~~~~~
>> mm/mmap.c:105:49: error: '__P101' undeclared here (not in a function)
     105 |         __P000, __P001, __P010, __P011, __P100, __P101, __P110, __P111,
         |                                                 ^~~~~~
>> mm/mmap.c:105:57: error: '__P110' undeclared here (not in a function)
     105 |         __P000, __P001, __P010, __P011, __P100, __P101, __P110, __P111,
         |                                                         ^~~~~~
>> mm/mmap.c:105:65: error: '__P111' undeclared here (not in a function)
     105 |         __P000, __P001, __P010, __P011, __P100, __P101, __P110, __P111,
         |                                                                 ^~~~~~
>> mm/mmap.c:106:9: error: '__S000' undeclared here (not in a function)
     106 |         __S000, __S001, __S010, __S011, __S100, __S101, __S110, __S111
         |         ^~~~~~
>> mm/mmap.c:106:17: error: '__S001' undeclared here (not in a function)
     106 |         __S000, __S001, __S010, __S011, __S100, __S101, __S110, __S111
         |                 ^~~~~~
>> mm/mmap.c:106:25: error: '__S010' undeclared here (not in a function)
     106 |         __S000, __S001, __S010, __S011, __S100, __S101, __S110, __S111
         |                         ^~~~~~
>> mm/mmap.c:106:33: error: '__S011' undeclared here (not in a function)
     106 |         __S000, __S001, __S010, __S011, __S100, __S101, __S110, __S111
         |                                 ^~~~~~
>> mm/mmap.c:106:41: error: '__S100' undeclared here (not in a function)
     106 |         __S000, __S001, __S010, __S011, __S100, __S101, __S110, __S111
         |                                         ^~~~~~
>> mm/mmap.c:106:49: error: '__S101' undeclared here (not in a function)
     106 |         __S000, __S001, __S010, __S011, __S100, __S101, __S110, __S111
         |                                                 ^~~~~~
>> mm/mmap.c:106:57: error: '__S110' undeclared here (not in a function)
     106 |         __S000, __S001, __S010, __S011, __S100, __S101, __S110, __S111
         |                                                         ^~~~~~
>> mm/mmap.c:106:65: error: '__S111' undeclared here (not in a function)
     106 |         __S000, __S001, __S010, __S011, __S100, __S101, __S110, __S111
         |                                                                 ^~~~~~


vim +/__P000 +105 mm/mmap.c

d07e22597d1d35 Daniel Cashman  2016-01-14   79  
e0da382c92626a Hugh Dickins    2005-04-19   80  static void unmap_region(struct mm_struct *mm,
e0da382c92626a Hugh Dickins    2005-04-19   81  		struct vm_area_struct *vma, struct vm_area_struct *prev,
e0da382c92626a Hugh Dickins    2005-04-19   82  		unsigned long start, unsigned long end);
e0da382c92626a Hugh Dickins    2005-04-19   83  
^1da177e4c3f41 Linus Torvalds  2005-04-16   84  /* description of effects of mapping type and prot in current implementation.
^1da177e4c3f41 Linus Torvalds  2005-04-16   85   * this is due to the limited x86 page protection hardware.  The expected
^1da177e4c3f41 Linus Torvalds  2005-04-16   86   * behavior is in parens:
^1da177e4c3f41 Linus Torvalds  2005-04-16   87   *
^1da177e4c3f41 Linus Torvalds  2005-04-16   88   * map_type	prot
^1da177e4c3f41 Linus Torvalds  2005-04-16   89   *		PROT_NONE	PROT_READ	PROT_WRITE	PROT_EXEC
^1da177e4c3f41 Linus Torvalds  2005-04-16   90   * MAP_SHARED	r: (no) no	r: (yes) yes	r: (no) yes	r: (no) yes
^1da177e4c3f41 Linus Torvalds  2005-04-16   91   *		w: (no) no	w: (no) no	w: (yes) yes	w: (no) no
^1da177e4c3f41 Linus Torvalds  2005-04-16   92   *		x: (no) no	x: (no) yes	x: (no) yes	x: (yes) yes
^1da177e4c3f41 Linus Torvalds  2005-04-16   93   *
^1da177e4c3f41 Linus Torvalds  2005-04-16   94   * MAP_PRIVATE	r: (no) no	r: (yes) yes	r: (no) yes	r: (no) yes
^1da177e4c3f41 Linus Torvalds  2005-04-16   95   *		w: (no) no	w: (no) no	w: (copy) copy	w: (no) no
^1da177e4c3f41 Linus Torvalds  2005-04-16   96   *		x: (no) no	x: (no) yes	x: (no) yes	x: (yes) yes
18107f8a2df6bf Vladimir Murzin 2021-03-12   97   *
18107f8a2df6bf Vladimir Murzin 2021-03-12   98   * On arm64, PROT_EXEC has the following behaviour for both MAP_SHARED and
18107f8a2df6bf Vladimir Murzin 2021-03-12   99   * MAP_PRIVATE (with Enhanced PAN supported):
18107f8a2df6bf Vladimir Murzin 2021-03-12  100   *								r: (no) no
18107f8a2df6bf Vladimir Murzin 2021-03-12  101   *								w: (no) no
18107f8a2df6bf Vladimir Murzin 2021-03-12  102   *								x: (yes) yes
^1da177e4c3f41 Linus Torvalds  2005-04-16  103   */
ac34ceaf1cdb34 Daniel Micay    2017-07-06  104  pgprot_t protection_map[16] __ro_after_init = {
^1da177e4c3f41 Linus Torvalds  2005-04-16 @105  	__P000, __P001, __P010, __P011, __P100, __P101, __P110, __P111,
^1da177e4c3f41 Linus Torvalds  2005-04-16 @106  	__S000, __S001, __S010, __S011, __S100, __S101, __S110, __S111
^1da177e4c3f41 Linus Torvalds  2005-04-16  107  };
^1da177e4c3f41 Linus Torvalds  2005-04-16  108  

:::::: The code at line 105 was first introduced by commit
:::::: 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 Linux-2.6.12-rc2

:::::: TO: Linus Torvalds <torvalds@...970.osdl.org>
:::::: CC: Linus Torvalds <torvalds@...970.osdl.org>

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

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ