summaryrefslogtreecommitdiffstats
path: root/net/ipv4/tcp_output.c
diff options
context:
space:
mode:
authorJason Wang2017-10-27 05:05:44 +0200
committerDavid S. Miller2017-10-28 12:05:28 +0200
commit63b9ab65bd76e5de6479bb14b4014b64aa1a317a (patch)
tree3822be64ed1349f2d394198b022fe482ddaa47e7 /net/ipv4/tcp_output.c
parentMerge branch '40GbE' of git://git.kernel.org/pub/scm/linux/kernel/git/jkirshe... (diff)
downloadkernel-qcow2-linux-63b9ab65bd76e5de6479bb14b4014b64aa1a317a.tar.gz
kernel-qcow2-linux-63b9ab65bd76e5de6479bb14b4014b64aa1a317a.tar.xz
kernel-qcow2-linux-63b9ab65bd76e5de6479bb14b4014b64aa1a317a.zip
tuntap: properly align skb->head before building skb
An unaligned alloc_frag->offset caused by previous allocation will result an unaligned skb->head. This will lead unaligned skb_shared_info and then unaligned dataref which requires to be aligned for accessing on some architecture. Fix this by aligning alloc_frag->offset before the frag refilling. Fixes: 0bbd7dad34f8 ("tun: make tun_build_skb() thread safe") Cc: Eric Dumazet <edumazet@google.com> Cc: Willem de Bruijn <willemdebruijn.kernel@gmail.com> Cc: Wei Wei <dotweiba@gmail.com> Cc: Dmitry Vyukov <dvyukov@google.com> Cc: Mark Rutland <mark.rutland@arm.com> Reported-by: Wei Wei <dotweiba@gmail.com> Signed-off-by: Jason Wang <jasowang@redhat.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/ipv4/tcp_output.c')
0 files changed, 0 insertions, 0 deletions