Re: KASAN: use-after-free Read in update_blocked_averages

From: Dmitry Vyukov
Date: Thu Mar 21 2019 - 02:01:43 EST


On Thu, Mar 21, 2019 at 4:34 AM syzbot
<syzbot+0dbf864d3b52555e8265@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote:
>
> syzbot has bisected this bug to:
>
> commit b8a51b38e4d4dec3e379d52c0fe1a66827f7cf1e
> Author: Stefano Brivio <sbrivio@xxxxxxxxxx>
> Date: Thu Nov 8 11:19:23 2018 +0000
>
> fou, fou6: ICMP error handlers for FoU and GUE
>
> bisection log: https://syzkaller.appspot.com/x/bisect.txt?x=11e33c17200000
> start commit: b8a51b38 fou, fou6: ICMP error handlers for FoU and GUE
> git tree: net-next
> final crash: https://syzkaller.appspot.com/x/report.txt?x=13e33c17200000
> console output: https://syzkaller.appspot.com/x/log.txt?x=15e33c17200000
> kernel config: https://syzkaller.appspot.com/x/.config?x=dcbea7daf3ea3e3e
> dashboard link: https://syzkaller.appspot.com/bug?extid=0dbf864d3b52555e8265
> syz repro: https://syzkaller.appspot.com/x/repro.syz?x=137ae6d5400000
> C reproducer: https://syzkaller.appspot.com/x/repro.c?x=15dbd77b400000
>
> Reported-by: syzbot+0dbf864d3b52555e8265@xxxxxxxxxxxxxxxxxxxxxxxxx
> Fixes: b8a51b38 ("fou, fou6: ICMP error handlers for FoU and GUE")

That commit caused lots of crashes that look completely differently.
Now all that is fixed. The last crash for this bugs happened 2+ months
ago. So let's just do:

#syz fix:
fou: Prevent unbounded recursion in GUE error handler also with UDP-Lite