Re: kernel panic: stack is corrupted in udp4_lib_lookup2

From: Willem de Bruijn
Date: Thu Jan 03 2019 - 14:39:48 EST

On Thu, Jan 3, 2019 at 7:07 AM syzbot
<syzbot+4ad25edc7a33e4ab91e0@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote:
> Hello,
> syzbot found the following crash on:
> HEAD commit: 195303136f19 Merge tag 'kconfig-v4.21-2' of git://git.kern..
> git tree: upstream
> console output:
> kernel config:
> dashboard link:
> compiler: gcc (GCC) 8.0.1 20180413 (experimental)
> Unfortunately, I don't have any reproducer for this crash yet.
> IMPORTANT: if you fix the bug, please add the following tag to the commit:
> Reported-by: syzbot+4ad25edc7a33e4ab91e0@xxxxxxxxxxxxxxxxxxxxxxxxx
> protocol 88fb is buggy, dev hsr_slave_1
> protocol 88fb is buggy, dev hsr_slave_0
> protocol 88fb is buggy, dev hsr_slave_1
> FAT-fs (loop0): invalid media value (0x00)
> FAT-fs (loop0): Can't find a valid FAT filesystem
> Kernel panic - not syncing: stack-protector: Kernel stack is corrupted in:

This sounds similar to the stack corruption fixed recently in commit
e7cc082455cb ("udp: Support for error handlers of tunnels ...").

That fix is for ipv4 gue_err(). ipv6 gue6_err() probably needs the same.