Re: KASAN: stack-out-of-bounds Write in sha3_final

From: Eric Biggers
Date: Tue Nov 28 2017 - 14:13:45 EST


On Tue, Nov 28, 2017 at 05:24:00AM -0800, syzbot wrote:
> Hello,
>
> syzkaller hit the following crash on
> 0c86a6bd85ff0629cd2c5141027fc1c8bb6cde9c
> git://git.kernel.org/pub/scm/linux/kernel/git/davem/net-next.git/master
> compiler: gcc (GCC) 7.1.1 20170620
> .config is attached
> Raw console output is attached.
> C reproducer is attached
> syzkaller reproducer is attached. See https://goo.gl/kgGztJ
> for information about syzkaller reproducers
>
>
> ==================================================================
> BUG: KASAN: stack-out-of-bounds in memset include/linux/string.h:326
> [inline]
> BUG: KASAN: stack-out-of-bounds in sha3_final+0xeb/0x2e0
> crypto/sha3_generic.c:173
> Write of size 4294967174 at addr ffff8801cc307cba by task
> syzkaller578788/3306

#syz dup: KASAN: stack-out-of-bounds Write in sha3_update