OpenVZ Forum


Home » Mailing lists » Devel » [PATCH] lost content of /proc/sys/fs/binfmt_misc
Re: [PATCH] proc: Do not invalidate dentries with submounts [message #24600 is a reply to message #24557] Thu, 06 December 2007 16:05 Go to previous message
ebiederm is currently offline  ebiederm
Messages: 1354
Registered: February 2006
Senior Member
"Denis V. Lunev" <den@sw.ru> writes:

> you have changed the behavior of revalidation by shadows. I think it
> will be better to restore it and keep new one for shadows (and below)
> only, which has been done by my yesterday patch.

- I think it is better to move forward rather then back.
- The old proc dentry caching behavior is actually too aggressive, and has
  problem corner cases.  Keeping the dentries when we have something mounted
  on top is a trade off that is the least of two evils.
- My change fixes the mount leak on all of /proc not just on /proc/generic.

What you did is a hack that restored the old slightly buggy behavior.  Which
is fine if we can't find anything better.  It is not code that is on the
path towards a /proc that properly caches it's dentries.

With the old behavior a random user space application can open a file or
a directory in /proc pinning it's dcache entry.  Then the module supplying
that open file can be removed and reinserted.  Until the user space application
removes reference to that /proc file all you will be able to find is the
version of the file from before /proc was removed.

That sounds like a way to trigger nasty behavior to me.  I would like
to remove that possibility from the kernel if I can.

Eric
 
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: [PATCH] remove prototype of ip_rt_advice
Next Topic: [PATCH net-2.6.25 0/11] Combined set of sysctl reworks, cleanups and fixes
Goto Forum:
  


Current Time: Sat Oct 19 01:30:48 GMT 2024

Total time taken to generate the page: 0.04861 seconds