lkml.org 
[lkml]   [2009]   [May]   [24]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
SubjectRe: [PATCH] TOMOYO: Add garbage collector support. (v2)
From
Date
------- Forwarded Message

Serge E. Hallyn wrote:
> Quoting Tetsuo Handa (penguin-kernel@I-love.SAKURA.ne.jp):
> > James Morris wrote:
> > > On Thu, 14 May 2009, Tetsuo Handa wrote:
> > >
> > > > ---
> > > > security/tomoyo/common.c | 456 +++++++++++++++++++-----------------
> > > > security/tomoyo/common.h | 134 ++++++++--
> > > > security/tomoyo/domain.c | 437 +++++++++++++---------------------
> > > > security/tomoyo/file.c | 369 +++++++++++++++--------------
> > > > security/tomoyo/realpath.c | 567 ++++++++++++++++++++++++++++++++++-----------
> > > > security/tomoyo/realpath.h | 25 +
> > > > security/tomoyo/tomoyo.c | 40 +--
> > > > security/tomoyo/tomoyo.h | 13 -
> > > > 8 files changed, 1190 insertions(+), 851 deletions(-)
> > >
> > > This seems like an awfully large and invasive patch just to add GC support
> > > which you didn't originally didn't think was necessary.
> > >
> > > I think it needs review from people outside of your project.
> >
> > I see. Would somebody please review?
>
> Please resend to me privately. (I've deleted it)
>
> -serge
>
Sure.

The key points are:

(1) Should TOMOYO avoid sleeping operations inside a semaphore?

Until #14, TOMOYO was using singly linked list and thus reader process
did not require any locks. But in #15, TOMOYO is using standard doubly
linked list and thus reader process requires a semaphore. This might
dull the system's response. In this patch, I moved sleeping operations
(i.e. kmalloc(GFP_KERNEL)/kfree()) to outside the semaphore protected
code.

(2) Should TOMOYO have GC support?

Several reviewers had been asking me that TOMOYO should release memory
used by deleted policy. At first, I didn't feel it is necessary. But in
#15, TOMOYO uses standard doubly linked list and getting close to be able
to know whether there is a reader process or not. Also, I changed to use
kmalloc(GFP_KERNEL)/kfree() to realize the key point (1) in this patch.
TOMOYO is almost ready to have GC support.

This patch is very large, so I'll create splitted patches if you need.
Thank you for your time.

------- End of Forwarded Message


\
 
 \ /
  Last update: 2009-05-25 02:39    [W:0.065 / U:9.340 seconds]
©2003-2018 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site