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 863DEC00140 for ; Wed, 10 Aug 2022 20:12:11 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id F06EA6B0071; Wed, 10 Aug 2022 16:12:10 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id EB7106B0072; Wed, 10 Aug 2022 16:12:10 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id D7E0F8E0001; Wed, 10 Aug 2022 16:12:10 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0016.hostedemail.com [216.40.44.16]) by kanga.kvack.org (Postfix) with ESMTP id C68A16B0071 for ; Wed, 10 Aug 2022 16:12:10 -0400 (EDT) Received: from smtpin15.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay03.hostedemail.com (Postfix) with ESMTP id 7FC66A1547 for ; Wed, 10 Aug 2022 20:12:10 +0000 (UTC) X-FDA: 79784779620.15.1BACEA8 Received: from mga02.intel.com (mga02.intel.com [134.134.136.20]) by imf19.hostedemail.com (Postfix) with ESMTP id 63D111A0077 for ; Wed, 10 Aug 2022 20:12:08 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1660162328; x=1691698328; h=date:from:to:cc:subject:message-id:mime-version; bh=49hByOK8fQ5LeuEUH8DWtm6+R/AIcnQEinvLqKmV99s=; b=D7jCUIJLPZXxzlZkEq/Yp9XB4FLhMMWDhtkCq4Yg9TKnCIO31P2bqxNa cpLH1DQKbdg1c34G+PUXtEyMFVEAy+tG5YJhWtO88NPxVNFsWFZ1nDB0f SHdKJ24cQ7EFet8ngh8y0kJqDvra4HoQkN6LTjlZ0A3OeRX8ky2C0v8pI 3DoeG2VsPMxVFTyT+pnRqeKoJoVO+/LDqyJplIIcEdB5QUIEBrw9GR+GT TZHtm0+iSGWeVcH1Jygf2qfqXyb4+lu3GyE2cyCKrJnqPxFg4P5VYmx0R y72ZtSduYereQsv8R11soByvIQAObk9T7WGj7LF6TC58pjHvCWwrpdfXr g==; X-IronPort-AV: E=McAfee;i="6400,9594,10435"; a="278121253" X-IronPort-AV: E=Sophos;i="5.93,228,1654585200"; d="scan'208";a="278121253" Received: from fmsmga005.fm.intel.com ([10.253.24.32]) by orsmga101.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 10 Aug 2022 13:12:06 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.93,228,1654585200"; d="scan'208";a="933026817" Received: from lkp-server02.sh.intel.com (HELO 5d6b42aa80b8) ([10.239.97.151]) by fmsmga005.fm.intel.com with ESMTP; 10 Aug 2022 13:12:04 -0700 Received: from kbuild by 5d6b42aa80b8 with local (Exim 4.96) (envelope-from ) id 1oLs3f-0000fi-2x; Wed, 10 Aug 2022 20:12:03 +0000 Date: Thu, 11 Aug 2022 04:11:31 +0800 From: kernel test robot To: Luiz Augusto von Dentz Cc: kbuild-all@lists.01.org, Linux Memory Management List Subject: [linux-next:pending-fixes 13358/13464] include/linux/fortify-string.h:44:33: warning: '__builtin_memcmp' specified bound 6 exceeds source size 0 Message-ID: <202208110453.zEneXTnn-lkp@intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1660162329; a=rsa-sha256; cv=none; b=4zwF7gXQLOMWSTGIKewZIC4WF71gnUv8rUB1u6E39vfdQmC74wHFaGEgpHvNHiYHbpz+t5 vEyCzShHL3qZsmrA+B7UUFO3W28TqsH3R+WbvGGXXoVVw4rnBEz3tzNO0LXhpXt/2Btoje IeeTynNZr6l0Rb3UcP/7spgKcphKR+8= ARC-Authentication-Results: i=1; imf19.hostedemail.com; dkim=none ("invalid DKIM record") header.d=intel.com header.s=Intel header.b=D7jCUIJL; spf=pass (imf19.hostedemail.com: domain of lkp@intel.com designates 134.134.136.20 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=1660162329; 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=PHnFsYTWtH8Fa85H1qO//DJa4lBMSS7LjcZTP2bjgIw=; b=SrhCx59rRxsmlzgWd4v1H53A1QzmqX5PFoMkIBbBAk/E8/N+UKsN1LHQNAc6G7NsL6RHu2 7IGdtxE+z/FabrCWmYE0V/SD1UUVhtaZyJU9TrnW5THSqz6ASGbDrWX+4GQgw2vY237rEj YqamAmAP3WLIbHJmbmfMbL6ivycVVxk= X-Rspamd-Queue-Id: 63D111A0077 Authentication-Results: imf19.hostedemail.com; dkim=none ("invalid DKIM record") header.d=intel.com header.s=Intel header.b=D7jCUIJL; spf=pass (imf19.hostedemail.com: domain of lkp@intel.com designates 134.134.136.20 as permitted sender) smtp.mailfrom=lkp@intel.com; dmarc=pass (policy=none) header.from=intel.com X-Rspam-User: X-Rspamd-Server: rspam12 X-Stat-Signature: xzmioie9xj5cjxox47c5n8jgn8itdrp5 X-HE-Tag: 1660162328-573791 X-Bogosity: Ham, 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: tree: https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git pending-fixes head: 5c5775c41d5494a213623a99b8ba1a7679efd79f commit: 332f1795ca202489c665a75e62e18ff6284de077 [13358/13464] Bluetooth: L2CAP: Fix l2cap_global_chan_by_psm regression config: mips-allyesconfig (https://download.01.org/0day-ci/archive/20220811/202208110453.zEneXTnn-lkp@intel.com/config) compiler: mips-linux-gcc (GCC) 12.1.0 reproduce (this is a W=1 build): wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross chmod +x ~/bin/make.cross # https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git/commit/?id=332f1795ca202489c665a75e62e18ff6284de077 git remote add linux-next https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git git fetch --no-tags linux-next pending-fixes git checkout 332f1795ca202489c665a75e62e18ff6284de077 # save the config file mkdir build_dir && cp config build_dir/.config COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-12.1.0 make.cross W=1 O=build_dir ARCH=mips SHELL=/bin/bash net/bluetooth/ If you fix the issue, kindly add following tag where applicable Reported-by: kernel test robot All warnings (new ones prefixed by >>): In file included from include/linux/string.h:253, from include/linux/bitmap.h:11, from include/linux/cpumask.h:12, from include/linux/smp.h:13, from arch/mips/include/asm/cpu-type.h:12, from arch/mips/include/asm/timex.h:19, from include/linux/timex.h:67, from include/linux/time32.h:13, from include/linux/time.h:60, from include/linux/stat.h:19, from include/linux/module.h:13, from net/bluetooth/l2cap_core.c:31: In function 'memcmp', inlined from 'bacmp' at include/net/bluetooth/bluetooth.h:347:9, inlined from 'l2cap_global_chan_by_psm' at net/bluetooth/l2cap_core.c:2003:15: >> include/linux/fortify-string.h:44:33: warning: '__builtin_memcmp' specified bound 6 exceeds source size 0 [-Wstringop-overread] 44 | #define __underlying_memcmp __builtin_memcmp | ^ include/linux/fortify-string.h:420:16: note: in expansion of macro '__underlying_memcmp' 420 | return __underlying_memcmp(p, q, size); | ^~~~~~~~~~~~~~~~~~~ In function 'memcmp', inlined from 'bacmp' at include/net/bluetooth/bluetooth.h:347:9, inlined from 'l2cap_global_chan_by_psm' at net/bluetooth/l2cap_core.c:2004:15: >> include/linux/fortify-string.h:44:33: warning: '__builtin_memcmp' specified bound 6 exceeds source size 0 [-Wstringop-overread] 44 | #define __underlying_memcmp __builtin_memcmp | ^ include/linux/fortify-string.h:420:16: note: in expansion of macro '__underlying_memcmp' 420 | return __underlying_memcmp(p, q, size); | ^~~~~~~~~~~~~~~~~~~ vim +/__builtin_memcmp +44 include/linux/fortify-string.h 3009f891bb9f32 Kees Cook 2021-08-02 30 a28a6e860c6cf2 Francis Laniel 2021-02-25 31 #if defined(CONFIG_KASAN_GENERIC) || defined(CONFIG_KASAN_SW_TAGS) a28a6e860c6cf2 Francis Laniel 2021-02-25 32 extern void *__underlying_memchr(const void *p, int c, __kernel_size_t size) __RENAME(memchr); a28a6e860c6cf2 Francis Laniel 2021-02-25 33 extern int __underlying_memcmp(const void *p, const void *q, __kernel_size_t size) __RENAME(memcmp); a28a6e860c6cf2 Francis Laniel 2021-02-25 34 extern void *__underlying_memcpy(void *p, const void *q, __kernel_size_t size) __RENAME(memcpy); a28a6e860c6cf2 Francis Laniel 2021-02-25 35 extern void *__underlying_memmove(void *p, const void *q, __kernel_size_t size) __RENAME(memmove); a28a6e860c6cf2 Francis Laniel 2021-02-25 36 extern void *__underlying_memset(void *p, int c, __kernel_size_t size) __RENAME(memset); a28a6e860c6cf2 Francis Laniel 2021-02-25 37 extern char *__underlying_strcat(char *p, const char *q) __RENAME(strcat); a28a6e860c6cf2 Francis Laniel 2021-02-25 38 extern char *__underlying_strcpy(char *p, const char *q) __RENAME(strcpy); a28a6e860c6cf2 Francis Laniel 2021-02-25 39 extern __kernel_size_t __underlying_strlen(const char *p) __RENAME(strlen); a28a6e860c6cf2 Francis Laniel 2021-02-25 40 extern char *__underlying_strncat(char *p, const char *q, __kernel_size_t count) __RENAME(strncat); a28a6e860c6cf2 Francis Laniel 2021-02-25 41 extern char *__underlying_strncpy(char *p, const char *q, __kernel_size_t size) __RENAME(strncpy); a28a6e860c6cf2 Francis Laniel 2021-02-25 42 #else a28a6e860c6cf2 Francis Laniel 2021-02-25 43 #define __underlying_memchr __builtin_memchr a28a6e860c6cf2 Francis Laniel 2021-02-25 @44 #define __underlying_memcmp __builtin_memcmp a28a6e860c6cf2 Francis Laniel 2021-02-25 45 #define __underlying_memcpy __builtin_memcpy a28a6e860c6cf2 Francis Laniel 2021-02-25 46 #define __underlying_memmove __builtin_memmove a28a6e860c6cf2 Francis Laniel 2021-02-25 47 #define __underlying_memset __builtin_memset a28a6e860c6cf2 Francis Laniel 2021-02-25 48 #define __underlying_strcat __builtin_strcat a28a6e860c6cf2 Francis Laniel 2021-02-25 49 #define __underlying_strcpy __builtin_strcpy a28a6e860c6cf2 Francis Laniel 2021-02-25 50 #define __underlying_strlen __builtin_strlen a28a6e860c6cf2 Francis Laniel 2021-02-25 51 #define __underlying_strncat __builtin_strncat a28a6e860c6cf2 Francis Laniel 2021-02-25 52 #define __underlying_strncpy __builtin_strncpy a28a6e860c6cf2 Francis Laniel 2021-02-25 53 #endif a28a6e860c6cf2 Francis Laniel 2021-02-25 54 :::::: The code at line 44 was first introduced by commit :::::: a28a6e860c6cf231cf3c5171c75c342adcd00406 string.h: move fortified functions definitions in a dedicated header. :::::: TO: Francis Laniel :::::: CC: Linus Torvalds -- 0-DAY CI Kernel Test Service https://01.org/lkp