From: kernel test robot <lkp@intel.com>
To: Jeff Layton <jlayton@kernel.org>
Cc: oe-kbuild-all@lists.linux.dev
Subject: [jlayton:pool-mode 6/6] net/sunrpc/svc.c:235:39: sparse: sparse: dereference of noderef expression
Date: Tue, 30 Jun 2026 15:08:24 +0800 [thread overview]
Message-ID: <202606301410.EvwcD3VP-lkp@intel.com> (raw)
tree: https://git.kernel.org/pub/scm/linux/kernel/git/jlayton/linux.git pool-mode
head: cdfad06a7ec5f3b374eac6e7614134474ca39c2b
commit: cdfad06a7ec5f3b374eac6e7614134474ca39c2b [6/6] sunrpc: protect the svc_pool_map pool_to[] array with RCU
config: sparc-randconfig-r132-20260630 (https://download.01.org/0day-ci/archive/20260630/202606301410.EvwcD3VP-lkp@intel.com/config)
compiler: sparc-linux-gcc (GCC) 8.5.0
sparse: v0.6.5-rc1
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20260630/202606301410.EvwcD3VP-lkp@intel.com/reproduce)
If you fix the issue in a separate patch/commit (i.e. not just a new version of
the same patch/commit), kindly add following tags
| Reported-by: kernel test robot <lkp@intel.com>
| Closes: https://lore.kernel.org/oe-kbuild-all/202606301410.EvwcD3VP-lkp@intel.com/
sparse warnings: (new ones prefixed by >>)
>> net/sunrpc/svc.c:235:39: sparse: sparse: dereference of noderef expression
vim +235 net/sunrpc/svc.c
d8903ab12c8e90 Jeff Layton 2026-04-23 226
bfd241600a3b0d Greg Banks 2006-10-02 227 /*
9867d76ca16b3f Jeff Layton 2008-06-10 228 * Set the given thread's cpus_allowed mask so that it
bfd241600a3b0d Greg Banks 2006-10-02 229 * will only run on cpus in the given pool.
bfd241600a3b0d Greg Banks 2006-10-02 230 */
9867d76ca16b3f Jeff Layton 2008-06-10 231 static inline void
9867d76ca16b3f Jeff Layton 2008-06-10 232 svc_pool_map_set_cpumask(struct task_struct *task, unsigned int pidx)
bfd241600a3b0d Greg Banks 2006-10-02 233 {
bfd241600a3b0d Greg Banks 2006-10-02 234 struct svc_pool_map *m = &svc_pool_map;
9867d76ca16b3f Jeff Layton 2008-06-10 @235 unsigned int node = m->pool_to[pidx];
bfd241600a3b0d Greg Banks 2006-10-02 236
bfd241600a3b0d Greg Banks 2006-10-02 237 /*
bfd241600a3b0d Greg Banks 2006-10-02 238 * The caller checks for sv_nrpools > 1, which
42a7fc4a659822 Greg Banks 2007-03-06 239 * implies that we've been initialized.
bfd241600a3b0d Greg Banks 2006-10-02 240 */
1bd58aaff44485 Weston Andros Adamson 2012-10-23 241 WARN_ON_ONCE(m->count == 0);
1bd58aaff44485 Weston Andros Adamson 2012-10-23 242 if (m->count == 0)
1bd58aaff44485 Weston Andros Adamson 2012-10-23 243 return;
bfd241600a3b0d Greg Banks 2006-10-02 244
a70f730282019f Rusty Russell 2009-03-13 245 set_cpus_allowed_ptr(task, cpumask_of_node(node));
c5f59f0833df94 Mike Travis 2008-04-04 246 }
bfd241600a3b0d Greg Banks 2006-10-02 247
:::::: The code at line 235 was first introduced by commit
:::::: 9867d76ca16b3f455f9ca83861f4ce5c94a25928 knfsd: convert knfsd to kthread API
:::::: TO: Jeff Layton <jlayton@redhat.com>
:::::: CC: J. Bruce Fields <bfields@citi.umich.edu>
--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki
reply other threads:[~2026-06-30 7:08 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=202606301410.EvwcD3VP-lkp@intel.com \
--to=lkp@intel.com \
--cc=jlayton@kernel.org \
--cc=oe-kbuild-all@lists.linux.dev \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.