Re: [PATCH] loop: prevent get_user pages call from kernel thread(v2)

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Dmitri Monakhov
Date: Monday, July 7, 2008 - 1:02 am

Andi Kleen <andi@firstfloor.org> writes:

Off course this can't work because both fd refer to the same struct file.
man fcntl:
 File status flags
       Each open file description has certain associated status flags, ini-
       tialized  by  open(2) and possibly modified by fcntl(2).  Duplicated
       file descriptors (made with dup(2), fcntl(F_DUPFD),  fork(2),  etc.)
       refer  to  the  same  open file description, and thus share the same
       file status flags.
--
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
Re: [PATCH] loop: prevent get_user pages call from kernel ..., Dmitri Monakhov, (Mon Jul 7, 1:02 am)