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: <202111041035.5AybfoX5-lkp@intel.com>
Date:   Thu, 4 Nov 2021 10:25:39 +0800
From:   kernel test robot <lkp@...el.com>
To:     Mike Rapoport <rppt@...ux.ibm.com>
Cc:     kbuild-all@...ts.01.org, Mike Rapoport <rppt@...nel.org>,
        linux-kernel@...r.kernel.org
Subject: [rppt:pks/v0.0 27/27] arch/x86/mm/pgtable.c:493:23: warning:
 initialization of 'struct page *' from 'int' makes pointer from integer
 without a cast

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/rppt/linux.git pks/v0.0
head:   b1ddb6750818e99c719da2f60b21e5752f43f0e7
commit: b1ddb6750818e99c719da2f60b21e5752f43f0e7 [27/27] x86/pks: allow PKS with PTI with __GFP_PTE_MAPPED_2
config: x86_64-randconfig-r014-20211103 (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/rppt/linux.git/commit/?id=b1ddb6750818e99c719da2f60b21e5752f43f0e7
        git remote add rppt https://git.kernel.org/pub/scm/linux/kernel/git/rppt/linux.git
        git fetch --no-tags rppt pks/v0.0
        git checkout b1ddb6750818e99c719da2f60b21e5752f43f0e7
        # 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 warnings (new ones prefixed by >>):

   arch/x86/mm/pgtable.c: In function '_pgd_alloc':
   arch/x86/mm/pgtable.c:493:23: error: implicit declaration of function '__alloc_table'; did you mean 'sg_alloc_table'? [-Werror=implicit-function-declaration]
     493 |   struct page *page = __alloc_table(GFP_PGTABLE_USER,
         |                       ^~~~~~~~~~~~~
         |                       sg_alloc_table
>> arch/x86/mm/pgtable.c:493:23: warning: initialization of 'struct page *' from 'int' makes pointer from integer without a cast [-Wint-conversion]
   arch/x86/mm/pgtable.c: At top level:
   arch/x86/mm/pgtable.c:20:12: warning: '_pks_unprotect' used but never defined
      20 | static int _pks_unprotect(struct page *page, unsigned int cnt);
         |            ^~~~~~~~~~~~~~
   arch/x86/mm/pgtable.c:18:34: warning: 'gpc_pks' defined but not used [-Wunused-variable]
      18 | static struct grouped_page_cache gpc_pks;
         |                                  ^~~~~~~
   cc1: some warnings being treated as errors


vim +493 arch/x86/mm/pgtable.c

   489	
   490	static inline pgd_t *_pgd_alloc(void)
   491	{
   492		if (pks_page_en) {
 > 493			struct page *page = __alloc_table(GFP_PGTABLE_USER,
   494							PGD_ALLOCATION_ORDER);
   495	
   496			if (!page)
   497				return NULL;
   498			return page_address(page);
   499		}
   500	
   501		return (pgd_t *)__get_free_pages(GFP_PGTABLE_USER,
   502						 PGD_ALLOCATION_ORDER);
   503	}
   504	

---
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" (38419 bytes)

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ