[openib-general] 2.6.12 Kernel OpenIB support

Tom Duffy tduffy at sun.com
Fri Jul 15 11:31:38 PDT 2005


On Fri, 2005-07-15 at 10:38 -0700, Roland Dreier wrote:
>     Tom> Hrm, my arping on Fedora Core 4 now does real bad stuff:
> 
> Is it allocating a buffer as big as an ethernet address and then
> trying to put a 20-byte IPoIB address in it?

It seems to be happening at line 479 of arping.c:

	memset(he.sll_addr, -1, he.sll_halen);

where he.sll_addr is 8 big, he.sll_halen is 20

So, yeah.

BTW, FC4 compiles with -Wp,-D_FORTIFY_SOURCE=2 so it is now catching it.

Should struct sockaddr_ll be modified in include/linux/if_packet.h to
accommodate larger addresses?

-tduffy
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 189 bytes
Desc: This is a digitally signed message part
URL: <http://lists.openfabrics.org/pipermail/general/attachments/20050715/4a2d2f9d/attachment.sig>


More information about the general mailing list