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

From: Dmitry Vyukov
Date: Wed Dec 04 2019 - 01:54:11 EST


On Wed, Dec 4, 2019 at 3:45 AM syzbot
<syzbot+9af6d43c1beabec8fd05@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote:
>
> syzbot has bisected this bug to:
>
> commit 2de50e9674fc4ca3c6174b04477f69eb26b4ee31
> Author: Russell Currey <ruscur@xxxxxxxxxx>
> Date: Mon Feb 8 04:08:20 2016 +0000
>
> powerpc/powernv: Remove support for p5ioc2
>
> bisection log: https://syzkaller.appspot.com/x/bisect.txt?x=15e5fc32e00000
> start commit: 76bb8b05 Merge tag 'kbuild-v5.5' of git://git.kernel.org/p..
> git tree: upstream
> final crash: https://syzkaller.appspot.com/x/report.txt?x=17e5fc32e00000
> console output: https://syzkaller.appspot.com/x/log.txt?x=13e5fc32e00000
> kernel config: https://syzkaller.appspot.com/x/.config?x=dd226651cb0f364b
> dashboard link: https://syzkaller.appspot.com/bug?extid=9af6d43c1beabec8fd05
> syz repro: https://syzkaller.appspot.com/x/repro.syz?x=16d15061e00000
> C reproducer: https://syzkaller.appspot.com/x/repro.c?x=14b69aeae00000
>
> Reported-by: syzbot+9af6d43c1beabec8fd05@xxxxxxxxxxxxxxxxxxxxxxxxx
> Fixes: 2de50e9674fc ("powerpc/powernv: Remove support for p5ioc2")
>
> For information about bisection process see: https://goo.gl/tpsmEJ#bisection

This should have been detected as "does not affect binary", but there
is something I don't understand/missing:
This is bisected to 2de50e9674fc4ca3c6174b04477f69eb26b4ee31
and it has this parent:
$ git log -n 1 --format="%P" 2de50e9674fc4ca3c6174b04477f69eb26b4ee31
388f7b1d6e8ca06762e2454d28d6c3c55ad0fe95
But the parent was never tested during bisection... how is this possible?
Mentioned this here:
https://github.com/google/syzkaller/issues/1271#issuecomment-561504032