Skip to content
Commit 3dec7f59 authored by Alexey Dobriyan's avatar Alexey Dobriyan
Browse files

proc 1/2: do PDE usecounting even for ->read_proc, ->write_proc



struct proc_dir_entry::owner is going to be removed. Now it's only necessary
to protect PDEs which are using ->read_proc, ->write_proc hooks.

However, ->owner assignments are racy and make it very easy for someone to switch
->owner on live PDE (as some subsystems do) without fixing refcounts and so on.

http://bugzilla.kernel.org/show_bug.cgi?id=12454

So, ->owner is on death row.

Proxy file operations exist already (proc_file_operations), just bump usecount
when necessary.

Signed-off-by: default avatarAlexey Dobriyan <adobriyan@gmail.com>
parent 09729a99
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment