lkml.org 
[lkml]   [2013]   [Jul]   [21]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
Date
From
SubjectRe: [BUG] ipv6, rawv6_close(): BUG: unable to handle kernel paging request
On Sun, Jul 21, 2013 at 11:58:13PM +0530, Srivatsa S. Bhat wrote:
> I'm seeing this on every boot.
>
> Version: Latest mainline (commit ea45ea70b)

Thanks for the report! Could you try the following patch?

diff --git a/net/ipv6/ip6mr.c b/net/ipv6/ip6mr.c
index 583e8d4..373906c 100644
--- a/net/ipv6/ip6mr.c
+++ b/net/ipv6/ip6mr.c
@@ -1601,9 +1601,9 @@ int ip6mr_sk_done(struct sock *sk)
struct mr6_table *mrt;

rtnl_lock();
+ write_lock_bh(&mrt_lock);
ip6mr_for_each_table(mrt, net) {
if (sk == mrt->mroute6_sk) {
- write_lock_bh(&mrt_lock);
mrt->mroute6_sk = NULL;
net->ipv6.devconf_all->mc_forwarding--;
inet6_netconf_notify_devconf(net,
@@ -1611,14 +1611,14 @@ int ip6mr_sk_done(struct sock *sk)
NETCONFA_IFINDEX_ALL,
net->ipv6.devconf_all);
write_unlock_bh(&mrt_lock);
-
mroute_clean_tables(mrt);
err = 0;
- break;
+ goto out;
}
}
+ write_unlock_bh(&mrt_lock);
+out:
rtnl_unlock();
-
return err;
}


\
 
 \ /
  Last update: 2013-07-21 23:21    [W:0.083 / U:0.076 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site