[OpenWrt-Devel] Wireless monitor interface causes device to run out of memory

Rafał Miłecki zajec5 at gmail.com
Wed Feb 12 02:52:04 EST 2020


On Tue, 11 Feb 2020 at 17:21, Felix Fietkau <nbd at nbd.name> wrote:
> On 2020-02-11 17:03, Rafał Miłecki wrote:
> > On Wed, 5 Feb 2020 at 11:14, Rafał Miłecki <zajec5 at gmail.com> wrote:
> >> I noticed that my bcm53xx devices run out of memory after running
> >> wireless monitor interface for about 2 days.
> >>
> >> This problem occurs since 0694d08c84fd ("bcm53xx: switch to kernel
> >> 4.9") which bumped kernel from 4.4.53 to 4.9.14 and is still present
> >> when using 4.14.
> >>
> >> Interestingly this memory drain requires at least one of:
> >> net.ipv6.conf.default.forwarding=1
> >> net.ipv6.conf.all.forwarding=1
> >> to be set. OpenWrt happens to use both by default.
> >>
> >> This is *not* a memory leak. Restarting wireless interfaces frees all
> >> consumed memory.
> >>
> >> Any idea what may be causing this?
> >
> > This regression is caused by 1666d49e1d41 ("mld: do not remove mld
> > souce list info when set link down") which was later backported as
> > 53a76d633b86 to the linux-4.9.y branch.
> >
> > Reverting that commit from 4.9.14 or 4.14.169 /fixes/ device running
> > out of memory problem.
> Looks like it's missing a backport of
>
> commit a84d016479896b5526a2cc54784e6ffc41c9d6f6
> "[PATCH net] mld: fix memory leak in mld_del_delrec()"

That fix was backported to linux-4.14.y as
df9c0f8a15c283b3339ef636642d3769f8fbc434 and was included in
v4.14.143. Memory problem still exists in the 4.14.169.

-- 
Rafał

_______________________________________________
openwrt-devel mailing list
openwrt-devel at lists.openwrt.org
https://lists.openwrt.org/mailman/listinfo/openwrt-devel


More information about the openwrt-devel mailing list