/proc/profile is created when profiling is turned on and never removed. Say so with PROC_ENTRY_PERMANENT, procfs then calls into it without pinning it.
Signed-off-by: Christian Brauner (Amutable) <[email protected]> --- kernel/profile.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/kernel/profile.c b/kernel/profile.c index 64f6a45834b1..0c2672adcbb5 100644 --- a/kernel/profile.c +++ b/kernel/profile.c @@ -203,7 +203,7 @@ static ssize_t write_profile(struct file *file, char *buf, size_t count, } static const struct proc_ops profile_proc_ops = { - .proc_flags = PROC_ENTRY_FULL_READS, + .proc_flags = PROC_ENTRY_PERMANENT | PROC_ENTRY_FULL_READS, .proc_read_buf = read_profile, .proc_write_buf = write_profile, .proc_lseek = default_llseek, -- 2.53.0
