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 57D4ECA1019 for ; Tue, 5 Sep 2023 21:48:05 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id DEB7F900008; Tue, 5 Sep 2023 17:48:04 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id D74C78E0014; Tue, 5 Sep 2023 17:48:04 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id BEE03900008; Tue, 5 Sep 2023 17:48:04 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0012.hostedemail.com [216.40.44.12]) by kanga.kvack.org (Postfix) with ESMTP id AA3098E0014 for ; Tue, 5 Sep 2023 17:48:04 -0400 (EDT) Received: from smtpin10.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay09.hostedemail.com (Postfix) with ESMTP id 5E44580B84 for ; Tue, 5 Sep 2023 21:48:04 +0000 (UTC) X-FDA: 81203882088.10.9DBA248 Received: from mgamail.intel.com (mgamail.intel.com [134.134.136.65]) by imf07.hostedemail.com (Postfix) with ESMTP id 9C53D40029 for ; Tue, 5 Sep 2023 21:48:00 +0000 (UTC) Authentication-Results: imf07.hostedemail.com; dkim=pass header.d=intel.com header.s=Intel header.b=JjFQtmzF; spf=pass (imf07.hostedemail.com: domain of lkp@intel.com designates 134.134.136.65 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=1693950481; 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=fQFFeWKBpXcASMHyYGjhEcVLeXmeGS061RZ2pMLA1Xc=; b=xatgMzXNNVCOvG1vk5tMQxmP5Y8n0Xkhy01oLwCYpK/51N1go181kPEHa52uUZMWoUct3o fkKxLz9t8j7lLAgz3kx6OD989ycbsJfy4KCTNe/bCfXLSt2nob7oJlXNmqHcar4q2vq4X7 HexAOraa5l5aT31Eqzx/FZfy3wOXc0E= ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1693950481; a=rsa-sha256; cv=none; b=bClxo1vZPGHYpYw2sW/Ql+A/K86auQywlV8Q0TVKPdiuZzYs8cDGJSwo0+5UWTitiSpD2c eHaQkFlGsYu5VCHxaK+g/ceTGmLQIUH/KVbzZmyIo9pNuYhm3zZN+mdsil2CfjezatrkOd WKoZxg1LhcS1fe4hFoEuftSLrch2/ic= ARC-Authentication-Results: i=1; imf07.hostedemail.com; dkim=pass header.d=intel.com header.s=Intel header.b=JjFQtmzF; spf=pass (imf07.hostedemail.com: domain of lkp@intel.com designates 134.134.136.65 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=1693950480; x=1725486480; h=date:from:to:cc:subject:message-id:mime-version; bh=0VysPjixuMPa7zlb/p8hJGQ90YC4qAm+a/KJMbXpyw0=; b=JjFQtmzFXqnyw47AiMKZyFpze1ws5j8hLNPB+e7tW0c94C/mynuQMIcq Le26SKR2TpcPF3jlyES4LgcKSBqN2cd6F0lLSjGwp26BQscb3SsU1l6YZ 5/Jqi5Ga9uYkUFltKdnVMc7w1GazS2k4BPTb+gZKY+JbdifZBH9C+MFYp 6sKYtqENOlf8jJSCgY9G+mVOeeM61wz1vOXjPEMdD63B7T407mDIfUcoy 1wIPo3+S9JD9J71I+g0Hai5VmWp3DNLSlcH0k+tIiKnOI04+Y8B41Wymt gVidvzkVgSB2VDmGaNPohbvF4kfYs2hbPFLngXGQLX7+13Xobu6PNJ2Mh A==; X-IronPort-AV: E=McAfee;i="6600,9927,10824"; a="380718151" X-IronPort-AV: E=Sophos;i="6.02,230,1688454000"; d="scan'208";a="380718151" Received: from orsmga006.jf.intel.com ([10.7.209.51]) by orsmga103.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 05 Sep 2023 14:47:59 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10824"; a="717999587" X-IronPort-AV: E=Sophos;i="6.02,230,1688454000"; d="scan'208";a="717999587" Received: from lkp-server02.sh.intel.com (HELO e0b2ea88afd5) ([10.239.97.151]) by orsmga006.jf.intel.com with ESMTP; 05 Sep 2023 14:47:57 -0700 Received: from kbuild by e0b2ea88afd5 with local (Exim 4.96) (envelope-from ) id 1qddtY-00027J-2X; Tue, 05 Sep 2023 21:47:46 +0000 Date: Wed, 6 Sep 2023 05:47:09 +0800 From: kernel test robot To: Masahiro Yamada Cc: oe-kbuild-all@lists.linux.dev, Linux Memory Management List Subject: [linux-next:master 13888/13985] include/linux/netlink.h:116:6: warning: ') out of range, only support mangle action on ipv6.hop_limit' directive output truncated writing 60 bytes into a region of size between 46 and 55 Message-ID: <202309060552.ukH1Mv8F-lkp@intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline X-Stat-Signature: 9fxduqjdqwoi3xf7tzuaxcrrbtf3diuk X-Rspamd-Server: rspam10 X-Rspamd-Queue-Id: 9C53D40029 X-Rspam-User: X-HE-Tag: 1693950480-219407 X-HE-Meta: U2FsdGVkX198AL22oeC4HH8SLz5VUajJpZxKr4fyH0UOaQPLs2ZV2pXvfftau7DxTQPPZmGzz9usSNpyZGjCw4BZaUbTZdYuSM7+DW3BnctH/Hl0tolyn9B2YHoX8KssG7qXJMYXmI5JRB03gjxFUmcwCJCo0DxnytJrGWO4KMlCDt2nKkGWxFxWoGOPb2WB4L8/YHDHVXgZnQypx/To8P3/tmOQiegjjsIFqIrUrhJGa5e2OxqtpH2u9Eq7Rm3Ta3Vm4tCdWlYTmxKNLmhhHtml+YhWPwVY9lPsHZL0W48LAJOg9gnwgeMxned9g1+dFE0x4ppM4MHA1mdyDPcG7WC8cXMhrQ92kaibss31FRtcSBGX1PQ0EMWcIIvoRFHJLwBbmhQgplNPCV5GtlBRlzbXrqgHiy9n03r7tg1JvRdGTEh+nroSLs9cAe32uvDJx4ZOHv2W/Y82Zs3KTXOGcwCK/DNp8Bsx6beJ3T24GtLg9YHCZz6aZqE80bUdcvGJ/9YD65HUmrxWxtq9yETSa4T2CJyIxb88aasqSu7IgMMEyfe7VxK0sAKz1UcHQmlvklgZ0U8mP5k+Vvx1H6FwHMCpqkJf9uEeE96CvvuXO5N9LYs2/TZDF7CA1VlmLQ5nTt/ZdUUbJoQZRm1l4evZx22l/qfiYRfNZHJRBmFgUgIkFFrbFDsMPX3g+LguvByX9x7seTFFAXqQDzaRwnvMP7xHgu5kGeFbeZ7GJZs8JFsLhCusCzmzqU19Ydkwu+0GSVmN1hlPPtuEvk3IBBehYcr0GoVxmlFKFN0WE7QMjU0MN2EDUzTLFrHqW/Fat9HcPX1HBF4h2adxkfcWG5dBVS7MFUDHznV80ijnOd7GtsG18mRjl7MqekBb9E3mYUAI6Rks6b3r32MklI1mwk0WLiMKojhbHy3HPIXgafRcsolWqkYsXnaK8oSTiO17lRACYGLavl7Qm83iy8aVcLr l5eLT9WJ fESp6c+ZESAWdHdvUL8wnL/oUgk0buRuMNKdA2jW5+qKG0qaqAk/zSdLNnoBJRKvkCFBfHnYFPK50oFmyGJC5/6COq7CBtu6ryOQjQQHNpPQve2Nw4t+nAPpWwR78KFgpAI3/P5is6JW9jDntLa995E92KY2hl2OPoWhuji06pF+g9KwaLvOwhmXJaILCfsrptUQ2rxipix3LrXPHIwm8zUfCHEL9r6xxybZEjICVmCShZY8MJZfJHk2GLBDDf9yna9XdpGQxnkWjeRVqeH8aNi69zftVhEvscqOGPsU9i7nuUF6sLw2w6/XcMBtUuFge7Z3jv7FRMRKUG8ik5R9l8WB9g9qJ2N0fhWSnNbj7uQ7mftSf/jKOWEBV3n8oQ9YzW9gGBzhQ12WNut7ZutKZ+UpfbToPcQ4clCWVQxPitYkuFjVZp2pLmX7CBOvqKBRAH02Is17ihd+Jj76SEOo1OHECZR+Go8VT6y7S 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: c50216cfa084d5eb67dc10e646a3283da1595bb6 commit: 6a5402d10e6e764e9341c7a57ee1e9cafb31a789 [13888/13985] Merge branch 'for-next' of git://git.kernel.org/pub/scm/linux/kernel/git/masahiroy/linux-kbuild.git config: x86_64-randconfig-014-20230906 (https://download.01.org/0day-ci/archive/20230906/202309060552.ukH1Mv8F-lkp@intel.com/config) compiler: gcc-7 (Ubuntu 7.5.0-6ubuntu2) 7.5.0 reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20230906/202309060552.ukH1Mv8F-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/202309060552.ukH1Mv8F-lkp@intel.com/ All warnings (new ones prefixed by >>): include/linux/netlink.h:116:6: warning: ' conflicts with existing pseudo(MASK) entry for TOS mask ' directive output truncated writing 57 bytes into a region of size between 33 and 39 [-Wformat-truncation=] if (snprintf(__extack->_msg_buf, NETLINK_MAX_FMTMSG_LEN, \ ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ "%s" fmt "%s", "", ##args, "") >= \ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ include/linux/netlink.h:131:2: note: in expansion of macro 'NL_SET_ERR_MSG_FMT' NL_SET_ERR_MSG_FMT((extack), KBUILD_MODNAME ": " fmt, ##args) ^~~~~~~~~~~~~~~~~~ drivers/net/ethernet/sfc/tc.c:627:5: note: in expansion of macro 'NL_SET_ERR_MSG_FMT_MOD' NL_SET_ERR_MSG_FMT_MOD(extack, ^~~~~~~~~~~~~~~~~~~~~~ include/linux/netlink.h:116:6: note: directive argument in the range [0, 2147483647] if (snprintf(__extack->_msg_buf, NETLINK_MAX_FMTMSG_LEN, \ ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ "%s" fmt "%s", "", ##args, "") >= \ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ include/linux/netlink.h:131:2: note: in expansion of macro 'NL_SET_ERR_MSG_FMT' NL_SET_ERR_MSG_FMT((extack), KBUILD_MODNAME ": " fmt, ##args) ^~~~~~~~~~~~~~~~~~ drivers/net/ethernet/sfc/tc.c:627:5: note: in expansion of macro 'NL_SET_ERR_MSG_FMT_MOD' NL_SET_ERR_MSG_FMT_MOD(extack, ^~~~~~~~~~~~~~~~~~~~~~ include/linux/netlink.h:116:6: note: 'snprintf' output between 103 and 115 bytes into a destination of size 80 if (snprintf(__extack->_msg_buf, NETLINK_MAX_FMTMSG_LEN, \ ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ "%s" fmt "%s", "", ##args, "") >= \ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ include/linux/netlink.h:131:2: note: in expansion of macro 'NL_SET_ERR_MSG_FMT' NL_SET_ERR_MSG_FMT((extack), KBUILD_MODNAME ": " fmt, ##args) ^~~~~~~~~~~~~~~~~~ drivers/net/ethernet/sfc/tc.c:627:5: note: in expansion of macro 'NL_SET_ERR_MSG_FMT_MOD' NL_SET_ERR_MSG_FMT_MOD(extack, ^~~~~~~~~~~~~~~~~~~~~~ include/linux/netlink.h:116:6: warning: ' conflicts with existing pseudo(MASK) entry for mask ' directive output truncated writing 53 bytes into a region of size between 24 and 33 [-Wformat-truncation=] if (snprintf(__extack->_msg_buf, NETLINK_MAX_FMTMSG_LEN, \ ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ "%s" fmt "%s", "", ##args, "") >= \ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ include/linux/netlink.h:131:2: note: in expansion of macro 'NL_SET_ERR_MSG_FMT' NL_SET_ERR_MSG_FMT((extack), KBUILD_MODNAME ": " fmt, ##args) ^~~~~~~~~~~~~~~~~~ drivers/net/ethernet/sfc/tc.c:634:5: note: in expansion of macro 'NL_SET_ERR_MSG_FMT_MOD' NL_SET_ERR_MSG_FMT_MOD(extack, ^~~~~~~~~~~~~~~~~~~~~~ include/linux/netlink.h:116:6: note: directive argument in the range [0, 2147483647] if (snprintf(__extack->_msg_buf, NETLINK_MAX_FMTMSG_LEN, \ ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ "%s" fmt "%s", "", ##args, "") >= \ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ include/linux/netlink.h:131:2: note: in expansion of macro 'NL_SET_ERR_MSG_FMT' NL_SET_ERR_MSG_FMT((extack), KBUILD_MODNAME ": " fmt, ##args) ^~~~~~~~~~~~~~~~~~ drivers/net/ethernet/sfc/tc.c:634:5: note: in expansion of macro 'NL_SET_ERR_MSG_FMT_MOD' NL_SET_ERR_MSG_FMT_MOD(extack, ^~~~~~~~~~~~~~~~~~~~~~ include/linux/netlink.h:116:6: note: 'snprintf' output between 102 and 120 bytes into a destination of size 80 if (snprintf(__extack->_msg_buf, NETLINK_MAX_FMTMSG_LEN, \ ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ "%s" fmt "%s", "", ##args, "") >= \ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ include/linux/netlink.h:131:2: note: in expansion of macro 'NL_SET_ERR_MSG_FMT' NL_SET_ERR_MSG_FMT((extack), KBUILD_MODNAME ": " fmt, ##args) ^~~~~~~~~~~~~~~~~~ drivers/net/ethernet/sfc/tc.c:634:5: note: in expansion of macro 'NL_SET_ERR_MSG_FMT_MOD' NL_SET_ERR_MSG_FMT_MOD(extack, ^~~~~~~~~~~~~~~~~~~~~~ drivers/net/ethernet/sfc/tc.c: In function 'efx_tc_mangle': include/linux/netlink.h:116:6: warning: 'sfc: Unsupported: only support mangle ipv4.ttl when we have an exact match on ttl, mask used for match (' directive output truncated writing 104 bytes into a region of size 80 [-Wformat-truncation=] if (snprintf(__extack->_msg_buf, NETLINK_MAX_FMTMSG_LEN, \ ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ "%s" fmt "%s", "", ##args, "") >= \ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ include/linux/netlink.h:131:2: note: in expansion of macro 'NL_SET_ERR_MSG_FMT' NL_SET_ERR_MSG_FMT((extack), KBUILD_MODNAME ": " fmt, ##args) ^~~~~~~~~~~~~~~~~~ drivers/net/ethernet/sfc/tc.c:1223:5: note: in expansion of macro 'NL_SET_ERR_MSG_FMT_MOD' NL_SET_ERR_MSG_FMT_MOD(extack, ^~~~~~~~~~~~~~~~~~~~~~ include/linux/netlink.h:116:6: note: directive argument in the range [0, 254] if (snprintf(__extack->_msg_buf, NETLINK_MAX_FMTMSG_LEN, \ ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ "%s" fmt "%s", "", ##args, "") >= \ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ include/linux/netlink.h:131:2: note: in expansion of macro 'NL_SET_ERR_MSG_FMT' NL_SET_ERR_MSG_FMT((extack), KBUILD_MODNAME ": " fmt, ##args) ^~~~~~~~~~~~~~~~~~ drivers/net/ethernet/sfc/tc.c:1223:5: note: in expansion of macro 'NL_SET_ERR_MSG_FMT_MOD' NL_SET_ERR_MSG_FMT_MOD(extack, ^~~~~~~~~~~~~~~~~~~~~~ include/linux/netlink.h:116:6: note: 'snprintf' output between 107 and 110 bytes into a destination of size 80 if (snprintf(__extack->_msg_buf, NETLINK_MAX_FMTMSG_LEN, \ ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ "%s" fmt "%s", "", ##args, "") >= \ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ include/linux/netlink.h:131:2: note: in expansion of macro 'NL_SET_ERR_MSG_FMT' NL_SET_ERR_MSG_FMT((extack), KBUILD_MODNAME ": " fmt, ##args) ^~~~~~~~~~~~~~~~~~ drivers/net/ethernet/sfc/tc.c:1223:5: note: in expansion of macro 'NL_SET_ERR_MSG_FMT_MOD' NL_SET_ERR_MSG_FMT_MOD(extack, ^~~~~~~~~~~~~~~~~~~~~~ >> include/linux/netlink.h:116:6: warning: ') out of range, only support mangle action on ipv6.hop_limit' directive output truncated writing 60 bytes into a region of size between 46 and 55 [-Wformat-truncation=] if (snprintf(__extack->_msg_buf, NETLINK_MAX_FMTMSG_LEN, \ ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ "%s" fmt "%s", "", ##args, "") >= \ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ include/linux/netlink.h:131:2: note: in expansion of macro 'NL_SET_ERR_MSG_FMT' NL_SET_ERR_MSG_FMT((extack), KBUILD_MODNAME ": " fmt, ##args) ^~~~~~~~~~~~~~~~~~ drivers/net/ethernet/sfc/tc.c:1271:5: note: in expansion of macro 'NL_SET_ERR_MSG_FMT_MOD' NL_SET_ERR_MSG_FMT_MOD(extack, ^~~~~~~~~~~~~~~~~~~~~~ include/linux/netlink.h:116:6: note: 'snprintf' output between 86 and 95 bytes into a destination of size 80 if (snprintf(__extack->_msg_buf, NETLINK_MAX_FMTMSG_LEN, \ ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ "%s" fmt "%s", "", ##args, "") >= \ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ include/linux/netlink.h:131:2: note: in expansion of macro 'NL_SET_ERR_MSG_FMT' NL_SET_ERR_MSG_FMT((extack), KBUILD_MODNAME ": " fmt, ##args) ^~~~~~~~~~~~~~~~~~ drivers/net/ethernet/sfc/tc.c:1271:5: note: in expansion of macro 'NL_SET_ERR_MSG_FMT_MOD' NL_SET_ERR_MSG_FMT_MOD(extack, ^~~~~~~~~~~~~~~~~~~~~~ >> include/linux/netlink.h:116:6: warning: 'sfc: Unsupported: only support mangle ipv6.hop_limit when we have an exact match on ttl, mask used for match (' directive output truncated writing 110 bytes into a region of size 80 [-Wformat-truncation=] if (snprintf(__extack->_msg_buf, NETLINK_MAX_FMTMSG_LEN, \ ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ "%s" fmt "%s", "", ##args, "") >= \ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ include/linux/netlink.h:131:2: note: in expansion of macro 'NL_SET_ERR_MSG_FMT' NL_SET_ERR_MSG_FMT((extack), KBUILD_MODNAME ": " fmt, ##args) ^~~~~~~~~~~~~~~~~~ drivers/net/ethernet/sfc/tc.c:1282:5: note: in expansion of macro 'NL_SET_ERR_MSG_FMT_MOD' NL_SET_ERR_MSG_FMT_MOD(extack, ^~~~~~~~~~~~~~~~~~~~~~ include/linux/netlink.h:116:6: note: directive argument in the range [0, 254] if (snprintf(__extack->_msg_buf, NETLINK_MAX_FMTMSG_LEN, \ ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ "%s" fmt "%s", "", ##args, "") >= \ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ include/linux/netlink.h:131:2: note: in expansion of macro 'NL_SET_ERR_MSG_FMT' NL_SET_ERR_MSG_FMT((extack), KBUILD_MODNAME ": " fmt, ##args) ^~~~~~~~~~~~~~~~~~ drivers/net/ethernet/sfc/tc.c:1282:5: note: in expansion of macro 'NL_SET_ERR_MSG_FMT_MOD' NL_SET_ERR_MSG_FMT_MOD(extack, ^~~~~~~~~~~~~~~~~~~~~~ include/linux/netlink.h:116:6: note: 'snprintf' output between 113 and 116 bytes into a destination of size 80 if (snprintf(__extack->_msg_buf, NETLINK_MAX_FMTMSG_LEN, \ ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ "%s" fmt "%s", "", ##args, "") >= \ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ include/linux/netlink.h:131:2: note: in expansion of macro 'NL_SET_ERR_MSG_FMT' NL_SET_ERR_MSG_FMT((extack), KBUILD_MODNAME ": " fmt, ##args) ^~~~~~~~~~~~~~~~~~ drivers/net/ethernet/sfc/tc.c:1282:5: note: in expansion of macro 'NL_SET_ERR_MSG_FMT_MOD' NL_SET_ERR_MSG_FMT_MOD(extack, ^~~~~~~~~~~~~~~~~~~~~~ vim +116 include/linux/netlink.h 2d4bc93368f5a0 Johannes Berg 2017-04-12 107 51c352bdbcd23d Edward Cree 2022-10-18 108 /* We splice fmt with %s at each end even in the snprintf so that both calls 51c352bdbcd23d Edward Cree 2022-10-18 109 * can use the same string constant, avoiding its duplication in .ro 51c352bdbcd23d Edward Cree 2022-10-18 110 */ 51c352bdbcd23d Edward Cree 2022-10-18 111 #define NL_SET_ERR_MSG_FMT(extack, fmt, args...) do { \ 51c352bdbcd23d Edward Cree 2022-10-18 112 struct netlink_ext_ack *__extack = (extack); \ 51c352bdbcd23d Edward Cree 2022-10-18 113 \ 51c352bdbcd23d Edward Cree 2022-10-18 114 if (!__extack) \ 51c352bdbcd23d Edward Cree 2022-10-18 115 break; \ 51c352bdbcd23d Edward Cree 2022-10-18 @116 if (snprintf(__extack->_msg_buf, NETLINK_MAX_FMTMSG_LEN, \ 51c352bdbcd23d Edward Cree 2022-10-18 117 "%s" fmt "%s", "", ##args, "") >= \ 51c352bdbcd23d Edward Cree 2022-10-18 118 NETLINK_MAX_FMTMSG_LEN) \ 51c352bdbcd23d Edward Cree 2022-10-18 119 net_warn_ratelimited("%s" fmt "%s", "truncated extack: ", \ 51c352bdbcd23d Edward Cree 2022-10-18 120 ##args, "\n"); \ 51c352bdbcd23d Edward Cree 2022-10-18 121 \ 51c352bdbcd23d Edward Cree 2022-10-18 122 do_trace_netlink_extack(__extack->_msg_buf); \ 51c352bdbcd23d Edward Cree 2022-10-18 123 \ 51c352bdbcd23d Edward Cree 2022-10-18 124 __extack->_msg = __extack->_msg_buf; \ 51c352bdbcd23d Edward Cree 2022-10-18 125 } while (0) 51c352bdbcd23d 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