Re: [PATCH bpf] bpf: fix panic in stack_map_get_build_id() on i386 and arm32

2019-01-17 Thread Naresh Kamboju
On Thu, 10 Jan 2019 at 20:56, Daniel Borkmann wrote: > > On 01/08/2019 11:20 PM, Song Liu wrote: > > As Naresh reported, test_stacktrace_build_id() causes panic on i386 and > > arm32 systems. This is caused by page_address() returns NULL in certain > > cases. > > > > This patch fixes this error by

Re: [PATCH bpf] bpf: fix panic in stack_map_get_build_id() on i386 and arm32

2019-01-10 Thread Daniel Borkmann
On 01/08/2019 11:20 PM, Song Liu wrote: > As Naresh reported, test_stacktrace_build_id() causes panic on i386 and > arm32 systems. This is caused by page_address() returns NULL in certain > cases. > > This patch fixes this error by using kmap_atomic/kunmap_atomic instead > of page_address. > > Fi

Re: [PATCH bpf] bpf: fix panic in stack_map_get_build_id() on i386 and arm32

2019-01-08 Thread Song Liu
> On Jan 8, 2019, at 2:20 PM, Song Liu wrote: > > As Naresh reported, test_stacktrace_build_id() causes panic on i386 and > arm32 systems. This is caused by page_address() returns NULL in certain > cases. > > This patch fixes this error by using kmap_atomic/kunmap_atomic instead > of page_add

[PATCH bpf] bpf: fix panic in stack_map_get_build_id() on i386 and arm32

2019-01-08 Thread Song Liu
As Naresh reported, test_stacktrace_build_id() causes panic on i386 and arm32 systems. This is caused by page_address() returns NULL in certain cases. This patch fixes this error by using kmap_atomic/kunmap_atomic instead of page_address. Fixes: 615755a77b24 (" bpf: extend stackmap to save binary