Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F151614758
D14654.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
1 KB
Referenced Files
None
Subscribers
None
D14654.diff
View Options
Index: head/sys/cam/scsi/scsi_pass.c
===================================================================
--- head/sys/cam/scsi/scsi_pass.c
+++ head/sys/cam/scsi/scsi_pass.c
@@ -30,6 +30,8 @@
#include <sys/cdefs.h>
__FBSDID("$FreeBSD$");
+#include "opt_compat.h"
+
#include <sys/param.h>
#include <sys/systm.h>
#include <sys/kernel.h>
@@ -45,6 +47,7 @@
#include <sys/poll.h>
#include <sys/selinfo.h>
#include <sys/sdt.h>
+#include <sys/sysent.h>
#include <sys/taskqueue.h>
#include <vm/uma.h>
#include <vm/vm.h>
@@ -1859,6 +1862,12 @@
union ccb **user_ccb, *ccb;
xpt_opcode fc;
+#ifdef COMPAT_FREEBSD32
+ if (SV_PROC_FLAG(td->td_proc, SV_ILP32)) {
+ error = ENOTTY;
+ goto bailout;
+ }
+#endif
if ((softc->flags & PASS_FLAG_ZONE_VALID) == 0) {
error = passcreatezone(periph);
if (error != 0)
@@ -2033,6 +2042,12 @@
struct pass_io_req *io_req;
int old_error;
+#ifdef COMPAT_FREEBSD32
+ if (SV_PROC_FLAG(td->td_proc, SV_ILP32)) {
+ error = ENOTTY;
+ goto bailout;
+ }
+#endif
user_ccb = (union ccb **)addr;
old_error = 0;
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Fri, Apr 10, 12:40 PM (15 h, 39 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
31186819
Default Alt Text
D14654.diff (1 KB)
Attached To
Mode
D14654: Reject CAMIOGET and CAMIOQUEUE ioctl's on pass(4) 32-bit compat mode
Attached
Detach File
Event Timeline
Log In to Comment