Re: [syzbot] [net?] INFO: task hung in lock_sock_nested (5)
From: Hillf Danton
Date: Wed Jan 08 2025 - 06:06:03 EST
On 2024-12-26, 01:34:19 -0800, syzbot wrote:
> syzbot found the following issue on:
>
> HEAD commit: 9268abe611b0 Merge branch 'net-lan969x-add-rgmii-support'
> git tree: net-next
> C reproducer: https://syzkaller.appspot.com/x/repro.c?x=155c0018580000
Test Sabrina's patch.
#syz test
--- x/net/tls/tls_main.c
+++ y/net/tls/tls_main.c
@@ -737,6 +737,8 @@ static int do_tls_setsockopt_conf(struct
else
ctx->rx_conf = conf;
update_sk_prot(sk, ctx);
+ if (update)
+ return 0;
if (tx) {
ctx->sk_write_space = sk->sk_write_space;
sk->sk_write_space = tls_write_space;
--