diff options
author | Marek Lindner <lindner_marek@yahoo.de> | 2010-11-22 12:34:49 +0100 |
---|---|---|
committer | Andi Kleen <ak@linux.intel.com> | 2010-12-14 23:40:16 +0100 |
commit | c044cc9988cd29246c6d6781068c710817dd2f29 (patch) | |
tree | 7bececaf10e45810e559136983ff7293319e70ba /block | |
parent | 76ff15489a634e27146f6d1ccb198b6cd1d4e35e (diff) |
Staging: batman-adv: ensure that eth_type_trans gets linear memory
commit b6faaae1a15a352d68b3e3cd8b840e56709820bf upstream.
eth_type_trans tries to pull data with the length of the ethernet header
from the skb. We only ensured that enough data for the first ethernet
header and the batman header is available in non-paged memory of the skb
and not for the ethernet after the batman header.
eth_type_trans would fail sometimes with drivers which don't ensure that
all there data is perfectly linearised.
The failure was noticed through a kernel bug Oops generated by the
skb_pull inside eth_type_trans.
Reported-by: Rafal Lesniak <lesniak@eresi-project.org>
Signed-off-by: Marek Lindner <lindner_marek@yahoo.de>
Signed-off-by: Sven Eckelmann <sven.eckelmann@gmx.de>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Signed-off-by: Andi Kleen <ak@linux.intel.com>
Diffstat (limited to 'block')
0 files changed, 0 insertions, 0 deletions