Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1449046

Re: [PATCH net-next v6 0/2] bpf: add bpf_probe_write_user helper & example

From Alexei Starovoitov <alexei.starovoitov@gmail.com>
Newsgroups linux.kernel
Subject Re: [PATCH net-next v6 0/2] bpf: add bpf_probe_write_user helper & example
Date 2016-07-24 06:00 +0200
Message-ID <rYiK5-2OP-1@gated-at.bofh.it> (permalink)
References <rYih3-2FR-3@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


On Sat, Jul 23, 2016 at 08:22:04PM -0700, Sargun Dhillon wrote:
> This patch series contains two patches that add support for a probe_write
> helper to BPF programs. This allows them to manipulate user memory during
> the course of tracing. The second patch in the series has an example that
> uses it, in one the intended ways to divert execution.
> 
> Thanks to Alexei Starovoitov, and Daniel Borkmann for review, I've made
> changes based on their recommendations. 
> 
> This helper should be considered experimental, so we print a warning
> to dmesg when it is along with the command and pid. A follow-up patchset
> will contain a mechanism to verify the safety of the probe beyond what
> was done by hand.

I'd like to clarify above 'helper is experimental' meaning that
it should only be used for experiments and not production.
That's what the warning is for.
If Dave applies it, it will be permanent abi and cannot be removed.
In other words it's for debugging user apps and trying out crazy ideas.
Like we will use to experiment with different approaches around
restartable sequences and tracing.

Back to linux.kernel | Previous | Next — Previous in thread | Find similar | Unroll thread


Thread

[PATCH net-next v6 0/2] bpf: add bpf_probe_write_user helper &  example Sargun Dhillon <sargun@sargun.me> - 2016-07-24 05:30 +0200
  Re: [PATCH net-next v6 0/2] bpf: add bpf_probe_write_user helper &  example Alexei Starovoitov <alexei.starovoitov@gmail.com> - 2016-07-24 06:00 +0200

csiph-web