commit | 720e0d05af0f85715026f2344b22f418b4d03bbb | [log] [tgz] |
---|---|---|
author | Pan Bian <bianpan2016@163.com> | Wed Nov 28 14:53:19 2018 +0800 |
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | Wed Dec 05 19:31:59 2018 +0100 |
tree | ef2e442fc6b6583e8c5dc65cb4ac8fb8c0f0d1fc | |
parent | f2a67e68dbaeae7c88e5522873d7b908911f9f77 [diff] |
rapidio/rionet: do not free skb before reading its length [ Upstream commit cfc435198f53a6fa1f656d98466b24967ff457d0 ] skb is freed via dev_kfree_skb_any, however, skb->len is read then. This may result in a use-after-free bug. Fixes: e6161d64263 ("rapidio/rionet: rework driver initialization and removal") Signed-off-by: Pan Bian <bianpan2016@163.com> Signed-off-by: David S. Miller <davem@davemloft.net> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>