[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <20181117051530.kycxzjwbqee6nu2s@ast-mbp.dhcp.thefacebook.com>
Date: Fri, 16 Nov 2018 21:15:32 -0800
From: Alexei Starovoitov <alexei.starovoitov@...il.com>
To: Edward Cree <ecree@...arflare.com>
Cc: ast@...nel.org, daniel@...earbox.net, netdev@...r.kernel.org,
linux-kernel@...r.kernel.org, syzkaller-bugs@...glegroups.com
Subject: Re: [PATCH bpf] bpf: fix off-by-one error in adjust_subprog_starts
On Fri, Nov 16, 2018 at 12:00:07PM +0000, Edward Cree wrote:
> When patching in a new sequence for the first insn of a subprog, the start
> of that subprog does not change (it's the first insn of the sequence), so
> adjust_subprog_starts should check start <= off (rather than < off).
> Also added a test to test_verifier.c (it's essentially the syz reproducer).
>
> Fixes: cc8b0b92a169 ("bpf: introduce function calls (function boundaries)")
> Reported-by: syzbot+4fc427c7af994b0948be@...kaller.appspotmail.com
> Signed-off-by: Edward Cree <ecree@...arflare.com>
thanks for quick analysis and fix.
Applied, Thanks
Powered by blists - more mailing lists