diff options
| author | Eric Dumazet <[email protected]> | 2020-10-07 01:42:46 -0700 |
|---|---|---|
| committer | Jakub Kicinski <[email protected]> | 2020-10-08 12:21:08 -0700 |
| commit | c7cc9200e9b4a2ac172e990ef1975cd42975dad6 (patch) | |
| tree | d086a5359881325cddb35adc80a654e90afa8618 /tools/testing/selftests/bpf/prog_tests/global_data_init.c | |
| parent | 47dda78671a3d5cee3fb2229e37997d2ac8a3b54 (diff) | |
macsec: avoid use-after-free in macsec_handle_frame()
De-referencing skb after call to gro_cells_receive() is not allowed.
We need to fetch skb->len earlier.
Fixes: 5491e7c6b1a9 ("macsec: enable GRO and RPS on macsec devices")
Signed-off-by: Eric Dumazet <[email protected]>
Cc: Paolo Abeni <[email protected]>
Acked-by: Paolo Abeni <[email protected]>
Signed-off-by: Jakub Kicinski <[email protected]>
Diffstat (limited to 'tools/testing/selftests/bpf/prog_tests/global_data_init.c')
0 files changed, 0 insertions, 0 deletions