From: kernel test robot <lkp@intel.com>
To: Steve French <stfrench@microsoft.com>
Cc: oe-kbuild-all@lists.linux.dev
Subject: [smfrench-smb3:pr/161 1/1] fs/smb/client/cifs_debug.h:15:21: warning: format '%u' expects argument of type 'unsigned int', but argument 6 has type 'size_t' {aka 'long unsigned int'}
Date: Tue, 14 Apr 2026 21:16:27 +0800 [thread overview]
Message-ID: <202604142005.gQIn8BLU-lkp@intel.com> (raw)
tree: https://github.com/smfrench/smb3-kernel.git pr/161
head: 0454146d4dafcc116237987b90a51737c9c1a599
commit: 0454146d4dafcc116237987b90a51737c9c1a599 [1/1] smb: client: Fix integer underflow in receive_encrypted_read()
config: x86_64-randconfig-071-20260414 (https://download.01.org/0day-ci/archive/20260414/202604142005.gQIn8BLU-lkp@intel.com/config)
compiler: gcc-14 (Debian 14.2.0-19) 14.2.0
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20260414/202604142005.gQIn8BLU-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/202604142005.gQIn8BLU-lkp@intel.com/
All warnings (new ones prefixed by >>):
In file included from include/asm-generic/bug.h:31,
from arch/x86/include/asm/bug.h:193,
from include/linux/bug.h:5,
from include/linux/mmdebug.h:5,
from include/linux/mm.h:7,
from include/linux/pagemap.h:8,
from fs/smb/client/smb2ops.c:8:
fs/smb/client/smb2ops.c: In function 'receive_encrypted_read':
include/linux/kern_levels.h:5:25: warning: format '%u' expects argument of type 'unsigned int', but argument 5 has type 'size_t' {aka 'long unsigned int'} [-Wformat=]
5 | #define KERN_SOH "\001" /* ASCII Start Of Header */
| ^~~~~~
include/linux/printk.h:134:25: note: in definition of macro 'no_printk'
134 | _printk(fmt, ##__VA_ARGS__); \
| ^~~
include/linux/kern_levels.h:15:25: note: in expansion of macro 'KERN_SOH'
15 | #define KERN_DEBUG KERN_SOH "7" /* debug-level messages */
| ^~~~~~~~
include/linux/printk.h:690:19: note: in expansion of macro 'KERN_DEBUG'
690 | no_printk(KERN_DEBUG pr_fmt(fmt), ##__VA_ARGS__)
| ^~~~~~~~~~
fs/smb/client/cifs_debug.h:85:17: note: in expansion of macro 'pr_debug_once'
85 | pr_debug_ ## ratefunc("%s: \\\\%s " fmt, \
| ^~~~~~~~~
fs/smb/client/cifs_debug.h:101:17: note: in expansion of macro 'cifs_server_dbg_func'
101 | cifs_server_dbg_func(once, type, fmt, ##__VA_ARGS__); \
| ^~~~~~~~~~~~~~~~~~~~
fs/smb/client/smb2ops.c:4948:17: note: in expansion of macro 'cifs_server_dbg'
4948 | cifs_server_dbg(VFS, "OriginalMessageSize %u too small for read response (%u)\n",
| ^~~~~~~~~~~~~~~
include/linux/kern_levels.h:5:25: warning: format '%u' expects argument of type 'unsigned int', but argument 4 has type 'size_t' {aka 'long unsigned int'} [-Wformat=]
5 | #define KERN_SOH "\001" /* ASCII Start Of Header */
| ^~~~~~
include/linux/printk.h:483:25: note: in definition of macro 'printk_index_wrap'
483 | _p_func(_fmt, ##__VA_ARGS__); \
| ^~~~
include/linux/once_lite.h:31:25: note: in expansion of macro 'printk'
31 | func(__VA_ARGS__); \
| ^~~~
include/linux/once_lite.h:11:9: note: in expansion of macro 'DO_ONCE_LITE_IF'
11 | DO_ONCE_LITE_IF(true, func, ##__VA_ARGS__)
| ^~~~~~~~~~~~~~~
include/linux/printk.h:650:9: note: in expansion of macro 'DO_ONCE_LITE'
650 | DO_ONCE_LITE(printk, fmt, ##__VA_ARGS__)
| ^~~~~~~~~~~~
include/linux/printk.h:667:9: note: in expansion of macro 'printk_once'
667 | printk_once(KERN_ERR pr_fmt(fmt), ##__VA_ARGS__)
| ^~~~~~~~~~~
include/linux/kern_levels.h:11:25: note: in expansion of macro 'KERN_SOH'
11 | #define KERN_ERR KERN_SOH "3" /* error conditions */
| ^~~~~~~~
include/linux/printk.h:667:21: note: in expansion of macro 'KERN_ERR'
667 | printk_once(KERN_ERR pr_fmt(fmt), ##__VA_ARGS__)
| ^~~~~~~~
fs/smb/client/cifs_debug.h:89:17: note: in expansion of macro 'pr_err_once'
89 | pr_err_ ## ratefunc("VFS: \\\\%s " fmt, \
| ^~~~~~~
fs/smb/client/cifs_debug.h:101:17: note: in expansion of macro 'cifs_server_dbg_func'
101 | cifs_server_dbg_func(once, type, fmt, ##__VA_ARGS__); \
| ^~~~~~~~~~~~~~~~~~~~
fs/smb/client/smb2ops.c:4948:17: note: in expansion of macro 'cifs_server_dbg'
4948 | cifs_server_dbg(VFS, "OriginalMessageSize %u too small for read response (%u)\n",
| ^~~~~~~~~~~~~~~
include/linux/kern_levels.h:5:25: warning: format '%u' expects argument of type 'unsigned int', but argument 4 has type 'size_t' {aka 'long unsigned int'} [-Wformat=]
5 | #define KERN_SOH "\001" /* ASCII Start Of Header */
| ^~~~~~
include/linux/printk.h:134:25: note: in definition of macro 'no_printk'
134 | _printk(fmt, ##__VA_ARGS__); \
| ^~~
include/linux/kern_levels.h:15:25: note: in expansion of macro 'KERN_SOH'
15 | #define KERN_DEBUG KERN_SOH "7" /* debug-level messages */
| ^~~~~~~~
include/linux/printk.h:690:19: note: in expansion of macro 'KERN_DEBUG'
690 | no_printk(KERN_DEBUG pr_fmt(fmt), ##__VA_ARGS__)
| ^~~~~~~~~~
fs/smb/client/cifs_debug.h:92:17: note: in expansion of macro 'pr_debug_once'
92 | pr_debug_ ## ratefunc("\\\\%s " fmt, \
| ^~~~~~~~~
fs/smb/client/cifs_debug.h:101:17: note: in expansion of macro 'cifs_server_dbg_func'
101 | cifs_server_dbg_func(once, type, fmt, ##__VA_ARGS__); \
| ^~~~~~~~~~~~~~~~~~~~
fs/smb/client/smb2ops.c:4948:17: note: in expansion of macro 'cifs_server_dbg'
4948 | cifs_server_dbg(VFS, "OriginalMessageSize %u too small for read response (%u)\n",
| ^~~~~~~~~~~~~~~
In file included from fs/smb/client/smb2ops.c:23:
>> fs/smb/client/cifs_debug.h:15:21: warning: format '%u' expects argument of type 'unsigned int', but argument 6 has type 'size_t' {aka 'long unsigned int'} [-Wformat=]
15 | #define pr_fmt(fmt) "CIFS: " fmt
| ^~~~~~~~
include/linux/printk.h:748:49: note: in expansion of macro 'pr_fmt'
748 | __dynamic_pr_debug(&descriptor, pr_fmt(fmt), ##__VA_ARGS__); \
| ^~~~~~
fs/smb/client/cifs_debug.h:85:17: note: in expansion of macro 'pr_debug_ratelimited'
85 | pr_debug_ ## ratefunc("%s: \\\\%s " fmt, \
| ^~~~~~~~~
fs/smb/client/cifs_debug.h:103:17: note: in expansion of macro 'cifs_server_dbg_func'
103 | cifs_server_dbg_func(ratelimited, type, fmt, \
| ^~~~~~~~~~~~~~~~~~~~
fs/smb/client/smb2ops.c:4948:17: note: in expansion of macro 'cifs_server_dbg'
4948 | cifs_server_dbg(VFS, "OriginalMessageSize %u too small for read response (%u)\n",
| ^~~~~~~~~~~~~~~
include/linux/kern_levels.h:5:25: warning: format '%u' expects argument of type 'unsigned int', but argument 4 has type 'size_t' {aka 'long unsigned int'} [-Wformat=]
5 | #define KERN_SOH "\001" /* ASCII Start Of Header */
| ^~~~~~
include/linux/printk.h:483:25: note: in definition of macro 'printk_index_wrap'
483 | _p_func(_fmt, ##__VA_ARGS__); \
| ^~~~
include/linux/printk.h:705:17: note: in expansion of macro 'printk'
705 | printk(fmt, ##__VA_ARGS__); \
| ^~~~~~
include/linux/printk.h:719:9: note: in expansion of macro 'printk_ratelimited'
719 | printk_ratelimited(KERN_ERR pr_fmt(fmt), ##__VA_ARGS__)
| ^~~~~~~~~~~~~~~~~~
include/linux/kern_levels.h:11:25: note: in expansion of macro 'KERN_SOH'
11 | #define KERN_ERR KERN_SOH "3" /* error conditions */
| ^~~~~~~~
include/linux/printk.h:719:28: note: in expansion of macro 'KERN_ERR'
719 | printk_ratelimited(KERN_ERR pr_fmt(fmt), ##__VA_ARGS__)
| ^~~~~~~~
fs/smb/client/cifs_debug.h:89:17: note: in expansion of macro 'pr_err_ratelimited'
89 | pr_err_ ## ratefunc("VFS: \\\\%s " fmt, \
| ^~~~~~~
fs/smb/client/cifs_debug.h:103:17: note: in expansion of macro 'cifs_server_dbg_func'
103 | cifs_server_dbg_func(ratelimited, type, fmt, \
| ^~~~~~~~~~~~~~~~~~~~
fs/smb/client/smb2ops.c:4948:17: note: in expansion of macro 'cifs_server_dbg'
4948 | cifs_server_dbg(VFS, "OriginalMessageSize %u too small for read response (%u)\n",
| ^~~~~~~~~~~~~~~
fs/smb/client/cifs_debug.h:15:21: warning: format '%u' expects argument of type 'unsigned int', but argument 5 has type 'size_t' {aka 'long unsigned int'} [-Wformat=]
15 | #define pr_fmt(fmt) "CIFS: " fmt
| ^~~~~~~~
include/linux/printk.h:748:49: note: in expansion of macro 'pr_fmt'
748 | __dynamic_pr_debug(&descriptor, pr_fmt(fmt), ##__VA_ARGS__); \
| ^~~~~~
fs/smb/client/cifs_debug.h:92:17: note: in expansion of macro 'pr_debug_ratelimited'
92 | pr_debug_ ## ratefunc("\\\\%s " fmt, \
| ^~~~~~~~~
fs/smb/client/cifs_debug.h:103:17: note: in expansion of macro 'cifs_server_dbg_func'
103 | cifs_server_dbg_func(ratelimited, type, fmt, \
| ^~~~~~~~~~~~~~~~~~~~
fs/smb/client/smb2ops.c:4948:17: note: in expansion of macro 'cifs_server_dbg'
4948 | cifs_server_dbg(VFS, "OriginalMessageSize %u too small for read response (%u)\n",
| ^~~~~~~~~~~~~~~
vim +15 fs/smb/client/cifs_debug.h
a0a3036b81f1f6 fs/cifs/cifs_debug.h Joe Perches 2020-04-14 14
a0a3036b81f1f6 fs/cifs/cifs_debug.h Joe Perches 2020-04-14 @15 #define pr_fmt(fmt) "CIFS: " fmt
a0a3036b81f1f6 fs/cifs/cifs_debug.h Joe Perches 2020-04-14 16
:::::: The code at line 15 was first introduced by commit
:::::: a0a3036b81f1f66fa3333559ecfe18f5bbfa5076 cifs: Standardize logging output
:::::: TO: Joe Perches <joe@perches.com>
:::::: CC: Steve French <stfrench@microsoft.com>
--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki
reply other threads:[~2026-04-14 13:16 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=202604142005.gQIn8BLU-lkp@intel.com \
--to=lkp@intel.com \
--cc=oe-kbuild-all@lists.linux.dev \
--cc=stfrench@microsoft.com \
/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.