Re: [PATCH 1/1] Defer skb allocation for both mergeable buffers and big packets in virtio_net

Eric Dumazet
2009-11-20T06:20:22Z

Shirley Ma a écrit :
> This patch is generated against 2.6 git tree. I didn't break up this
> patch since it has one functionality. Please review it.
>
> Thanks
> Shirley
>
> Signed-off-by: Shirley Ma <xma@us.ibm.com>
> ------
>
> +void virtio_free_pages(void *buf)
> +{
> + struct page *page = (struct page *)buf;
> +
> + while (page) {
> + __free_pages(page, 0);
> + page = (struct page *)page->private;
> + }
> +}
> +

Interesting use after free :)