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:   Sat, 17 Feb 2018 06:10:53 +0800
From:   kbuild test robot <fengguang.wu@...el.com>
To:     "Paul E. McKenney" <paulmck@...ux.vnet.ibm.com>
Cc:     kbuild-all@...org, linux-kernel@...r.kernel.org
Subject: [rcu:rcu/next 42/42] kernel/rcu/tree_plugin.h:820:2: note: in
 expansion of macro 'pr_info'

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/paulmck/linux-rcu.git rcu/next
head:   07180bfca95f9819250887160a5ccc53119967a7
commit: 07180bfca95f9819250887160a5ccc53119967a7 [42/42] EXP rcu: Add ->qsmask to assertion
config: x86_64-randconfig-x013-201806 (attached as .config)
compiler: gcc-7 (Debian 7.3.0-1) 7.3.0
reproduce:
        git checkout 07180bfca95f9819250887160a5ccc53119967a7
        # save the attached .config to linux build tree
        make ARCH=x86_64 

All warnings (new ones prefixed by >>):

   In file included from include/linux/printk.h:7:0,
                    from include/linux/kernel.h:14,
                    from kernel/rcu/tree.c:31:
   kernel/rcu/tree_plugin.h: In function 'dump_blkd_tasks':
   include/linux/kern_levels.h:5:18: warning: format '%x' expects argument of type 'unsigned int', but argument 6 has type 'long unsigned int' [-Wformat=]
    #define KERN_SOH "\001"  /* ASCII Start Of Header */
                     ^
   include/linux/kern_levels.h:14:19: note: in expansion of macro 'KERN_SOH'
    #define KERN_INFO KERN_SOH "6" /* informational */
                      ^~~~~~~~
   include/linux/printk.h:308:9: note: in expansion of macro 'KERN_INFO'
     printk(KERN_INFO pr_fmt(fmt), ##__VA_ARGS__)
            ^~~~~~~~~
>> kernel/rcu/tree_plugin.h:820:2: note: in expansion of macro 'pr_info'
     pr_info("%s: grp: %d-%d level: %d ->qamask %#x ->gp_tasks %p ->boost_tasks %p ->exp_tasks %p &->blkd_tasks: %p offset: %u\n", __func__, rnp->grplo, rnp->grphi, rnp->level, rnp->qsmask, rnp->gp_tasks, rnp->boost_tasks, rnp->exp_tasks, &rnp->blkd_tasks, (unsigned int)offsetof(typeof(*rnp), blkd_tasks));
     ^~~~~~~
   In file included from kernel/rcu/tree.c:4200:0:
   kernel/rcu/tree_plugin.h:820:47: note: format string is defined here
     pr_info("%s: grp: %d-%d level: %d ->qamask %#x ->gp_tasks %p ->boost_tasks %p ->exp_tasks %p &->blkd_tasks: %p offset: %u\n", __func__, rnp->grplo, rnp->grphi, rnp->level, rnp->qsmask, rnp->gp_tasks, rnp->boost_tasks, rnp->exp_tasks, &rnp->blkd_tasks, (unsigned int)offsetof(typeof(*rnp), blkd_tasks));
                                                ~~^
                                                %#lx

vim +/pr_info +820 kernel/rcu/tree_plugin.h

   809	
   810	/*
   811	 * Dump the blocked-tasks state, but limit the list dump to the
   812	 * specified number of elements.
   813	 */
   814	static void dump_blkd_tasks(struct rcu_node *rnp, int ncheck)
   815	{
   816		int i;
   817		struct list_head *lhp;
   818	
   819		lockdep_assert_held(&rnp->lock);
 > 820		pr_info("%s: grp: %d-%d level: %d ->qamask %#x ->gp_tasks %p ->boost_tasks %p ->exp_tasks %p &->blkd_tasks: %p offset: %u\n", __func__, rnp->grplo, rnp->grphi, rnp->level, rnp->qsmask, rnp->gp_tasks, rnp->boost_tasks, rnp->exp_tasks, &rnp->blkd_tasks, (unsigned int)offsetof(typeof(*rnp), blkd_tasks));
   821		pr_cont("\t->blkd_tasks");
   822		i = 0;
   823		list_for_each(lhp, &rnp->blkd_tasks) {
   824			pr_cont(" %p", lhp);
   825			if (++i >= 10)
   826				break;
   827		}
   828		pr_cont("\n");
   829	}
   830	

---
0-DAY kernel test infrastructure                Open Source Technology Center
https://lists.01.org/pipermail/kbuild-all                   Intel Corporation

Download attachment ".config.gz" of type "application/gzip" (30628 bytes)

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ