From: kernel test robot <lkp@intel.com>
To: Benjamin Coddington <bcodding@hammerspace.com>,
Chuck Lever <chuck.lever@oracle.com>,
Jeff Layton <jlayton@kernel.org>, NeilBrown <neil@brown.name>,
Trond Myklebust <trondmy@kernel.org>,
Anna Schumaker <anna@kernel.org>,
Eric Biggers <ebiggers@kernel.org>,
Rick Macklem <rick.macklem@gmail.com>
Cc: llvm@lists.linux.dev, oe-kbuild-all@lists.linux.dev,
linux-nfs@vger.kernel.org, linux-fsdevel@vger.kernel.org,
linux-crypto@vger.kernel.org
Subject: Re: [PATCH v1 4/4] NFSD: Sign filehandles
Date: Sat, 17 Jan 2026 06:47:12 +0800 [thread overview]
Message-ID: <202601170612.qqi8Q8Xx-lkp@intel.com> (raw)
In-Reply-To: <9c9cd6131574a45f2603c9248ba205a79b00fea3.1768573690.git.bcodding@hammerspace.com>
Hi Benjamin,
kernel test robot noticed the following build warnings:
[auto build test WARNING on bfd453acb5637b5df881cef4b21803344aa9e7ac]
url: https://github.com/intel-lab-lkp/linux/commits/Benjamin-Coddington/nfsd-Convert-export-flags-to-use-BIT-macro/20260116-223927
base: bfd453acb5637b5df881cef4b21803344aa9e7ac
patch link: https://lore.kernel.org/r/9c9cd6131574a45f2603c9248ba205a79b00fea3.1768573690.git.bcodding%40hammerspace.com
patch subject: [PATCH v1 4/4] NFSD: Sign filehandles
config: hexagon-allmodconfig (https://download.01.org/0day-ci/archive/20260117/202601170612.qqi8Q8Xx-lkp@intel.com/config)
compiler: clang version 17.0.6 (https://github.com/llvm/llvm-project 6009708b4367171ccdbf4b5905cb6a803753fe18)
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20260117/202601170612.qqi8Q8Xx-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/202601170612.qqi8Q8Xx-lkp@intel.com/
All warnings (new ones prefixed by >>):
>> fs/nfsd/nfsfh.c:162:30: warning: format specifies type 'unsigned long' but the argument has type 'unsigned int' [-Wformat]
161 | pr_warn("NFSD: unable to sign filehandles, fh_size %lu would be greater"
| ~~~
| %u
162 | " than fh_maxsize %d.\n", fh->fh_size + sizeof(hash), fhp->fh_maxsize);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~
include/linux/printk.h:565:37: note: expanded from macro 'pr_warn'
565 | printk(KERN_WARNING pr_fmt(fmt), ##__VA_ARGS__)
| ~~~ ^~~~~~~~~~~
include/linux/printk.h:512:60: note: expanded from macro 'printk'
512 | #define printk(fmt, ...) printk_index_wrap(_printk, fmt, ##__VA_ARGS__)
| ~~~ ^~~~~~~~~~~
include/linux/printk.h:484:19: note: expanded from macro 'printk_index_wrap'
484 | _p_func(_fmt, ##__VA_ARGS__); \
| ~~~~ ^~~~~~~~~~~
1 warning generated.
vim +162 fs/nfsd/nfsfh.c
140
141 /*
142 * Intended to be called when encoding, appends an 8-byte MAC
143 * to the filehandle hashed from the server's fh_key:
144 */
145 int fh_append_mac(struct svc_fh *fhp, struct net *net)
146 {
147 struct nfsd_net *nn = net_generic(net, nfsd_net_id);
148 struct knfsd_fh *fh = &fhp->fh_handle;
149 siphash_key_t *fh_key = nn->fh_key;
150 u64 hash;
151
152 if (!(fhp->fh_export->ex_flags & NFSEXP_SIGN_FH))
153 return 0;
154
155 if (!fh_key) {
156 pr_warn("NFSD: unable to sign filehandles, fh_key not set.\n");
157 return -EINVAL;
158 }
159
160 if (fh->fh_size + sizeof(hash) > fhp->fh_maxsize) {
161 pr_warn("NFSD: unable to sign filehandles, fh_size %lu would be greater"
> 162 " than fh_maxsize %d.\n", fh->fh_size + sizeof(hash), fhp->fh_maxsize);
163 return -EINVAL;
164 }
165
166 fh->fh_auth_type = FH_AT_MAC;
167 hash = siphash(&fh->fh_raw, fh->fh_size, fh_key);
168 memcpy(&fh->fh_raw[fh->fh_size], &hash, sizeof(hash));
169 fh->fh_size += sizeof(hash);
170
171 return 0;
172 }
173
--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki
next prev parent reply other threads:[~2026-01-16 22:47 UTC|newest]
Thread overview: 49+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-01-16 14:32 [PATCH v1 0/4] kNFSD Signed Filehandles Benjamin Coddington
2026-01-16 14:32 ` [PATCH v1 1/4] nfsd: Convert export flags to use BIT() macro Benjamin Coddington
2026-01-16 15:31 ` Chuck Lever
2026-01-16 15:35 ` Benjamin Coddington
2026-01-16 15:38 ` Chuck Lever
2026-01-16 15:39 ` Benjamin Coddington
2026-01-16 14:32 ` [PATCH v1 2/4] nfsd: Add a key for signing filehandles Benjamin Coddington
2026-01-16 14:59 ` Jeff Layton
2026-01-16 15:09 ` Chuck Lever
2026-01-16 15:18 ` Benjamin Coddington
2026-01-16 15:25 ` Jeff Layton
2026-01-16 15:45 ` Chuck Lever
2026-01-16 15:52 ` Jeff Layton
2026-01-16 16:17 ` Chuck Lever
2026-01-19 16:15 ` Benjamin Coddington
2026-01-16 16:11 ` Chuck Lever
2026-01-16 16:42 ` Benjamin Coddington
2026-01-16 19:55 ` Chuck Lever
2026-01-16 21:37 ` kernel test robot
2026-01-16 14:32 ` [PATCH v1 3/4] NFSD/export: Add sign_fh export option Benjamin Coddington
2026-01-16 16:26 ` Chuck Lever
2026-01-16 14:32 ` [PATCH v1 4/4] NFSD: Sign filehandles Benjamin Coddington
2026-01-16 17:12 ` Chuck Lever
2026-01-16 18:29 ` Benjamin Coddington
2026-01-16 22:47 ` kernel test robot [this message]
2026-01-16 16:56 ` [PATCH v1 0/4] kNFSD Signed Filehandles Chuck Lever
2026-01-16 17:17 ` Benjamin Coddington
2026-01-16 19:43 ` Chuck Lever
2026-01-16 20:03 ` Trond Myklebust
2026-01-16 20:11 ` Benjamin Coddington
2026-01-17 0:54 ` [PATCH v1 4/4] NFSD: Sign filehandles NeilBrown
2026-01-17 12:30 ` Benjamin Coddington
2026-01-17 1:24 ` [PATCH v1 0/4] kNFSD Signed Filehandles NeilBrown
2026-01-17 12:30 ` Benjamin Coddington
2026-01-19 4:24 ` NeilBrown
2026-01-19 9:14 ` Christian Brauner
2026-01-19 21:06 ` NeilBrown
2026-01-19 21:29 ` Jeff Layton
2026-01-19 22:58 ` NeilBrown
2026-01-20 9:23 ` Christian Brauner
2026-01-20 9:46 ` NeilBrown
2026-01-20 10:20 ` Christian Brauner
2026-01-20 10:28 ` NeilBrown
2026-01-20 10:37 ` Christian Brauner
2026-01-20 10:13 ` NeilBrown
2026-01-20 12:56 ` Benjamin Coddington
2026-01-20 10:55 ` Miklos Szeredi
2026-01-20 13:03 ` Benjamin Coddington
2026-01-20 14:44 ` Miklos Szeredi
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=202601170612.qqi8Q8Xx-lkp@intel.com \
--to=lkp@intel.com \
--cc=anna@kernel.org \
--cc=bcodding@hammerspace.com \
--cc=chuck.lever@oracle.com \
--cc=ebiggers@kernel.org \
--cc=jlayton@kernel.org \
--cc=linux-crypto@vger.kernel.org \
--cc=linux-fsdevel@vger.kernel.org \
--cc=linux-nfs@vger.kernel.org \
--cc=llvm@lists.linux.dev \
--cc=neil@brown.name \
--cc=oe-kbuild-all@lists.linux.dev \
--cc=rick.macklem@gmail.com \
--cc=trondmy@kernel.org \
/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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox