diff options
author | Eric Dumazet <edumazet@google.com> | 2020-10-07 01:42:46 -0700 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2020-10-14 10:31:23 +0200 |
commit | f74e8d46dd6f4302023b2844e7d20130719e7885 (patch) | |
tree | 670c4ae3e9348c5394c2ff62c40bbca9a4c2e30a /mm | |
parent | b6df5afc3d81e34d32f0b092d59b7fe8915d824b (diff) | |
download | linux-stable-f74e8d46dd6f4302023b2844e7d20130719e7885.tar.gz linux-stable-f74e8d46dd6f4302023b2844e7d20130719e7885.tar.bz2 linux-stable-f74e8d46dd6f4302023b2844e7d20130719e7885.zip |
macsec: avoid use-after-free in macsec_handle_frame()
commit c7cc9200e9b4a2ac172e990ef1975cd42975dad6 upstream.
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>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'mm')
0 files changed, 0 insertions, 0 deletions