]> git.baikalelectronics.ru Git - kernel.git/commit
Merge branch 'ptp-Validate-the-ancillary-ioctl-flags-more-carefully'
authorDavid S. Miller <davem@davemloft.net>
Fri, 15 Nov 2019 20:48:33 +0000 (12:48 -0800)
committerDavid S. Miller <davem@davemloft.net>
Fri, 15 Nov 2019 20:48:33 +0000 (12:48 -0800)
commit0d2c08fb85e51a9b2124f3581ce9c176d06d1d72
treecc3ade086e74aec759643dcf2b3001a2c49bdd4d
parentd35588783f9d05c4f589275f759d4ac430c2b0d8
parent9e2d54050b563939c8d3d8225618e95c7fdfec29
Merge branch 'ptp-Validate-the-ancillary-ioctl-flags-more-carefully'

Richard Cochran says:

====================
ptp: Validate the ancillary ioctl flags more carefully.

The flags passed to the ioctls for periodic output signals and
time stamping of external signals were never checked, and thus formed
a useless ABI inadvertently.  More recently, a version 2 of the ioctls
was introduced in order make the flags meaningful.  This series
tightens up the checks on the new ioctl flags.

- Patch 1 ensures at least one edge flag is set for the new ioctl.
- Patches 2-7 are Jacob's recent checks, picking up the tags.
- Patch 8 introduces a "strict" flag for passing to the drivers when the
  new ioctl is used.
- Patches 9-12 implement the "strict" checking in the drivers.
- Patch 13 extends the test program to exercise combinations of flags.
====================

Signed-off-by: David S. Miller <davem@davemloft.net>