lkml.org 
[lkml]   [2008]   [Aug]   [28]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH 5/7] FUSE: implement ioctl support
Miklos Szeredi wrote:
> On Thu, 28 Aug 2008, H. Peter Anvin wrote:
>> This is *hard* to get right, and we screw this up in the kernel with
>> painful regularity. The throught of having user-space processes, which
>> don't have access to the kernel locking primitives and functions like
>> copy_from_user() dealing with this stuff scares me crazy.
>
> What issues exactly are you thinking of?

Memory changing underneath you. It can be dealt with by very careful
sequencing only.

>> That is why I'm suggesting using an in-kernel linearizer.
>
> Lots of complexity, ugh... Even Tejun's current scheme is better IMO.

And then you get *no* privilege separation, for one thing, so why even
bother doing it in userspace?

-hpa


\
 
 \ /
  Last update: 2008-08-28 23:31    [W:0.121 / U:13.880 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site