* [linux-next:master 8181/9122] lib/string_helpers.c:1023:34: sparse: sparse: incompatible types for operation (<):
@ 2024-02-22 14:47 kernel test robot
0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2024-02-22 14:47 UTC (permalink / raw)
To: Kees Cook; +Cc: oe-kbuild-all, Linux Memory Management List, Alexander Lobakin
tree: https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git master
head: e31185ce00a96232308300008db193416ceb9769
commit: 0f4459080884b688c4ec9c2b121f22c641401bc1 [8181/9122] fortify: Split reporting and avoid passing string pointer
config: s390-randconfig-r123-20240222 (https://download.01.org/0day-ci/archive/20240222/202402222223.h9rFmYj4-lkp@intel.com/config)
compiler: s390-linux-gcc (GCC) 13.2.0
reproduce: (https://download.01.org/0day-ci/archive/20240222/202402222223.h9rFmYj4-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/202402222223.h9rFmYj4-lkp@intel.com/
sparse warnings: (new ones prefixed by >>)
lib/string_helpers.c:1023:34: sparse: sparse: undefined identifier 'FORTIFY_FUNC_UNKNOWN'
lib/string_helpers.c:1023:34: sparse: sparse: undefined identifier 'FORTIFY_FUNC_UNKNOWN'
>> lib/string_helpers.c:1023:34: sparse: sparse: incompatible types for operation (<):
lib/string_helpers.c:1023:34: sparse: bad type
lib/string_helpers.c:1023:34: sparse: bad type
lib/string_helpers.c:1023:34: sparse: sparse: undefined identifier 'FORTIFY_FUNC_UNKNOWN'
lib/string_helpers.c:1023:34: sparse: sparse: undefined identifier 'FORTIFY_FUNC_UNKNOWN'
>> lib/string_helpers.c:1023:34: sparse: sparse: incompatible types for operation (<):
lib/string_helpers.c:1023:34: sparse: bad type
lib/string_helpers.c:1023:34: sparse: bad type
lib/string_helpers.c:1023:34: sparse: sparse: undefined identifier 'FORTIFY_FUNC_UNKNOWN'
lib/string_helpers.c:1023:34: sparse: sparse: undefined identifier 'FORTIFY_FUNC_UNKNOWN'
>> lib/string_helpers.c:1023:34: sparse: sparse: incompatible types for operation (<):
lib/string_helpers.c:1023:34: sparse: bad type
lib/string_helpers.c:1023:34: sparse: bad type
lib/string_helpers.c:1023:34: sparse: sparse: undefined identifier 'FORTIFY_FUNC_UNKNOWN'
lib/string_helpers.c:1023:34: sparse: sparse: undefined identifier 'FORTIFY_FUNC_UNKNOWN'
>> lib/string_helpers.c:1023:34: sparse: sparse: incompatible types for operation (<):
lib/string_helpers.c:1023:34: sparse: bad type
lib/string_helpers.c:1023:34: sparse: bad type
lib/string_helpers.c:1023:34: sparse: sparse: undefined identifier 'FORTIFY_FUNC_UNKNOWN'
lib/string_helpers.c:1023:34: sparse: sparse: cast from unknown type
lib/string_helpers.c:1023:34: sparse: sparse: cast from unknown type
>> lib/string_helpers.c:1023:34: sparse: sparse: incompatible types in conditional expression (different types):
lib/string_helpers.c:1023:34: sparse: bad type
lib/string_helpers.c:1023:34: sparse: int *
lib/string_helpers.c:1023:34: sparse: sparse: undefined identifier 'FORTIFY_FUNC_UNKNOWN'
lib/string_helpers.c:1023:34: sparse: sparse: bad constant expression type
lib/string_helpers.c:1013:9: sparse: sparse: undefined identifier 'EACH_FORTIFY_FUNC'
lib/string_helpers.c:1019:25: sparse: sparse: undefined identifier 'FORTIFY_REASON_FUNC'
lib/string_helpers.c:1020:28: sparse: sparse: undefined identifier 'FORTIFY_REASON_DIR'
lib/string_helpers.c:1023:34: sparse: sparse: undefined identifier 'FORTIFY_FUNC_UNKNOWN'
lib/string_helpers.c:1023:34: sparse: sparse: cast from unknown type
lib/string_helpers.c:1023:34: sparse: sparse: cast from unknown type
>> lib/string_helpers.c:1023:34: sparse: sparse: incompatible types in conditional expression (different types):
lib/string_helpers.c:1023:34: sparse: bad type
lib/string_helpers.c:1023:34: sparse: int *
lib/string_helpers.c:1023:34: sparse: sparse: undefined identifier 'FORTIFY_FUNC_UNKNOWN'
lib/string_helpers.c:1023:34: sparse: sparse: undefined identifier 'FORTIFY_FUNC_UNKNOWN'
lib/string_helpers.c:1023:34: sparse: sparse: undefined identifier 'FORTIFY_FUNC_UNKNOWN'
>> lib/string_helpers.c:1023:34: sparse: sparse: incompatible types for operation (<):
lib/string_helpers.c:1023:34: sparse: unsigned long long __UNIQUE_ID___x302
lib/string_helpers.c:1023:34: sparse: bad type __UNIQUE_ID___y303
vim +1023 lib/string_helpers.c
1016
1017 void __fortify_report(const u8 reason)
1018 {
1019 const u8 func = FORTIFY_REASON_FUNC(reason);
1020 const bool write = FORTIFY_REASON_DIR(reason);
1021 const char *name;
1022
> 1023 name = fortify_func_name[umin(func, FORTIFY_FUNC_UNKNOWN)];
1024 WARN(1, "%s: detected buffer %s overflow\n", name, str_read_write(!write));
1025 }
1026 EXPORT_SYMBOL(__fortify_report);
1027
--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2024-02-22 14:52 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2024-02-22 14:47 [linux-next:master 8181/9122] lib/string_helpers.c:1023:34: sparse: sparse: incompatible types for operation (<): kernel test robot
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox