]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
mptcp: annotate lockless accesses around read-mostly fields
authorPaolo Abeni <pabeni@redhat.com>
Fri, 2 Feb 2024 11:40:11 +0000 (12:40 +0100)
committerDavid S. Miller <davem@davemloft.net>
Mon, 5 Feb 2024 11:18:09 +0000 (11:18 +0000)
commit28e5c138050670e813017102c1ac842a6a0aa297
treee53ee1def28cd6c5dc681c6f51ee01dbaf422725
parentb9f4554356f60c6ab33ef6604d1aa94475449b1f
mptcp: annotate lockless accesses around read-mostly fields

The following MPTCP socket fields:

 - can_ack
 - fully_established
 - rcv_data_fin
 - snd_data_fin_enable
 - rcv_fastclose
 - use_64bit_ack

are accessed without any lock, add the appropriate annotation.

The schema is safe as each field can change its value at most
once in the whole mptcp socket life cycle.

Signed-off-by: Paolo Abeni <pabeni@redhat.com>
Reviewed-by: Mat Martineau <martineau@kernel.org>
Signed-off-by: Matthieu Baerts (NGI0) <matttbe@kernel.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/mptcp/protocol.c
net/mptcp/sockopt.c