Re: [syzbot] [net?] [s390?] possible deadlock in smc_release
From: Jeongjun Park
Date: Tue Jul 09 2024 - 23:16:36 EST
#syz test git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
---
net/smc/af_smc.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/net/smc/af_smc.c b/net/smc/af_smc.c
index c5f98c6b2561..e7ec066b0d6a 100644
--- a/net/smc/af_smc.c
+++ b/net/smc/af_smc.c
@@ -294,6 +294,8 @@ static int __smc_release(struct smc_sock *smc)
sk->sk_prot->unhash(sk);
+ barrier();
+
if (sk->sk_state == SMC_CLOSED) {
if (smc->clcsock) {
release_sock(sk);
--