Re: [PATCH 00/20] objtool: UACCESS validation v3
From: Linus Torvalds
Date: Thu Mar 07 2019 - 11:31:38 EST
On Thu, Mar 7, 2019 at 4:03 AM Peter Zijlstra <peterz@xxxxxxxxxxxxx> wrote:
>
> Take for instance this one (.config attached); it has both
> CONFIG_PROFILE_ALL_BRANCHES=y and CONFIG_TRACE_BRANCH_PROFILING=y
> and it compiles:
How about just turning off SMAP checking for the really odd cases?
At some point it's not worth worrying about excessive debug
infrastructure, I think. Just give up and say "ok. we'll save/restore
in preempt_schedule()".
Or just make preempt_schedule() check AC and not schedule. It already
does that for IF.
Linus