]> 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)
commit5ddd28790d542a6a56613ca2430f8e83113279d6
tree626d89398ae24a6995acb1b179d8cbed39199263
parent244f591f5f5dc3783d7577f73a15a98b1235d266
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