]> git.baikalelectronics.ru Git - kernel.git/commit
net: validate HWTSTAMP ioctl parameters
authorRichard Cochran <richard.cochran@omicron.at>
Wed, 19 Oct 2011 21:00:35 +0000 (17:00 -0400)
committerDavid S. Miller <davem@davemloft.net>
Wed, 19 Oct 2011 21:00:35 +0000 (17:00 -0400)
commit021bd6415f3c60fb5e7f5d5b5901d0496bb5b3bb
tree626d89398ae24a6995acb1b179d8cbed39199263
parent33ddacab908baf475b4290e37a2b112278af04be
net: validate HWTSTAMP ioctl parameters

This patch adds a sanity check on the values provided by user space for
the hardware time stamping configuration. If the values lie outside of
the absolute limits, then the ioctl request will be denied.

Signed-off-by: Richard Cochran <richard.cochran@omicron.at>
Signed-off-by: David S. Miller <davem@davemloft.net>
include/linux/net_tstamp.h
net/core/dev.c