Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp4760385pxj; Wed, 12 May 2021 12:37:43 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyL90uAI5j46/hVYU0UDiR8Uekrq4Mb458/5XGnCgMv/MXm5E53v510eqOItDvMMyyJdWFe X-Received: by 2002:a05:6808:68a:: with SMTP id k10mr26926820oig.120.1620848263376; Wed, 12 May 2021 12:37:43 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1620848263; cv=none; d=google.com; s=arc-20160816; b=ZbS4dCkapABhQN30z8eELSKdX/1QASV9/ypII5bZLp4ZAuwt5YIE7dGrxN123EQ3PG ssALX/Nuw+6MfLkk57MeUv71hRI1olZ8AI9FubsipFbYEJDbCbQ+zNq4W3W6zqBw+K08 CmtJn29QbFJqtZDpLES2A4RZ3bOpNqkNDc5jBVJTXZS4uEEk5g5B3iPrTxzNG2SGX3Jw M4pUqs23VZGrSLTw0JvwcOkkYiIsAbn/sBrGTkX2i0WpZVO802dCA3JYZyOQl4GmJbRd 7YqUouCL5ePCsuNXy6z5pBnOooRFR0exyQJVGzICEobiAMLiRqk98852OIqGB1hxLNAf peZQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:content-language :in-reply-to:mime-version:user-agent:date:message-id:from:references :cc:to:subject; bh=G2qlR2L+s/eolncDO7BC/CZIxptswJAi9G225VXTkZI=; b=eUYuB760BbNh0MX+mGy7qRGwdaeIv1YNHH2I7WclwzOyUaTS/Lj57/DFh9GnfP0fvF zW/TyhYssdUqyRbADNaymysdbyRAjTIBuoMUsnTQTE5PYEAspKORxrW75mtVEBebMjnW Gdm4LcSl9562IgGgVcxvA76AxTiCUy0baq1IafckadSu9DbBaFsWjdCGhgSil/Up+UUg AsrhZjTu5jEkWJu86TeceR/shU9SdgiYX17iGxIvth7tkaaFsoHpuml+of5w79bixD27 6D1etIjiiLcuDiOhX2MOXDeOEviZb0VbqPuoTLrJj0LKCNGBZpl8TX3IPZkQ/wKgRznW xoyw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id s82si834024oif.125.2021.05.12.12.37.29; Wed, 12 May 2021 12:37:43 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1381838AbhELTfZ (ORCPT + 99 others); Wed, 12 May 2021 15:35:25 -0400 Received: from mx2.suse.de ([195.135.220.15]:44562 "EHLO mx2.suse.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S237832AbhELR4g (ORCPT ); Wed, 12 May 2021 13:56:36 -0400 X-Virus-Scanned: by amavisd-new at test-mx.suse.de Received: from relay2.suse.de (unknown [195.135.221.27]) by mx2.suse.de (Postfix) with ESMTP id 87A0AB20B; Wed, 12 May 2021 17:55:26 +0000 (UTC) Subject: Re: [PATCH v1 8/8] block: add add_disk() failure injection support To: Luis Chamberlain , Brendan Higgins , Akinobu Mita Cc: axboe@kernel.dk, bvanassche@acm.org, ming.lei@redhat.com, hch@infradead.org, jack@suse.cz, osandov@fb.com, linux-block@vger.kernel.org, linux-kernel@vger.kernel.org References: <20210512064629.13899-1-mcgrof@kernel.org> <20210512064629.13899-9-mcgrof@kernel.org> <20210512165639.GB4332@42.do-not-panic.com> From: Hannes Reinecke Message-ID: <989175a7-5533-02ef-c096-b24b2769c9cf@suse.de> Date: Wed, 12 May 2021 19:55:25 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.9.1 MIME-Version: 1.0 In-Reply-To: <20210512165639.GB4332@42.do-not-panic.com> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 5/12/21 6:56 PM, Luis Chamberlain wrote: > On Wed, May 12, 2021 at 05:22:48PM +0200, Hannes Reinecke wrote: [ .. ] >> So I'd rather delegate the topic of error injection to a more general >> discussion (LSF springs to mind ...), and then agree on a framework which is >> suitable for every function. > > Or we just get cranking and produce proof of concepts to compare and > contrast later. At least I hope this patch and the respective blktests > patches suffice to help demo what we need to test. > Yeah; I know; 'tis a hard topic. (Will we have another ALPSS this year? Would be ideal to discuss things there. Christoph?) What I would love to see is to facilitate kernel live patching for testing, blanking out the function body under test and just return specific error codes. That would be _ideal_ for testing, as we don't have to modify the kernel at all, we just need to compile it with the appropriate compiler options for live patching. And then we should be able compile modules for the functions to test, load the module, do the test, remove the module, and everything would be back to normal again. I know, but one can dream ... But maybe I can trick you in trying it ... hmm? Cheers, Hannes -- Dr. Hannes Reinecke Kernel Storage Architect hare@suse.de +49 911 74053 688 SUSE Software Solutions GmbH, Maxfeldstr. 5, 90409 Nürnberg HRB 36809 (AG Nürnberg), Geschäftsführer: Felix Imendörffer