Re: [PATCH] virtio-net: Avoid indirection_table_mask overflow

2024-10-21 Thread Jason Wang
On Tue, Oct 8, 2024 at 2:51 PM Akihiko Odaki wrote: > > We computes indirections_len by adding 1 to indirection_table_mask, but > it may overflow indirection_table_mask is UINT16_MAX. Check if > indirection_table_mask is small enough before adding 1. > > Fixes: 590790297c0d ("virtio-net: implement

[PATCH] virtio-net: Avoid indirection_table_mask overflow

2024-10-07 Thread Akihiko Odaki
We computes indirections_len by adding 1 to indirection_table_mask, but it may overflow indirection_table_mask is UINT16_MAX. Check if indirection_table_mask is small enough before adding 1. Fixes: 590790297c0d ("virtio-net: implement RSS configuration command") Signed-off-by: Akihiko Odaki ---