From patchwork Mon Dec 12 02:46:33 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Masami Hiramatsu (Google)" X-Patchwork-Id: 2866 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:f944:0:0:0:0:0 with SMTP id q4csp2012766wrr; Sun, 11 Dec 2022 18:47:19 -0800 (PST) X-Google-Smtp-Source: AA0mqf5MA3bFCkUiADeO89On8ZSprLwbxzfeafc8CxmWjj+Jo1KryYeIOMFWDcZnV4L/6cfOmuJj X-Received: by 2002:a05:6a20:d2c5:b0:9d:efbe:2065 with SMTP id ir5-20020a056a20d2c500b0009defbe2065mr23196719pzb.27.1670813238911; Sun, 11 Dec 2022 18:47:18 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1670813238; cv=none; d=google.com; s=arc-20160816; b=kIPrEEzj8Byn+ri4eomomuLIlbBt1DmHPZBn4bWUUZOnFw6hodTwOLM03jQFQ4Le8s Bl9ISz82Qpmzs8NeTmUGoI2e7jgIJIAbQkKv7JV1TwZfE/Oh82r2+Q5QcmtlFbW/12sZ UV43A5JHiitd472T1mReV6OXF61hKyQ2Sa6g5lRLPhS0YLn1Xem/WBtgHIjtaMvMGGFx M1+x3nl/wv5UIquyiqJNiI2hNKg5STYR8VJVqPuFNdZMVVR1nFKitMqBEtwnBl0pscya cxs0OIR+gM8UHCkdzGAgJDE0vibJYrRmemRpjcZva80JHbbx9Y1W2zpFBLE7ansMtRoX MtlQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :user-agent:message-id:date:subject:cc:to:from:dkim-signature; bh=qgOEXpn87NEaRtNxkmtcao7KuU50aL1Iq04viLkN6hI=; b=RZGZP3Fe5HcQ1iEd/O2QWH1P69Cr0UdcwLvepqOFzGYi9SG5zNAKPIWZJHemfI1P8g 69dIrUqpkJ5VIB8FpxSEQ2l3YT5FOCOxV9tt0QyPxlkcjQy6OZyk0coiRpxcF7wQirBQ c/ck49ipEOvt4gKJkpOJzJDZ6yAkla2kfxCdO7TOPIjsQdJa5SRWEAtXUVlYSHPo0ZyL 154Ty73Q5GN4qvoDLrLEbx6KVi0QEmhr2C7CjC3xNMX3PkIaygNl5ISdoGxni8a6YlAM d1z+u5ZD5/abfca3TJ/VrtX653f9ZfTQZZCGG4bjJYbDlOoCERg4W3Fa/TW2VRH/Sey3 v3fA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=H2mytzc1; 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=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id n190-20020a6327c7000000b0043aebb63fc9si8025414pgn.732.2022.12.11.18.47.06; Sun, 11 Dec 2022 18:47:18 -0800 (PST) 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=@kernel.org header.s=k20201202 header.b=H2mytzc1; 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=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230393AbiLLCql (ORCPT + 99 others); Sun, 11 Dec 2022 21:46:41 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48968 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229799AbiLLCqk (ORCPT ); Sun, 11 Dec 2022 21:46:40 -0500 Received: from dfw.source.kernel.org (dfw.source.kernel.org [IPv6:2604:1380:4641:c500::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E0C81A44E; Sun, 11 Dec 2022 18:46:39 -0800 (PST) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id 7E75D60EA4; Mon, 12 Dec 2022 02:46:39 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 55368C433D2; Mon, 12 Dec 2022 02:46:35 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1670813198; bh=0cSYutYmLiE4Dzs5PkSS2If4OMmjtOOGuQ3HzAfp/5M=; h=From:To:Cc:Subject:Date:From; b=H2mytzc1shzWuSFZbqJcGEHZLglq1xpRIZYm8ok8kcJzxwuFQaPBb4LMysIOmLksc nUUl0LEca4/JSXE7je/iY25W5MpgAZHcurk44TBYOPZRKEAdXM/mQnaWodLAiUmNVX NeWDwHquFugXqGgOYcsFw/FnJnuQm4jnP6QfAauyEYs0m7AGo82zFjpj8gze46nM0a 2+vE+nG9O+okXCy1Hdm1uNiNuEJ7cfAoeI2apWSLd1XNrJ/xXodyST1fNNXI0PyOI4 GmMTIjTYf/8u1riqk/Lni5Zc+fPjJgBa8iKsXkIFA1OXTAH6qlxXkE2Tmjahq2Ivzd 8aivyNKzxG1Yg== From: "Masami Hiramatsu (Google)" To: LKML Cc: bpf@vger.kernel.org, Borislav Petkov , Alexei Starovoitov , Steven Rostedt , Linus Torvalds , Masami Hiramatsu , Andrew Morton , Peter Zijlstra , Kees Cook , Josh Poimboeuf , KP Singh , Mark Rutland , Florent Revest , Greg Kroah-Hartman , Christoph Hellwig , Chris Mason , Jonathan Corbet , linux-doc@vger.kernel.org Subject: [PATCH 0/2] error-injection: Clarify the requirements of error injectable functions Date: Mon, 12 Dec 2022 11:46:33 +0900 Message-Id: <167081319306.387937.10079195394503045678.stgit@devnote3> X-Mailer: git-send-email 2.39.0.rc1.256.g54fd8350bd-goog User-Agent: StGit/0.19 MIME-Version: 1.0 X-Spam-Status: No, score=-7.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, SPF_HELO_NONE,SPF_PASS autolearn=ham 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 X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1751974662964119464?= X-GMAIL-MSGID: =?utf-8?q?1751974662964119464?= Hi, Here are the patches for clarifying the requirement of error injectable functions and remove confusing EI_ETYPE_NONE. Here is the thread of discussions which leads this series. https://lore.kernel.org/all/167019256481.3792653.4369637751468386073.stgit@devnote3/T/#u I agreed that NACK the taint flag itself, and I thought I need to update the function error injection so that the developers understand the requirements and carefully use the ALLOW_ERROR_INJECTION() macro. So I removed the confusing EI_ETYPE_NONE (this should not be there, use errno instead), and update the document about error injectable functions. Thank you, --- Masami Hiramatsu (Google) (2): error-injection: Remove EI_ETYPE_NONE docs: fault-injection: Add requirements of error injectable functions Documentation/fault-injection/fault-injection.rst | 65 +++++++++++++++++++++ include/asm-generic/error-injection.h | 7 +- include/linux/error-injection.h | 2 - lib/error-inject.c | 2 - 4 files changed, 71 insertions(+), 5 deletions(-) -- Masami Hiramatsu (Google)