netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH v2 net 0/3] ipv6: Fix a potential deadlock when creating pcpu rt
@ 2015-08-14 18:05 Martin KaFai Lau
  2015-08-14 18:05 ` [PATCH v2 net 1/3] ipv6: Remove un-used argument from ip6_dst_alloc() Martin KaFai Lau
                   ` (3 more replies)
  0 siblings, 4 replies; 5+ messages in thread
From: Martin KaFai Lau @ 2015-08-14 18:05 UTC (permalink / raw)
  To: netdev, David Miller
  Cc: Steinar H. Gunderson, Hannes Frederic Sowa, FB Kernel Team

v1 -> v2:
A minor change in the commit message of patch 2.

This patch series fixes a potential deadlock when creating a pcpu rt.
It happens when dst_alloc() decided to run gc. Something like this:

read_lock(&table->tb6_lock);
ip6_rt_pcpu_alloc()
=> dst_alloc()
=> ip6_dst_gc()
=> write_lock(&table->tb6_lock); /* oops */

Patch 1 and 2 are some prep works.
Patch 3 is the fix.

Original report: https://bugzilla.kernel.org/show_bug.cgi?id=102291

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2015-08-17 21:28 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-08-14 18:05 [PATCH v2 net 0/3] ipv6: Fix a potential deadlock when creating pcpu rt Martin KaFai Lau
2015-08-14 18:05 ` [PATCH v2 net 1/3] ipv6: Remove un-used argument from ip6_dst_alloc() Martin KaFai Lau
2015-08-14 18:05 ` [PATCH v2 net 2/3] ipv6: Add rt6_make_pcpu_route() Martin KaFai Lau
2015-08-14 18:05 ` [PATCH v2 net 3/3] ipv6: Fix a potential deadlock when creating pcpu rt Martin KaFai Lau
2015-08-17 21:28 ` [PATCH v2 net 0/3] " David Miller

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).