]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
sctp: Hold sock lock while iterating over address list
authorStefan Wiehler <stefan.wiehler@nokia.com>
Tue, 28 Oct 2025 16:12:28 +0000 (17:12 +0100)
committerJakub Kicinski <kuba@kernel.org>
Tue, 4 Nov 2025 01:09:36 +0000 (17:09 -0800)
commitf1fc201148c7e684c10a72b6a3375597f28d1ef6
tree0a6deb9aa9fc65cdf56a2248e9129bea59b231c4
parent95aef86ab231f047bb8085c70666059b58f53c09
sctp: Hold sock lock while iterating over address list

Move address list traversal in inet_assoc_attr_size() under the sock
lock to avoid holding the RCU read lock.

Suggested-by: Xin Long <lucien.xin@gmail.com>
Fixes: 8f840e47f190 ("sctp: add the sctp_diag.c file")
Signed-off-by: Stefan Wiehler <stefan.wiehler@nokia.com>
Acked-by: Xin Long <lucien.xin@gmail.com>
Link: https://patch.msgid.link/20251028161506.3294376-4-stefan.wiehler@nokia.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
net/sctp/diag.c