+35
−20
+29
−0
+2
−1
Loading
mainline inclusion from mainline-v5.18-rc5 commit 97b9af7a category: bugfix bugzilla: https://gitee.com/src-openeuler/kernel/issues/IA72JN CVE: CVE-2022-48721 Reference: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=97b9af7a70936e331170c79040cc9bf20071b566 -------------------------------- Both listen and fallback process will save the current clcsock callback functions and establish new ones. But if both of them happen, the saved callback functions will be overwritten. So this patch introduces some helpers to ensure that only save the original callback functions of clcsock. Fixes: 341adeec ("net/smc: Forward wakeup to smc socket waitqueue after fallback") Signed-off-by:Wen Gu <guwen@linux.alibaba.com> Acked-by:
Karsten Graul <kgraul@linux.ibm.com> Signed-off-by:
Jakub Kicinski <kuba@kernel.org> Conflicts: net/smc/af_smc.c net/smc/smc.h [The conflict occurs because the commit c0bf3d8a("net/smc: Transitional solution for clcsock race issue") and e0e4b8fa("net/smc: Add SMC statistics support") are not merged] Signed-off-by:
Zhengchao Shao <shaozhengchao@huawei.com>