tcp: tweak tcp_sock_write_txrx size assertion
authorEric Dumazet <edumazet@google.com>
Tue, 9 Apr 2024 14:09:14 +0000 (14:09 +0000)
committerJakub Kicinski <kuba@kernel.org>
Thu, 11 Apr 2024 01:55:05 +0000 (18:55 -0700)
commit9b9fd45869e744bea7d32a94793736e3d9fd7d26
tree70a8f0792595434743632a7bad4c3a94525e395f
parent414e576fb08f108b061cbc1fb964e51ff3467985
tcp: tweak tcp_sock_write_txrx size assertion

I forgot 32bit arches might have 64bit alignment for u64
fields.

tcp_sock_write_txrx group does not contain pointers,
but two u64 fields. It is possible that on 32bit kernel,
a 32bit hole is before tp->tcp_clock_cache.

I will try to remember a group can be bigger on 32bit
kernels in the future.

With help from Vladimir Oltean.

Fixes: d2c3a7eb1afa ("tcp: more struct tcp_sock adjustments")
Reported-by: kernel test robot <lkp@intel.com>
Closes: https://lore.kernel.org/oe-kbuild-all/202404082207.HCEdQhUO-lkp@intel.com/
Signed-off-by: Eric Dumazet <edumazet@google.com>
Tested-by: Vladimir Oltean <vladimir.oltean@nxp.com>
Link: https://lore.kernel.org/r/20240409140914.4105429-1-edumazet@google.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
net/ipv4/tcp.c