Re: [PATCH bpf-next 2/5] bpf: Implement get_current_task_btf and RET_PTR_TO_BTF_ID

2020-10-31 Thread kernel test robot
Hi KP, I love your patch! Perhaps something to improve: [auto build test WARNING on bpf-next/master] url: https://github.com/0day-ci/linux/commits/KP-Singh/Implement-task_local_storage/20201028-010549 base: https://git.kernel.org/pub/scm/linux/kernel/git/bpf/bpf-next.git master config:

Re: [PATCH bpf-next 2/5] bpf: Implement get_current_task_btf and RET_PTR_TO_BTF_ID

2020-10-28 Thread Martin KaFai Lau
On Tue, Oct 27, 2020 at 06:03:14PM +0100, KP Singh wrote: [ ... ] > diff --git a/kernel/bpf/verifier.c b/kernel/bpf/verifier.c > index b0790876694f..eb0aef85fc11 100644 > --- a/kernel/bpf/verifier.c > +++ b/kernel/bpf/verifier.c > @@ -493,7 +493,8 @@ static bool is_ptr_cast_function(enum

[PATCH bpf-next 2/5] bpf: Implement get_current_task_btf and RET_PTR_TO_BTF_ID

2020-10-27 Thread KP Singh
From: KP Singh The currently available bpf_get_current_task returns an unsigned integer which can be used along with BPF_CORE_READ to read data from the task_struct but still cannot be used as an input argument to a helper that accepts an ARG_PTR_TO_BTF_ID of type task_struct. In order to