[openib-general] 2.6.12 Kernel OpenIB support

Hal Rosenstock halr at voltaire.com
Fri Jul 15 11:47:30 PDT 2005


On Fri, 2005-07-15 at 14:31, Tom Duffy wrote:
> 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?

There will be other problems beyond that, right ? Won't we be back to
the sending of link level packets from user space again ? 

-- Hal




More information about the general mailing list