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 9B651C71153 for ; Mon, 28 Aug 2023 12:52:40 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 0DD268E0016; Mon, 28 Aug 2023 08:52:40 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id 08E5B8E000E; Mon, 28 Aug 2023 08:52:40 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id E96E28E0016; Mon, 28 Aug 2023 08:52:39 -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 D570B8E000E for ; Mon, 28 Aug 2023 08:52:39 -0400 (EDT) Received: from smtpin26.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay05.hostedemail.com (Postfix) with ESMTP id 9A6B340216 for ; Mon, 28 Aug 2023 12:52:39 +0000 (UTC) X-FDA: 81173502438.26.E4EB459 Received: from mgamail.intel.com (mgamail.intel.com [134.134.136.100]) by imf18.hostedemail.com (Postfix) with ESMTP id 939B41C000D for ; Mon, 28 Aug 2023 12:52:36 +0000 (UTC) Authentication-Results: imf18.hostedemail.com; dkim=pass header.d=intel.com header.s=Intel header.b=Wqkhtqhz; spf=pass (imf18.hostedemail.com: domain of lkp@intel.com designates 134.134.136.100 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=1693227157; 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=SCV1gyABdsAVGv4edUagQHNGSiK8pCWt9l8ycMUGskw=; b=mOymCFvKnIfbguZYYGzTQxxbbnnutny3oH+o7NtGgPdD2xeoeIfU6wzHKBnBjxgjtbFCsj IXk6peV//jSctuN/pn2408YQovmnEngo9IO42BQ5boDPz3JgpYn+bB1RTvf9r/7J0dle3y 5N5rL6Ow1HJpkebqPgtEufhE2Arn2Ic= ARC-Authentication-Results: i=1; imf18.hostedemail.com; dkim=pass header.d=intel.com header.s=Intel header.b=Wqkhtqhz; spf=pass (imf18.hostedemail.com: domain of lkp@intel.com designates 134.134.136.100 as permitted sender) smtp.mailfrom=lkp@intel.com; dmarc=pass (policy=none) header.from=intel.com ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1693227157; a=rsa-sha256; cv=none; b=tC3kC6Og12idwK1DtuyGrs5pZYx0Hsrzo1pL9AFGkTvZsDtCUFcQRjyQuLZZxaI5E2RaS8 /DFETzQLPuCFm7kwxJsdRieAxaohqcLyjOG0UjQKBfj4M3kZTqAY1irohBHiSSn5YNgf3t lsZtPGLz9ZNfokCX31IAcr+xBar1uIc= DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1693227156; x=1724763156; h=date:from:to:cc:subject:message-id:mime-version; bh=0tLU3Y09BQUkxu4IV89orRIQpc+aKxw3Ks/9MpQmPaU=; b=WqkhtqhzQrqOK5HI0MsQMEfPNAvnwjRLm8tw61Xanb70kjTgAWxdnxrc GtigreWb8I6LL9zFKo2zB+Zqb2K10d0BKr6utgScDBfzlr6WYcPJBCDvx bJdRo7/jjLVR3PAeQDc1ous7XIr8L/199y4nqk2ZUPGLVRylq414D273g IN9T5qZA51JmsKf9PKzIUFHs4ElgLxoa3zWoD+CKktTpA1mM7FoySN/sO G0TAq265LL9Ye0UlyamJaWI5fmmZRBf/TNFuK68H+1jj2TdkMn8cIxIND MOJd8adt0rCX2zUigmQYJPdaCzq20YCE2ZN09aE+3LmYPYu7Lxzp388OU g==; X-IronPort-AV: E=McAfee;i="6600,9927,10816"; a="441438596" X-IronPort-AV: E=Sophos;i="6.02,207,1688454000"; d="scan'208";a="441438596" Received: from orsmga003.jf.intel.com ([10.7.209.27]) by orsmga105.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 28 Aug 2023 05:52:29 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10816"; a="688092568" X-IronPort-AV: E=Sophos;i="6.02,207,1688454000"; d="scan'208";a="688092568" Received: from lkp-server02.sh.intel.com (HELO daf8bb0a381d) ([10.239.97.151]) by orsmga003.jf.intel.com with ESMTP; 28 Aug 2023 05:52:27 -0700 Received: from kbuild by daf8bb0a381d with local (Exim 4.96) (envelope-from ) id 1qabjB-0007sr-1r; Mon, 28 Aug 2023 12:52:23 +0000 Date: Mon, 28 Aug 2023 20:51:53 +0800 From: kernel test robot To: "David S. Miller" Cc: oe-kbuild-all@lists.linux.dev, Linux Memory Management List , netdev@vger.kernel.org Subject: [linux-next:master 13014/13109] include/linux/netlink.h:116:13: warning: 'sfc: Unsupported: only suppo...' directive output truncated writing 104 bytes into a region of size 80 Message-ID: <202308282000.2XNh0K6D-lkp@intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline X-Rspamd-Queue-Id: 939B41C000D X-Rspam-User: X-Stat-Signature: aymdhbpiks1zrcn6njf9g5kyukfcd463 X-Rspamd-Server: rspam01 X-HE-Tag: 1693227156-61187 X-HE-Meta: U2FsdGVkX1+q9Di2deIm6WuqIJvwfW3i/eaGhGedBmO1a3KpBVHknhD31HtfMJB2gqz/Yh1uoNA39DNLWT5VVVpIqv/3wMSZfnuNdvPRdzEyEwQtKFxKVF3DmCCIG8k7jYdfDYl1W0Lf7+MT0xHDBiogtvTKjMGoC/WxbgbDaGJgjWtxnh0E058SGq8NvsoF1ogO1kjd0j9hf5Bk1hgf4oN+SFmC0OCnWLyZjdWBpJtgXK9ZfmGEcRoKUM+jV2OHq0vvllTJpg4r3wz23lPwTmdVTlfGIb0VXWYsvLSfYVecg+OaqLuTL54JG5Ge0qJbmMITO68OS1svf+DnZ/CdfyNdKsRzRdjKQIy0M7EMKynR93CwFHufoY/gkNK3y9TD/ihvoKp9Qy8f15Ykp/YjNc3ud3RIowccATRtFkz/90teBLFDOQlUjHa2Y6r4t+RH1r97RqomJssr5UyXwmi78xnI17ZYuh0hdkHP1gDxuGe7F1wJy1V4Tlyt2Z8sVEzU4/jpR+RUgFSqo/waOv1Nmc030Kq4c5lbSTHP/redx4QhHxXfI3morO8bQEuC8/Z7LEOrVp9BHT+9CngyJdYxIcOviJ+2ufqkW9D55efjSEtCE012DOkEVPdmdyD4L4u+6qoTYkhBgsi8NHei6DxMOCpiuyDrRgHVEhQEGi01eh+V3qNddwvrPtMyvAFHR0MYkbNFPmpOPW+a3wiksjDcbWd5KZlXu9f28R5/A8BUdKd1WgPBW2rZQ3me3YNB3Z9E4AAee/m2TbBpIA3SJ0x2Qg8+lFLa3s/DpJTD+MPAp605XFea5ndKnCMtz/DYgHWFIFGIzXZVyiQaVE+OrGcnmJz2uLcKFTxGgZP72KYlWBw3T4j4Aj6B3P1HaDsUghzpm5QE3dOHrsTHEgbNxlFRpZ2wNmjfS23UzYJtApNpz4yn1ia1wmDJiAOSyp4+Ezd0URWMn2LpLu73NdsRd3b 1+aPFCgJ cD1uc624kA+53TPJdBvfFn8eTn3V+bogvaZFoNfNNjYxBolKwEWhHnZfa0gA11HtOKTcQtXf/yBvpf36+rvWD0qMCX0yfp/D7vSjEIMjeZ/oOzp6uIdx74a8eMa4Dwm7LUz1YLsggklu+FyKmP5WCFckcN+frwsaswdXXIJMnp01HewCMxmhXz4hDvXrHJbgxO00KuNFTHg9MeJWMxXYYz0rS0EW6WDeUvALogZNLenEDkp/OUTNqU2XoVSaTO+/4C6pxtm0VyVEq3pzRg5IkWLGG5RtfvGp/Rlij1KrAioysA6IyZFG35dRqyPGiGRO5oSDfCU7gbb7uuCE= 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 master head: 2ee82481c392eec06a7ef28df61b7f0d8e45be2e commit: 01183204bc24d9612add84a809377cb10737e77f [13014/13109] Merge branch 'main' of git://git.kernel.org/pub/scm/linux/kernel/git/netdev/net-next.git config: x86_64-allyesconfig (https://download.01.org/0day-ci/archive/20230828/202308282000.2XNh0K6D-lkp@intel.com/config) compiler: gcc-12 (Debian 12.2.0-14) 12.2.0 reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20230828/202308282000.2XNh0K6D-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/202308282000.2XNh0K6D-lkp@intel.com/ All warnings (new ones prefixed by >>): In file included from include/uapi/linux/neighbour.h:6, from include/linux/netdevice.h:45, from include/net/sch_generic.h:5, from include/net/pkt_cls.h:7, from drivers/net/ethernet/sfc/tc.c:12: drivers/net/ethernet/sfc/tc.c: In function 'efx_tc_mangle': >> include/linux/netlink.h:116:13: warning: 'sfc: Unsupported: only suppo...' directive output truncated writing 104 bytes into a region of size 80 [-Wformat-truncation=] 116 | if (snprintf(__extack->_msg_buf, NETLINK_MAX_FMTMSG_LEN, \ | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 117 | "%s" fmt "%s", "", ##args, "") >= \ | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ include/linux/netlink.h:131:9: note: in expansion of macro 'NL_SET_ERR_MSG_FMT' 131 | NL_SET_ERR_MSG_FMT((extack), KBUILD_MODNAME ": " fmt, ##args) | ^~~~~~~~~~~~~~~~~~ drivers/net/ethernet/sfc/tc.c:1223:33: note: in expansion of macro 'NL_SET_ERR_MSG_FMT_MOD' 1223 | NL_SET_ERR_MSG_FMT_MOD(extack, | ^~~~~~~~~~~~~~~~~~~~~~ include/linux/netlink.h:116:13: note: directive argument in the range [0, 254] 116 | if (snprintf(__extack->_msg_buf, NETLINK_MAX_FMTMSG_LEN, \ | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 117 | "%s" fmt "%s", "", ##args, "") >= \ | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ include/linux/netlink.h:131:9: note: in expansion of macro 'NL_SET_ERR_MSG_FMT' 131 | NL_SET_ERR_MSG_FMT((extack), KBUILD_MODNAME ": " fmt, ##args) | ^~~~~~~~~~~~~~~~~~ drivers/net/ethernet/sfc/tc.c:1223:33: note: in expansion of macro 'NL_SET_ERR_MSG_FMT_MOD' 1223 | NL_SET_ERR_MSG_FMT_MOD(extack, | ^~~~~~~~~~~~~~~~~~~~~~ include/linux/netlink.h:116:13: note: 'snprintf' output between 107 and 110 bytes into a destination of size 80 116 | if (snprintf(__extack->_msg_buf, NETLINK_MAX_FMTMSG_LEN, \ | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 117 | "%s" fmt "%s", "", ##args, "") >= \ | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ include/linux/netlink.h:131:9: note: in expansion of macro 'NL_SET_ERR_MSG_FMT' 131 | NL_SET_ERR_MSG_FMT((extack), KBUILD_MODNAME ": " fmt, ##args) | ^~~~~~~~~~~~~~~~~~ drivers/net/ethernet/sfc/tc.c:1223:33: note: in expansion of macro 'NL_SET_ERR_MSG_FMT_MOD' 1223 | NL_SET_ERR_MSG_FMT_MOD(extack, | ^~~~~~~~~~~~~~~~~~~~~~ include/linux/netlink.h:116:13: warning: 'sfc: Unsupported: only suppo...' directive output truncated writing 110 bytes into a region of size 80 [-Wformat-truncation=] 116 | if (snprintf(__extack->_msg_buf, NETLINK_MAX_FMTMSG_LEN, \ | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 117 | "%s" fmt "%s", "", ##args, "") >= \ | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ include/linux/netlink.h:131:9: note: in expansion of macro 'NL_SET_ERR_MSG_FMT' 131 | NL_SET_ERR_MSG_FMT((extack), KBUILD_MODNAME ": " fmt, ##args) | ^~~~~~~~~~~~~~~~~~ drivers/net/ethernet/sfc/tc.c:1282:33: note: in expansion of macro 'NL_SET_ERR_MSG_FMT_MOD' 1282 | NL_SET_ERR_MSG_FMT_MOD(extack, | ^~~~~~~~~~~~~~~~~~~~~~ include/linux/netlink.h:116:13: note: directive argument in the range [0, 254] 116 | if (snprintf(__extack->_msg_buf, NETLINK_MAX_FMTMSG_LEN, \ | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 117 | "%s" fmt "%s", "", ##args, "") >= \ | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ include/linux/netlink.h:131:9: note: in expansion of macro 'NL_SET_ERR_MSG_FMT' 131 | NL_SET_ERR_MSG_FMT((extack), KBUILD_MODNAME ": " fmt, ##args) | ^~~~~~~~~~~~~~~~~~ drivers/net/ethernet/sfc/tc.c:1282:33: note: in expansion of macro 'NL_SET_ERR_MSG_FMT_MOD' 1282 | NL_SET_ERR_MSG_FMT_MOD(extack, | ^~~~~~~~~~~~~~~~~~~~~~ include/linux/netlink.h:116:13: note: 'snprintf' output between 113 and 116 bytes into a destination of size 80 116 | if (snprintf(__extack->_msg_buf, NETLINK_MAX_FMTMSG_LEN, \ | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 117 | "%s" fmt "%s", "", ##args, "") >= \ | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ include/linux/netlink.h:131:9: note: in expansion of macro 'NL_SET_ERR_MSG_FMT' 131 | NL_SET_ERR_MSG_FMT((extack), KBUILD_MODNAME ": " fmt, ##args) | ^~~~~~~~~~~~~~~~~~ drivers/net/ethernet/sfc/tc.c:1282:33: note: in expansion of macro 'NL_SET_ERR_MSG_FMT_MOD' 1282 | NL_SET_ERR_MSG_FMT_MOD(extack, | ^~~~~~~~~~~~~~~~~~~~~~ >> include/linux/netlink.h:116:13: warning: ') out of range, only support...' directive output truncated writing 60 bytes into a region of size between 46 and 55 [-Wformat-truncation=] 116 | if (snprintf(__extack->_msg_buf, NETLINK_MAX_FMTMSG_LEN, \ | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 117 | "%s" fmt "%s", "", ##args, "") >= \ | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ include/linux/netlink.h:131:9: note: in expansion of macro 'NL_SET_ERR_MSG_FMT' 131 | NL_SET_ERR_MSG_FMT((extack), KBUILD_MODNAME ": " fmt, ##args) | ^~~~~~~~~~~~~~~~~~ drivers/net/ethernet/sfc/tc.c:1271:33: note: in expansion of macro 'NL_SET_ERR_MSG_FMT_MOD' 1271 | NL_SET_ERR_MSG_FMT_MOD(extack, | ^~~~~~~~~~~~~~~~~~~~~~ include/linux/netlink.h:116:13: note: 'snprintf' output between 86 and 95 bytes into a destination of size 80 116 | if (snprintf(__extack->_msg_buf, NETLINK_MAX_FMTMSG_LEN, \ | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 117 | "%s" fmt "%s", "", ##args, "") >= \ | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ include/linux/netlink.h:131:9: note: in expansion of macro 'NL_SET_ERR_MSG_FMT' 131 | NL_SET_ERR_MSG_FMT((extack), KBUILD_MODNAME ": " fmt, ##args) | ^~~~~~~~~~~~~~~~~~ drivers/net/ethernet/sfc/tc.c:1271:33: note: in expansion of macro 'NL_SET_ERR_MSG_FMT_MOD' 1271 | NL_SET_ERR_MSG_FMT_MOD(extack, | ^~~~~~~~~~~~~~~~~~~~~~ drivers/net/ethernet/sfc/tc.c: In function 'efx_tc_flower_record_encap_match': include/linux/netlink.h:116:13: warning: ' conflicts with existing pse...' directive output truncated writing 53 bytes into a region of size between 28 and 33 [-Wformat-truncation=] 116 | if (snprintf(__extack->_msg_buf, NETLINK_MAX_FMTMSG_LEN, \ | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 117 | "%s" fmt "%s", "", ##args, "") >= \ | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ include/linux/netlink.h:131:9: note: in expansion of macro 'NL_SET_ERR_MSG_FMT' 131 | NL_SET_ERR_MSG_FMT((extack), KBUILD_MODNAME ": " fmt, ##args) | ^~~~~~~~~~~~~~~~~~ drivers/net/ethernet/sfc/tc.c:634:33: note: in expansion of macro 'NL_SET_ERR_MSG_FMT_MOD' 634 | NL_SET_ERR_MSG_FMT_MOD(extack, | ^~~~~~~~~~~~~~~~~~~~~~ include/linux/netlink.h:116:13: note: directive argument in the range [0, 65535] 116 | if (snprintf(__extack->_msg_buf, NETLINK_MAX_FMTMSG_LEN, \ | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 117 | "%s" fmt "%s", "", ##args, "") >= \ | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ include/linux/netlink.h:131:9: note: in expansion of macro 'NL_SET_ERR_MSG_FMT' 131 | NL_SET_ERR_MSG_FMT((extack), KBUILD_MODNAME ": " fmt, ##args) | ^~~~~~~~~~~~~~~~~~ drivers/net/ethernet/sfc/tc.c:634:33: note: in expansion of macro 'NL_SET_ERR_MSG_FMT_MOD' 634 | NL_SET_ERR_MSG_FMT_MOD(extack, | ^~~~~~~~~~~~~~~~~~~~~~ include/linux/netlink.h:116:13: note: 'snprintf' output between 102 and 112 bytes into a destination of size 80 116 | if (snprintf(__extack->_msg_buf, NETLINK_MAX_FMTMSG_LEN, \ | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 117 | "%s" fmt "%s", "", ##args, "") >= \ | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ include/linux/netlink.h:131:9: note: in expansion of macro 'NL_SET_ERR_MSG_FMT' 131 | NL_SET_ERR_MSG_FMT((extack), KBUILD_MODNAME ": " fmt, ##args) | ^~~~~~~~~~~~~~~~~~ drivers/net/ethernet/sfc/tc.c:634:33: note: in expansion of macro 'NL_SET_ERR_MSG_FMT_MOD' 634 | NL_SET_ERR_MSG_FMT_MOD(extack, | ^~~~~~~~~~~~~~~~~~~~~~ include/linux/netlink.h:116:13: warning: ' conflicts with existing pse...' directive output truncated writing 57 bytes into a region of size 39 [-Wformat-truncation=] 116 | if (snprintf(__extack->_msg_buf, NETLINK_MAX_FMTMSG_LEN, \ | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 117 | "%s" fmt "%s", "", ##args, "") >= \ | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ include/linux/netlink.h:131:9: note: in expansion of macro 'NL_SET_ERR_MSG_FMT' 131 | NL_SET_ERR_MSG_FMT((extack), KBUILD_MODNAME ": " fmt, ##args) | ^~~~~~~~~~~~~~~~~~ drivers/net/ethernet/sfc/tc.c:627:33: note: in expansion of macro 'NL_SET_ERR_MSG_FMT_MOD' 627 | NL_SET_ERR_MSG_FMT_MOD(extack, | ^~~~~~~~~~~~~~~~~~~~~~ include/linux/netlink.h:116:13: note: directive argument in the range [0, 255] 116 | if (snprintf(__extack->_msg_buf, NETLINK_MAX_FMTMSG_LEN, \ | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 117 | "%s" fmt "%s", "", ##args, "") >= \ | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ include/linux/netlink.h:131:9: note: in expansion of macro 'NL_SET_ERR_MSG_FMT' 131 | NL_SET_ERR_MSG_FMT((extack), KBUILD_MODNAME ": " fmt, ##args) | ^~~~~~~~~~~~~~~~~~ drivers/net/ethernet/sfc/tc.c:627:33: note: in expansion of macro 'NL_SET_ERR_MSG_FMT_MOD' 627 | NL_SET_ERR_MSG_FMT_MOD(extack, | ^~~~~~~~~~~~~~~~~~~~~~ include/linux/netlink.h:116:13: note: 'snprintf' output 103 bytes into a destination of size 80 116 | if (snprintf(__extack->_msg_buf, NETLINK_MAX_FMTMSG_LEN, \ | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 117 | "%s" fmt "%s", "", ##args, "") >= \ | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ include/linux/netlink.h:131:9: note: in expansion of macro 'NL_SET_ERR_MSG_FMT' 131 | NL_SET_ERR_MSG_FMT((extack), KBUILD_MODNAME ": " fmt, ##args) | ^~~~~~~~~~~~~~~~~~ drivers/net/ethernet/sfc/tc.c:627:33: note: in expansion of macro 'NL_SET_ERR_MSG_FMT_MOD' 627 | NL_SET_ERR_MSG_FMT_MOD(extack, | ^~~~~~~~~~~~~~~~~~~~~~ vim +116 include/linux/netlink.h 2d4bc93368f5a0d Johannes Berg 2017-04-12 107 51c352bdbcd23d7 Edward Cree 2022-10-18 108 /* We splice fmt with %s at each end even in the snprintf so that both calls 51c352bdbcd23d7 Edward Cree 2022-10-18 109 * can use the same string constant, avoiding its duplication in .ro 51c352bdbcd23d7 Edward Cree 2022-10-18 110 */ 51c352bdbcd23d7 Edward Cree 2022-10-18 111 #define NL_SET_ERR_MSG_FMT(extack, fmt, args...) do { \ 51c352bdbcd23d7 Edward Cree 2022-10-18 112 struct netlink_ext_ack *__extack = (extack); \ 51c352bdbcd23d7 Edward Cree 2022-10-18 113 \ 51c352bdbcd23d7 Edward Cree 2022-10-18 114 if (!__extack) \ 51c352bdbcd23d7 Edward Cree 2022-10-18 115 break; \ 51c352bdbcd23d7 Edward Cree 2022-10-18 @116 if (snprintf(__extack->_msg_buf, NETLINK_MAX_FMTMSG_LEN, \ 51c352bdbcd23d7 Edward Cree 2022-10-18 117 "%s" fmt "%s", "", ##args, "") >= \ 51c352bdbcd23d7 Edward Cree 2022-10-18 118 NETLINK_MAX_FMTMSG_LEN) \ 51c352bdbcd23d7 Edward Cree 2022-10-18 119 net_warn_ratelimited("%s" fmt "%s", "truncated extack: ", \ 51c352bdbcd23d7 Edward Cree 2022-10-18 120 ##args, "\n"); \ 51c352bdbcd23d7 Edward Cree 2022-10-18 121 \ 51c352bdbcd23d7 Edward Cree 2022-10-18 122 do_trace_netlink_extack(__extack->_msg_buf); \ 51c352bdbcd23d7 Edward Cree 2022-10-18 123 \ 51c352bdbcd23d7 Edward Cree 2022-10-18 124 __extack->_msg = __extack->_msg_buf; \ 51c352bdbcd23d7 Edward Cree 2022-10-18 125 } while (0) 51c352bdbcd23d7 Edward Cree 2022-10-18 126 :::::: The code at line 116 was first introduced by commit :::::: 51c352bdbcd23d7ce46b06c1e64c82754dc44044 netlink: add support for formatted extack messages :::::: TO: Edward Cree :::::: CC: Jakub Kicinski -- 0-DAY CI Kernel Test Service https://github.com/intel/lkp-tests/wiki