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  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Date:   Wed, 23 Dec 2020 23:28:58 +0800
From:   kernel test robot <lkp@...el.com>
To:     "Paul E. McKenney" <paulmck@...nel.org>
Cc:     kbuild-all@...ts.01.org, linux-kernel@...r.kernel.org
Subject: [rcu:rcu/test 136/143] kernel/rcu/tree_plugin.h:2696:25: error:
 'struct task_struct' has no member named 'on_cpu'

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/paulmck/linux-rcu.git rcu/test
head:   4c4c8e04a7f8522de634aa062f4cd6b8b80c151b
commit: 72351a864d02b480a5c237144033e21be816f29f [136/143] fixup! rcu/nocb: Add grace period and task state to show_rcu_nocb_state() output
config: nds32-randconfig-r014-20201221 (attached as .config)
compiler: nds32le-linux-gcc (GCC) 9.3.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://git.kernel.org/pub/scm/linux/kernel/git/paulmck/linux-rcu.git/commit/?id=72351a864d02b480a5c237144033e21be816f29f
        git remote add rcu https://git.kernel.org/pub/scm/linux/kernel/git/paulmck/linux-rcu.git
        git fetch --no-tags rcu rcu/test
        git checkout 72351a864d02b480a5c237144033e21be816f29f
        # save the attached .config to linux build tree
        COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross ARCH=nds32 

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

All errors (new ones prefixed by >>):

   In file included from include/linux/kernel.h:16,
                    from kernel/rcu/tree.c:21:
   kernel/rcu/tree_plugin.h: In function 'show_rcu_nocb_gp_state':
>> kernel/rcu/tree_plugin.h:2696:25: error: 'struct task_struct' has no member named 'on_cpu'
    2696 |    !rdp->nocb_cb_kthread->on_cpu ? "!" : "");
         |                         ^~
   include/linux/printk.h:373:34: note: in definition of macro 'pr_info'
     373 |  printk(KERN_INFO pr_fmt(fmt), ##__VA_ARGS__)
         |                                  ^~~~~~~~~~~
   kernel/rcu/tree_plugin.h: In function 'show_rcu_nocb_state':
   kernel/rcu/tree_plugin.h:2737:25: error: 'struct task_struct' has no member named 'on_cpu'
    2737 |    !rdp->nocb_cb_kthread->on_cpu ? "!" : "");
         |                         ^~
   include/linux/printk.h:373:34: note: in definition of macro 'pr_info'
     373 |  printk(KERN_INFO pr_fmt(fmt), ##__VA_ARGS__)
         |                                  ^~~~~~~~~~~


vim +2696 kernel/rcu/tree_plugin.h

  2669	
  2670	/*
  2671	 * Dump out nocb grace-period kthread state for the specified rcu_data
  2672	 * structure.
  2673	 */
  2674	static void show_rcu_nocb_gp_state(struct rcu_data *rdp)
  2675	{
  2676		struct rcu_node *rnp = rdp->mynode;
  2677	
  2678		pr_info("nocb GP %d %c%c%c%c%c%c %c[%c%c] %c%c:%ld rnp %d:%d %lu %c CPU %d%s\n",
  2679			rdp->cpu,
  2680			"kK"[!!rdp->nocb_gp_kthread],
  2681			"lL"[raw_spin_is_locked(&rdp->nocb_gp_lock)],
  2682			"dD"[!!rdp->nocb_defer_wakeup],
  2683			"tT"[timer_pending(&rdp->nocb_timer)],
  2684			"bB"[timer_pending(&rdp->nocb_bypass_timer)],
  2685			"sS"[!!rdp->nocb_gp_sleep],
  2686			".W"[swait_active(&rdp->nocb_gp_wq)],
  2687			".W"[swait_active(&rnp->nocb_gp_wq[0])],
  2688			".W"[swait_active(&rnp->nocb_gp_wq[1])],
  2689			".B"[!!rdp->nocb_gp_bypass],
  2690			".G"[!!rdp->nocb_gp_gp],
  2691			(long)rdp->nocb_gp_seq,
  2692			rnp->grplo, rnp->grphi, READ_ONCE(rdp->nocb_gp_loops),
  2693			rdp->nocb_gp_kthread ? task_state_to_char(rdp->nocb_gp_kthread) : '.',
  2694			rdp->nocb_cb_kthread ? (int)task_cpu(rdp->nocb_gp_kthread) : -1,
  2695			rdp->nocb_cb_kthread && rdp->nocb_cb_kthread->state == TASK_RUNNING &&
> 2696				!rdp->nocb_cb_kthread->on_cpu ? "!" : "");
  2697	}
  2698	

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

Powered by blists - more mailing lists