From: Xiangyu Chen xiangyu.chen@windriver.com
Backport commit ef7134c7fc48 ("smb: client: Fix use-after-free of network namespace.") to fix CVE-2024-53095
This required 1 extra commit to make sure the picks are clean: commit d477eb900484 ("net: make sock_inuse_add() available")
Eric Dumazet (1): net: make sock_inuse_add() available
Kuniyuki Iwashima (1): smb: client: Fix use-after-free of network namespace.
fs/cifs/connect.c | 13 ++++++++++--- include/net/sock.h | 10 ++++++++++ net/core/sock.c | 10 ---------- net/mptcp/subflow.c | 4 +--- 4 files changed, 21 insertions(+), 16 deletions(-)