OpenVZ Forum


Home » Mailing lists » Devel » [PATCH 3/20] Introduce MS_KERNMOUNT flag
Re: [PATCH 3/20] Introduce MS_KERNMOUNT flag [message #15785 is a reply to message #15761] Mon, 13 August 2007 07:12 Go to previous message
Pavel Emelianov is currently offline  Pavel Emelianov
Messages: 1149
Registered: September 2006
Senior Member
Christoph Hellwig wrote:
> On Fri, Aug 10, 2007 at 03:47:55PM +0400, xemul@openvz.org wrote:
>> This flag tells the .get_sb callback that this is a kern_mount() call
>> so that it can trust *data pointer to be valid in-kernel one. If this
>> flag is passed from the user process, it is cleared since the *data
>> pointer is not a valid kernel object.
>>
>> Running a few steps forward - this will be needed for proc to create the
>> superblock and store a valid pid namespace on it during the namespace
>> creation. The reason, why the namespace cannot live without proc mount
>> is described in the appropriate patch.
> 
> I don't like this at all.  We should never pass kernel and userspace
> addresses through the same pointer.  Maybe add an additional argument
> to the get_sb prototype instead.  But this whole idea of mounting /proc
> from kernelspace sounds like a really bad idea to me.  /proc should
> never be mounted from the kernel but always normally from userspace.

Why then is it mounted in proc_root_init()?

Thanks,
Pavel
 
Read Message
Read Message
Read Message
Read Message
Previous Topic: [PATCH] Fix OOPS in show_uevent()
Next Topic: [PATCH] ext3: fix ext34_fill_super group description initialization
Goto Forum:
  


Current Time: Sat Sep 06 04:58:28 GMT 2025

Total time taken to generate the page: 0.07832 seconds