From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 034D6C4332F for ; Mon, 12 Dec 2022 02:46:41 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230105AbiLLCql (ORCPT ); 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 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-doc@vger.kernel.org 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)