[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-Id: <20160709.000041.1085148162187281843.davem@davemloft.net>
Date: Sat, 09 Jul 2016 00:00:41 -0400 (EDT)
From: David Miller <davem@...emloft.net>
To: ast@...com
Cc: daniel@...earbox.net, brendan.d.gregg@...il.com,
netdev@...r.kernel.org, kernel-team@...com
Subject: Re: [PATCH net-next] bpf: introduce bpf_get_current_task() helper
From: Alexei Starovoitov <ast@...com>
Date: Wed, 6 Jul 2016 22:38:36 -0700
> over time there were multiple requests to access different data
> structures and fields of task_struct current, so finally add
> the helper to access 'current' as-is. Tracing bpf programs will do
> the rest of walking the pointers via bpf_probe_read().
> Note that current can be null and bpf program has to deal it with,
> but even dumb passing null into bpf_probe_read() is still safe.
>
> Suggested-by: Brendan Gregg <brendan.d.gregg@...il.com>
> Signed-off-by: Alexei Starovoitov <ast@...nel.org>
> Acked-by: Daniel Borkmann <daniel@...earbox.net>
Applied.
Powered by blists - more mailing lists