Re: [Ecryptfs-devel] [PATCH 1/2] eCryptfs: Introduce device handle for userspace daemon communications

!MAILaRCHIVE_VOTE_RePLACE
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
To: Andrew Morton <akpm@...>
Cc: <linux-fsdevel@...>, <containers@...>, <linux-kernel@...>, <ecryptfs-devel@...>
Date: Tuesday, April 15, 2008 - 6:47 pm

On Tue, Apr 15, 2008 at 02:04:53PM -0700, Andrew Morton wrote:

This resurrects the question from 2006:

On Thu, Aug 24, 2006 at 08:54:19PM -0700, Andrew Morton wrote:

I responded:


A regular device file was my real preference from the get-go, but I
went with netlink at the time because I thought it would be less
complex for managing send queues (i.e., just do a unicast and move
on). It turns out that we do not really get that much complexity
reduction with netlink, and netlink is more heavyweight than a device
handle.

In addition, the netlink interface to eCryptfs has been broken since
2.6.24. I am assuming this is a bug in how eCryptfs uses netlink,
since the other in-kernel users of netlink do not seem to be having
any problems. I have had one report of a user successfully using
eCryptfs with netlink on 2.6.24, but for my own systems, when starting
the userspace daemon, the initial helo message sent to the eCryptfs
kernel module results in an oops right off the bat. I spent some time
looking at it, but I have not yet found the cause. The netlink
interface breaking gave me the motivation to just finish my patch to
migrate to a regular device handle. If I cannot find out soon why the
netlink interface in eCryptfs broke, I am likely to just send a patch
to disable it in 2.6.24 and 2.6.25. I would like the device handle to
be the preferred means of communicating with the userspace daemon from
2.6.26 on forward.

Mike
--
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
Re: [Ecryptfs-devel] [PATCH 1/2] eCryptfs: Introduce device ..., Michael Halcrow, (Tue Apr 15, 6:47 pm)
[PATCH] eCryptfs: Fix refs to pid and user_ns, Michael Halcrow, (Thu Apr 17, 1:03 pm)
Re: [PATCH] eCryptfs: Fix refs to pid and user_ns, Serge E. Hallyn, (Thu Apr 17, 1:41 pm)