Messages in this thread | | | Subject | Re: [PATCH] ethernet: hisilicon: hns: hns_dsaf_misc: fix a possible array overflow in hns_dsaf_ge_srst_by_port() | From | patchwork-bot+netdevbpf@kernel ... | Date | Thu, 18 Nov 2021 11:20:08 +0000 |
| |
Hello:
This patch was applied to netdev/net.git (master) by David S. Miller <davem@davemloft.net>:
On Wed, 17 Nov 2021 11:44:53 +0800 you wrote: > The if statement: > if (port >= DSAF_GE_NUM) > return; > > limits the value of port less than DSAF_GE_NUM (i.e., 8). > However, if the value of port is 6 or 7, an array overflow could occur: > port_rst_off = dsaf_dev->mac_cb[port]->port_rst_off; > > [...]
Here is the summary with links: - ethernet: hisilicon: hns: hns_dsaf_misc: fix a possible array overflow in hns_dsaf_ge_srst_by_port() https://git.kernel.org/netdev/net/c/a66998e0fbf2
You are awesome, thank you! -- Deet-doot-dot, I am a bot. https://korg.docs.kernel.org/patchwork/pwbot.html
| |