[openib-general] Re: [PATCH] [NET] socket.c: zero socket addresses before use.

David S. Miller davem at davemloft.net
Wed Sep 21 00:13:21 PDT 2005


From: ebiederm at xmission.com (Eric W. Biederman)
Date: Tue, 20 Sep 2005 11:18:23 -0600

> Dave I don't know if this is part of what you want but
> zeroing the socket address buffer before use seem to be implied
> by what you were asking for.   So here is an additional patch
> to implement that.
> 
> This is a paranoid precaution to guard against accidental
> information leaks to user space or other consumers/producers
> may fail to properly fail to set or read the hardware
> address length. af_packet over ethernet has had at least
> has one small but in this respect.

I think this patch might be a bit overkill, but thanks for cooking it
up.  I'm willing to be convinced otherwise though :-)



More information about the general mailing list