Re: [PATCH v1 net 01/15] af_unix: Set sk->sk_state under unix_state_lock() for truly disconencted peer.
From: Kuniyuki Iwashima <hidden>
Date: 2024-06-03 16:32:40
From: Kuniyuki Iwashima <hidden>
Date: 2024-06-03 16:32:40
From: Cong Wang <redacted> Date: Mon, 3 Jun 2024 09:26:29 -0700
On Mon, Jun 03, 2024 at 07:32:17AM -0700, Kuniyuki Iwashima wrote:quoted
- if (other != old_peer) + if (other != old_peer) { unix_dgram_disconnected(sk, old_peer); + + unix_state_lock(old_peer); + if (!unix_peer(old_peer)) + WRITE_ONCE(old_peer->sk_state, TCP_CLOSE); + unix_state_lock(old_peer);lock() old_peer twice? Has it been tested? ;-)B
Ugh, apparently no :S (compile-test only) Should've run the same command in the changelog. Will fix in v2. Thanks!