From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by smtp.lore.kernel.org (Postfix) with ESMTP id CA88BC48BF8 for ; Thu, 22 Feb 2024 14:52:36 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 605D56B0083; Thu, 22 Feb 2024 09:52:36 -0500 (EST) Received: by kanga.kvack.org (Postfix, from userid 40) id 5B5C36B0087; Thu, 22 Feb 2024 09:52:36 -0500 (EST) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 47DDB6B0088; Thu, 22 Feb 2024 09:52:36 -0500 (EST) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0011.hostedemail.com [216.40.44.11]) by kanga.kvack.org (Postfix) with ESMTP id 38D576B0083 for ; Thu, 22 Feb 2024 09:52:36 -0500 (EST) Received: from smtpin09.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay02.hostedemail.com (Postfix) with ESMTP id E78EB120E25 for ; Thu, 22 Feb 2024 14:52:35 +0000 (UTC) X-FDA: 81819731070.09.84A5CD7 Received: from mgamail.intel.com (mgamail.intel.com [198.175.65.16]) by imf02.hostedemail.com (Postfix) with ESMTP id 4E0198001B for ; Thu, 22 Feb 2024 14:52:33 +0000 (UTC) Authentication-Results: imf02.hostedemail.com; dkim=pass header.d=intel.com header.s=Intel header.b=bo8WRhna; spf=pass (imf02.hostedemail.com: domain of lkp@intel.com designates 198.175.65.16 as permitted sender) smtp.mailfrom=lkp@intel.com; dmarc=pass (policy=none) header.from=intel.com ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=hostedemail.com; s=arc-20220608; t=1708613554; h=from:from:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type:content-transfer-encoding:in-reply-to: references:dkim-signature; bh=BPUCK4t6DpdoLkaBogMxzVKOkVyB+epdjr63EDkwcYY=; b=yPl7MhVSb9w/+UGorm/NoIM6zuMiw9Nie+6TeKwmtFut3XTE2vBtEL6bS4BG1VIosLVKWH FQ3LmJu1BLh2/yk6Oh96dxC4QdGkr8T3cFPShKlXCSmikO3eAiODRK1Gu+JSYhLcZOfDzn t3mfMm1sHW3OK5nhjwbiSt4amPIvocM= ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1708613554; a=rsa-sha256; cv=none; b=uYtrySIIuxbICzTh2KkhShZeuqhzO9bej6dqt/wHcAwrY8L5OavoMNlTkgT0ywwmcZrzl5 2GDSTpOWyXwtH+eoUfZ1TpTgdQVzWvBkQzqzOT1m1+HdKPpS93B4Ya1ePk3rJTBcqjHRsq SWzsJDmJxrrwUQByHx2V80ZB12HecEo= ARC-Authentication-Results: i=1; imf02.hostedemail.com; dkim=pass header.d=intel.com header.s=Intel header.b=bo8WRhna; spf=pass (imf02.hostedemail.com: domain of lkp@intel.com designates 198.175.65.16 as permitted sender) smtp.mailfrom=lkp@intel.com; dmarc=pass (policy=none) header.from=intel.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1708613553; x=1740149553; h=date:from:to:cc:subject:message-id:mime-version; bh=ZZyAGsL7i7S/zZmQn6vPt3+4e+GSbHtokpbET19dxj4=; b=bo8WRhnaRqYovEE+0J1rCbBewg9avaSKF4BEjqVECQ6Cg2Z4oPLRxrDk QhSt7lUgWM3szlsXVb2cwmZz9UtrHF9bEJYysVl91YXlVIvp4mCgqLSLi MjiIG8D0qOFxV4CKtePzGCaR3RDi7XRN6IsOS9a1Ykexju5cMh4EOWvPP wa8fw30Hu0hYfdcw/GZxl/JSQwxGmkNr8pduX8GoANceEZaHUhBzbQv8m F7/2BGDCAqZ+7wGauw5iqoc+EBUkkuxgjIT5ocHWn5Z8XiLMNQMB3egu8 N1bBIA/ex+3CBeGYJpYntoHLqnlRHl3QTVcIBmbhcCJYE79grZ4v7lSux w==; X-IronPort-AV: E=McAfee;i="6600,9927,10992"; a="2992673" X-IronPort-AV: E=Sophos;i="6.06,179,1705392000"; d="scan'208";a="2992673" Received: from orviesa010.jf.intel.com ([10.64.159.150]) by orvoesa108.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 22 Feb 2024 06:52:31 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.06,179,1705392000"; d="scan'208";a="5500662" Received: from lkp-server02.sh.intel.com (HELO 3c78fa4d504c) ([10.239.97.151]) by orviesa010.jf.intel.com with ESMTP; 22 Feb 2024 06:52:30 -0800 Received: from kbuild by 3c78fa4d504c with local (Exim 4.96) (envelope-from ) id 1rdAR1-0006Os-2x; Thu, 22 Feb 2024 14:52:27 +0000 Date: Thu, 22 Feb 2024 22:47:20 +0800 From: kernel test robot To: Kees Cook Cc: oe-kbuild-all@lists.linux.dev, Linux Memory Management List , Alexander Lobakin Subject: [linux-next:master 8181/9122] lib/string_helpers.c:1023:34: sparse: sparse: incompatible types for operation (<): Message-ID: <202402222223.h9rFmYj4-lkp@intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline X-Rspamd-Queue-Id: 4E0198001B X-Rspam-User: X-Rspamd-Server: rspam11 X-Stat-Signature: 5jynj3r9drtrwghcm6ui8hbo5y8qe1du X-HE-Tag: 1708613553-22457 X-HE-Meta: U2FsdGVkX180d2i69zIQU9AbDQMjLANAoZa1lXkqysGlA71WZZy3OpdgSKndk2+oXC7b/3+zwEgBgdhmtGsbkHAxRDh5YWrM2NuLTaepOT4iUR00mUPuqjGYCI9PW+HiwEPv1M3og/T02urw2TiPQbbd8nFlHMPJGOud9xAp89mIeZheHA86mLbtRZQI2h6SDDFhwFKc+xBbwWuruFN/5MzxntUBT029isvMNw7fi3/9GmGvi5p15Dg2mrGTZsFd49x/sMFiuKbgGl0EYzT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tests=bogofilter, spamicity=0.000000, version=1.2.4 Sender: owner-linux-mm@kvack.org Precedence: bulk X-Loop: owner-majordomo@kvack.org List-ID: List-Subscribe: List-Unsubscribe: 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 | 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