We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ca282b4 commit 58978b4Copy full SHA for 58978b4
arch/x86/entry/common.c
@@ -110,10 +110,10 @@ __visible noinstr bool do_syscall_64(struct pt_regs *regs, int nr)
110
* in kernel space. This essentially lets the user take over
111
* the kernel, since userspace controls RSP.
112
*
113
- * Change top bits to match the most significant bit (47th or 56th bit
114
- * depending on paging mode) in the address.
+ * TASK_SIZE_MAX covers all user-accessible addresses other than
+ * the deprecated vsyscall page.
115
*/
116
- if (unlikely(!__is_canonical_address(regs->ip, __VIRTUAL_MASK_SHIFT + 1)))
+ if (unlikely(regs->ip >= TASK_SIZE_MAX))
117
return false;
118
119
/*
0 commit comments