Re: [FIX NETLINK] properly check arguments to netlink_bind()

!MAILaRCHIVE_VOTE_RePLACE
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
To: David Miller <davem@...>
Cc: <netdev@...>
Date: Wednesday, September 19, 2007 - 3:16 am

David Miller <davem@davemloft.net> writes:



True, the message send later fixed that.


Also true, but in that case you still end up accessing uninitialized
data.  Also note that e. g. inet_bind() checks explicitely for that and
it's not clear to me why netlink_bind() is different.  Maybe you just
help me figuring out.

Another point is that simply calling

 bind(nl_fd, (struct sockaddr *)&an_int, sizeof(int));

will not return EINVAL but depends on the randomn data after an_int.

   /holger

 
-
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
[FIX NETLINK] properly check arguments to netlink_bind(), Holger Eitzenberger, (Tue Sep 18, 5:01 pm)
Re: [FIX NETLINK] properly check arguments to netlink_bind(), Holger Eitzenberger, (Tue Sep 18, 5:05 pm)
Re: [FIX NETLINK] properly check arguments to netlink_bind(), Holger Eitzenberger, (Wed Sep 19, 3:16 am)
Re: [FIX NETLINK] properly check arguments to netlink_bind(), Holger Eitzenberger, (Tue Sep 18, 5:14 pm)