commit | c7cc9200e9b4a2ac172e990ef1975cd42975dad6 | [log] [tgz] |
---|---|---|
author | Eric Dumazet <edumazet@google.com> | Wed Oct 07 01:42:46 2020 -0700 |
committer | Jakub Kicinski <kuba@kernel.org> | Thu Oct 08 12:21:08 2020 -0700 |
tree | d086a5359881325cddb35adc80a654e90afa8618 | |
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 <edumazet@google.com> Cc: Paolo Abeni <pabeni@redhat.com> Acked-by: Paolo Abeni <pabeni@redhat.com> Signed-off-by: Jakub Kicinski <kuba@kernel.org>