From: Miroslav Urbanek <mu@miroslavurbanek.com>
To: Eric Dumazet <eric.dumazet@gmail.com>
Cc: "Steffen Klassert" <steffen.klassert@secunet.com>,
Netdev <netdev@vger.kernel.org>, "Tomáš Charvát" <tc@excello.cz>,
"Jan Hejl" <jh@excello.cz>
Subject: Re: [PATCH] flowcache: Fix kernel panic in flow_cache_flush_task
Date: Thu, 5 Feb 2015 18:40:51 +0100 [thread overview]
Message-ID: <20150205174026.GC3350@miroslavurbanek.com> (raw)
In-Reply-To: <1423154648.31870.81.camel@edumazet-glaptop2.roam.corp.google.com>
Thanks for the tip. It's my first kernel patch, so I wanted to make
sure it won't get lost :-)
Anyway, I also looked into the function flow_cache_fini. Isn't it
necessary to flush/cancel scheduled works here? Something like:
flush_work(&net->xfrm.flow_cache_flush_work);
flush_work(&net->xfrm.flow_cache_gc_work);
I'm not sure if it is a bug or not. Could it happen that there is a
scheduled work while the kernel calls flow_cache_fini?
I originally suspected this was the real bug we hit, but we don't use
net namespaces, so our kernels never call flow_cache_fini.
>
> Nice catch !
>
> Ok, but you do not need to cc so many people/lists
>
> netdev is fine, and we usually CC patch author, just in case.
>
> Acked-by: Eric Dumazet <edumazet@google.com>
>
next prev parent reply other threads:[~2015-02-05 17:41 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-02-05 15:36 [PATCH] flowcache: Fix kernel panic in flow_cache_flush_task Miroslav Urbanek
2015-02-05 16:44 ` Eric Dumazet
2015-02-05 17:40 ` Miroslav Urbanek [this message]
2015-02-05 22:39 ` David Miller
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=20150205174026.GC3350@miroslavurbanek.com \
--to=mu@miroslavurbanek.com \
--cc=eric.dumazet@gmail.com \
--cc=jh@excello.cz \
--cc=netdev@vger.kernel.org \
--cc=steffen.klassert@secunet.com \
--cc=tc@excello.cz \
/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;
as well as URLs for NNTP newsgroup(s).