Received: by 2002:ac0:bc90:0:0:0:0:0 with SMTP id a16csp216393img; Mon, 18 Mar 2019 01:16:52 -0700 (PDT) X-Google-Smtp-Source: APXvYqzkoNq2Ri2V+9Snuf523tIe9CuBB6LKxbbh1EyT22cbJjm38LEkaNWOKRp5q/uAmolirY5d X-Received: by 2002:a17:902:1123:: with SMTP id d32mr18135348pla.16.1552897011976; Mon, 18 Mar 2019 01:16:51 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1552897011; cv=none; d=google.com; s=arc-20160816; b=04qeC66vVQUhey9Ll/cj1QxcAlxw0iLxV6uGsdbg6Y8bNt2hSp3ZQOmV7chiVvxaFI BMQO2cFdQYvZu0an1R9iSR3HekAhSfEYzhExwJjXRWpJLfCYMKDGwpiUQfWn42XZQElu bSQpMNOpKhUOfMb62dfqQ2yKajgGWo8gz5th24tvcQ/iiW1q3c24UlOCgt3EMCZE/2cO 0UZXlj7qv07R08PI41qLKd1yCBit0B4YFLyXQ55g6SvyNx+q00kUOY8vstijf6fEfvKB jf1qi6CdnztYTS9F3tGr9LIdNCU69F3oZCxXR5uAhrLGgAKQ6NBJlOa60RdLWtOpPF04 hM1g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:user-agent:references :message-id:in-reply-to:subject:cc:to:from:date; bh=CarKZm/zn7nvoTGM6PYaqA9D+JapP5K84Y6YQfjuF9Y=; b=RFCK4wR1OE9I9F3zJ6rTsNcjd++0i4GRoeYHh9SPcnx7fkVsmInQt0H0kXJ5D4xyUI emvOFl98aZtX21y3R5NFiZbnc7ImwX2uETU9habs1JfFOlU4XF984sb34Yq64op+Zbij 6sB7HuArzHSE+1T7SZLAxp6GoH9BXjSNuIVyQ/l+QhM5+cN4zqWvLhnB5BqMHKGkbtGZ k2d9IbO+LSbypEO57SMMdgJIRlUzegR1jSvBZU4b7jkxFgYkaw0ycxW/KdkiRDGPCMxR lHbmm9OlMynNMfg6QsTIZvJeOSZjFm2YxV8X8RIcaOoZT7W6RNP48m204sz7gGS4Voy2 8aoQ== 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id j11si8117913pgq.330.2019.03.18.01.16.35; Mon, 18 Mar 2019 01:16:51 -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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726786AbfCRIPy (ORCPT + 99 others); Mon, 18 Mar 2019 04:15:54 -0400 Received: from ja.ssi.bg ([178.16.129.10]:55306 "EHLO ja.ssi.bg" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S1726291AbfCRIPy (ORCPT ); Mon, 18 Mar 2019 04:15:54 -0400 Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by ja.ssi.bg (8.15.2/8.15.2) with ESMTP id x2I8EKDx008068; Mon, 18 Mar 2019 10:14:20 +0200 Date: Mon, 18 Mar 2019 10:14:20 +0200 (EET) From: Julian Anastasov To: Jacky Hu cc: kbuild test robot , kbuild-all@01.org, jacky.hu@walmart.com, jason.niesz@walmart.com, Wensong Zhang , Simon Horman , "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 In-Reply-To: <20190318032256.GA21124@i716> Message-ID: References: <20190317155200.16586-1-hengqing.hu@gmail.com> <201903181001.7czsRhlB%lkp@intel.com> <20190318032256.GA21124@i716> User-Agent: Alpine 2.21 (LFD 202 2017-01-01) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hello, On Mon, 18 Mar 2019, Jacky Hu wrote: > On Mon, Mar 18, 2019 at 10:10:20AM +0800, kbuild test robot wrote: > > 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 > > > > > 3207 atomic_read(&dest->tun_port)) || > > Should I change the type of tun_port from __be16 to u16? > Looks like kbuild bugs a lot on this. In struct ip_vs_dest you should use __be16 for tun_port and __u16 for tun_type and avoid any atomic_t usage. To test it with sparse: make C=2 CF="-D__CHECK_ENDIAN__" net/netfilter/ipvs/ And this is the only problem in v4 of the patch. Then may be you should wait when net-next opens again before submitting v5. Regards -- Julian Anastasov