commit | 36ff0dd39f9b88ca83e1733b735e9f22b7be893b | [log] [tgz] |
---|---|---|
author | Steffen Klassert <steffen.klassert@secunet.com> | Fri Aug 25 07:16:07 2017 +0200 |
committer | Steffen Klassert <steffen.klassert@secunet.com> | Fri Aug 25 09:26:12 2017 +0200 |
tree | 4630219935215d5488958b705ee3a84ffccf17bf | |
parent | 8a4b5784fac2af93ad6a8c08fb56d021e0c0416b [diff] |
esp: Fix locking on page fragment allocation We allocate the page fragment for the ESP trailer inside a spinlock, but consume it outside of the lock. This is racy as some other cou could get the same page fragment then. Fix this by consuming the page fragment inside the lock too. Fixes: cac2661c53f3 ("esp4: Avoid skb_cow_data whenever possible") Fixes: 03e2a30f6a27 ("esp6: Avoid skb_cow_data whenever possible") Signed-off-by: Steffen Klassert <steffen.klassert@secunet.com>