lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [day] [month] [year] [list]
Message-ID: <aP22qrhDBtMs4iIn@rli9-mobl>
Date: Sun, 26 Oct 2025 13:50:34 +0800
From: kernel test robot <lkp@...el.com>
To: Charlie Jenkins <charlie@...osinc.com>
CC: <oe-kbuild-all@...ts.linux.dev>, <linux-kernel@...r.kernel.org>, "Palmer
 Dabbelt" <palmer@...osinc.com>, Andrew Jones <ajones@...tanamicro.com>
Subject: pointer_masking.c:216:25: warning: format string is not a string
 literal (potentially insecure)

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@...el.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


Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ