From: Jason Wang <hidden> Date: 2021-09-17 08:34:36
We try to use build_skb() if we had sufficient tailroom. But we forget
to release the unused pages chained via private in big mode which will
leak pages. Fixing this by release the pages after building the skb in
big mode.
Cc: Xuan Zhuo <xuanzhuo@linux.alibaba.com>
Fixes: fb32856b16ad ("virtio-net: page_to_skb() use build_skb when there's sufficient tailroom")
Signed-off-by: Jason Wang <redacted>
---
drivers/net/virtio_net.c | 4 ++++
1 file changed, 4 insertions(+)
From: Xuan Zhuo <xuanzhuo@linux.alibaba.com> Date: 2021-09-18 01:56:51
On Fri, 17 Sep 2021 16:34:06 +0800, Jason Wang [off-list ref] wrote:
We try to use build_skb() if we had sufficient tailroom. But we forget
to release the unused pages chained via private in big mode which will
leak pages. Fixing this by release the pages after building the skb in
big mode.
Cc: Xuan Zhuo <xuanzhuo@linux.alibaba.com>
Fixes: fb32856b16ad ("virtio-net: page_to_skb() use build_skb when there's sufficient tailroom")
Signed-off-by: Jason Wang <redacted>
LGTM
Reviewed-by: Xuan Zhuo <xuanzhuo@linux.alibaba.com>
Thanks.
Hello:
This patch was applied to netdev/net.git (refs/heads/master):
On Fri, 17 Sep 2021 16:34:06 +0800 you wrote:
We try to use build_skb() if we had sufficient tailroom. But we forget
to release the unused pages chained via private in big mode which will
leak pages. Fixing this by release the pages after building the skb in
big mode.
Cc: Xuan Zhuo <xuanzhuo@linux.alibaba.com>
Fixes: fb32856b16ad ("virtio-net: page_to_skb() use build_skb when there's sufficient tailroom")
Signed-off-by: Jason Wang <redacted>
[...]