Received: by 10.192.165.148 with SMTP id m20csp2324549imm; Thu, 26 Apr 2018 09:09:01 -0700 (PDT) X-Google-Smtp-Source: AIpwx48rT/SmHJbbuMJKOdFoGSs2ohpUugyhCrEaU3zFmZ4vL/aZc679pdfKaB748nJ+ax2j6lm3 X-Received: by 2002:a17:902:33a5:: with SMTP id b34-v6mr34843940plc.232.1524758941528; Thu, 26 Apr 2018 09:09:01 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1524758941; cv=none; d=google.com; s=arc-20160816; b=BSjB0NYcpUu/tPoIBMy7OIi/92C+rPM3DTggJ2iCvHzFZ3AYAq6HidroK9kADlHniA CU1bil+Xywe0CpQxt+GX3hfzxjYk8tUC25+L43bhU9JQcZ+8OOwQFx6uZODmpTrOGA98 kIboCHvjuqZAR3DUtDtG921emEcGESwe3DewIAeOdmlVoGaFkn/ipV5cCRdHUZ0GZOKQ LEn8ACg+q+Z96NR/3PLol0/p11fv6yIxE//+NoynndHWuIziDOTuKebSMomgkOB2hqmO tw2Cy8KevkawK6MOTYnP3NGxGQZFIWlCoXOc+bXJ9/GVYrwaqtR0WyhDF03JcJHTTSIK O+OQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:user-agent:references :message-id:in-reply-to:subject:cc:to:from:date :arc-authentication-results; bh=0QlNTKe8ZiJgr6Y930lQ9HQSjDurjPD+JFS9Z9A2HjM=; b=vpcppZyTtAXLQJxidIKD3AAnRSwJXfvqS8xHFSq6mfaBe5SmGc9SLe/Yxtcitl4Sgh xNKIcKnoSZQCUx7/HRcbxO0D4CrL3mqA5mUS2hkkGMVFd4BjkKMLdACn9FxGkdzfeHiO VSNGzgqVd3mgNvhTDtrgmxAsC3vVMPzXgcY1TVLD7YM0uXcGrY72QL6BdK9Z/4g6PPTQ GAb7H28W/qzHsECpuZlvbeWHzuTFDYsuyZisVIMeDGU2TyfyklSBc1cgCGe21PDj10BT HG6o3JiDZXE2FAn2q5gx3pXyqu5K4Ua/W4hb5z0IPT2y8kOs5PsImBo6c1vYQxCfAeJI iovw== 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 u4si18710420pfb.42.2018.04.26.09.08.46; Thu, 26 Apr 2018 09:09:01 -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 S1756781AbeDZQHc (ORCPT + 99 others); Thu, 26 Apr 2018 12:07:32 -0400 Received: from mx3-rdu2.redhat.com ([66.187.233.73]:59832 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1756519AbeDZQHb (ORCPT ); Thu, 26 Apr 2018 12:07:31 -0400 Received: from smtp.corp.redhat.com (int-mx05.intmail.prod.int.rdu2.redhat.com [10.11.54.5]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id 7F432EC00F; Thu, 26 Apr 2018 16:07:30 +0000 (UTC) Received: from file01.intranet.prod.int.rdu2.redhat.com (file01.intranet.prod.int.rdu2.redhat.com [10.11.5.7]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 59CC08445C; Thu, 26 Apr 2018 16:07:26 +0000 (UTC) Received: from file01.intranet.prod.int.rdu2.redhat.com (localhost [127.0.0.1]) by file01.intranet.prod.int.rdu2.redhat.com (8.14.4/8.14.4) with ESMTP id w3QG7Q2a025387; Thu, 26 Apr 2018 12:07:26 -0400 Received: from localhost (mpatocka@localhost) by file01.intranet.prod.int.rdu2.redhat.com (8.14.4/8.14.4/Submit) with ESMTP id w3QG7PXb025383; Thu, 26 Apr 2018 12:07:25 -0400 X-Authentication-Warning: file01.intranet.prod.int.rdu2.redhat.com: mpatocka owned process doing -bs Date: Thu, 26 Apr 2018 12:07:25 -0400 (EDT) From: Mikulas Patocka X-X-Sender: mpatocka@file01.intranet.prod.int.rdu2.redhat.com To: "Michael S. Tsirkin" 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 In-Reply-To: <20180426184845-mutt-send-email-mst@kernel.org> Message-ID: References: <1524694663.4100.21.camel@HansenPartnership.com> <20180426125817.GO17484@dhcp22.suse.cz> <1524753932.3226.5.camel@HansenPartnership.com> <1524756256.3226.7.camel@HansenPartnership.com> <20180426184845-mutt-send-email-mst@kernel.org> User-Agent: Alpine 2.02 (LRH 1266 2009-07-14) MIME-Version: 1.0 Content-Type: MULTIPART/MIXED; BOUNDARY="185206533-1736142901-1524758846=:24656" X-Scanned-By: MIMEDefang 2.79 on 10.11.54.5 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.11.55.1]); Thu, 26 Apr 2018 16:07:30 +0000 (UTC) X-Greylist: inspected by milter-greylist-4.5.16 (mx1.redhat.com [10.11.55.1]); Thu, 26 Apr 2018 16:07:30 +0000 (UTC) for IP:'10.11.54.5' DOMAIN:'int-mx05.intmail.prod.int.rdu2.redhat.com' HELO:'smtp.corp.redhat.com' FROM:'mpatocka@redhat.com' RCPT:'' Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org This message is in MIME format. The first part should be readable text, while the remaining parts are likely unreadable without MIME-aware tools. --185206533-1736142901-1524758846=:24656 Content-Type: TEXT/PLAIN; charset=iso-8859-1 Content-Transfer-Encoding: 8BIT On Thu, 26 Apr 2018, Michael S. Tsirkin wrote: > 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. But it is not injecting any faults. It is using the fault-injection framework because Michal said that it should use it. The original version of the patch didn't use the fault-injection framework at all. The kvmalloc function can take two branches, the kmalloc branch and vmalloc branch. The vmalloc branch is taken rarely, so the kernel contains bugs regarding this path - and the patch increases the probability that the vmalloc patch is taken, to discover the bugs early and make them reproducible. > 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. The patch helps people debug such memory coprruptions (such as using DMA API on the result of kvmalloc). > 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 Mikulas --185206533-1736142901-1524758846=:24656--