Re: [PATCH] net: af_packet: Validate parameter size for PACKET_HDRLEN control message
From: David Miller <davem@davemloft.net>
Date: 2013-02-27 20:19:31
From: David Miller <davem@davemloft.net>
Date: 2013-02-27 20:19:31
The first thing this function does is test whether len < 0, therefore your change is unnecessary. If the user gives us something between 0 and sizeof(int), that's their problem, and they'll get a partial int copied back into userspace as a result instead of the complete integer. Please don't blindly silence warnings like this, thanks.