Re: [PATCH RESEND 2/4] uaccess: Selectively open read or write user access

2020-04-02 Thread Christophe Leroy
Le 02/04/2020 à 09:51, Kees Cook a écrit : On Thu, Apr 02, 2020 at 07:34:17AM +, Christophe Leroy wrote: [...] diff --git a/kernel/compat.c b/kernel/compat.c index 843dd17e6078..705ca7e418c6 100644 --- a/kernel/compat.c +++ b/kernel/compat.c @@ -199,7 +199,7 @@ long

Re: [PATCH RESEND 2/4] uaccess: Selectively open read or write user access

2020-04-02 Thread Kees Cook
On Thu, Apr 02, 2020 at 07:34:17AM +, Christophe Leroy wrote: > [...] > diff --git a/kernel/compat.c b/kernel/compat.c > index 843dd17e6078..705ca7e418c6 100644 > --- a/kernel/compat.c > +++ b/kernel/compat.c > @@ -199,7 +199,7 @@ long compat_get_bitmap(unsigned long *mask, const >

[PATCH RESEND 2/4] uaccess: Selectively open read or write user access

2020-04-02 Thread Christophe Leroy
When opening user access to only perform reads, only open read access. When opening user access to only perform writes, only open write access. Signed-off-by: Christophe Leroy --- fs/readdir.c| 12 ++-- kernel/compat.c | 12 ++-- kernel/exit.c | 12