Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F177812499
D57612.1795343073.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Authored By
Unknown
Size
786 B
Referenced Files
None
Subscribers
None
D57612.1795343073.diff
View Options
diff --git a/sys/compat/linuxkpi/common/src/linux_compat.c b/sys/compat/linuxkpi/common/src/linux_compat.c
--- a/sys/compat/linuxkpi/common/src/linux_compat.c
+++ b/sys/compat/linuxkpi/common/src/linux_compat.c
@@ -51,6 +51,7 @@
#include <sys/mman.h>
#include <sys/stack.h>
#include <sys/stdarg.h>
+#include <sys/syscall.h>
#include <sys/sysent.h>
#include <sys/time.h>
#include <sys/user.h>
@@ -938,7 +939,11 @@
*/
task->bsd_ioctl_data = data;
task->bsd_ioctl_len = size;
- data = (void *)LINUX_IOCTL_MIN_PTR;
+ if (SV_PROC_ABI(td->td_proc) == SV_ABI_FREEBSD &&
+ td->td_sa.code == SYS_ioctl)
+ data = (void *)(uintptr_t)td->td_sa.args[2];
+ else
+ data = (void *)LINUX_IOCTL_MIN_PTR;
} else {
/* fetch user-space pointer */
data = *(void **)data;
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Sun, Nov 22, 10:24 AM (23 h, 44 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
41905669
Default Alt Text
D57612.1795343073.diff (786 B)
Attached To
Mode
D57612: linuxkpi ioctl handler: restore the user data pointer
Attached
Detach File
Event Timeline