Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F106136848
D30035.id88730.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
D30035.id88730.diff
View Options
diff --git a/sys/amd64/linux/linux.h b/sys/amd64/linux/linux.h
--- a/sys/amd64/linux/linux.h
+++ b/sys/amd64/linux/linux.h
@@ -431,6 +431,7 @@
#define LINUX_ARCH_SET_FS 0x1002
#define LINUX_ARCH_GET_FS 0x1003
#define LINUX_ARCH_GET_GS 0x1004
+#define LINUX_ARCH_CET_STATUS 0x3001
#define linux_copyout_rusage(r, u) copyout(r, u, sizeof(*r))
diff --git a/sys/amd64/linux/linux_machdep.c b/sys/amd64/linux/linux_machdep.c
--- a/sys/amd64/linux/linux_machdep.c
+++ b/sys/amd64/linux/linux_machdep.c
@@ -242,6 +242,7 @@
int
linux_arch_prctl(struct thread *td, struct linux_arch_prctl_args *args)
{
+ unsigned long long cet[3];
struct pcb *pcb;
int error;
@@ -275,7 +276,12 @@
error = copyout(&pcb->pcb_gsbase, PTRIN(args->addr),
sizeof(args->addr));
break;
+ case LINUX_ARCH_CET_STATUS:
+ memset(cet, 0, sizeof(cet));
+ error = copyout(&cet, PTRIN(args->addr), sizeof(cet));
+ break;
default:
+ linux_msg(td, "unsupported arch_prctl code %#x", args->code);
error = EINVAL;
}
return (error);
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Fri, Dec 27, 12:22 AM (11 h, 25 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
15604701
Default Alt Text
D30035.id88730.diff (1 KB)
Attached To
Mode
D30035: linux(4): support GET_CET_STATUS, report unknown codes
Attached
Detach File
Event Timeline
Log In to Comment