]> 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)
commitef55033fe7e3d3c8b7a7aac64af3b2300e7d283e
treecc3ade086e74aec759643dcf2b3001a2c49bdd4d
parent17f463488faf58ee4f1b0b357227edaa894e204a
parent14c6a35945c48db88dd845091bcd2a5e33295cbb
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>