All of lore.kernel.org
 help / color / mirror / Atom feed
* pointer_masking.c:216:25: warning: format string is not a string literal (potentially insecure)
@ 2025-10-25 19:16 kernel test robot
  0 siblings, 0 replies; 2+ messages in thread
From: kernel test robot @ 2025-10-25 19:16 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
CC: linux-kernel@vger.kernel.org
TO: Charlie Jenkins <charlie@rivosinc.com>
CC: Palmer Dabbelt <palmer@rivosinc.com>
CC: Andrew Jones <ajones@ventanamicro.com>

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head:   9bb956508c9d94935bedba4f13901fb2b7468e91
commit: 498d5b14db8c9118be139f668720c67bea2dc344 riscv: selftests: Fix warnings pointer masking test
date:   10 months ago
:::::: branch date: 3 hours ago
:::::: commit date: 10 months ago
config: riscv-allnoconfig-bpf (https://download.01.org/0day-ci/archive/20251026/202510260342.qQLArXOY-lkp@intel.com/config)
compiler: clang version 20.1.8 (https://github.com/llvm/llvm-project 87f0227cb60147a26a1eeb4fb06e3b505e9c7261)
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20251026/202510260342.qQLArXOY-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/202510260342.qQLArXOY-lkp@intel.com/

All warnings (new ones prefixed by >>):

>> pointer_masking.c:216:25: warning: format string is not a string literal (potentially insecure) [-Wformat-security]
     216 |                 ksft_test_result_fail(err_pwrite_msg);
         |                                       ^~~~~~~~~~~~~~
   pointer_masking.c:216:25: note: treat the string as an argument to avoid this
     216 |                 ksft_test_result_fail(err_pwrite_msg);
         |                                       ^
         |                                       "%s", 
   pointer_masking.c:223:25: warning: format string is not a string literal (potentially insecure) [-Wformat-security]
     223 |                 ksft_test_result_fail(err_pwrite_msg);
         |                                       ^~~~~~~~~~~~~~
   pointer_masking.c:223:25: note: treat the string as an argument to avoid this
     223 |                 ksft_test_result_fail(err_pwrite_msg);
         |                                       ^
         |                                       "%s", 
   2 warnings generated.

-- 
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki

^ permalink raw reply	[flat|nested] 2+ messages in thread

* pointer_masking.c:216:25: warning: format string is not a string literal (potentially insecure)
@ 2025-10-26  5:50 kernel test robot
  0 siblings, 0 replies; 2+ messages in thread
From: kernel test robot @ 2025-10-26  5:50 UTC (permalink / raw)
  To: Charlie Jenkins; +Cc: oe-kbuild-all, linux-kernel, Palmer Dabbelt, Andrew Jones

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head:   9bb956508c9d94935bedba4f13901fb2b7468e91
commit: 498d5b14db8c9118be139f668720c67bea2dc344 riscv: selftests: Fix warnings pointer masking test
date:   10 months ago
:::::: branch date: 3 hours ago
:::::: commit date: 10 months ago
config: riscv-allnoconfig-bpf (https://download.01.org/0day-ci/archive/20251026/202510260342.qQLArXOY-lkp@intel.com/config)
compiler: clang version 20.1.8 (https://github.com/llvm/llvm-project 87f0227cb60147a26a1eeb4fb06e3b505e9c7261)
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20251026/202510260342.qQLArXOY-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/202510260342.qQLArXOY-lkp@intel.com/

All warnings (new ones prefixed by >>):

>> pointer_masking.c:216:25: warning: format string is not a string literal (potentially insecure) [-Wformat-security]
     216 |                 ksft_test_result_fail(err_pwrite_msg);
         |                                       ^~~~~~~~~~~~~~
   pointer_masking.c:216:25: note: treat the string as an argument to avoid this
     216 |                 ksft_test_result_fail(err_pwrite_msg);
         |                                       ^
         |                                       "%s", 
   pointer_masking.c:223:25: warning: format string is not a string literal (potentially insecure) [-Wformat-security]
     223 |                 ksft_test_result_fail(err_pwrite_msg);
         |                                       ^~~~~~~~~~~~~~
   pointer_masking.c:223:25: note: treat the string as an argument to avoid this
     223 |                 ksft_test_result_fail(err_pwrite_msg);
         |                                       ^
         |                                       "%s", 
   2 warnings generated.

-- 
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:[~2025-10-26  5:50 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-10-25 19:16 pointer_masking.c:216:25: warning: format string is not a string literal (potentially insecure) kernel test robot
  -- strict thread matches above, loose matches on Subject: below --
2025-10-26  5:50 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.