diff options
author | Xin Long <lucien.xin@gmail.com> | 2023-01-28 18:58:34 +0300 |
---|---|---|
committer | Jakub Kicinski <kuba@kernel.org> | 2023-02-02 07:54:27 +0300 |
commit | a13fbf5ed5b4fc9095f12e955ca3a59b5507ff01 (patch) | |
tree | 1e13229b52e6af3a0fe5639a1722f44e2f741323 /fs/erofs/sysfs.c | |
parent | 043e397e48c58b4442ea5124dc1bdc95367a0a33 (diff) | |
download | linux-a13fbf5ed5b4fc9095f12e955ca3a59b5507ff01.tar.xz |
netfilter: use skb_ip_totlen and iph_totlen
There are also quite some places in netfilter that may process IPv4 TCP
GSO packets, we need to replace them too.
In length_mt(), we have to use u_int32_t/int to accept skb_ip_totlen()
return value, otherwise it may overflow and mismatch. This change will
also help us add selftest for IPv4 BIG TCP in the following patch.
Note that we don't need to replace the one in tcpmss_tg4(), as it will
return if there is data after tcphdr in tcpmss_mangle_packet(). The
same in mangle_contents() in nf_nat_helper.c, it returns false when
skb->len + extra > 65535 in enlarge_skb().
Signed-off-by: Xin Long <lucien.xin@gmail.com>
Reviewed-by: Eric Dumazet <edumazet@google.com>
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Diffstat (limited to 'fs/erofs/sysfs.c')
0 files changed, 0 insertions, 0 deletions