tree:
https://git.kernel.org/pub/scm/linux/kernel/git/peterz/queue.git
sched/wip-freezer
head: 80cc35f267a017695070962e80478c20a69f0243
commit: 80cc35f267a017695070962e80478c20a69f0243 [5/5] freezer: Fix special_state races
config: x86_64-randconfig-a015-20210617 (attached as .config)
compiler: clang version 13.0.0 (
https://github.com/llvm/llvm-project
64720f57bea6a6bf033feef4a5751ab9c0c3b401)
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 x86_64 cross compiling tool for clang build
# apt-get install binutils-x86-64-linux-gnu
#
https://git.kernel.org/pub/scm/linux/kernel/git/peterz/queue.git/commit/?...
git remote add peterz-queue
https://git.kernel.org/pub/scm/linux/kernel/git/peterz/queue.git
git fetch --no-tags peterz-queue sched/wip-freezer
git checkout 80cc35f267a017695070962e80478c20a69f0243
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross ARCH=x86_64
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp(a)intel.com>
All warnings (new ones prefixed by >>):
> kernel/freezer.c:170:6: warning: no previous prototype for
function '__thaw_special' [-Wmissing-prototypes]
void
__thaw_special(struct task_struct *p)
^
kernel/freezer.c:170:1: note: declare 'static' if the function is not intended
to be used outside of this translation unit
void __thaw_special(struct task_struct *p)
^
static
1 warning generated.
vim +/__thaw_special +170 kernel/freezer.c
169
170 void __thaw_special(struct task_struct *p)
171 {
172 spin_lock(&p->sighand->siglock);
173
174 if (current->ptrace) {
175 unsigned int state = __TASK_TRACED;
176
177 if (!(p->ptrace & PT_STOPPED))
178 goto unlock;
179
180 if (p->ptrace & PT_STOPPED_FATAL) {
181 state |= TASK_WAKEKILL;
182 if (__fatal_signal_pending(p))
183 goto unlock;
184 }
185
186 set_special_state(state);
187
188 } else if ((p->jobctl & JOBCTL_STOP_PENDING) &&
189 !__fatal_signal_pending(p)) {
190
191 set_special_state(TASK_STOPPED);
192 }
193
194 unlock:
195 spin_unlock(&p->sighand->siglock);
196 }
197
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org