[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <20140306.152935.568140961864847527.davem@davemloft.net>
Date: Thu, 06 Mar 2014 15:29:35 -0500 (EST)
From: David Miller <davem@...emloft.net>
To: fw@...len.de
Cc: netdev@...r.kernel.org
Subject: Re: [PATCH net] inet: frag: make sure forced eviction removes all
frags
From: Florian Westphal <fw@...len.de>
Date: Thu, 6 Mar 2014 18:06:41 +0100
> Quoting Alexander Aring:
> While fragmentation and unloading of 6lowpan module I got this kernel Oops
> after few seconds:
>
> BUG: unable to handle kernel paging request at f88bbc30
> [..]
> Modules linked in: ipv6 [last unloaded: 6lowpan]
> Call Trace:
> [<c012af4c>] ? call_timer_fn+0x54/0xb3
> [<c012aef8>] ? process_timeout+0xa/0xa
> [<c012b66b>] run_timer_softirq+0x140/0x15f
>
> Problem is that incomplete frags are still around after unload; when
> their frag expire timer fires, we get crash.
>
> When a netns is removed (also done when unloading module), inet_frag
> calls the evictor with 'force' argument to purge remaining frags.
>
> The evictor loop terminates when accounted memory ('work') drops to 0
> or the lru-list becomes empty. However, the mem accounting is done
> via percpu counters and may not be accurate, i.e. loop may terminate
> prematurely.
>
> Alter evictor to only stop once the lru list is empty when force is
> requested.
>
> Reported-by: Phoebe Buckheister <phoebe.buckheister@...m.fraunhofer.de>
> Reported-by: Alexander Aring <alex.aring@...il.com>
> Tested-by: Alexander Aring <alex.aring@...il.com>
> Signed-off-by: Florian Westphal <fw@...len.de>
Applied and queued up for -stable, thanks.
--
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Powered by blists - more mailing lists