Re: [PATCH 5/6] objtool: Add UACCESS validation

From: Linus Torvalds
Date: Wed Feb 27 2019 - 11:26:21 EST


On Wed, Feb 27, 2019 at 6:08 AM Peter Zijlstra <peterz@xxxxxxxxxxxxx> wrote:
>
> So KASAN is wildly unhappy..

Yeah, well, with KASAN you definitely end up doing lots and lots for
calls for just regular memory accesses.

Which we obviously need to do for most uaccess cases.

I think you should just say "ok, kasan reporting will possibly run with AC on".

Again, having AC on isn't fatal. It just makes the window where you
can incorrectly access user space through a wild pointer bigger.

So the whole "run with AC on" thing isn't a big deal, apart from the
scheduling case.

And we know how to fix the scheduling case by just doing the
save/restore thing..

Linus