Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753604AbeADQHX (ORCPT + 1 other); Thu, 4 Jan 2018 11:07:23 -0500 Received: from mail-qt0-f179.google.com ([209.85.216.179]:34984 "EHLO mail-qt0-f179.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753488AbeADQHT (ORCPT ); Thu, 4 Jan 2018 11:07:19 -0500 X-Google-Smtp-Source: ACJfBost80OxXBi9qpnHom7ne+WJ5iCQiOXQpKV0k4HAK7Pt3YT6dzSqQhEADKYU440kol3nAHr3fA== Date: Thu, 4 Jan 2018 11:07:16 -0500 From: Josef Bacik To: Masami Hiramatsu Cc: Alexei Starovoitov , Josef Bacik , rostedt@goodmis.org, mingo@redhat.com, davem@davemloft.net, netdev@vger.kernel.org, linux-kernel@vger.kernel.org, ast@kernel.org, kernel-team@fb.com, daniel@iogearbox.net, linux-btrfs@vger.kernel.org, darrick.wong@oracle.com, Josef Bacik , Akinobu Mita Subject: Re: [RFC PATCH bpf-next v2 0/4] Separate error injection table from kprobes Message-ID: <20180104160715.7wz7pifbizkilisw@destiny> References: <151427438796.32561.4235654585430455286.stgit@devbox> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <151427438796.32561.4235654585430455286.stgit@devbox> User-Agent: NeoMutt/20170714 (1.8.3) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Return-Path: On Tue, Dec 26, 2017 at 04:46:28PM +0900, Masami Hiramatsu wrote: > Hi Josef and Alexei, > > Here are the 2nd version of patches to moving error injection > table from kprobes. In this series I did a small fixes and > add function-based fault injection. > > Here is the previous version: > > https://lkml.org/lkml/2017/12/22/554 > > There are 2 main reasons why I separate it from kprobes. > > - kprobes users can modify execution path not only at > error-injection whitelist functions but also other > functions. I don't like to suggest user that such > limitation is from kprobes itself. > > - This error injection information is also useful for > ftrace (function-hook) and livepatch. It should not > be limited by CONFIG_KPROBES. > > So I introduced CONFIG_FUNCTION_ERROR_INJECTION for this feature. > Also CONFIG_FAIL_FUNCTION is added, which provides function-based > error injection interface via debugfs following fault-injection > framework. See [4/4]. > > Any thoughts? Sorry Masami, I've been on vacation for the last two weeks. This approach is fine by me, if we want to allow other mechanisms other than bpf to use this functionality then hooray. I'll do a proper review when you post v3, just wanted to let you know I wasn't ignoring you. Thanks, Josef