[Intel-xe] [RFC 1/3] drm/xe/eudebug: Export GPL symbol ptrace_may_access

Lucas De Marchi lucas.demarchi at intel.com
Mon Apr 17 17:35:05 UTC 2023


On Thu, Apr 13, 2023 at 05:27:47PM +0300, Mika Kuoppala wrote:
>Export ptrace_may_access for eudebug to handle
>access checking for debugger connections.
>
>This is needed to be able to compile xe.ko as module.
>
>Signed-off-by: Mika Kuoppala <mika.kuoppala at linux.intel.com>
>---
> kernel/ptrace.c | 1 +
> 1 file changed, 1 insertion(+)
>
>diff --git a/kernel/ptrace.c b/kernel/ptrace.c
>index 0786450074c1..e6933bbcbd6a 100644
>--- a/kernel/ptrace.c
>+++ b/kernel/ptrace.c
>@@ -364,6 +364,7 @@ bool ptrace_may_access(struct task_struct *task, unsigned int mode)
> 	task_unlock(task);
> 	return !err;
> }
>+EXPORT_SYMBOL_GPL(ptrace_may_access);

drm/xe ??  This cannot go through an xe branch when that is applied
upstream. Is Oleg aware? Would it be blocked if xe was already upstream?

Lucas De Marchi

>
> static int check_ptrace_options(unsigned long data)
> {
>-- 
>2.34.1
>


More information about the Intel-xe mailing list