tree:
https://git.kernel.org/pub/scm/linux/kernel/git/sashal/linux-stable.git queue-5.4
head: d2c5af89e80c5b71f1da59879464a930947306a2
commit: f0c8e16e7a2545ec4684e7186e2d450400f7b5a2 [109/132] proc: don't allow async
path resolution of /proc/thread-self components
config: x86_64-randconfig-r032-20210318 (attached as .config)
compiler: clang version 13.0.0 (
https://github.com/llvm/llvm-project
436c6c9c20cc522c92a923440a5fc509c342a7db)
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/sashal/linux-stable.git/c...
git remote add sashal-linux-stable
https://git.kernel.org/pub/scm/linux/kernel/git/sashal/linux-stable.git
git fetch --no-tags sashal-linux-stable queue-5.4
git checkout f0c8e16e7a2545ec4684e7186e2d450400f7b5a2
# 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 errors (new ones prefixed by >>):
> fs/proc/self.c:23:23: error: use of undeclared identifier
'PF_IO_WORKER'
if (current->flags & PF_IO_WORKER)
^
1 error generated.
--
> fs/proc/thread_self.c:24:23: error: use of undeclared identifier
'PF_IO_WORKER'
if (current->flags & PF_IO_WORKER)
^
1 error generated.
vim +/PF_IO_WORKER +23 fs/proc/self.c
7
8 /*
9 * /proc/self:
10 */
11 static const char *proc_self_get_link(struct dentry *dentry,
12 struct inode *inode,
13 struct delayed_call *done)
14 {
15 struct pid_namespace *ns = proc_pid_ns(inode);
16 pid_t tgid = task_tgid_nr_ns(current, ns);
17 char *name;
18
19 /*
20 * Not currently supported. Once we can inherit all of struct pid,
21 * we can allow this.
22 */
23 if (current->flags & PF_IO_WORKER)
24 return
ERR_PTR(-EOPNOTSUPP);
25
26 if (!tgid)
27 return ERR_PTR(-ENOENT);
28 /* max length of unsigned int in decimal + NULL term */
29 name = kmalloc(10 + 1, dentry ? GFP_KERNEL : GFP_ATOMIC);
30 if (unlikely(!name))
31 return dentry ? ERR_PTR(-ENOMEM) : ERR_PTR(-ECHILD);
32 sprintf(name, "%u", tgid);
33 set_delayed_call(done, kfree_link, name);
34 return name;
35 }
36
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org