Re: [PATCH bpf-next] bpf: fix verifier GPF in kmalloc failure path

2018-01-08 Thread Daniel Borkmann
On 01/08/2018 04:51 PM, Alexei Starovoitov wrote: > From: Alexei Starovoitov > > syzbot reported the following panic in the verifier triggered > by kmalloc error injection: > > kasan: GPF could be caused by NULL-ptr deref or user memory access > RIP: 0010:copy_func_state kernel/bpf/verifier.c:40

[PATCH bpf-next] bpf: fix verifier GPF in kmalloc failure path

2018-01-08 Thread Alexei Starovoitov
From: Alexei Starovoitov syzbot reported the following panic in the verifier triggered by kmalloc error injection: kasan: GPF could be caused by NULL-ptr deref or user memory access RIP: 0010:copy_func_state kernel/bpf/verifier.c:403 [inline] RIP: 0010:copy_verifier_state+0x364/0x590 kernel/bpf/

[PATCH bpf-next] bpf: fix verifier GPF in kmalloc failure path

2018-01-05 Thread Alexei Starovoitov
syzbot reported the following panic in the verifier triggered by kmalloc error injection: kasan: GPF could be caused by NULL-ptr deref or user memory access RIP: 0010:copy_func_state kernel/bpf/verifier.c:403 [inline] RIP: 0010:copy_verifier_state+0x364/0x590 kernel/bpf/verifier.c:431 Call Trace: