[PATCH 04/21] kernel: export ptrace_may_access

Mika Kuoppala mika.kuoppala at linux.intel.com
Fri Jul 26 14:08:01 UTC 2024


We need to export ptrace_may_access to be able to
allow debugger connection to check for debuggee access and
at the same time allow xe.ko module build.

CC: Lucas De Marchi <lucas.demarchi at intel.com>
Signed-off-by: Mika Kuoppala <mika.kuoppala at linux.intel.com>
CC: Andi Shyti <andi.shyti at intel.com>
CC: Maciej Patelczyk <maciej.patelczyk at linux.intel.com>
Signed-off-by: Jonathan Cavitt <jonathan.cavitt at intel.com>
---
 kernel/ptrace.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/kernel/ptrace.c b/kernel/ptrace.c
index d5f89f9ef29f..86be1805ebd8 100644
--- a/kernel/ptrace.c
+++ b/kernel/ptrace.c
@@ -354,6 +354,7 @@ bool ptrace_may_access(struct task_struct *task, unsigned int mode)
 	task_unlock(task);
 	return !err;
 }
+EXPORT_SYMBOL_GPL(ptrace_may_access);
 
 static int check_ptrace_options(unsigned long data)
 {
-- 
2.34.1



More information about the Intel-xe mailing list