kernel_samsung_a53x/net/mptcp
Eugene Syromiatnikov 4dc41c3381 mptcp: correct MPTCP_SUBFLOW_ATTR_SSN_OFFSET reserved size
[ Upstream commit 655111b838cdabdb604f3625a9ff08c5eedb11da ]

ssn_offset field is u32 and is placed into the netlink response with
nla_put_u32(), but only 2 bytes are reserved for the attribute payload
in subflow_get_info_size() (even though it makes no difference
in the end, as it is aligned up to 4 bytes).  Supply the correct
argument to the relevant nla_total_size() call to make it less
confusing.

Fixes: 5147dfb50832 ("mptcp: allow dumping subflow context to userspace")
Signed-off-by: Eugene Syromiatnikov <esyr@redhat.com>
Reviewed-by: Matthieu Baerts (NGI0) <matttbe@kernel.org>
Link: https://patch.msgid.link/20240812065024.GA19719@asgard.redhat.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2024-11-23 23:20:43 +01:00
..
crypto.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
crypto_test.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
ctrl.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
diag.c mptcp: correct MPTCP_SUBFLOW_ATTR_SSN_OFFSET reserved size 2024-11-23 23:20:43 +01:00
Kconfig Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
Makefile Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
mib.c mptcp: mib: count MPJ with backup flag 2024-11-23 23:20:30 +01:00
mib.h mptcp: mib: count MPJ with backup flag 2024-11-23 23:20:30 +01:00
mptcp_diag.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
options.c mptcp: distinguish rcv vs sent backup flag in requests 2024-11-23 23:20:30 +01:00
pm.c mptcp: pm: fix backup support in signal endpoints 2024-11-23 23:20:30 +01:00
pm_netlink.c mptcp: pm: fix backup support in signal endpoints 2024-11-23 23:20:30 +01:00
protocol.c mptcp: sched: check both directions for backup 2024-11-23 23:20:30 +01:00
protocol.h mptcp: pm: fix backup support in signal endpoints 2024-11-23 23:20:30 +01:00
subflow.c mptcp: pm: fix backup support in signal endpoints 2024-11-23 23:20:30 +01:00
syncookies.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
token.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
token_test.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00