diff options
| author | William Tu <[email protected]> | 2018-02-05 21:35:34 +0000 |
|---|---|---|
| committer | David S. Miller <[email protected]> | 2018-02-06 16:32:48 +0000 |
| commit | 3df1928302950dfa728ab2eade28eea0da291567 (patch) | |
| tree | 325f571ad901f437ba33ace9f820be396444c81b /net/unix/af_unix.c | |
| parent | cls_u32: fix use after free in u32_destroy_key() (diff) | |
| download | kernel-3df1928302950dfa728ab2eade28eea0da291567.tar.gz kernel-3df1928302950dfa728ab2eade28eea0da291567.zip | |
net: erspan: fix metadata extraction
Commit d350a823020e ("net: erspan: create erspan metadata uapi header")
moves the erspan 'version' in front of the 'struct erspan_md2' for
later extensibility reason. This breaks the existing erspan metadata
extraction code because the erspan_md2 then has a 4-byte offset
to between the erspan_metadata and erspan_base_hdr. This patch
fixes it.
Fixes: 1a66a836da63 ("gre: add collect_md mode to ERSPAN tunnel")
Fixes: ef7baf5e083c ("ip6_gre: add ip6 erspan collect_md mode")
Fixes: 1d7e2ed22f8d ("net: erspan: refactor existing erspan code")
Signed-off-by: William Tu <[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
