Re: [PATCH] proc: Show the mountid associated with exe
From: Chen Linxuan
Date: Sun May 11 2025 - 12:19:37 EST
On Sun, May 11, 2025 at 10:22 PM Al Viro <viro@xxxxxxxxxxxxxxxxxx> wrote:
> Excuse me, just what is that path_get/path_put for? If you have
> an opened file, you do have its ->f_path pinned and unchanging.
> Otherwise this call of path_get() would've itself been unsafe...
I am not very familiar with how these functions should be used.
I just copied similar logic from proc_exe_link and added a path_put.
Maybe I made a stupid mistake...