HomeFreeBSD

Reject userland CCBs that have CAM_UNLOCKED set.

Description

Reject userland CCBs that have CAM_UNLOCKED set.

CAM_UNLOCKED is internal flag and cannot correctly be set by userland.
Return EINVAL from CAMIOCOMMAND and CAMIOQUEUE if it is set.

Also fix leaks in some of the error paths for CAMIOQUEUE.

PR: 215356
Reviewed by: ken, mav
MFC after: 1 week
Differential Revision: https://reviews.freebsd.org/D9869

Details

Provenance
markjAuthored on
Reviewer
ken
Differential Revision
D9869: Return EINVAL for userland CCBs with CAM_UNLOCKED set
Parents
rS314623: Make sure guid table is compiled before we use it.
Branches
Unknown
Tags
Unknown