Hi Alexey,
[FYI, it's a private test report for your RFC patch.]
[auto build test WARNING on kselftest/next]
[also build test WARNING on linux/master linus/master hnaz-linux-mm/master v5.11-rc3
next-20210115]
[If your patch is applied to the wrong git tree, kindly drop us a note.
And when submitting patch, we suggest to use '--base' as documented in
https://git-scm.com/docs/git-format-patch]
url:
https://github.com/0day-ci/linux/commits/Alexey-Gladkov/Count-rlimits-in-...
base:
https://git.kernel.org/pub/scm/linux/kernel/git/shuah/linux-kselftest.git next
config: arc-randconfig-r011-20210115 (attached as .config)
compiler: arc-elf-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://github.com/0day-ci/linux/commit/14c3c8a27f70d6d6b7c1d64a9af899eb8...
git remote add linux-review
https://github.com/0day-ci/linux
git fetch --no-tags linux-review
Alexey-Gladkov/Count-rlimits-in-each-user-namespace/20210115-230051
git checkout 14c3c8a27f70d6d6b7c1d64a9af899eb80169495
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross ARCH=arc
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/cred.c: In function '__put_cred':
> kernel/cred.c:149:20: warning: suggest braces around empty body
in an 'if' statement [-Wempty-body]
149 | if (cred->ucounts);
| ^
vim +/if +149 kernel/cred.c
127
128 /**
129 * __put_cred - Destroy a set of credentials
130 * @cred: The record to release
131 *
132 * Destroy a set of credentials on which no references remain.
133 */
134 void __put_cred(struct cred *cred)
135 {
136 kdebug("__put_cred(%p{%d,%d})", cred,
137 atomic_read(&cred->usage),
138 read_cred_subscribers(cred));
139
140 BUG_ON(atomic_read(&cred->usage) != 0);
141 #ifdef CONFIG_DEBUG_CREDENTIALS
142 BUG_ON(read_cred_subscribers(cred) != 0);
143 cred->magic = CRED_MAGIC_DEAD;
144 cred->put_addr = __builtin_return_address(0);
145 #endif
146 BUG_ON(cred == current->cred);
147 BUG_ON(cred == current->real_cred);
148
149 if (cred->ucounts);
150 BUG_ON(cred->ucounts->ns != cred->user_ns);
151
152 if (cred->non_rcu)
153 put_cred_rcu(&cred->rcu);
154 else
155 call_rcu(&cred->rcu, put_cred_rcu);
156 }
157 EXPORT_SYMBOL(__put_cred);
158
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org