From 03e57d273e8dc77f2b0cb89d410cea0f2eef66e8 Mon Sep 17 00:00:00 2001 From: Jean-Philippe Brucker Date: Sat, 18 May 2019 22:09:27 +0800 Subject: [PATCH] mm: export symbol find_get_task_by_vpid hulk inclusion category: feature bugzilla: 14369 CVE: NA ------------------- Userspace drivers implemented with VFIO might want to bind sub-processes to their devices. In a VFIO ioctl, they provide a pid that is used to find a task and its mm. Since VFIO can be built as a module, export the find_get_task_by_vpid symbol. Cc: akpm@linux-foundation.org Signed-off-by: Jean-Philippe Brucker Signed-off-by: Fang Lijun Reviewed-by: Hanjun Guo Reviewed-by: Zhen Lei Signed-off-by: Yang Yingliang --- kernel/pid.c | 1 + 1 file changed, 1 insertion(+) diff --git a/kernel/pid.c b/kernel/pid.c index d4df9c3387e1..bfdcd16c7f09 100644 --- a/kernel/pid.c +++ b/kernel/pid.c @@ -365,6 +365,7 @@ struct task_struct *find_get_task_by_vpid(pid_t nr) return task; } +EXPORT_SYMBOL_GPL(find_get_task_by_vpid); struct pid *get_task_pid(struct task_struct *task, enum pid_type type) { -- GitLab