login
Header Space

 
 

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

Score:
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
To: <holger@...>
Cc: <netdev@...>
Date: Tuesday, September 18, 2007 - 5:53 pm

From: Holger Eitzenberger <holger@my-eitzenberger.de>
Date: Tue, 18 Sep 2007 23:05:52 +0200


Your patch is incorrect and also unnecessary.

Firstly, you patch compares the address _pointer_ against
the minimum length.  That's obviously wrong.

And if you check the call sites of the protocol ->bind() methods, they
all use on-stack buffer for the address object which is at least
MAX_SOCK_ADDR bytes in length so that the bind methods don't have to
check the size if they don't want to.
-
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(), David Miller, (Tue Sep 18, 5:53 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)
speck-geostationary