lkml.org 
[lkml]   [2015]   [Jun]   [29]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH] fs/file.c: __fget() and dup2() atomicity rules
On Mon, Jun 29, 2015 at 05:10:30PM +0200, Eric Dumazet wrote:
> From: Eric Dumazet <edumazet@google.com>
>
> __fget() makes sure a file refcount is not zero before
> taking a reference. It should also fetch again file pointer
> in order to respect dup2() atomicity requirements.
>
> It should either read a NULL pointer or a file on which
> a refcount can be taken.

Hmm... The problem is real, but I wonder if one could trigger a long
spin there...


\
 
 \ /
  Last update: 2015-06-29 20:01    [W:0.783 / U:0.144 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site