Re: [PATCH 05/19] context_tracking: Split user tracking Kconfig

From: Frederic Weisbecker
Date: Fri Mar 11 2022 - 10:49:57 EST


On Thu, Mar 10, 2022 at 11:43:46AM -0800, Paul E. McKenney wrote:
> On Wed, Mar 02, 2022 at 04:47:56PM +0100, Frederic Weisbecker wrote:
> > Context tracking is going to be used not only to track user transitions
> > but also idle/IRQs/NMIs. The user tracking part will then become a
> > seperate feature. Prepare Kconfig for that.
>
> s/seperate/separate/ # nit

Thanks, of course I'm never sure about that one.

> > diff --git a/arch/Kconfig b/arch/Kconfig
> > index 678a80713b21..1a3b79cfc9e3 100644
> > --- a/arch/Kconfig
> > +++ b/arch/Kconfig
> > @@ -762,7 +762,7 @@ config HAVE_ARCH_WITHIN_STACK_FRAMES
> > and similar) by implementing an inline arch_within_stack_frames(),
> > which is used by CONFIG_HARDENED_USERCOPY.
> >
> > -config HAVE_CONTEXT_TRACKING
> > +config HAVE_CONTEXT_TRACKING_USER
>
> Just checking... This means that only some configs will see userland
> execution as being different than kernel execution, correct? (Which
> is the case today, to be fair.)

Exactly!

Thanks!