On Jan 21, 2020, at 6:45 PM, Alexei Starovoitov [off-list ref] wrote:
On Tue, Jan 21, 2020 at 6:42 PM Alexei Starovoitov [off-list ref] wrote:
quoted
Restore the 'if (env->cur_state)' check that was incorrectly removed during
code move. Under memory pressure env->cur_state can be freed and zeroed inside
do_check(). Hence the check is necessary.
Fixes: 51c39bb1d5d1 ("bpf: Introduce function-by-function verification")
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
Forgot to add:
Reported-by: syzbot+b296579ba5015704d9fa@syzkaller.appspotmail.com
Daniel, pls add while applying.
Acked-by: Song Liu <redacted>
Thanks for the fix!