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, 3 Aug 2021 14:51:29 +0800
From:   kernel test robot <lkp@...el.com>
To:     Maurizio Lombardi <mlombard@...hat.com>
Cc:     kbuild-all@...ts.01.org, linux-kernel@...r.kernel.org,
        Konrad Rzeszutek Wilk <konrad@...nel.org>,
        Mike Rapoport <rppt@...ux.ibm.com>
Subject: [ibft:linux-next 1/1] include/linux/kern_levels.h:5:18: warning:
 format '%lx' expects argument of type 'long unsigned int', but argument 2
 has type 'phys_addr_t' {aka 'long long unsigned int'}

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/konrad/ibft.git linux-next
head:   342f43af70dbc74f8629381998f92c060e1763a2
commit: 342f43af70dbc74f8629381998f92c060e1763a2 [1/1] iscsi_ibft: fix crash due to KASLR physical memory remapping
config: x86_64-allyesconfig (attached as .config)
compiler: gcc-10 (Ubuntu 10.3.0-1ubuntu1~20.04) 10.3.0
reproduce (this is a W=1 build):
        # https://git.kernel.org/pub/scm/linux/kernel/git/konrad/ibft.git/commit/?id=342f43af70dbc74f8629381998f92c060e1763a2
        git remote add ibft https://git.kernel.org/pub/scm/linux/kernel/git/konrad/ibft.git
        git fetch --no-tags ibft linux-next
        git checkout 342f43af70dbc74f8629381998f92c060e1763a2
        # 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 >>):

   In file included from include/linux/printk.h:7,
                    from include/linux/kernel.h:17,
                    from include/asm-generic/bug.h:20,
                    from arch/x86/include/asm/bug.h:84,
                    from include/linux/bug.h:5,
                    from include/linux/mmdebug.h:5,
                    from include/linux/mm.h:9,
                    from include/linux/memblock.h:13,
                    from drivers/firmware/iscsi_ibft_find.c:13:
   drivers/firmware/iscsi_ibft_find.c: In function 'reserve_ibft_region':
>> include/linux/kern_levels.h:5:18: warning: format '%lx' expects argument of type 'long unsigned int', but argument 2 has type 'phys_addr_t' {aka 'long long unsigned int'} [-Wformat=]
       5 | #define KERN_SOH "\001"  /* ASCII Start Of Header */
         |                  ^~~~~~
   include/linux/kern_levels.h:14:19: note: in expansion of macro 'KERN_SOH'
      14 | #define KERN_INFO KERN_SOH "6" /* informational */
         |                   ^~~~~~~~
   include/linux/printk.h:373:9: note: in expansion of macro 'KERN_INFO'
     373 |  printk(KERN_INFO pr_fmt(fmt), ##__VA_ARGS__)
         |         ^~~~~~~~~
   drivers/firmware/iscsi_ibft_find.c:86:6: note: in expansion of macro 'pr_info'
      86 |      pr_info("iBFT found at 0x%lx.\n", ibft_phys_addr);
         |      ^~~~~~~


vim +5 include/linux/kern_levels.h

314ba3520e513a Joe Perches 2012-07-30  4  
04d2c8c83d0e3a Joe Perches 2012-07-30 @5  #define KERN_SOH	"\001"		/* ASCII Start Of Header */
04d2c8c83d0e3a Joe Perches 2012-07-30  6  #define KERN_SOH_ASCII	'\001'
04d2c8c83d0e3a Joe Perches 2012-07-30  7  

:::::: The code at line 5 was first introduced by commit
:::::: 04d2c8c83d0e3ac5f78aeede51babb3236200112 printk: convert the format for KERN_<LEVEL> to a 2 byte pattern

:::::: TO: Joe Perches <joe@...ches.com>
:::::: CC: Linus Torvalds <torvalds@...ux-foundation.org>

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

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ