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: <202203301416.W3kVLYCm-lkp@intel.com>
Date:   Wed, 30 Mar 2022 14:32:27 +0800
From:   kernel test robot <lkp@...el.com>
To:     Baisong Zhong <zhongbaisong@...wei.com>
Cc:     kbuild-all@...ts.01.org, linux-kernel@...r.kernel.org,
        Luis Chamberlain <mcgrof@...nel.org>
Subject: [mcgrof:sysctl-next 6/18] kernel/sched/core.c:10164: undefined
 reference to `sched_rt_can_attach'

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/mcgrof/linux.git sysctl-next
head:   84053cc7ef2f2f86caeea6a8c0944b2f0b3f33ca
commit: d82a599294a1c50168a2177d49fe0a9a791275c3 [6/18] sched/rt: fix build error when CONFIG_SYSCTL is disable
config: ia64-randconfig-r021-20220327 (https://download.01.org/0day-ci/archive/20220330/202203301416.W3kVLYCm-lkp@intel.com/config)
compiler: ia64-linux-gcc (GCC) 11.2.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/mcgrof/linux.git/commit/?id=d82a599294a1c50168a2177d49fe0a9a791275c3
        git remote add mcgrof https://git.kernel.org/pub/scm/linux/kernel/git/mcgrof/linux.git
        git fetch --no-tags mcgrof sysctl-next
        git checkout d82a599294a1c50168a2177d49fe0a9a791275c3
        # save the config file to linux build tree
        mkdir build_dir
        COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-11.2.0 make.cross O=build_dir ARCH=ia64 SHELL=/bin/bash

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 >>):

   ia64-linux-ld: kernel/sched/core.o: in function `cpu_cgroup_can_attach':
>> kernel/sched/core.c:10164: undefined reference to `sched_rt_can_attach'


vim +10164 kernel/sched/core.c

eeb61e53ea19be kernel/sched/core.c Kirill Tkhai       2014-10-27  10155  
1f7dd3e5a6e4f0 kernel/sched/core.c Tejun Heo          2015-12-03  10156  static int cpu_cgroup_can_attach(struct cgroup_taskset *tset)
68318b8e0b61f9 kernel/sched.c      Srivatsa Vaddagiri 2007-10-18  10157  {
bb9d97b6dffa10 kernel/sched.c      Tejun Heo          2011-12-12  10158  	struct task_struct *task;
1f7dd3e5a6e4f0 kernel/sched/core.c Tejun Heo          2015-12-03  10159  	struct cgroup_subsys_state *css;
7dc603c9028ea5 kernel/sched/core.c Peter Zijlstra     2016-06-16  10160  	int ret = 0;
bb9d97b6dffa10 kernel/sched.c      Tejun Heo          2011-12-12  10161  
1f7dd3e5a6e4f0 kernel/sched/core.c Tejun Heo          2015-12-03  10162  	cgroup_taskset_for_each(task, css, tset) {
b68aa2300cabeb kernel/sched.c      Peter Zijlstra     2008-02-13  10163  #ifdef CONFIG_RT_GROUP_SCHED
eb95419b023aba kernel/sched/core.c Tejun Heo          2013-08-08 @10164  		if (!sched_rt_can_attach(css_tg(css), task))
b68aa2300cabeb kernel/sched.c      Peter Zijlstra     2008-02-13  10165  			return -EINVAL;
b68aa2300cabeb kernel/sched.c      Peter Zijlstra     2008-02-13  10166  #endif
7dc603c9028ea5 kernel/sched/core.c Peter Zijlstra     2016-06-16  10167  		/*
b19a888c1e9bdf kernel/sched/core.c Tal Zussman        2020-11-12  10168  		 * Serialize against wake_up_new_task() such that if it's
7dc603c9028ea5 kernel/sched/core.c Peter Zijlstra     2016-06-16  10169  		 * running, we're sure to observe its full state.
7dc603c9028ea5 kernel/sched/core.c Peter Zijlstra     2016-06-16  10170  		 */
7dc603c9028ea5 kernel/sched/core.c Peter Zijlstra     2016-06-16  10171  		raw_spin_lock_irq(&task->pi_lock);
7dc603c9028ea5 kernel/sched/core.c Peter Zijlstra     2016-06-16  10172  		/*
7dc603c9028ea5 kernel/sched/core.c Peter Zijlstra     2016-06-16  10173  		 * Avoid calling sched_move_task() before wake_up_new_task()
7dc603c9028ea5 kernel/sched/core.c Peter Zijlstra     2016-06-16  10174  		 * has happened. This would lead to problems with PELT, due to
7dc603c9028ea5 kernel/sched/core.c Peter Zijlstra     2016-06-16  10175  		 * move wanting to detach+attach while we're not attached yet.
7dc603c9028ea5 kernel/sched/core.c Peter Zijlstra     2016-06-16  10176  		 */
2f064a59a11ff9 kernel/sched/core.c Peter Zijlstra     2021-06-11  10177  		if (READ_ONCE(task->__state) == TASK_NEW)
7dc603c9028ea5 kernel/sched/core.c Peter Zijlstra     2016-06-16  10178  			ret = -EINVAL;
7dc603c9028ea5 kernel/sched/core.c Peter Zijlstra     2016-06-16  10179  		raw_spin_unlock_irq(&task->pi_lock);
7dc603c9028ea5 kernel/sched/core.c Peter Zijlstra     2016-06-16  10180  
7dc603c9028ea5 kernel/sched/core.c Peter Zijlstra     2016-06-16  10181  		if (ret)
7dc603c9028ea5 kernel/sched/core.c Peter Zijlstra     2016-06-16  10182  			break;
bb9d97b6dffa10 kernel/sched.c      Tejun Heo          2011-12-12  10183  	}
7dc603c9028ea5 kernel/sched/core.c Peter Zijlstra     2016-06-16  10184  	return ret;
be367d09927023 kernel/sched.c      Ben Blum           2009-09-23  10185  }
68318b8e0b61f9 kernel/sched.c      Srivatsa Vaddagiri 2007-10-18  10186  

:::::: The code at line 10164 was first introduced by commit
:::::: eb95419b023abacb415e2a18fea899023ce7624d cgroup: pass around cgroup_subsys_state instead of cgroup in subsystem methods

:::::: TO: Tejun Heo <tj@...nel.org>
:::::: CC: Tejun Heo <tj@...nel.org>

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

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ