pf tests: Basic ioctl validation for DIOCRGETTABLES, DIOCRGETTSTATS, DIOCRCLRTSTATS...
authorkp <kp@FreeBSD.org>
Fri, 6 Apr 2018 15:57:20 +0000 (15:57 +0000)
committerkp <kp@FreeBSD.org>
Fri, 6 Apr 2018 15:57:20 +0000 (15:57 +0000)
commit01a46893f70a574810a6f69cc1cfb1202d916a6b
tree82acb09f2085e7ab63f9781a623dadab315b1c6e
parent337a0778fc0bc8a2ea56ea7922da765327ce7373
pf tests: Basic ioctl validation for DIOCRGETTABLES, DIOCRGETTSTATS, DIOCRCLRTSTATS and DIOCRSETTFLAGS

Validate the DIOCRGETTABLES, DIOCRGETTSTATS, DIOCRCLRTSTATS and
DIOCRSETTFLAGS ioctls with invalid values. These may succeed (because
the kernel uses the minimally required size, not the specified size),
but should not trigger kernel panics.

MFC after: 1 week
tests/sys/netpfil/pf/ioctl/validation.c