Netdev List
 help / color / mirror / Atom feed
From: Tobias Hommel <netdev-list@genoetigt.de>
To: Kristian Evensen <kristian.evensen@gmail.com>
Cc: Steffen Klassert <steffen.klassert@secunet.com>,
	Markus Berner <Markus.Berner@gmx.ch>,
	Network Development <netdev@vger.kernel.org>,
	Florian Westphal <fw@strlen.de>, Wolfgang Walter <linux@stwm.de>,
	Wei Wang <weiwan@google.com>
Subject: Re: BUG: 4.14.11 unable to handle kernel NULL pointer dereference in xfrm_lookup
Date: Thu, 6 Sep 2018 15:03:28 +0200	[thread overview]
Message-ID: <20180906130328.fdmhpfk475gywgan@arbeitstier> (raw)
In-Reply-To: <CAKfDRXjMYtAFKkv9+S-=_Rug3w1AiKeu0eRyEDBhXvau_91UaQ@mail.gmail.com>

Hey guys,

I finally got some time to do a bisect and we narrowed the problem down to:

b838d5e1c5b6e57b10ec8af2268824041e3ea911 is the first bad commit
commit b838d5e1c5b6e57b10ec8af2268824041e3ea911
Author: Wei Wang <weiwan@google.com>
Date:   Sat Jun 17 10:42:32 2017 -0700

    ipv4: mark DST_NOGC and remove the operation of dst_free()

    With the previous preparation patches, we are ready to get rid of the
    dst gc operation in ipv4 code and release dst based on refcnt only.
    So this patch adds DST_NOGC flag for all IPv4 dst and remove the calls
    to dst_free().
    At this point, all dst created in ipv4 code do not use the dst gc
    anymore and will be destroyed at the point when refcnt drops to 0.

    Signed-off-by: Wei Wang <weiwan@google.com>
    Acked-by: Martin KaFai Lau <kafai@fb.com>
    Signed-off-by: David S. Miller <davem@davemloft.net>

:040000 040000 9b7e7fb641de6531fc7887473ca47ef7cb6a11da 831a73b71d3df1755f3e24c0d3c86d7a93fd55e2 M      net


I also saw there was a new thread some days ago reporting a similar problem. So
I put you guys (Wolfgang, Wei) into Cc.

Tobi

On Thu, Jun 14, 2018 at 10:38:01AM +0200, Kristian Evensen wrote:
> Hello,
> 
> On Tue, Jun 12, 2018 at 10:29 AM, Kristian Evensen
> <kristian.evensen@gmail.com> wrote:
> > Thanks for spending time on this. I will see what I can manage in
> > terms of a bisect. Our last good kernel was 4.9, so at least it
> > narrows the scope down a bit compared to 4.4 or 4.1.
> 
> I hope we might have got somewhere. While looking more into ipsec and
> 4.14, we noticed large performance regressions (-~20%) on some
> low-powered devices we are also using. We quickly identified the
> removal of the flow cache as the "culprit", and the performance
> regression is discussed in the netdev-thread for the removal of the
> cache ("xfrm: remove flow cache"). For the time being and in order to
> restore the performance, we have reverted the patch series removing
> the flow cache. When running our tests (on the APU) after the revert,
> we no longer see the crash. Before the revert, the APU would always
> crash within some hours. After the revert, our tests have been running
> for 24 hours+. Our test is quite basic, we establish 1, 2, 3 ...,  50
> tunnels and then run iperf on all tunnels in parallel. The tunnels are
> teared down between each iteration.
> 
> We are still running the test and will keep doing so, but I thought I
> should share this finding in case it can help in fixing the error. I
> will report back in case we find out something more, and please let me
> know if you have any suggestions for things I can test. I don't for
> example know if it is safe to revert one and one commit of the flow
> cache, to try to pin the crash even more down.
> 
> BR,
> Kristian

  reply	other threads:[~2018-09-06 17:48 UTC|newest]

Thread overview: 31+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-01-05 21:13 BUG: 4.14.11 unable to handle kernel NULL pointer dereference in xfrm_lookup Tobias Hommel
2018-01-05 21:27 ` Ozgur
2018-01-05 21:55   ` Tobias Hommel
2018-01-08  8:57     ` Tobias Hommel
2018-01-08 12:38   ` Steffen Klassert
2018-01-05 21:51 ` Holger Hoffstätte
2018-01-05 22:40   ` Tobias Hommel
2018-01-08 12:36 ` Steffen Klassert
2018-01-08 13:53   ` Tobias Hommel
2018-01-09  8:19     ` Steffen Klassert
2018-01-09  9:06       ` Tobias Hommel
2018-01-09  9:26         ` Steffen Klassert
2018-01-09 14:49           ` Tobias Hommel
2018-01-10  7:30             ` Steffen Klassert
2018-01-10  9:03               ` Tobias Hommel
2018-01-19 14:45                 ` Tobias Hommel
2018-01-24  9:59                   ` Steffen Klassert
2018-01-29  8:38                     ` Tobias Hommel
2018-01-31 20:26                     ` Markus Berner
2018-02-02  8:09                       ` Steffen Klassert
2018-06-06 10:41                         ` Kristian Evensen
2018-06-06 10:58                           ` Kristian Evensen
2018-06-06 16:03                           ` Tobias Hommel
2018-06-08  8:41                             ` Kristian Evensen
2018-06-12  8:03                               ` Steffen Klassert
2018-06-12  8:29                                 ` Kristian Evensen
2018-06-14  8:38                                   ` Kristian Evensen
2018-09-06 13:03                                     ` Tobias Hommel [this message]
2018-06-12 18:39                               ` Tobias Hommel
2018-01-10  7:42             ` Tobias Hommel
2018-01-10  7:50               ` Steffen Klassert

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20180906130328.fdmhpfk475gywgan@arbeitstier \
    --to=netdev-list@genoetigt.de \
    --cc=Markus.Berner@gmx.ch \
    --cc=fw@strlen.de \
    --cc=kristian.evensen@gmail.com \
    --cc=linux@stwm.de \
    --cc=netdev@vger.kernel.org \
    --cc=steffen.klassert@secunet.com \
    --cc=weiwan@google.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox