diff options
| author | Cong Wang <[email protected]> | 2019-12-06 03:39:02 +0000 |
|---|---|---|
| committer | David S. Miller <[email protected]> | 2019-12-07 19:53:27 +0000 |
| commit | 0e4940928c26527ce8f97237fef4c8a91cd34207 (patch) | |
| tree | 7e7f865d29451d37511dd9171e61992fbad6f8d0 /net/unix/af_unix.c | |
| parent | pppoe: remove redundant BUG_ON() check in pppoe_pernet (diff) | |
| download | kernel-0e4940928c26527ce8f97237fef4c8a91cd34207.tar.gz kernel-0e4940928c26527ce8f97237fef4c8a91cd34207.zip | |
gre: refetch erspan header from skb->data after pskb_may_pull()
After pskb_may_pull() we should always refetch the header
pointers from the skb->data in case it got reallocated.
In gre_parse_header(), the erspan header is still fetched
from the 'options' pointer which is fetched before
pskb_may_pull().
Found this during code review of a KMSAN bug report.
Fixes: cb73ee40b1b3 ("net: ip_gre: use erspan key field for tunnel lookup")
Cc: Lorenzo Bianconi <[email protected]>
Signed-off-by: Cong Wang <[email protected]>
Acked-by: Lorenzo Bianconi <[email protected]>
Acked-by: William Tu <[email protected]>
Reviewed-by: Simon Horman <[email protected]>
Signed-off-by: David S. Miller <[email protected]>
Diffstat (limited to 'net/unix/af_unix.c')
0 files changed, 0 insertions, 0 deletions
