Received: by 10.192.165.148 with SMTP id m20csp2314500imm; Thu, 26 Apr 2018 09:01:41 -0700 (PDT) X-Google-Smtp-Source: AIpwx48jkCD5Prgnp2899RyyjtiSMPF0Whn75cRpZR+3JfwMVGSU3lZCrtjRiKZdj63xULOqUbC8 X-Received: by 2002:a17:902:2ac3:: with SMTP id j61-v6mr33890427plb.224.1524758501464; Thu, 26 Apr 2018 09:01:41 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1524758501; cv=none; d=google.com; s=arc-20160816; b=vq00dPtjvU+v3bKkbe6PWVWxS05QPnQ4O6es8CZvgaS2Tsn3KhP1F4fUh32oU/NXVX LUmmpuNYgGJm5HwgHXdZpG6EB+jd1n3AxEZlOLj/NspU6hsds8FEJbJtGFKEMBL/EEiJ BGqx6wQSv08tTSkFWddet9RXXQXY3RwGWxfJAG60trKa4/otMVMmZbEXuTRbj6RjGjEy TcfUV3ImYbcI3dSQzq0Db+NiCKHTMnWtfNEHOe/uhKG9uDry5xUEp+9kIg8me7y5TFW1 MNyjsVV3StBdYwUNKHQAU1hi8QsuQaUT/GCfDNED71ZCmOtw9IO7baGT/kuVLKCSf1Js EToA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:in-reply-to:content-transfer-encoding :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:arc-authentication-results; bh=cw4YgjDJJ56N91E5Z8iT9RUvn3ShWjeULZiLlcVQ43g=; b=EtqmNN1tJLwUfWunP7OEJ9X45IK3Tij0MBNpwIrnewxwgL2D4qsqagHEAvHOQZAbIt tJWUfMuDlvAQbzDfDGwzIibuJkj4MNCgtDsyJLhWSbNKRlv/e1rXumVg+xmWystjs/hH D971aj25+4xfhup+eeOCIfpygjCikebtnoFxct3Op4GAZUq1boAJR+g3O9A/dJFx72DN 8cQpEXL5EyQCoVdMiHujbny7M7BX0zD/pOz+/y/vGmX5c2l7bpz2GbB8abH3NF3eubDn qRGid6s9DdKTI7rY0XVnlEN1hSWhPlD1C1A85R/2cvaCCdQf1+RauTMZI79jCde5Vrmx 5ezQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id 70si4810452pfu.274.2018.04.26.09.01.27; Thu, 26 Apr 2018 09:01:41 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756831AbeDZP7p (ORCPT + 99 others); Thu, 26 Apr 2018 11:59:45 -0400 Received: from mx3-rdu2.redhat.com ([66.187.233.73]:59012 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1756733AbeDZP7m (ORCPT ); Thu, 26 Apr 2018 11:59:42 -0400 Received: from smtp.corp.redhat.com (int-mx06.intmail.prod.int.rdu2.redhat.com [10.11.54.6]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id 21AC440858C1; Thu, 26 Apr 2018 15:59:42 +0000 (UTC) Received: from redhat.com (ovpn-123-156.rdu2.redhat.com [10.10.123.156]) by smtp.corp.redhat.com (Postfix) with ESMTP id 2A379214183C; Thu, 26 Apr 2018 15:59:41 +0000 (UTC) Date: Thu, 26 Apr 2018 18:59:40 +0300 From: "Michael S. Tsirkin" To: Mikulas Patocka Cc: James Bottomley , Michal Hocko , David Rientjes , dm-devel@redhat.com, eric.dumazet@gmail.com, netdev@vger.kernel.org, jasowang@redhat.com, Randy Dunlap , linux-kernel@vger.kernel.org, Matthew Wilcox , linux-mm@kvack.org, edumazet@google.com, Andrew Morton , virtualization@lists.linux-foundation.org, David Miller , Vlastimil Babka Subject: Re: [dm-devel] [PATCH v5] fault-injection: introduce kvmalloc fallback options Message-ID: <20180426184845-mutt-send-email-mst@kernel.org> References: <1524694663.4100.21.camel@HansenPartnership.com> <20180426125817.GO17484@dhcp22.suse.cz> <1524753932.3226.5.camel@HansenPartnership.com> <1524756256.3226.7.camel@HansenPartnership.com> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: X-Scanned-By: MIMEDefang 2.78 on 10.11.54.6 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.11.55.5]); Thu, 26 Apr 2018 15:59:42 +0000 (UTC) X-Greylist: inspected by milter-greylist-4.5.16 (mx1.redhat.com [10.11.55.5]); Thu, 26 Apr 2018 15:59:42 +0000 (UTC) for IP:'10.11.54.6' DOMAIN:'int-mx06.intmail.prod.int.rdu2.redhat.com' HELO:'smtp.corp.redhat.com' FROM:'mst@redhat.com' RCPT:'' Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Apr 26, 2018 at 11:44:21AM -0400, Mikulas Patocka wrote: > > > On Thu, 26 Apr 2018, James Bottomley wrote: > > > On Thu, 2018-04-26 at 11:05 -0400, Mikulas Patocka wrote: > > > > > > On Thu, 26 Apr 2018, James Bottomley wrote: > > [...] > > > > Perhaps find out beforehand instead of insisting on an approach > > > without > > > > knowing.? On openSUSE the grub config is built from the files in > > > > /etc/grub.d/ so any package can add a kernel option (and various > > > > conditions around activating it) simply by adding a new file. > > > > > > And then, different versions of the debug kernel will clash when? > > > attempting to create the same file. > > > > Don't be silly ... there are many ways of coping with that in rpm/dpkg. > > I know you can deal with it - but how many lines of code will that > consume? Multiplied by the total number of rpm-based distros. > > Mikulas I don't think debug kernels should inject faults by default. IIUC debug kernels mainly exist so people who experience e.g. memory corruption can try and debug the failure. In this case, CONFIG_DEBUG_SG will *already* catch a failure early. Nothing special needs to be done. There is a much smaller class of people like QA who go actively looking for trouble. That's the kind of thing fault injection is good for, and IMO you do not want your QA team to test a separate kernel - otherwise you are never quite sure whatever was tested will work in the field. So a config option won't help them either. How do you make sure QA tests a specific corner case? Add it to the test plan :) I don't speak for Red Hat, etc. -- MST