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:   Fri, 21 Oct 2022 12:21:27 +0800
From:   kernel test robot <lkp@...el.com>
To:     Linus Walleij <linus.walleij@...aro.org>
Cc:     llvm@...ts.linux.dev, kbuild-all@...ts.01.org,
        linux-kernel@...r.kernel.org
Subject: [arm-integrator:kernel-in-vmalloc-v6.1-rc1 24/26]
 arch/arm/mm/idmap.c:129:53: warning: format specifies type 'unsigned long
 long' but the argument has type 'pmdval_t *' (aka 'unsigned int *')

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/linusw/linux-integrator.git kernel-in-vmalloc-v6.1-rc1
head:   dd354395fff14a411a8b85bd2a9d70e3a43e393b
commit: f3611c844878e09c4c2a909c0ca6c90a18443b7f [24/26] pgtable debug
config: arm-randconfig-r003-20221019
compiler: clang version 16.0.0 (https://github.com/llvm/llvm-project 791a7ae1ba3efd6bca96338e10ffde557ba83920)
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
        # install arm cross compiling tool for clang build
        # apt-get install binutils-arm-linux-gnueabi
        # https://git.kernel.org/pub/scm/linux/kernel/git/linusw/linux-integrator.git/commit/?id=f3611c844878e09c4c2a909c0ca6c90a18443b7f
        git remote add arm-integrator https://git.kernel.org/pub/scm/linux/kernel/git/linusw/linux-integrator.git
        git fetch --no-tags arm-integrator kernel-in-vmalloc-v6.1-rc1
        git checkout f3611c844878e09c4c2a909c0ca6c90a18443b7f
        # 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=arm SHELL=/bin/bash arch/arm/mm/

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

All warnings (new ones prefixed by >>):

>> arch/arm/mm/idmap.c:129:53: warning: format specifies type 'unsigned long long' but the argument has type 'pmdval_t *' (aka 'unsigned int *') [-Wformat]
                   pr_info("pgd%d @%08x = 0x%016llx\n", i, (u32)tmp, *tmp);
                                            ~~~~~~~                  ^~~~
   include/linux/printk.h:530:34: note: expanded from macro 'pr_info'
           printk(KERN_INFO pr_fmt(fmt), ##__VA_ARGS__)
                                   ~~~     ^~~~~~~~~~~
   include/linux/printk.h:457:60: note: expanded from macro 'printk'
   #define printk(fmt, ...) printk_index_wrap(_printk, fmt, ##__VA_ARGS__)
                                                       ~~~    ^~~~~~~~~~~
   include/linux/printk.h:429:19: note: expanded from macro 'printk_index_wrap'
                   _p_func(_fmt, ##__VA_ARGS__);                           \
                           ~~~~    ^~~~~~~~~~~
>> arch/arm/mm/idmap.c:137:77: warning: format specifies type 'unsigned long long' but the argument has type 'pmd_t' (aka 'unsigned int') [-Wformat]
                                   pr_info("  p4d/pud/pmd%d @%08x = %016llx, address %08x\n", j, (u32)pmd, *pmd, addr);
                                                                    ~~~~~~~                                ^~~~
                                                                    %016x
   include/linux/printk.h:530:34: note: expanded from macro 'pr_info'
           printk(KERN_INFO pr_fmt(fmt), ##__VA_ARGS__)
                                   ~~~     ^~~~~~~~~~~
   include/linux/printk.h:457:60: note: expanded from macro 'printk'
   #define printk(fmt, ...) printk_index_wrap(_printk, fmt, ##__VA_ARGS__)
                                                       ~~~    ^~~~~~~~~~~
   include/linux/printk.h:429:19: note: expanded from macro 'printk_index_wrap'
                   _p_func(_fmt, ##__VA_ARGS__);                           \
                           ~~~~    ^~~~~~~~~~~
   2 warnings generated.


vim +129 arch/arm/mm/idmap.c

   111	
   112	/*
   113	 * If you lose printk messages ("dropped...") then increase the kernel
   114	 * log buffer size CONFIG_LOG_BUF_SHIFT
   115	 */
   116	void dump_pagetable(pgd_t *pgd)
   117	{
   118		pgd_t *tmp;
   119		p4d_t *p4d;
   120		pud_t *pud;
   121		pmd_t *pmd;
   122		int i, j;
   123		u32 addr = 0;
   124	
   125		pr_info("LPAE PAGE TABLE:\n");
   126	
   127		for (i = 0; i < 4; i++) {
   128			tmp = pgd + pgd_index(addr);
 > 129			pr_info("pgd%d @%08x = 0x%016llx\n", i, (u32)tmp, *tmp);
   130			for (j = 0; j < PTRS_PER_PMD; j++) {
   131				p4d = p4d_offset(tmp, addr);
   132				pud = pud_offset(p4d, addr);
   133				if (pud_none_or_clear_bad(pud)) {
   134					pr_info("  p4d/pud/pmd%d for address %08x UNDEFINED\n", j, addr);
   135				} else {
   136					pmd = pmd_offset(pud, addr);
 > 137					pr_info("  p4d/pud/pmd%d @%08x = %016llx, address %08x\n", j, (u32)pmd, *pmd, addr);
   138				}
   139				addr += PMD_SIZE;
   140			}
   141		}
   142	}
   143	

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

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

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ