Re: net: non contiguous allocations passed to build_skb

From: Eric Dumazet
Date: Fri Apr 24 2015 - 18:11:16 EST


On Fri, 2015-04-24 at 15:02 -0700, Eric Dumazet wrote:
> On Fri, 2015-04-24 at 17:28 -0400, Sasha Levin wrote:
> > Hey Eric,
> >
> > Your commit 79930f5892e ("net: do not deplete pfmemalloc reserve") assumes that
> > build_skb() will only handle contiguous allocations because of the
> > virt_to_head_page().
> >
> > However, netlink_sendmsg() calls build_skb() with vmalloc()ed memory, causing:
>
> gosh. netlink & vmalloc() striked again.

I'll send a fix, thanks for the report.


--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/