Loading
octeon_ep: Implement helper for iterating packets in Rx queue
stable inclusion from stable-v6.6.59 commit e71146ff378c7cae47e71c4eb95f2a63682dcf81 category: bugfix bugzilla: https://gitee.com/src-openeuler/kernel/issues/IB2STE CVE: CVE-2024-50145 Reference: https://git.kernel.org/stable/c/e71146ff378c7cae47e71c4eb95f2a63682dcf81 -------------------------------- [ Upstream commit bd28df26197b2bd0913bf1b36770836481975143 ] The common code with some packet and index manipulations is extracted and moved to newly implemented helper to make the code more readable and avoid duplication. This is a preparation for skb allocation failure handling. Found by Linux Verification Center (linuxtesting.org) with SVACE. Suggested-by:Simon Horman <horms@kernel.org> Suggested-by:
Paolo Abeni <pabeni@redhat.com> Signed-off-by:
Aleksandr Mishin <amishin@t-argos.ru> Reviewed-by:
Jacob Keller <jacob.e.keller@intel.com> Signed-off-by:
Andrew Lunn <andrew@lunn.ch> Stable-dep-of: eb592008f79b ("octeon_ep: Add SKB allocation failures handling in __octep_oq_process_rx()") Signed-off-by:
Sasha Levin <sashal@kernel.org> Signed-off-by:
Luo Gengkun <luogengkun2@huawei.com>