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]
Date:   Tue, 14 Jun 2022 12:24:55 +0800
From:   kernel test robot <lkp@...el.com>
To:     "Kirill A. Shutemov" <kirill.shutemov@...ux.intel.com>
Cc:     llvm@...ts.linux.dev, kbuild-all@...ts.01.org,
        linux-kernel@...r.kernel.org
Subject: [intel-tdx:guest-unaccepted-memory 6/17] mm/page_alloc.c:1015:40:
 error: use of undeclared identifier 'NR_UNACCEPTED'

tree:   https://github.com/intel/tdx.git guest-unaccepted-memory
head:   7a902d05477ac272558ba731d903c6b0c9d72903
commit: e4fbeb9c5cb4aa02fcd17388eef920f389fc83ea [6/17] mm: Report unaccepted memory in meminfo
config: hexagon-randconfig-r041-20220613 (https://download.01.org/0day-ci/archive/20220614/202206141219.Jr2jdIB3-lkp@intel.com/config)
compiler: clang version 15.0.0 (https://github.com/llvm/llvm-project c97436f8b6e2718286e8496faf53a2c800e281cf)
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://github.com/intel/tdx/commit/e4fbeb9c5cb4aa02fcd17388eef920f389fc83ea
        git remote add intel-tdx https://github.com/intel/tdx.git
        git fetch --no-tags intel-tdx guest-unaccepted-memory
        git checkout e4fbeb9c5cb4aa02fcd17388eef920f389fc83ea
        # save the config file
        mkdir build_dir && cp config build_dir/.config
        COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross W=1 O=build_dir ARCH=hexagon SHELL=/bin/bash

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

All errors (new ones prefixed by >>):

>> mm/page_alloc.c:1015:40: error: use of undeclared identifier 'NR_UNACCEPTED'
           mod_node_page_state(page_pgdat(page), NR_UNACCEPTED, -(1 << order));
                                                 ^
   mm/page_alloc.c:1152:43: error: use of undeclared identifier 'NR_UNACCEPTED'
                   __mod_node_page_state(page_pgdat(page), NR_UNACCEPTED,
                                                           ^
   2 errors generated.


vim +/NR_UNACCEPTED +1015 mm/page_alloc.c

  1001	
  1002	/*
  1003	 * Page acceptance can be very slow. Do not call under critical locks.
  1004	 */
  1005	static void accept_page(struct page *page, unsigned int order)
  1006	{
  1007		phys_addr_t start = page_to_phys(page);
  1008		int i;
  1009	
  1010		if (!PageUnaccepted(page))
  1011			return;
  1012	
  1013		accept_memory(start, start + (PAGE_SIZE << order));
  1014		__ClearPageUnaccepted(page);
> 1015		mod_node_page_state(page_pgdat(page), NR_UNACCEPTED, -(1 << order));
  1016	
  1017		/* Assert that there is no PageUnaccepted() on tail pages */
  1018		if (IS_ENABLED(CONFIG_DEBUG_VM)) {
  1019			for (i = 1; i < (1 << order); i++)
  1020				VM_BUG_ON_PAGE(PageUnaccepted(page + i), page + i);
  1021		}
  1022	}
  1023	

-- 
0-DAY CI Kernel Test Service
https://01.org/lkp

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ