Re: [PATCH v2 1/6] fs/readdir: Fix filldir() and filldir64() use of user_access_begin()

From: Christophe Leroy
Date: Thu Jan 23 2020 - 01:27:11 EST




Le 22/01/2020 Ã 21:37, Linus Torvalds a ÃcritÂ:
[ Talking to myself ]

On Wed, Jan 22, 2020 at 12:00 PM Linus Torvalds
<torvalds@xxxxxxxxxxxxxxxxxxxx> wrote:

COMPLETELY UNTESTED! It compiles for me. The generated assembly looks
ok from a quick look.


So here's a slightly updated patch that does exactly that, and avoids
the objtool warning.

It actually generates better code than the last one too, because now
we don't duplicate the user_access_end() for the EINTR case.

So test this one instead, please.

This patch works on my ppc board, thanks

Christophe