lkml.org 
[lkml]   [2019]   [Dec]   [17]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
From
Date
SubjectRe: [PATCH] kconfig: Add kernel config option for fuzz testing.
On Tue, Dec 17, 2019 at 6:12 AM Sergey Senozhatsky
<sergey.senozhatsky.work@gmail.com> wrote:
>
> On (19/12/16 18:59), Tetsuo Handa wrote:
> [..]
> > +++ b/kernel/printk/printk.c
> > @@ -1198,6 +1198,14 @@ MODULE_PARM_DESC(ignore_loglevel,
> >
> > static bool suppress_message_printing(int level)
> > {
> > +#ifdef CONFIG_KERNEL_BUILT_FOR_FUZZ_TESTING
> > + /*
> > + * Changing console_loglevel causes "no output". But ignoring
> > + * console_loglevel is easier than preventing change of
> > + * console_loglevel.
> > + */
> > + return (level >= CONSOLE_LOGLEVEL_DEFAULT && !ignore_loglevel);
> > +#endif
> > return (level >= console_loglevel && !ignore_loglevel);
> > }
>
> Can you fuzz test with `ignore_loglevel'?

We can set ignore_loglevel in syzbot configs, but won't it then print
everything including verbose debug output?

\
 
 \ /
  Last update: 2019-12-17 08:55    [W:0.106 / U:3.456 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site