]> git.baikalelectronics.ru Git - kernel.git/commit
[PATCH] bonding: Handle large hard_header_len
authorJay Vosburgh <fubar@us.ibm.com>
Sat, 23 Sep 2006 04:53:39 +0000 (21:53 -0700)
committerJeff Garzik <jeff@garzik.org>
Tue, 26 Sep 2006 00:08:09 +0000 (20:08 -0400)
commit038c9ed54ce9cf18e29fc80ac6c225e31b126a59
tree33e0c4ae228ad52a5f5dc9c4389412c436d22d0f
parentdab4e4638c0a41e5f8419af264629ef7dd05f747
[PATCH] bonding: Handle large hard_header_len

The bonding driver fails to adjust its hard_header_len when enslaving
interfaces.  Whenever an interface with a hard_header_len greater than the
ETH_HLEN default is enslaved, the potential for an oops exists, and if the
oops happens while responding to an arp request, for example, the system
panics.  GIANFAR devices may use an extended hard_header for VLAN or
hardware checksumming.  Enslaving such a device and then transmitting over
it causes a kernel panic.

Patch modified from submitter's original, but submitter agreed with this
patch in private email.

Signed-off-by: Mark Huth <mhuth@mvista.com>
Signed-off-by: Jay Vosburgh <fubar@us.ibm.com>
Signed-off-by: Jeff Garzik <jeff@garzik.org>
drivers/net/bonding/bond_main.c