LKML Archive on lore.kernel.org
help / color / mirror / Atom feed
From: Al Viro <viro@ftp.linux.org.uk>
To: Alexey Dobriyan <adobriyan@gmail.com>
Cc: Andrew Morton <akpm@osdl.org>,
Alexey Dobriyan <adobriyan@openvz.org>,
linux-kernel@vger.kernel.org, duncan.sands@math.u-psud.fr
Subject: Re: [PATCH v4] Fix rmmod/read/write races in /proc entries
Date: Sun, 11 Feb 2007 20:34:26 +0000 [thread overview]
Message-ID: <20070211203426.GB4095@ftp.linux.org.uk> (raw)
In-Reply-To: <20070211202330.GA24509@martell.zuzino.mipt.ru>
> Does it pass everyone's bullshit detectors?
Nice, but incomplete. What we need to add is
* procfs-specific file_operations shared by all regular files
on procfs. Stuff in there would call methods from pde->proc_fops,
after having done the same kind of exclusion you are currently doing
in proc_file_read(), et.al.
* always set ->f_op of regular files on procfs to that sucker.
Don't reset it to NULL during removal.
* now that exclusion is done in wrappers, no need to do it in
proc_file_read().
That'll solve the rest of issues. Eventually we might want to divorce
->proc_fops from file_operations (and trim it down), but that's a separate
story.
next prev parent reply other threads:[~2007-02-11 20:34 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-02-08 13:20 [PATCH v3] " Alexey Dobriyan
2007-02-09 9:00 ` Andrew Morton
2007-02-11 20:23 ` [PATCH v4] " Alexey Dobriyan
2007-02-11 20:34 ` Al Viro [this message]
2007-02-13 6:35 ` Andrew Morton
2007-02-13 16:16 ` Alexey Dobriyan
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20070211203426.GB4095@ftp.linux.org.uk \
--to=viro@ftp.linux.org.uk \
--cc=adobriyan@gmail.com \
--cc=adobriyan@openvz.org \
--cc=akpm@osdl.org \
--cc=duncan.sands@math.u-psud.fr \
--cc=linux-kernel@vger.kernel.org \
--subject='Re: [PATCH v4] Fix rmmod/read/write races in /proc entries' \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).