Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp3204142imu; Mon, 17 Dec 2018 15:26:48 -0800 (PST) X-Google-Smtp-Source: AFSGD/V83BpAm/1lPwX5kMJ+4ZCAW6omEm7QXMlWSLJFtYjWVimUPZRI+tkFiacrWo7uJSYNzF49 X-Received: by 2002:a62:6204:: with SMTP id w4mr14708180pfb.5.1545089208591; Mon, 17 Dec 2018 15:26:48 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1545089208; cv=none; d=google.com; s=arc-20160816; b=xKZY0emLD+w2apTDAbmgCjT2oH6Mr2/DGadwkdOsHVzql9DRrvfdk1WRZ/HbyEsy/S RxNrpDD3vByH8jsycJmDnmcJcyTyj/vBSwdqHmq5fmZSDp7mzA6vidLYHh9sYcJSGcBZ nf06tocI30tZN5oiMRxkk8Dp7Fk0M2g+5aemYzMfeOdOlnc0vRkWUG5BVuDQxg0QoEl5 TygFvwNsyfVxBQCO42qq+Gs5WZ4dVGZkdXdprJSqC+E9zYGUcgFx2nGI7H4m73H4bs6d FTmvxR8ic7xVh43go474jLvIWarw3lrHDEEd3V08Efm2qJN9KfKmzeDE7uGd/CECtrZB yw0Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :organization:references:in-reply-to:message-id:subject:cc:to:from :date; bh=AHgifjR6b7D3MPR22TAMhKAnGJNaNTgcfXOWOjIyxRw=; b=qOjt+e3/7t0nO1UvZi9BhhTMXWrDvdUtUrmFMeJV8Ux+ckCnEFcxbpcYaQZHfVdgt4 SxD9cm5YdduuyGvJitokFvsrL4RPua/6uJWdlaceAFXueyaPYt7ITnM8/3/FUNOyFxeX q4dMfLwJycKDwZEXGyJbzfaFL1+LOcfc1td38nzeHd4PB5eyXszu/+uA7+/QoR8T/EHi dG1FEPXbIV+CiaMqegcj4W8Mry3CsWwNI4hv+jhwselWEtJo8P30MUHilANbYxtdpbYS 5OYVXyIilvsgRnOjCR1HKIohtWUPh0jJg6HWRA8IqmpMEkOQjGdAuWcmwCFF5FHuq2Z+ N/Zw== 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=redhat.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id x74si12801467pfe.23.2018.12.17.15.26.34; Mon, 17 Dec 2018 15:26:48 -0800 (PST) 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=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726861AbeLQXSi (ORCPT + 99 others); Mon, 17 Dec 2018 18:18:38 -0500 Received: from mx1.redhat.com ([209.132.183.28]:33798 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726738AbeLQXSh (ORCPT ); Mon, 17 Dec 2018 18:18:37 -0500 Received: from smtp.corp.redhat.com (int-mx08.intmail.prod.int.phx2.redhat.com [10.5.11.23]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id 06CFE89AD3; Mon, 17 Dec 2018 23:18:37 +0000 (UTC) Received: from localhost (ovpn-200-20.brq.redhat.com [10.40.200.20]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 6C5A619741; Mon, 17 Dec 2018 23:18:33 +0000 (UTC) Date: Tue, 18 Dec 2018 00:18:28 +0100 From: Stefano Brivio To: Dmitry Vyukov Cc: Eric Dumazet , Arjan van de Ven , "Paul E. McKenney" , syzbot , Andrew Morton , Josh Triplett , LKML , Ingo Molnar , syzkaller-bugs , netdev Subject: Re: WARNING in __rcu_read_unlock Message-ID: <20181218001828.49cea463@redhat.com> In-Reply-To: References: <0000000000005e47a2057d0edc49@google.com> <20181216190412.GE4170@linux.ibm.com> <20181217112916.GG4170@linux.ibm.com> <1583d5fc-34bf-3a81-363d-01a1085a7363@linux.intel.com> <20641819-e4fb-f3bd-34c8-c68106cccd0e@gmail.com> <20181217162421.6d636ee5@redhat.com> Organization: Red Hat MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Scanned-By: MIMEDefang 2.84 on 10.5.11.23 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.26]); Mon, 17 Dec 2018 23:18:37 +0000 (UTC) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, 17 Dec 2018 16:53:36 +0100 Dmitry Vyukov wrote: > On Mon, Dec 17, 2018 at 4:24 PM Stefano Brivio wrote: > > > > On Mon, 17 Dec 2018 06:57:35 -0800 > > Eric Dumazet wrote: > > > > > Might be cause by commit b8a51b38e4d4dec3e379d52c0fe1a66827f7cf1e > > > fou, fou6: ICMP error handlers for FoU and GUE > > > > This: > > > > diff --git a/net/ipv4/fou.c b/net/ipv4/fou.c > > index 0d0ad19ecb87..20a6de26d146 100644 > > --- a/net/ipv4/fou.c > > +++ b/net/ipv4/fou.c > > @@ -1008,6 +1008,9 @@ static int gue_err_proto_handler(int proto, struct sk_buff *skb, u32 info) > > { > > const struct net_protocol *ipprot = rcu_dereference(inet_protos[proto]); > > > > + if (ipprot == IPPROTO_UDP) > > + return -EINVAL; > > + > > if (ipprot && ipprot->err_handler) { > > if (!ipprot->err_handler(skb, info)) > > return 0; > > > > should fix the issue, but I still have to run tests and make sure we > > don't hit similar cases. > > Please don't forget to add a regression test for it too ;) Where would you suggest to add this? The only selftest that goes through this path currently is net/pmtu.sh, but as configuration of an actual UDP-in-GUE tunnel is currently not supported, I would really need to forge that specific packet, so that doesn't seem to be a good fit. Won't syzbot add this to some list of reproducers that are checked in the future? -- Stefano