]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commit
xfrm: Use __skb_queue_tail in xfrm_trans_queue
authorHerbert Xu <herbert@gondor.apana.org.au>
Thu, 4 Jan 2018 11:25:07 +0000 (22:25 +1100)
committerSteffen Klassert <steffen.klassert@secunet.com>
Fri, 5 Jan 2018 08:33:14 +0000 (09:33 +0100)
commitd16b46e4fd8bc6063624605f25b8c0835bb1fbe3
tree2082d0d7f510842ede6ba05a671ed7d4693b7a09
parent2f10a61cee8fdb9f8da90f5db687e1862b22cf06
xfrm: Use __skb_queue_tail in xfrm_trans_queue

We do not need locking in xfrm_trans_queue because it is designed
to use per-CPU buffers.  However, the original code incorrectly
used skb_queue_tail which takes the lock.  This patch switches
it to __skb_queue_tail instead.

Reported-and-tested-by: Artem Savkov <asavkov@redhat.com>
Fixes: acf568ee859f ("xfrm: Reinject transport-mode packets...")
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Signed-off-by: Steffen Klassert <steffen.klassert@secunet.com>
net/xfrm/xfrm_input.c