]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
CTL: Validate IOCTL parameters.
authorAlexander Motin <mav@FreeBSD.org>
Wed, 7 Sep 2022 01:58:27 +0000 (21:58 -0400)
committerAlexander Motin <mav@FreeBSD.org>
Wed, 7 Sep 2022 01:58:27 +0000 (21:58 -0400)
commit0586be48a97c5af50ba4f578d33211f81cc57016
tree74d4ac76e4d999194bb6334b2e15d6ac75cd6df5
parent0fddee6d1f3e4d7fa81f5262204fb9a5a4cacd0b
CTL: Validate IOCTL parameters.

It was possible to cause kernel panic by passing too large args_len
or non-NULL result_nvl.

Though since the /dev/cam/ctl device is accessible only by root and
used only by limited number of tools it was not a big problem.

PR: 266115
PR: 266136
Reported by: Robert Morris <rtm@lcs.mit.edu>
MFC after: 1 week
sys/cam/ctl/ctl.c
sys/cam/ctl/ctl_ioctl.h