]> CyberLeo.Net >> Repos - FreeBSD/stable/10.git/commit
MFC r330819, r330885, r330934
authorbrooks <brooks@ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f>
Tue, 27 Mar 2018 17:42:04 +0000 (17:42 +0000)
committerbrooks <brooks@ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f>
Tue, 27 Mar 2018 17:42:04 +0000 (17:42 +0000)
commit6d975f94c07fb1e8a31c114578e7cbf1f07d6c53
tree5d0692323c95712fec9bf8de03fe071591389480
parentff0b6acfb8dcc48c896177ea38565cea09e0b7da
MFC r330819, r330885, r330934

r330819:
Reject CAMIOGET and CAMIOQUEUE ioctl's on pass(4) in 32-bit compat mode.

These take a union ccb argument which is full of kernel pointers.
Substantial translation efforts would be required to make this work.
By rejecting the request we avoid processing or returning entierly
wrong data.

Reviewed by: imp, ken, markj, cem
Obtained from: CheriBSD
Sponsored by: DARPA, AFRL
Differential Revision: https://reviews.freebsd.org/D14654

r330885:
We need opt_compat.h after r330819 and 330820.

Add opt_compat.h to fix the stand-alone build case.

Sponsored by: Netflix.

r330934:
This should have been += so clean builds work.

Noticed by: hps@

git-svn-id: svn://svn.freebsd.org/base/stable/10@331632 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
sys/cam/scsi/scsi_pass.c
sys/modules/cam/Makefile