]> git.karo-electronics.de Git - karo-tx-linux.git/commit
aoe: reserve enough headroom on skbs
authorEric Dumazet <edumazet@google.com>
Wed, 27 Mar 2013 18:28:41 +0000 (18:28 +0000)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 5 Apr 2013 16:26:18 +0000 (09:26 -0700)
commitba7e70047acbf20258380ef28e16692dad4d4828
treedc3702b5c02fd9c1a325fd98f1e952677ebbc824
parente32a0e3e1cf3bde1c1b961c8792395e1e27ec453
aoe: reserve enough headroom on skbs

[ Upstream commit 91c5746425aed8f7188a351f1224a26aa232e4b3 ]

Some network drivers use a non default hard_header_len

Transmitted skb should take into account dev->hard_header_len, or risk
crashes or expensive reallocations.

In the case of aoe, lets reserve MAX_HEADER bytes.

David reported a crash in defxx driver, solved by this patch.

Reported-by: David Oostdyk <daveo@ll.mit.edu>
Tested-by: David Oostdyk <daveo@ll.mit.edu>
Signed-off-by: Eric Dumazet <edumazet@google.com>
Cc: Ed Cashin <ecashin@coraid.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/block/aoe/aoecmd.c