Received: by 10.192.165.148 with SMTP id m20csp533391imm; Fri, 27 Apr 2018 03:21:50 -0700 (PDT) X-Google-Smtp-Source: AB8JxZrIRvwt656ZhXPEdL3ptFElPhEbAht9wG/oCgAcyDpylCPtaipRwk7IELWp7tqVGZ3LBAkg X-Received: by 2002:a17:902:7e05:: with SMTP id b5-v6mr1738149plm.230.1524824510121; Fri, 27 Apr 2018 03:21:50 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1524824510; cv=none; d=google.com; s=arc-20160816; b=u9jXsoFEpKCL/SKTjjZcD+qGVEVbHDHQIq+JwZDhn5567OUIehg7tENDKVpfeKnFfW zVmMW2eCatqJx1G2SvpYhF+ZAOuAkvo9pDsjNBUp2Kg6V8zjQxQqM1Pxn8plLMxloQEV PznwQ3r6+RNCj2F5qxWrlC5ljdYWpEOdmo2FfrZRBs4Kg8i3pN8wwhoCfRpRQ3oevyXu pFNm5Gu83gGLgiPwA0MM37FwdNDBwGW/sVzl/taQUWHtRM2q9RBU4B34vAT6GoLxyAGd KMAJicIXx1gNV7SeRfOzvTgwDJrf9nXgHpguoP3hmx0vunCPr1KsbVErWf+1Uec4Dl0z bjSg== 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=oqmrNIODAnl1Vu3+oOwkY5LOnA2LZ40/cYtbGZEz9rI=; b=WIpB8mEUYGZH8MW5aSkSyDt/XbMPRX+viC8gU28jzTqoH1QRWwHTHWPrbr1D9v8EzP kZ3JaR3rmJ/dCMAqI4P9LzJvAq05t27JxwdaN0HSvdPgLfRMcLbmTzJY25MkY86423ma ab5i4hcWqb92SxnJAb4hu9830MVPa0rv59Z5hepnf8ZiuHaul9GwH8YrZe3pLdoA47uf +mPhiPcTUmK/HMhlan956Q+MMBRdJ75VI4v04x8Cr24tMCV1UrxjuM+a6qdhQbbwocEQ bwRicVu4ti/BzWWCdmjF97PHmys7Y6TOh7PMsx4ZLq7KwJPpAjalo1WZh78K/0DSUwe+ aM3g== 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 w10si994449pfg.174.2018.04.27.03.21.35; Fri, 27 Apr 2018 03:21:50 -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 S1757905AbeD0KUY (ORCPT + 99 others); Fri, 27 Apr 2018 06:20:24 -0400 Received: from mx3-rdu2.redhat.com ([66.187.233.73]:44768 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1757609AbeD0KUX (ORCPT ); Fri, 27 Apr 2018 06:20:23 -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 A93AF4270947; Fri, 27 Apr 2018 10:20:22 +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 7670DAB3F5; Fri, 27 Apr 2018 10:20:17 +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 w3RAKHHD024213; Fri, 27 Apr 2018 06:20:17 -0400 Received: from localhost (mpatocka@localhost) by file01.intranet.prod.int.rdu2.redhat.com (8.14.4/8.14.4/Submit) with ESMTP id w3RAKGVn024208; Fri, 27 Apr 2018 06:20:16 -0400 X-Authentication-Warning: file01.intranet.prod.int.rdu2.redhat.com: mpatocka owned process doing -bs Date: Fri, 27 Apr 2018 06:20:16 -0400 (EDT) From: Mikulas Patocka X-X-Sender: mpatocka@file01.intranet.prod.int.rdu2.redhat.com To: Michal Hocko cc: "Michael S. Tsirkin" , John Stoffel , James Bottomley , Michal@stoffel.org, eric.dumazet@gmail.com, netdev@vger.kernel.org, jasowang@redhat.com, Randy Dunlap , linux-kernel@vger.kernel.org, Matthew Wilcox , linux-mm@kvack.org, dm-devel@redhat.com, Vlastimil Babka , Andrew@stoffel.org, David Rientjes , Morton , virtualization@lists.linux-foundation.org, David Miller , edumazet@google.com Subject: Re: [dm-devel] [PATCH v5] fault-injection: introduce kvmalloc fallback options In-Reply-To: <20180427082555.GC17484@dhcp22.suse.cz> Message-ID: References: <1524694663.4100.21.camel@HansenPartnership.com> <1524697697.4100.23.camel@HansenPartnership.com> <23266.8532.619051.784274@quad.stoffel.home> <20180427005213-mutt-send-email-mst@kernel.org> <20180427082555.GC17484@dhcp22.suse.cz> User-Agent: Alpine 2.02 (LRH 1266 2009-07-14) MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII 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.7]); Fri, 27 Apr 2018 10:20:22 +0000 (UTC) X-Greylist: inspected by milter-greylist-4.5.16 (mx1.redhat.com [10.11.55.7]); Fri, 27 Apr 2018 10:20:22 +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 On Fri, 27 Apr 2018, Michal Hocko wrote: > On Thu 26-04-18 18:52:05, Mikulas Patocka wrote: > > > > > > On Fri, 27 Apr 2018, Michael S. Tsirkin wrote: > [...] > > > But assuming it's important to control this kind of > > > fault injection to be controlled from > > > a dedicated menuconfig option, why not the rest of > > > faults? > > > > The injected faults cause damage to the user, so there's no point to > > enable them by default. vmalloc fallback should not cause any damage > > (assuming that the code is correctly written). > > But you want to find those bugs which would BUG_ON easier, so there is a > risk of harm IIUC Yes, I want to harm them, but I only want to harm the users using the debugging kernel. Testers should be "harmed" by crashes - so that the users of production kernels are harmed less. If someone hits this, he should report it, use the kernel parameter to turn it off and continue with the testing. > and this is not much different than other fault injecting paths. Fault injections causes misbehavior even on completely bug-free code (for example, syscalls randomly returning -ENOMEM). This won't cause misbehavior on bug-free code. Mikulas