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@xxxxxxxxx/config) compiler: s390-linux-gcc (GCC) 13.2.0 reproduce: (https://download.01.org/0day-ci/archive/20240222/202402222223.h9rFmYj4-lkp@xxxxxxxxx/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@xxxxxxxxx> | Closes: https://lore.kernel.org/oe-kbuild-all/202402222223.h9rFmYj4-lkp@xxxxxxxxx/ 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