[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)
commit54ef313714070b397d3857289f0fd099b7643631
tree33e0c4ae228ad52a5f5dc9c4389412c436d22d0f
parenta50d8de2cc872818b61e60c20c75be3f19aa6887
[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