HomeFreeBSD

Fail any passthrough command whose transfer size exceeds the controller's

Description

Fail any passthrough command whose transfer size exceeds the controller's
max transfer size. This guards against rogue commands coming in from
userspace.

Also add KASSERTS for the virtual address and unmapped bio cases, if the
transfer size exceeds the controller's max transfer size.

Sponsored by: Intel
MFC after: 3 days

Details

Provenance
jimharrisAuthored on Jun 26 2013, 11:32 PM
Parents
rG8d09e3c40085: Use MAXPHYS to specify the maximum I/O size for nvme(4).
Branches
Unknown
Tags
Unknown

Event Timeline