Re: [PATCH net] eth: fbnic: validate the Rx completion buffer index

From: Yehyeong Lee

Date: Fri Nov 20 2026 - 10:00:39 EST


On Sat, Oct 10, 2026 at 02:53:58AM +0900, Yehyeong Lee wrote:
> The buffer ID in an address/length Rx completion descriptor is a 16 bit
> field, FBNIC_RCD_AL_BUFF_PAGE_MASK being DESC_GENMASK(15, 0) once the
> fragment bits are removed, so the device can name any index from 0 to
> 65535. fbnic_pkt_prepare() and fbnic_add_rx_frag() feed that value
> straight into fbnic_page_pool_get_head() and fbnic_page_pool_get_data(),
> which use it to subscript qt->sub0.rx_buf[] and qt->sub1.rx_buf[].

This is superseded by v3:
https://lore.kernel.org/all/cover.1791775409.git.yhlee@xxxxxxxxxxxxxxxxxx/

Best regards,
Yehyeong Lee