Re: [PATCH net 2/4] virtio-net: remove redundant truesize check with PAGE_SIZE

2025-06-25 Thread Jason Wang
On Thu, Jun 26, 2025 at 12:10 AM Bui Quang Minh wrote: > > The truesize is guaranteed not to exceed PAGE_SIZE in > get_mergeable_buf_len(). It is saved in mergeable context, which is not > changeable by the host side, This really depends on the security model. > so the check in receive path is q

[PATCH net 2/4] virtio-net: remove redundant truesize check with PAGE_SIZE

2025-06-25 Thread Bui Quang Minh
The truesize is guaranteed not to exceed PAGE_SIZE in get_mergeable_buf_len(). It is saved in mergeable context, which is not changeable by the host side, so the check in receive path is quite redundant. Signed-off-by: Bui Quang Minh --- drivers/net/virtio_net.c | 7 +++ 1 file changed, 3 in