Page MenuHomeFreeBSD

Reject ioctls to SCSI enclosures from 32-bit compat processes.
ClosedPublic

Authored by brooks on Mar 12 2018, 8:16 PM.
Tags
None
Referenced Files
Unknown Object (File)
Sun, Nov 3, 8:29 AM
Unknown Object (File)
Oct 2 2024, 7:02 AM
Unknown Object (File)
Sep 23 2024, 5:24 AM
Unknown Object (File)
Sep 20 2024, 10:15 AM
Unknown Object (File)
Sep 18 2024, 6:29 AM
Unknown Object (File)
Sep 12 2024, 4:13 AM
Unknown Object (File)
Sep 9 2024, 3:58 AM
Unknown Object (File)
Sep 8 2024, 7:06 PM
Subscribers
None

Details

Summary

The ioctl objects contain pointers and require translation and some
refactoring of the infrastructure to work. For now prevent opertion on
garbage values. This is very slightly overbroad in that ENCIOC_INIT is
safe.

Diff Detail

Repository
rS FreeBSD src repository - subversion
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

As my cats say: "If the box don't fits, I don't sits"

But if there's no way the ioctl could work, this is the right course of action.

This revision is now accepted and ready to land.Mar 12 2018, 8:25 PM
kib added inline comments.
sys/cam/scsi/scsi_enc.c
363 ↗(On Diff #40218)

space before '('.

Will fix missing space in commit. Thanks!

This revision was automatically updated to reflect the committed changes.