* arch/x86/kernel/callthunks.c:332:35: warning: '%lu' directive writing between 1 and 10 bytes into a region of size 7
@ 2023-12-23 17:44 kernel test robot
0 siblings, 0 replies; 4+ messages in thread
From: kernel test robot @ 2023-12-23 17:44 UTC (permalink / raw)
To: Thomas Gleixner; +Cc: oe-kbuild-all, linux-kernel, Peter Zijlstra
Hi Thomas,
FYI, the error/warning still remains.
tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head: 5254c0cbc92d2a08e75443bdb914f1c4839cdf5a
commit: f5c1bb2afe93396d41c5cbdcb909b08a75b8dde4 x86/calldepth: Add ret/call counting for debug
date: 1 year, 2 months ago
config: x86_64-allyesconfig (https://download.01.org/0day-ci/archive/20231224/202312240105.1Spxsb0Y-lkp@intel.com/config)
compiler: gcc-12 (Debian 12.2.0-14) 12.2.0
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20231224/202312240105.1Spxsb0Y-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/202312240105.1Spxsb0Y-lkp@intel.com/
All warnings (new ones prefixed by >>):
arch/x86/kernel/callthunks.c: In function 'callthunks_debugfs_init':
>> arch/x86/kernel/callthunks.c:332:35: warning: '%lu' directive writing between 1 and 10 bytes into a region of size 7 [-Wformat-overflow=]
332 | sprintf(name, "cpu%lu", cpu);
| ^~~
arch/x86/kernel/callthunks.c:332:31: note: directive argument in the range [0, 4294967294]
332 | sprintf(name, "cpu%lu", cpu);
| ^~~~~~~~
arch/x86/kernel/callthunks.c:332:17: note: 'sprintf' output between 5 and 14 bytes into a destination of size 10
332 | sprintf(name, "cpu%lu", cpu);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
vim +332 arch/x86/kernel/callthunks.c
321
322 static int __init callthunks_debugfs_init(void)
323 {
324 struct dentry *dir;
325 unsigned long cpu;
326
327 dir = debugfs_create_dir("callthunks", NULL);
328 for_each_possible_cpu(cpu) {
329 void *arg = (void *)cpu;
330 char name [10];
331
> 332 sprintf(name, "cpu%lu", cpu);
--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki
^ permalink raw reply [flat|nested] 4+ messages in thread
* arch/x86/kernel/callthunks.c:332:35: warning: '%lu' directive writing between 1 and 10 bytes into a region of size 7
@ 2024-01-07 1:39 kernel test robot
0 siblings, 0 replies; 4+ messages in thread
From: kernel test robot @ 2024-01-07 1:39 UTC (permalink / raw)
To: Thomas Gleixner; +Cc: oe-kbuild-all, linux-kernel, Peter Zijlstra
Hi Thomas,
FYI, the error/warning still remains.
tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head: 52b1853b080a082ec3749c3a9577f6c71b1d4a90
commit: f5c1bb2afe93396d41c5cbdcb909b08a75b8dde4 x86/calldepth: Add ret/call counting for debug
date: 1 year, 3 months ago
config: x86_64-randconfig-r052-20240106 (https://download.01.org/0day-ci/archive/20240107/202401070957.QH0oQjgO-lkp@intel.com/config)
compiler: gcc-11 (Debian 11.3.0-12) 11.3.0
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20240107/202401070957.QH0oQjgO-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/202401070957.QH0oQjgO-lkp@intel.com/
All warnings (new ones prefixed by >>):
arch/x86/kernel/callthunks.c: In function 'callthunks_debugfs_init':
>> arch/x86/kernel/callthunks.c:332:35: warning: '%lu' directive writing between 1 and 10 bytes into a region of size 7 [-Wformat-overflow=]
332 | sprintf(name, "cpu%lu", cpu);
| ^~~
arch/x86/kernel/callthunks.c:332:31: note: directive argument in the range [0, 4294967294]
332 | sprintf(name, "cpu%lu", cpu);
| ^~~~~~~~
arch/x86/kernel/callthunks.c:332:17: note: 'sprintf' output between 5 and 14 bytes into a destination of size 10
332 | sprintf(name, "cpu%lu", cpu);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
vim +332 arch/x86/kernel/callthunks.c
321
322 static int __init callthunks_debugfs_init(void)
323 {
324 struct dentry *dir;
325 unsigned long cpu;
326
327 dir = debugfs_create_dir("callthunks", NULL);
328 for_each_possible_cpu(cpu) {
329 void *arg = (void *)cpu;
330 char name [10];
331
> 332 sprintf(name, "cpu%lu", cpu);
--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki
^ permalink raw reply [flat|nested] 4+ messages in thread
* arch/x86/kernel/callthunks.c:332:35: warning: '%lu' directive writing between 1 and 10 bytes into a region of size 7
@ 2023-11-05 8:22 kernel test robot
0 siblings, 0 replies; 4+ messages in thread
From: kernel test robot @ 2023-11-05 8:22 UTC (permalink / raw)
To: Thomas Gleixner; +Cc: oe-kbuild-all, linux-kernel, Peter Zijlstra
Hi Thomas,
FYI, the error/warning still remains.
tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head: aea6bf908d730b01bd264a8821159db9463c111c
commit: f5c1bb2afe93396d41c5cbdcb909b08a75b8dde4 x86/calldepth: Add ret/call counting for debug
date: 1 year, 1 month ago
config: x86_64-allyesconfig (https://download.01.org/0day-ci/archive/20231105/202311051618.RFyLD3DD-lkp@intel.com/config)
compiler: gcc-12 (Debian 12.2.0-14) 12.2.0
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20231105/202311051618.RFyLD3DD-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/202311051618.RFyLD3DD-lkp@intel.com/
All warnings (new ones prefixed by >>):
arch/x86/kernel/callthunks.c: In function 'callthunks_debugfs_init':
>> arch/x86/kernel/callthunks.c:332:35: warning: '%lu' directive writing between 1 and 10 bytes into a region of size 7 [-Wformat-overflow=]
332 | sprintf(name, "cpu%lu", cpu);
| ^~~
arch/x86/kernel/callthunks.c:332:31: note: directive argument in the range [0, 4294967294]
332 | sprintf(name, "cpu%lu", cpu);
| ^~~~~~~~
arch/x86/kernel/callthunks.c:332:17: note: 'sprintf' output between 5 and 14 bytes into a destination of size 10
332 | sprintf(name, "cpu%lu", cpu);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
vim +332 arch/x86/kernel/callthunks.c
321
322 static int __init callthunks_debugfs_init(void)
323 {
324 struct dentry *dir;
325 unsigned long cpu;
326
327 dir = debugfs_create_dir("callthunks", NULL);
328 for_each_possible_cpu(cpu) {
329 void *arg = (void *)cpu;
330 char name [10];
331
> 332 sprintf(name, "cpu%lu", cpu);
--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki
^ permalink raw reply [flat|nested] 4+ messages in thread
* arch/x86/kernel/callthunks.c:332:35: warning: '%lu' directive writing between 1 and 10 bytes into a region of size 7
@ 2023-10-29 0:55 kernel test robot
0 siblings, 0 replies; 4+ messages in thread
From: kernel test robot @ 2023-10-29 0:55 UTC (permalink / raw)
To: Thomas Gleixner; +Cc: oe-kbuild-all, linux-kernel, Peter Zijlstra
tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head: 2af9b20dbb39f6ebf9b9b6c090271594627d818e
commit: f5c1bb2afe93396d41c5cbdcb909b08a75b8dde4 x86/calldepth: Add ret/call counting for debug
date: 1 year ago
config: x86_64-randconfig-r013-20230116 (https://download.01.org/0day-ci/archive/20231029/202310290814.2Io3e73Q-lkp@intel.com/config)
compiler: gcc-12 (Debian 12.2.0-14) 12.2.0
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20231029/202310290814.2Io3e73Q-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/202310290814.2Io3e73Q-lkp@intel.com/
All warnings (new ones prefixed by >>):
arch/x86/kernel/callthunks.c: In function 'callthunks_debugfs_init':
>> arch/x86/kernel/callthunks.c:332:35: warning: '%lu' directive writing between 1 and 10 bytes into a region of size 7 [-Wformat-overflow=]
332 | sprintf(name, "cpu%lu", cpu);
| ^~~
arch/x86/kernel/callthunks.c:332:31: note: directive argument in the range [0, 4294967294]
332 | sprintf(name, "cpu%lu", cpu);
| ^~~~~~~~
arch/x86/kernel/callthunks.c:332:17: note: 'sprintf' output between 5 and 14 bytes into a destination of size 10
332 | sprintf(name, "cpu%lu", cpu);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
vim +332 arch/x86/kernel/callthunks.c
321
322 static int __init callthunks_debugfs_init(void)
323 {
324 struct dentry *dir;
325 unsigned long cpu;
326
327 dir = debugfs_create_dir("callthunks", NULL);
328 for_each_possible_cpu(cpu) {
329 void *arg = (void *)cpu;
330 char name [10];
331
> 332 sprintf(name, "cpu%lu", cpu);
--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2024-01-07 1:39 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-12-23 17:44 arch/x86/kernel/callthunks.c:332:35: warning: '%lu' directive writing between 1 and 10 bytes into a region of size 7 kernel test robot
-- strict thread matches above, loose matches on Subject: below --
2024-01-07 1:39 kernel test robot
2023-11-05 8:22 kernel test robot
2023-10-29 0:55 kernel test robot
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.