From: Yingjie Wang <redacted>
In rvu_mbox_handler_cgx_mac_addr_get()
and rvu_mbox_handler_cgx_mac_addr_set(),
the msg is expected only from PFs that are mapped to CGX LMACs.
It should be checked before mapping,
so we add the is_cgx_config_permitted() in the functions.
Fixes: 289e20bc1ab5 ("af/rvu_cgx: Fix missing check bugs in rvu_cgx.c")
Signed-off-by: Yingjie Wang <redacted>
---
drivers/net/ethernet/marvell/octeontx2/af/rvu_cgx.c | 6 ++++++
1 file changed, 6 insertions(+)
From: Jakub Kicinski <kuba@kernel.org> Date: 2021-01-13 02:14:29
On Mon, 11 Jan 2021 18:09:49 -0800 wangyingjie55@126.com wrote:
From: Yingjie Wang <redacted>
In rvu_mbox_handler_cgx_mac_addr_get()
and rvu_mbox_handler_cgx_mac_addr_set(),
the msg is expected only from PFs that are mapped to CGX LMACs.
It should be checked before mapping,
so we add the is_cgx_config_permitted() in the functions.
Fixes: 289e20bc1ab5 ("af/rvu_cgx: Fix missing check bugs in rvu_cgx.c")
Signed-off-by: Yingjie Wang <redacted>
Fixes tag: Fixes: 289e20bc1ab5 ("af/rvu_cgx: Fix missing check bugs in rvu_cgx.c")
Has these problem(s):
- Target SHA1 does not exist
Where is that commit from? You're not referring to this commit itself
in your tree? The subject is suspiciously similar :S
From: Yingjie Wang <hidden> Date: 2021-01-13 20:35:50
Thanks for your reply. I commit this change on linux-next/stable branch, and I use "git log --pretty=fixes" command to get the Fixes tag. I want to know if I need to make a change on any other branch and commit it?
At 2021-01-13 10:13:28, "Jakub Kicinski" [off-list ref] wrote:
On Mon, 11 Jan 2021 18:09:49 -0800 wangyingjie55@126.com wrote:
quoted
From: Yingjie Wang <redacted>
In rvu_mbox_handler_cgx_mac_addr_get()
and rvu_mbox_handler_cgx_mac_addr_set(),
the msg is expected only from PFs that are mapped to CGX LMACs.
It should be checked before mapping,
so we add the is_cgx_config_permitted() in the functions.
Fixes: 289e20bc1ab5 ("af/rvu_cgx: Fix missing check bugs in rvu_cgx.c")
Signed-off-by: Yingjie Wang <redacted>
Fixes tag: Fixes: 289e20bc1ab5 ("af/rvu_cgx: Fix missing check bugs in rvu_cgx.c")
Has these problem(s):
- Target SHA1 does not exist
Where is that commit from? You're not referring to this commit itself
in your tree? The subject is suspiciously similar :S
From: Jakub Kicinski <kuba@kernel.org> Date: 2021-01-14 01:57:03
On Wed, 13 Jan 2021 21:27:35 +0800 (CST) Yingjie Wang wrote:
Thanks for your reply. I commit this change on linux-next/stable
branch, and I use "git log --pretty=fixes" command to get the Fixes
tag. I want to know if I need to make a change on any other branch
and commit it?
For networking fixes net/master would be best, but my comment
wasn't about the tree, but about which commit is quoted in the Fixes
tag.
Maybe the maintainers will help us identify the right fixes tag.
CCing them now. Please make sure to always CC maintainers
(scripts/get_maintainer.pl should help you).
Marvell folks, FWIW this is the thread in the archive for context:
https://lore.kernel.org/lkml/1610417389-9051-1-git-send-email-wangyingjie55@126.com/