Re: KASAN: global-out-of-bounds in console_unlock

From: Petr Mladek
Date: Tue Sep 29 2020 - 08:10:36 EST


On Mon 2020-09-28 11:07:52, Sergey Senozhatsky wrote:
> Cc-ing John and Steven
>
> On (20/09/27 11:12), Dmitry Vyukov wrote:
> > Hi printk maintainers,
> >
> > I've got the following out-of-bounds in printk code.
> > This is on next-20200925. Config is attached.
> > This is just on pr_cont("\n"). Something overreads the string.
> >
> > ==================================================================
> > BUG: KASAN: global-out-of-bounds in memchr+0x65/0x80 lib/string.c:1058
> > Read of size 1 at addr ffffffff8c68c860 by task swapper/0/0
>
> Thanks for the report. I think this should be fixed by
> https://lore.kernel.org/lkml/20200926015526.8921-1-john.ogness@xxxxxxxxxxxxx/

I agree with Sergey. This looks very much like the same problem.

Best Regards,
Petr