net: hns3: add barrier in vf mailbox reply process
maillist inclusion category: bugfix bugzilla: https://gitee.com/openeuler/kernel/issues/I8GVK7 CVE: NA Reference: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=ac92c0a9a0603fb448e60f38e63302e4eebb8035 ---------------------------------------------------------------------- In hclgevf_mbx_handler() and hclgevf_get_mbx_resp() functions, there is a typical store-store and load-load scenario between received_resp and additional_info. This patch adds barrier to fix the problem. Fixes: 4671042f ("net: hns3: add match_id to check mailbox response from PF to VF") Signed-off-by:Yonglong Liu <liuyonglong@huawei.com> Signed-off-by:
Jijie Shao <shaojijie@huawei.com> Signed-off-by:
David S. Miller <davem@davemloft.net> Signed-off-by:
Jiantao Xiao <xiaojiantao1@h-partners.com>
Loading
Please sign in to comment