From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754831AbcGZBIJ (ORCPT ); Mon, 25 Jul 2016 21:08:09 -0400 Received: from shards.monkeyblade.net ([184.105.139.130]:49644 "EHLO shards.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752702AbcGZBIH (ORCPT ); Mon, 25 Jul 2016 21:08:07 -0400 Date: Mon, 25 Jul 2016 18:08:05 -0700 (PDT) Message-Id: <20160725.180805.1078640844978833041.davem@davemloft.net> To: sargun@sargun.me Cc: linux-kernel@vger.kernel.org, netdev@vger.kernel.org, alexei.starovoitov@gmail.com, daniel@iogearbox.net Subject: Re: [PATCH net-next v7 0/2] bpf: add bpf_probe_write_user helper & example From: David Miller In-Reply-To: <20160725125426.GA15045@ircssh.c.rugged-nimbus-611.internal> References: <20160725125426.GA15045@ircssh.c.rugged-nimbus-611.internal> X-Mailer: Mew version 6.7 on Emacs 24.5 / Mule 6.0 (HANACHIRUSATO) Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Greylist: Sender succeeded SMTP AUTH, not delayed by milter-greylist-4.5.12 (shards.monkeyblade.net [149.20.54.216]); Mon, 25 Jul 2016 18:08:06 -0700 (PDT) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Sargun Dhillon Date: Mon, 25 Jul 2016 05:54:29 -0700 > 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 being patient, review, and > helping me get familiar with the code base. I've made changes based on their > recommendations. > > This helper should be considered for experimental usage and debugging, so we > print a warning to dmesg when it is along with the command and pid when someone > tries to install a proglet that uses it. A follow-up patchset will contain a > mechanism to verify the safety of the probe beyond what was done by hand. Series applied, thanks.