Re: [PATCH v2 11/20] kasan: add and integrate kasan boot parameters

2020-11-13 Thread Marco Elver
On Fri, Nov 13, 2020 at 06:52PM +0100, Marco Elver wrote: > On Tue, Nov 10, 2020 at 11:20PM +0100, 'Andrey Konovalov' via kasan-dev wrote: > [...] > > +/* kasan.mode=off/prod/full */ > > +static int __init early_kasan_mode(char *arg) > > +{ > > + if (!arg) > > + return -EINVAL; > > + >

Re: [PATCH v2 11/20] kasan: add and integrate kasan boot parameters

2020-11-13 Thread Marco Elver
On Tue, Nov 10, 2020 at 11:20PM +0100, 'Andrey Konovalov' via kasan-dev wrote: [...] > +/* kasan.mode=off/prod/full */ > +static int __init early_kasan_mode(char *arg) > +{ > + if (!arg) > + return -EINVAL; > + > + if (!strcmp(arg, "off")) > + kasan_arg_mode = KASAN_

Re: [PATCH v2 11/20] kasan: add and integrate kasan boot parameters

2020-11-12 Thread Andrey Konovalov
On Thu, Nov 12, 2020 at 1:55 PM Catalin Marinas wrote: > > On Thu, Nov 12, 2020 at 12:53:58PM +0100, Marco Elver wrote: > > On Thu, 12 Nov 2020 at 12:35, Catalin Marinas > > wrote: > > > > > > On Tue, Nov 10, 2020 at 11:20:15PM +0100, Andrey Konovalov wrote: > > > > Hardware tag-based KASAN mode

Re: [PATCH v2 11/20] kasan: add and integrate kasan boot parameters

2020-11-12 Thread Andrey Konovalov
On Wed, Nov 11, 2020 at 7:29 PM Marco Elver wrote: > > > +#include > > +#include > > This should include -- although the rest of the > kernel seems to also inconsistently use on or the other. Since the name, > as referred to also by macros are "static keys", perhaps the > static_key.h header is

Re: [PATCH v2 11/20] kasan: add and integrate kasan boot parameters

2020-11-12 Thread Catalin Marinas
On Thu, Nov 12, 2020 at 12:53:58PM +0100, Marco Elver wrote: > On Thu, 12 Nov 2020 at 12:35, Catalin Marinas wrote: > > > > On Tue, Nov 10, 2020 at 11:20:15PM +0100, Andrey Konovalov wrote: > > > Hardware tag-based KASAN mode is intended to eventually be used in > > > production as a security miti

Re: [PATCH v2 11/20] kasan: add and integrate kasan boot parameters

2020-11-12 Thread Marco Elver
On Thu, 12 Nov 2020 at 12:35, Catalin Marinas wrote: > > On Tue, Nov 10, 2020 at 11:20:15PM +0100, Andrey Konovalov wrote: > > Hardware tag-based KASAN mode is intended to eventually be used in > > production as a security mitigation. Therefore there's a need for finer > > control over KASAN featu

Re: [PATCH v2 11/20] kasan: add and integrate kasan boot parameters

2020-11-12 Thread Catalin Marinas
On Tue, Nov 10, 2020 at 11:20:15PM +0100, Andrey Konovalov wrote: > Hardware tag-based KASAN mode is intended to eventually be used in > production as a security mitigation. Therefore there's a need for finer > control over KASAN features and for an existence of a kill switch. > > This change adds

Re: [PATCH v2 11/20] kasan: add and integrate kasan boot parameters

2020-11-11 Thread Marco Elver
On Tue, Nov 10, 2020 at 11:20PM +0100, 'Andrey Konovalov' via kasan-dev wrote: > Hardware tag-based KASAN mode is intended to eventually be used in > production as a security mitigation. Therefore there's a need for finer > control over KASAN features and for an existence of a kill switch. > > Thi

[PATCH v2 11/20] kasan: add and integrate kasan boot parameters

2020-11-10 Thread Andrey Konovalov
Hardware tag-based KASAN mode is intended to eventually be used in production as a security mitigation. Therefore there's a need for finer control over KASAN features and for an existence of a kill switch. This change adds a few boot parameters for hardware tag-based KASAN that allow to disable or