* [anolis-intel-cloud:devel-6.6 254/254] test_cpu_identity.c:943:62: warning: 'snprintf' output may be truncated before the last format character
@ 2026-08-27 9:17 kernel test robot
0 siblings, 0 replies; 2+ messages in thread
From: kernel test robot @ 2026-08-27 9:17 UTC (permalink / raw)
To: oe-kbuild; +Cc: lkp
::::::
:::::: Manual check reason: "low confidence bisect report"
::::::
BCC: lkp@intel.com
CC: oe-kbuild-all@lists.linux.dev
TO: aubrey.li@linux.intel.com
tree: https://gitee.com/anolis/intel-cloud-kernel.git devel-6.6
head: 1cb14b8ebd706a55e3cb0251941355687e595e1d
commit: fdeec2f4f3f7d414eb7b9cf11360e7268bed1615 [254/254] anolis: tools/selftest: add cpu identity coverage
:::::: branch date: 20 hours ago
:::::: commit date: 3 months ago
config: x86_64-allnoconfig-bpf (https://download.01.org/0day-ci/archive/20260827/202608271113.nWwO5k5V-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/20260827/202608271113.nWwO5k5V-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/r/202608271113.nWwO5k5V-lkp@intel.com/
All warnings (new ones prefixed by >>):
test_cpu_identity.c: In function 'test_identity_hierarchy_counts':
>> test_cpu_identity.c:943:62: warning: 'snprintf' output may be truncated before the last format character [-Wformat-truncation=]
943 | snprintf(expeller_path, sizeof(expeller_path), "%s/%s", parent_path,
| ^
test_cpu_identity.c:943:9: note: 'snprintf' output 2 or more bytes (assuming 4097) into a destination of size 4096
943 | snprintf(expeller_path, sizeof(expeller_path), "%s/%s", parent_path,
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
944 | strrchr(expeller, '/') + 1);
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~
test_cpu_identity.c:945:62: warning: 'snprintf' output may be truncated before the last format character [-Wformat-truncation=]
945 | snprintf(expellee_path, sizeof(expellee_path), "%s/%s", parent_path,
| ^
test_cpu_identity.c:945:9: note: 'snprintf' output 2 or more bytes (assuming 4097) into a destination of size 4096
945 | snprintf(expellee_path, sizeof(expellee_path), "%s/%s", parent_path,
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
946 | strrchr(expellee, '/') + 1);
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~
test_cpu_identity.c: In function 'run_multi_child_parent_throttle_pressure':
>> test_cpu_identity.c:1555:76: warning: '/' directive output may be truncated writing 1 byte into a region of size between 0 and 4095 [-Wformat-truncation=]
1555 | snprintf(throttle_parent_path, sizeof(throttle_parent_path), "%s/%s/%s",
| ^
test_cpu_identity.c:1555:9: note: 'snprintf' output 3 or more bytes (assuming 4098) into a destination of size 4096
1555 | snprintf(throttle_parent_path, sizeof(throttle_parent_path), "%s/%s/%s",
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1556 | parent_path, strrchr(normal, '/') + 1, strrchr(throttle_parent, '/') + 1);
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
test_cpu_identity.c:1558:72: warning: 'snprintf' output may be truncated before the last format character [-Wformat-truncation=]
1558 | snprintf(child_paths[i], sizeof(child_paths[i]), "%s/%s",
| ^
test_cpu_identity.c:1558:17: note: 'snprintf' output 2 or more bytes (assuming 4097) into a destination of size 4096
1558 | snprintf(child_paths[i], sizeof(child_paths[i]), "%s/%s",
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1559 | throttle_parent_path, strrchr(children[i], '/') + 1);
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki
^ permalink raw reply [flat|nested] 2+ messages in thread
* [anolis-intel-cloud:devel-6.6 254/254] test_cpu_identity.c:943:62: warning: 'snprintf' output may be truncated before the last format character
@ 2026-08-28 12:34 kernel test robot
0 siblings, 0 replies; 2+ messages in thread
From: kernel test robot @ 2026-08-28 12:34 UTC (permalink / raw)
To: aubrey.li; +Cc: oe-kbuild-all
tree: https://gitee.com/anolis/intel-cloud-kernel.git devel-6.6
head: 1cb14b8ebd706a55e3cb0251941355687e595e1d
commit: fdeec2f4f3f7d414eb7b9cf11360e7268bed1615 [254/254] anolis: tools/selftest: add cpu identity coverage
:::::: branch date: 20 hours ago
:::::: commit date: 3 months ago
config: x86_64-allnoconfig-bpf (https://download.01.org/0day-ci/archive/20260827/202608271113.nWwO5k5V-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/20260827/202608271113.nWwO5k5V-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/r/202608271113.nWwO5k5V-lkp@intel.com/
All warnings (new ones prefixed by >>):
test_cpu_identity.c: In function 'test_identity_hierarchy_counts':
>> test_cpu_identity.c:943:62: warning: 'snprintf' output may be truncated before the last format character [-Wformat-truncation=]
943 | snprintf(expeller_path, sizeof(expeller_path), "%s/%s", parent_path,
| ^
test_cpu_identity.c:943:9: note: 'snprintf' output 2 or more bytes (assuming 4097) into a destination of size 4096
943 | snprintf(expeller_path, sizeof(expeller_path), "%s/%s", parent_path,
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
944 | strrchr(expeller, '/') + 1);
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~
test_cpu_identity.c:945:62: warning: 'snprintf' output may be truncated before the last format character [-Wformat-truncation=]
945 | snprintf(expellee_path, sizeof(expellee_path), "%s/%s", parent_path,
| ^
test_cpu_identity.c:945:9: note: 'snprintf' output 2 or more bytes (assuming 4097) into a destination of size 4096
945 | snprintf(expellee_path, sizeof(expellee_path), "%s/%s", parent_path,
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
946 | strrchr(expellee, '/') + 1);
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~
test_cpu_identity.c: In function 'run_multi_child_parent_throttle_pressure':
>> test_cpu_identity.c:1555:76: warning: '/' directive output may be truncated writing 1 byte into a region of size between 0 and 4095 [-Wformat-truncation=]
1555 | snprintf(throttle_parent_path, sizeof(throttle_parent_path), "%s/%s/%s",
| ^
test_cpu_identity.c:1555:9: note: 'snprintf' output 3 or more bytes (assuming 4098) into a destination of size 4096
1555 | snprintf(throttle_parent_path, sizeof(throttle_parent_path), "%s/%s/%s",
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1556 | parent_path, strrchr(normal, '/') + 1, strrchr(throttle_parent, '/') + 1);
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
test_cpu_identity.c:1558:72: warning: 'snprintf' output may be truncated before the last format character [-Wformat-truncation=]
1558 | snprintf(child_paths[i], sizeof(child_paths[i]), "%s/%s",
| ^
test_cpu_identity.c:1558:17: note: 'snprintf' output 2 or more bytes (assuming 4097) into a destination of size 4096
1558 | snprintf(child_paths[i], sizeof(child_paths[i]), "%s/%s",
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1559 | throttle_parent_path, strrchr(children[i], '/') + 1);
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2026-08-28 12:34 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-08-28 12:34 [anolis-intel-cloud:devel-6.6 254/254] test_cpu_identity.c:943:62: warning: 'snprintf' output may be truncated before the last format character kernel test robot
-- strict thread matches above, loose matches on Subject: below --
2026-08-27 9:17 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.