Received: by 2002:a05:6358:45e:b0:b5:b6eb:e1f9 with SMTP id 30csp679227rwe; Wed, 31 Aug 2022 09:08:15 -0700 (PDT) X-Google-Smtp-Source: AA6agR5yybnEFY9EmELCai8G0hC9UtqnTC71/iLgsp+51Ftoy2f3ESkvEzelAGjLmyr4lRPwTR1z X-Received: by 2002:a17:907:728d:b0:73d:693c:738 with SMTP id dt13-20020a170907728d00b0073d693c0738mr20671454ejc.134.1661962095564; Wed, 31 Aug 2022 09:08:15 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1661962095; cv=none; d=google.com; s=arc-20160816; b=wQ16LvWA33LzsCNFXnlD/Pc/V6P5pr1dwmCUH5dmI4yOvVn0SeioFGn8hOZZocWu0H CmW3IHC+5eH9GLuKWjH8G8XBWNgsQrG7WA/PgayFfbSq1ZGNLZF5cIXJ3aoKJ9+/u/TK DHX3svtFaUC79d0rp/1FbEbFoHBN5msdOBM5KB3QWfM1ZYu6hbUy+PSsL4mfXD35VqD2 akTV6ft6wONlPWFGcz21DeENGrWFCTPy+NNB8jPF4NQehYJYwI9iG6UHhqUlTH5f/rlr REAdDOOY4dbxIzIX93PxWQhXB686uRvtRcF84qGVqYrAv/t+GVMa8LTy3UVCH7isIfLU HWgw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=cCRpuq5ugrZCMPNASqLzmnmQqSHwIbDaqesnsW6hpVY=; b=Y3wox1oRzuZ+obMwhz5FZeOQAD/HDRAd9UE5y1pTLQIBeywS8zJsvaSkSwQq0J4WXU +XY84FC+DtiwXl4olmXdKmXFbwe5M0F6hSXTxFgmMpUCRIyH8f/BZ7QPTEtu5TuGR71C 5yr2uZfUd5zIrxrssYb048OLv3SC4zmQL9WKS6mgGrpKRIJMAX2ASbKTt9yM3ccdTahy 9Q/IdPB64EeceiUW8+QaxTCFpqpUthmX2VCgBskeR/9JwR0iiVdBeBBnvGGy73c8WpNr cHXCHUb+6mYuq4PcubWPcVewmCeFWiSGIT2RgDiKHEqU69zLWx+dOzcUllhANQNVH5Bz xmZA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20210112 header.b="dp7ag/s/"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id g8-20020a056402090800b00447b4d113a8si12967873edz.421.2022.08.31.09.07.49; Wed, 31 Aug 2022 09:08:15 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@google.com header.s=20210112 header.b="dp7ag/s/"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231965AbiHaP46 (ORCPT + 99 others); Wed, 31 Aug 2022 11:56:58 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39844 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229476AbiHaP4i (ORCPT ); Wed, 31 Aug 2022 11:56:38 -0400 Received: from mail-yw1-x1133.google.com (mail-yw1-x1133.google.com [IPv6:2607:f8b0:4864:20::1133]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D2064DC0B5 for ; Wed, 31 Aug 2022 08:56:22 -0700 (PDT) Received: by mail-yw1-x1133.google.com with SMTP id 00721157ae682-32a09b909f6so312203877b3.0 for ; Wed, 31 Aug 2022 08:56:22 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20210112; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc; bh=cCRpuq5ugrZCMPNASqLzmnmQqSHwIbDaqesnsW6hpVY=; b=dp7ag/s/XswteEOQhIlZJ0Nr9OSh2piBWOaxYRC3sJJA1h7P9YiBLyTj5ZbqtTA5s/ QVBATN/coisioHRuuIpGq3gJNfqJZeq14BoEa/ktEy7OjVkakgw2dN07PvsjfH2DKU0B bxLma1WzIl4FKw+quVea/qjMwPtAOmq0TevZHzdNCNncQhM1PD4uyKVu4HWZvLI6BqTx H7kaRy09fBu1xgcDeDqWrzFeKvin7yA3AAOKZ6MQsBsn3T/kb8YICvKVh7LgyXMq+5Bi FLuEciavzkBG7ruhxzyjiDdwLtfbNolH0swGrGj9z+IyuUE/sK6RMxqKOGNWiAhwfBa3 5mXA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc; bh=cCRpuq5ugrZCMPNASqLzmnmQqSHwIbDaqesnsW6hpVY=; b=2TcPJ3N0k0CwHqx5+vLTKFto6cYDwYdYX+L+aAi7FNhsSdASIgIbX6rcuhgyFA9X54 5XECQyOCGTCSYId09EWLhm2gCiRfDnoIBXKCjVN/xcVYIbEEuB9z9+AEWHZJTOYrsXHh z8O8gGg7K9JV+1Ad6RxNAoVeHr+zacwOM+4dHaFyP4Qs9ncjHLxMiTSamUJhooycYYMg VXvhwsei008J1JT+XLXBmmn25AJnUW7ukuDTmbxnOiPtGswk8znPVCfAWhj/BXaBptI2 2T9ef6QZQ0Mv750WMnj8TBKVY0BR+EQZGAQyynx4AUJRMKh5xRW0RDMv3EY1jSMNeo8h rN4g== X-Gm-Message-State: ACgBeo3rJJv/7bbEM6mY8tk1NZt1j3n9XrXNzmUTDpiKdc7xeU4kgYyM RYYXzgjDjUk1JqvWovx88+EVFIr+3SeO1uY+/u59ww== X-Received: by 2002:a81:85c3:0:b0:33d:a4d9:4599 with SMTP id v186-20020a8185c3000000b0033da4d94599mr18562781ywf.237.1661961381492; Wed, 31 Aug 2022 08:56:21 -0700 (PDT) MIME-Version: 1.0 References: <20220830214919.53220-1-surenb@google.com> <20220830214919.53220-23-surenb@google.com> In-Reply-To: From: Suren Baghdasaryan Date: Wed, 31 Aug 2022 08:56:10 -0700 Message-ID: Subject: Re: [RFC PATCH 22/30] Code tagging based fault injection To: Randy Dunlap Cc: Andrew Morton , Kent Overstreet , Michal Hocko , Vlastimil Babka , Johannes Weiner , Roman Gushchin , Mel Gorman , Davidlohr Bueso , Matthew Wilcox , "Liam R. Howlett" , David Vernet , Peter Zijlstra , Juri Lelli , Laurent Dufour , Peter Xu , David Hildenbrand , Jens Axboe , mcgrof@kernel.org, masahiroy@kernel.org, nathan@kernel.org, changbin.du@intel.com, ytcoode@gmail.com, Vincent Guittot , Dietmar Eggemann , Steven Rostedt , Benjamin Segall , Daniel Bristot de Oliveira , Valentin Schneider , Christopher Lameter , Pekka Enberg , Joonsoo Kim , 42.hyeyoo@gmail.com, Alexander Potapenko , Marco Elver , dvyukov@google.com, Shakeel Butt , Muchun Song , arnd@arndb.de, jbaron@akamai.com, David Rientjes , Minchan Kim , Kalesh Singh , kernel-team , linux-mm , iommu@lists.linux.dev, kasan-dev@googlegroups.com, io-uring@vger.kernel.org, linux-arch@vger.kernel.org, xen-devel@lists.xenproject.org, linux-bcache@vger.kernel.org, linux-modules@vger.kernel.org, LKML Content-Type: text/plain; charset="UTF-8" X-Spam-Status: No, score=-17.6 required=5.0 tests=BAYES_00,DKIMWL_WL_MED, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF, ENV_AND_HDR_SPF_MATCH,RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS, T_SCC_BODY_TEXT_LINE,USER_IN_DEF_DKIM_WL,USER_IN_DEF_SPF_WL autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Aug 30, 2022 at 6:52 PM Randy Dunlap wrote: > > > > On 8/30/22 14:49, Suren Baghdasaryan wrote: > > From: Kent Overstreet > > > > This adds a new fault injection capability, based on code tagging. > > > > To use, simply insert somewhere in your code > > > > dynamic_fault("fault_class_name") > > > > and check whether it returns true - if so, inject the error. > > For example > > > > if (dynamic_fault("init")) > > return -EINVAL; > > > > There's no need to define faults elsewhere, as with > > include/linux/fault-injection.h. Faults show up in debugfs, under > > /sys/kernel/debug/dynamic_faults, and can be selected based on > > file/module/function/line number/class, and enabled permanently, or in > > oneshot mode, or with a specified frequency. > > > > Signed-off-by: Kent Overstreet > > Missing Signed-off-by: from Suren. > See Documentation/process/submitting-patches.rst: > > When to use Acked-by:, Cc:, and Co-developed-by: > ------------------------------------------------ > > The Signed-off-by: tag indicates that the signer was involved in the > development of the patch, or that he/she was in the patch's delivery path. Thanks for the note! Will fix in the next respin. > > > -- > ~Randy