[lkml]   [2003]   [Apr]   [28]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
SubjectRe: [PATCH] reducing overheads in fget/fput
On Mon, Apr 28, 2003 at 08:32:28PM +0100, wrote:
> You are. Have a process share file table at the time of call and
> have its sibling die in the middle. Oops - condition that had
> been true at time of fget_light() (->files->count > 1) is false
> at the time we fput_light(). Have fun - we had just leaked a
> reference to struct file.

That shouldn't be very difficult to fix. For the fget_light/fput_light
pair in a syscall, we make the files->count == 1 check only once at the
beginning. Do you see a problem with that ?

To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to
More majordomo info at
Please read the FAQ at

 \ /
  Last update: 2005-03-22 13:35    [W:0.055 / U:8.972 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site