mirror of
https://github.com/torvalds/linux.git
synced 2026-09-11 20:13:02 +02:00
mptcp: subflow: no need to copy thmac during ulp_clone
'thmac' is not used after that point.
Indeed, subflow_ulp_clone() is called when the request on the passive
side is over, so when the truncated HMAC is no longer needed.
Note that in case of SYN cookies, thmac will not be initialised. So
better to remove it to avoid a warning from debug tools like KMSAN for
reading uninitialised data.
Fixes: f296234c98 ("mptcp: Add handling of incoming MP_JOIN requests")
Cc: stable@vger.kernel.org
Reviewed-by: Geliang Tang <geliang@kernel.org>
Signed-off-by: Matthieu Baerts (NGI0) <matttbe@kernel.org>
Link: https://patch.msgid.link/20260908-net-mptcp-misc-fixes-7-3-rc1-v2-2-df1de70348b6@kernel.org
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
This commit is contained in:
parent
e2ab913f68
commit
29f641951b
|
|
@ -2084,7 +2084,6 @@ static void subflow_ulp_clone(const struct request_sock *req,
|
|||
new_ctx->request_bkup = subflow_req->request_bkup;
|
||||
WRITE_ONCE(new_ctx->remote_id, subflow_req->remote_id);
|
||||
new_ctx->token = subflow_req->token;
|
||||
new_ctx->thmac = subflow_req->thmac;
|
||||
|
||||
/* the subflow req id is valid, fetched via subflow_check_req()
|
||||
* and subflow_token_join_request()
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user