Received: by 2002:ac0:bc90:0:0:0:0:0 with SMTP id a16csp25494img; Sun, 17 Mar 2019 19:13:22 -0700 (PDT) X-Google-Smtp-Source: APXvYqx2L2h9oOTqc6EsVn4bTGXZXvNxkZeq77tndslSPxH3b0h4/LuiKgC8g0JsuBU3AB6V+/WL X-Received: by 2002:a62:f598:: with SMTP id b24mr16732426pfm.72.1552875202713; Sun, 17 Mar 2019 19:13:22 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1552875202; cv=none; d=google.com; s=arc-20160816; b=swsK0/0Um+dNljELmUpT6vi8otpijnAOX+3vR0DHxvvDowSr53bfF9khjKbC+Xfl+k evl8XRcqprj50NjIIwcOzMXHwMRgrwVXsHYHNpRfDgG/x2b/YpDufd2qIFcGQhr+EaEe COnwvm5Ph1etb3mq26cuAjzjyr4enqKqhIIX7xkqFAqGMH+aYZqueA3z9ZUo+GNpizFt JCRLjIxR630Hbei/ABRwstmfs8jxZpcPLIzP1GFK0rBHGyKOuDia8x/dYlYKTCNuHfYR aaICgQkT+K2CZpKyFzQWPKEJjbdlwQOvw6ladWoY7yXn4W3jvNqYBe6H7pg5TJJZJtlP 18ow== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date; bh=dSU1v9ArVSV7dMdKPmqCgePUz8ZQD8p1ZSkr2EP+9Mg=; b=kwSPmi2ZWjaT2u+1OHa6pT/53UsHDRVP3NtpZoqY1wdVcA1HZ4TfX0GbhFoFSnmnc1 NRT8SRiJGy8SJd6pvpdYSSzVP8ZcB0yGtpQmONLpZjAACphLYvKAAS8zPAAHCelc4kLD D9XW8gLRrWfuhbluRqpb7b4/eKNcaFrYAVijKje6iwptljV6doW79Eq/SSTZNnJXYbjC aceaKi62XJ8cP+hThRfGtEKqhTk8R0DFlXOwqAg1Eigo1OAEB8ka3XfL7hYgrqkAdbrg xgn5gqSEVHrEwYdaW0ryy/Gm79dN/Apwsts49ISgtPNUWAcVlYNlfu1xg+81zesehOyP VSFg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id q5si8130087pgc.425.2019.03.17.19.12.38; Sun, 17 Mar 2019 19:13:22 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727566AbfCRCKt (ORCPT + 99 others); Sun, 17 Mar 2019 22:10:49 -0400 Received: from mga01.intel.com ([192.55.52.88]:41962 "EHLO mga01.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726906AbfCRCKs (ORCPT ); Sun, 17 Mar 2019 22:10:48 -0400 X-Amp-Result: UNKNOWN X-Amp-Original-Verdict: FILE UNKNOWN X-Amp-File-Uploaded: False Received: from fmsmga002.fm.intel.com ([10.253.24.26]) by fmsmga101.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 17 Mar 2019 19:10:48 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.58,491,1544515200"; d="scan'208";a="152578102" Received: from lkp-server01.sh.intel.com (HELO lkp-server01) ([10.239.97.150]) by fmsmga002.fm.intel.com with ESMTP; 17 Mar 2019 19:10:47 -0700 Received: from kbuild by lkp-server01 with local (Exim 4.89) (envelope-from ) id 1h5hjg-0009Ya-TU; Mon, 18 Mar 2019 10:10:44 +0800 Date: Mon, 18 Mar 2019 10:10:20 +0800 From: kbuild test robot To: Jacky Hu Cc: kbuild-all@01.org, hengqing.hu@gmail.com, jacky.hu@walmart.com, jason.niesz@walmart.com, Wensong Zhang , Simon Horman , Julian Anastasov , "David S. Miller" , Alexey Kuznetsov , Hideaki YOSHIFUJI , Pablo Neira Ayuso , Jozsef Kadlecsik , Florian Westphal , netdev@vger.kernel.org, lvs-devel@vger.kernel.org, linux-kernel@vger.kernel.org, netfilter-devel@vger.kernel.org, coreteam@netfilter.org Subject: Re: [PATCH v4] ipvs: allow tunneling with gue encapsulation Message-ID: <201903181001.7czsRhlB%lkp@intel.com> References: <20190317155200.16586-1-hengqing.hu@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20190317155200.16586-1-hengqing.hu@gmail.com> User-Agent: Mutt/1.5.23 (2014-03-12) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Jacky, Thank you for the patch! Perhaps something to improve: [auto build test WARNING on ipvs-next/master] [also build test WARNING on v5.1-rc1 next-20190306] [if your patch is applied to the wrong git tree, please drop us a note to help improve the system] url: https://github.com/0day-ci/linux/commits/Jacky-Hu/ipvs-allow-tunneling-with-gue-encapsulation/20190318-070156 base: https://git.kernel.org/pub/scm/linux/kernel/git/horms/ipvs-next.git master reproduce: # apt-get install sparse make ARCH=x86_64 allmodconfig make C=1 CF='-fdiagnostic-prefix -D__CHECK_ENDIAN__' sparse warnings: (new ones prefixed by >>) net/netfilter/ipvs/ip_vs_ctl.c:835:42: sparse: incorrect type in argument 2 (different base types) @@ expected int [signed] i @@ got restricted __be1int [signed] i @@ net/netfilter/ipvs/ip_vs_ctl.c:835:42: expected int [signed] i net/netfilter/ipvs/ip_vs_ctl.c:835:42: got restricted __be16 [usertype] tun_port net/netfilter/ipvs/ip_vs_ctl.c:1197:44: sparse: expression using sizeof(void) >> net/netfilter/ipvs/ip_vs_ctl.c:3207:37: sparse: incorrect type in argument 3 (different base types) @@ expected restricted __be16 [usertype] value @@ got e] value @@ net/netfilter/ipvs/ip_vs_ctl.c:3207:37: expected restricted __be16 [usertype] value net/netfilter/ipvs/ip_vs_ctl.c:3207:37: got int net/netfilter/ipvs/ip_vs_ctl.c:1313:27: sparse: dereference of noderef expression vim +3207 net/netfilter/ipvs/ip_vs_ctl.c 3187 3188 static int ip_vs_genl_fill_dest(struct sk_buff *skb, struct ip_vs_dest *dest) 3189 { 3190 struct nlattr *nl_dest; 3191 struct ip_vs_kstats kstats; 3192 3193 nl_dest = nla_nest_start(skb, IPVS_CMD_ATTR_DEST); 3194 if (!nl_dest) 3195 return -EMSGSIZE; 3196 3197 if (nla_put(skb, IPVS_DEST_ATTR_ADDR, sizeof(dest->addr), &dest->addr) || 3198 nla_put_be16(skb, IPVS_DEST_ATTR_PORT, dest->port) || 3199 nla_put_u32(skb, IPVS_DEST_ATTR_FWD_METHOD, 3200 (atomic_read(&dest->conn_flags) & 3201 IP_VS_CONN_F_FWD_MASK)) || 3202 nla_put_u32(skb, IPVS_DEST_ATTR_WEIGHT, 3203 atomic_read(&dest->weight)) || 3204 nla_put_u8(skb, IPVS_DEST_ATTR_TUN_TYPE, 3205 atomic_read(&dest->tun_type)) || 3206 nla_put_be16(skb, IPVS_DEST_ATTR_TUN_PORT, > 3207 atomic_read(&dest->tun_port)) || 3208 nla_put_u32(skb, IPVS_DEST_ATTR_U_THRESH, dest->u_threshold) || 3209 nla_put_u32(skb, IPVS_DEST_ATTR_L_THRESH, dest->l_threshold) || 3210 nla_put_u32(skb, IPVS_DEST_ATTR_ACTIVE_CONNS, 3211 atomic_read(&dest->activeconns)) || 3212 nla_put_u32(skb, IPVS_DEST_ATTR_INACT_CONNS, 3213 atomic_read(&dest->inactconns)) || 3214 nla_put_u32(skb, IPVS_DEST_ATTR_PERSIST_CONNS, 3215 atomic_read(&dest->persistconns)) || 3216 nla_put_u16(skb, IPVS_DEST_ATTR_ADDR_FAMILY, dest->af)) 3217 goto nla_put_failure; 3218 ip_vs_copy_stats(&kstats, &dest->stats); 3219 if (ip_vs_genl_fill_stats(skb, IPVS_DEST_ATTR_STATS, &kstats)) 3220 goto nla_put_failure; 3221 if (ip_vs_genl_fill_stats64(skb, IPVS_DEST_ATTR_STATS64, &kstats)) 3222 goto nla_put_failure; 3223 3224 nla_nest_end(skb, nl_dest); 3225 3226 return 0; 3227 3228 nla_put_failure: 3229 nla_nest_cancel(skb, nl_dest); 3230 return -EMSGSIZE; 3231 } 3232 --- 0-DAY kernel test infrastructure Open Source Technology Center https://lists.01.org/pipermail/kbuild-all Intel Corporation