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: <202210010401.xOh930XY-lkp@intel.com>
Date:   Sat, 1 Oct 2022 04:33:23 +0800
From:   kernel test robot <lkp@...el.com>
To:     "Kirill A. Shutemov" <kirill.shutemov@...ux.intel.com>
Cc:     kbuild-all@...ts.01.org, linux-kernel@...r.kernel.org,
        Isaku Yamahata <isaku.yamahata@...el.com>,
        Chao Peng <chao.p.peng@...ux.intel.com>
Subject: [intel-tdx:kvm-upstream-workaround 56/350]
 mm/memfd_inaccessible.c:197: undefined reference to `shmem_getpage'

tree:   https://github.com/intel/tdx.git kvm-upstream-workaround
head:   699e64cb199ffac8cf4c8eff2e96fed94fcf5a0b
commit: 27607a996762f6ad9e181370f2c9c02592adf156 [56/350] mm/memfd: Introduce userspace inaccessible memfd
config: ia64-randconfig-r026-20220926
compiler: ia64-linux-gcc (GCC) 12.1.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://github.com/intel/tdx/commit/27607a996762f6ad9e181370f2c9c02592adf156
        git remote add intel-tdx https://github.com/intel/tdx.git
        git fetch --no-tags intel-tdx kvm-upstream-workaround
        git checkout 27607a996762f6ad9e181370f2c9c02592adf156
        # save the config file
        mkdir build_dir && cp config build_dir/.config
        COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-12.1.0 make.cross W=1 O=build_dir ARCH=ia64 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 >>):

   ia64-linux-ld: mm/memfd_inaccessible.o: in function `inaccessible_get_pfn':
>> mm/memfd_inaccessible.c:197: undefined reference to `shmem_getpage'

Kconfig warnings: (for reference only)
   WARNING: unmet direct dependencies detected for PM_GENERIC_DOMAINS_OF
   Depends on [n]: PM_GENERIC_DOMAINS [=y] && OF [=n]
   Selected by [y]:
   - QCOM_RPMPD [=y] && PM [=y] && QCOM_SMD_RPM [=y]


vim +197 mm/memfd_inaccessible.c

   188	
   189	int inaccessible_get_pfn(struct file *file, pgoff_t offset, pfn_t *pfn,
   190				 int *order)
   191	{
   192		struct inaccessible_data *data = file->f_mapping->private_data;
   193		struct file *memfd = data->memfd;
   194		struct page *page;
   195		int ret;
   196	
 > 197		ret = shmem_getpage(file_inode(memfd), offset, &page, SGP_WRITE);
   198		if (ret)
   199			return ret;
   200	
   201		*pfn = page_to_pfn_t(page);
   202		*order = thp_order(compound_head(page));
   203		SetPageUptodate(page);
   204		unlock_page(page);
   205	
   206		return 0;
   207	}
   208	EXPORT_SYMBOL_GPL(inaccessible_get_pfn);
   209	

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

View attachment "config" of type "text/plain" (125677 bytes)

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ