]> git.baikalelectronics.ru Git - kernel.git/commit
netfilter: flowtable: consolidate skb_try_make_writable() call
authorPablo Neira Ayuso <pablo@netfilter.org>
Wed, 17 Mar 2021 14:53:09 +0000 (15:53 +0100)
committerPablo Neira Ayuso <pablo@netfilter.org>
Wed, 17 Mar 2021 23:43:59 +0000 (00:43 +0100)
commitdb4c36e2229b15ff09965e1bcf5e2e60308c7b8e
tree1e9c1580e2b8eabeb2946ad9e81a29da365f02e3
parent2991eed12907d93a5f960b9f5a50e09653d8299f
netfilter: flowtable: consolidate skb_try_make_writable() call

Fetch the layer 4 header size to be mangled by NAT when building the
tuple, then use it to make writable the network and the transport
headers. After this update, the NAT routines now assumes that the skbuff
area is writable. Do the pointer refetch only after the single
skb_try_make_writable() call.

Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
net/netfilter/nf_flow_table_core.c
net/netfilter/nf_flow_table_ip.c