Re: [PATCH net] octeontx2-af: cn10k: fix an array overflow in is_lmac_valid()

2021-03-03 Thread patchwork-bot+netdevbpf
Hello: This patch was applied to netdev/net.git (refs/heads/master): On Tue, 2 Mar 2021 14:21:54 +0300 you wrote: > The value of "lmac_id" can be controlled by the user and if it is larger > then the number of bits in long then it reads outside the bitmap. > The highest valid value is less than M

[PATCH net] octeontx2-af: cn10k: fix an array overflow in is_lmac_valid()

2021-03-02 Thread Dan Carpenter
The value of "lmac_id" can be controlled by the user and if it is larger then the number of bits in long then it reads outside the bitmap. The highest valid value is less than MAX_LMAC_PER_CGX (4). Fixes: 91c6945ea1f9 ("octeontx2-af: cn10k: Add RPM MAC support") Signed-off-by: Dan Carpenter ---