commit | 8aa60a6d605d1598fc3a3a36c37d9f568db5b0fc | [log] [tgz] |
---|---|---|
author | Marc Kleine-Budde <mkl@pengutronix.de> | Wed Oct 31 14:05:26 2018 +0100 |
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | Sat Dec 01 09:44:20 2018 +0100 |
tree | 1f474c1887820790564b624bfa97fbba0040aaa3 | |
parent | 5adc1c548aa5e684fd312c8a7c822f2f47a04b4e [diff] |
can: dev: __can_get_echo_skb(): Don't crash the kernel if can_priv::echo_skb is accessed out of bounds commit e7a6994d043a1e31d5b17706a22ce33d2a3e4cdc upstream. If the "struct can_priv::echo_skb" is accessed out of bounds would lead to a kernel crash. Better print a sensible warning message instead and try to recover. Cc: linux-stable <stable@vger.kernel.org> Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>