Received: by 2002:a05:7412:e794:b0:fa:551:50a7 with SMTP id o20csp2514688rdd; Fri, 12 Jan 2024 11:47:38 -0800 (PST) X-Google-Smtp-Source: AGHT+IGWBXBC8CFx/32lI7JfAgtZSv+VBJStICulG11pgnGfwSU/NB9a32q69+QBUqpD1zDd5mt7 X-Received: by 2002:a1c:7c0d:0:b0:40e:487b:7ad8 with SMTP id x13-20020a1c7c0d000000b0040e487b7ad8mr1040215wmc.46.1705088858762; Fri, 12 Jan 2024 11:47:38 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1705088858; cv=none; d=google.com; s=arc-20160816; b=Jdbt2dBi6ft7ZygGGXFyslWu+p3hu8E+ON0duIWdIySBkbwjpIRBeHvL201Q7hq02S /e+y7ewGDEuaiB+a10o4mHeN6tgQiMAgcfiMtNSpxWJY1+NkZ0rdQd539KiXEA5irz5Z dEYfX9z+f2o7tmg3WET6LL0qUUSJiu07rvqXpqMNxgzbC53xnuZsc5X/gNhKQ9f4Ctr9 lK4iHlErPlTTQi8qJUup/aeJ7sGqrK6hIVSMNyGL1ka5vZi6t4hRlCcysJg8Fvx17+kj UWn1zRkmbi/Ls8ul5QzYMw1ld0hf2mRKqAM5xri54Hfxvcs6lrST87A+gJxVrxwYlx51 AMTQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-disposition:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:message-id:subject:cc :to:from:date:dkim-signature; bh=8QaRZ+vZTFG/EhGm6shJN7RXIPH6q/zwc3TPO7hDCxA=; fh=A2ONC3JjtTJb3w+KxjigXzHdoOOKWuerHBN3dae9RwI=; b=xOoIREvEoZa3c3NAK8dfKvpT/u6xfUZl03dzUZ8rveYpFlTQbQFwN5Ia7OaAWP+smB f0o8cCVXCji7ZE8VzieIlQ4DDlGzqBv0/KmMjy9TVhqofa+zwJFZQ0geZqpf8wzj5Mk+ pO5ZgKhj29XC3v95IftyussQQHNcA75dVPwLYaXUEyWs3ntAH6Dsxpgy9qvU4yu5+Lcl B4c0pTCDHA6vDccanjAc+yKeUy8+ywr681Sb1Zkb867buUB8NcwAblqBYf8OSNAoiGxw O7yDUlF11kaLLslNvpXyBshqYB8SLD1d23bG6ryhAADig3MMro1iJg8cyOQnJR/0iaCU Mz7A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=GuPybr1D; spf=pass (google.com: domain of linux-kernel+bounces-25007-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-25007-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [147.75.80.249]) by mx.google.com with ESMTPS id n7-20020a056402434700b00558b0d699e9si1357338edc.357.2024.01.12.11.47.38 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 12 Jan 2024 11:47:38 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-25007-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) client-ip=147.75.80.249; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=GuPybr1D; spf=pass (google.com: domain of linux-kernel+bounces-25007-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-25007-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by am.mirrors.kernel.org (Postfix) with ESMTPS id 7D71A1F252E1 for ; Fri, 12 Jan 2024 19:47:38 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 9033B15E9C; Fri, 12 Jan 2024 19:47:32 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="GuPybr1D" Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id BF89912E79; Fri, 12 Jan 2024 19:47:31 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id CD828C433C7; Fri, 12 Jan 2024 19:47:30 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1705088851; bh=fBzDLyIQ3fJTBbDm/TFgka0PJn37SFZfnksvNccdxT8=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=GuPybr1DRD5IZro77uF8wImnf7qdSA6HfGJfWz625mjHTw/yj8rOSEECsZmp9KsTD WTT/zsTa4CmqvKmdyfBaeNc048umOV7GEhgvdtBzG1j9dAy7+2uVx3PfEI+LBplIg4 zbxyxH9tddFRy2rkSGLLjM2AJc3ho35l+06s1JTHx6PqI7CbQKA2gqCqH4sEwTf/wa YdTlqNLpWaUEB4V1sVhfZwuYmMW/E3FC/OriEff50Ln1DYKTtxFqdrqBSTh3v4MDJT uudxmIPaHsYoh9YOjIusdIoT5ZNOHRJJ1vXf0WR60NQPVclYvWrvMYelGibczD1sGw yNwTf/s+nv2DA== Date: Fri, 12 Jan 2024 12:47:29 -0700 From: Nathan Chancellor To: kernel test robot Cc: Vlad Buslov , llvm@lists.linux.dev, oe-kbuild-all@lists.linux.dev, linux-kernel@vger.kernel.org, Saeed Mahameed , Maor Dickman , Roi Dayan , masahiroy@kernel.org Subject: Re: drivers/net/ethernet/mellanox/mlx5/core/esw/bridge.c:1833:4: warning: 'snprintf' will always be truncated; specified size is 80, but format string expands to at least 94 Message-ID: <20240112194729.GB3703896@dev-arch.thelio-3990X> References: <202401102205.XmxWrS5y-lkp@intel.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <202401102205.XmxWrS5y-lkp@intel.com> On Wed, Jan 10, 2024 at 10:55:22PM +0800, kernel test robot wrote: > tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master > head: ab27740f76654ed58dd32ac0ba0031c18a6dea3b > commit: 70f0302b3f2053b64a6a653a76a20cb95438dc85 net/mlx5: Bridge, implement mdb offload > date: 9 months ago > config: arm64-allyesconfig (https://download.01.org/0day-ci/archive/20240110/202401102205.XmxWrS5y-lkp@intel.com/config) > compiler: clang version 18.0.0git (https://github.com/llvm/llvm-project 7e186d366d6c7def0543acc255931f617e76dff0) > reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20240110/202401102205.XmxWrS5y-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/202401102205.XmxWrS5y-lkp@intel.com/ > > All warnings (new ones prefixed by >>): > > >> drivers/net/ethernet/mellanox/mlx5/core/esw/bridge.c:1833:4: warning: 'snprintf' will always be truncated; specified size is 80, but format string expands to at least 94 [-Wformat-truncation-non-kprintf] > 1833 | NL_SET_ERR_MSG_FMT_MOD(extack, > | ^ > include/linux/netlink.h:130:2: note: expanded from macro 'NL_SET_ERR_MSG_FMT_MOD' > 130 | NL_SET_ERR_MSG_FMT((extack), KBUILD_MODNAME ": " fmt, ##args) > | ^ > include/linux/netlink.h:115:6: note: expanded from macro 'NL_SET_ERR_MSG_FMT' > 115 | if (snprintf(__extack->_msg_buf, NETLINK_MAX_FMTMSG_LEN, \ > | ^ > 1 warning generated. I have not looked to see if this is a legitimate issue or not, as clang does not understand the kernel's special %p modifiers, so it is a little hard to tell at first glance. For this reason, I sent a patch turning off the -non-kprintf warnings but it has not been picked up yet: https://lore.kernel.org/20231002-disable-wformat-truncation-overflow-non-kprintf-v1-1-35179205c8d9@kernel.org/ Cheers, Nathan