Received: by 10.192.165.148 with SMTP id m20csp1268321imm; Wed, 25 Apr 2018 15:44:27 -0700 (PDT) X-Google-Smtp-Source: AIpwx49Ovpg4gD908+UR5S8+shfUMtyqJ2ss6M9EJErtybBEwCDPGZl8lZfEd8SQsKi3t18G3+gD X-Received: by 10.99.97.133 with SMTP id v127mr24933931pgb.441.1524696267219; Wed, 25 Apr 2018 15:44:27 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1524696267; cv=none; d=google.com; s=arc-20160816; b=SrQr3VOjVYB4zpGSn7XK1jro1Ups16ocqkqiQPAQ5WuxnfnRQ10pzi5fZwbrzT9Qws N4dWiD0I5jzQRa0sLKby/xE8/3E8SKw0WpFgNqMr2e3XsKHiCa5Kpl5d152tIG3s9imF 2u5mnd5pl7Tcul3MSsyaSo+NUHXM1/Ch2ptC6jCDcSDXtbYFW9HtHk4aUSvxyvv5CCzS D0rl6BANVM3/55GwjtwyX1ydTN3VQNMmQkq2wa+JU7urBei0YLpOf96LZUQRjj0/C+5t gdF0GRRDMUj+nF8eUWnEF/65uASx+iPGTfg5KGMwbKLTHJRbp5osLpCl9ki4EIkuXlYf vtzQ== 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=69u+a6LJ7+e9In3yJ8PsV6ARleIwuj3XsJ6S/lhvBh8=; b=likVNYktd9mbGY9StZ59hASCkDi3/Q1wSZO+y/EMqKzQZd0Xy1R8v7eFmo9pl5gTfd 3vmcjvluk8EP3dwibBrUTvgsNdKtpCAznvl3ZL1pJIKouTtP5prGlu+P6t2j62Kav+0w ygUWSnRWo+wCAjWykrRqAw8YFJdjnKDzYAiYufebZ9PBpcAmzGD88SDOfsiVIBLV8dZ1 xQTCmMnjVFbLh6UgXi/NUuzCdilOvcyRnJVe3MCy2VNRGy/4fjfDUMJgVrsjqufsq5OF I5xhqcnGI6sxTngaV/PPMdypiuOdmrJ1jWWAgOqj+hX5jFnuZgwMbckytKz0OkoMjzJB Kobw== 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 d16-v6si6065495pli.176.2018.04.25.15.44.13; Wed, 25 Apr 2018 15:44:27 -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 S1753898AbeDYWnC (ORCPT + 99 others); Wed, 25 Apr 2018 18:43:02 -0400 Received: from mx3-rdu2.redhat.com ([66.187.233.73]:59022 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1753850AbeDYWm7 (ORCPT ); Wed, 25 Apr 2018 18:42:59 -0400 Received: from smtp.corp.redhat.com (int-mx04.intmail.prod.int.rdu2.redhat.com [10.11.54.4]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id B99CC818533A; Wed, 25 Apr 2018 22:42:58 +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 8937F2023239; Wed, 25 Apr 2018 22:42:58 +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 w3PMgwO7029687; Wed, 25 Apr 2018 18:42:58 -0400 Received: from localhost (mpatocka@localhost) by file01.intranet.prod.int.rdu2.redhat.com (8.14.4/8.14.4/Submit) with ESMTP id w3PMgv72029683; Wed, 25 Apr 2018 18:42:57 -0400 X-Authentication-Warning: file01.intranet.prod.int.rdu2.redhat.com: mpatocka owned process doing -bs Date: Wed, 25 Apr 2018 18:42:57 -0400 (EDT) From: Mikulas Patocka X-X-Sender: mpatocka@file01.intranet.prod.int.rdu2.redhat.com To: James Bottomley cc: David Rientjes , dm-devel@redhat.com, eric.dumazet@gmail.com, mst@redhat.com, netdev@vger.kernel.org, jasowang@redhat.com, Randy Dunlap , linux-kernel@vger.kernel.org, Matthew Wilcox , Michal Hocko , 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: <1524694663.4100.21.camel@HansenPartnership.com> Message-ID: References: <20180421144757.GC14610@bombadil.infradead.org> <20180423151545.GU17484@dhcp22.suse.cz> <20180424125121.GA17484@dhcp22.suse.cz> <20180424162906.GM17484@dhcp22.suse.cz> <20180424170349.GQ17484@dhcp22.suse.cz> <20180424173836.GR17484@dhcp22.suse.cz> <1114eda5-9b1f-4db8-2090-556b4a37c532@infradead.org> <1524694663.4100.21.camel@HansenPartnership.com> User-Agent: Alpine 2.02 (LRH 1266 2009-07-14) MIME-Version: 1.0 Content-Type: MULTIPART/MIXED; BOUNDARY="185206533-1203068836-1524696178=:25124" X-Scanned-By: MIMEDefang 2.78 on 10.11.54.4 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.11.55.8]); Wed, 25 Apr 2018 22:42:58 +0000 (UTC) X-Greylist: inspected by milter-greylist-4.5.16 (mx1.redhat.com [10.11.55.8]); Wed, 25 Apr 2018 22:42:58 +0000 (UTC) for IP:'10.11.54.4' DOMAIN:'int-mx04.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-1203068836-1524696178=:25124 Content-Type: TEXT/PLAIN; charset=UTF-8 Content-Transfer-Encoding: 8BIT On Wed, 25 Apr 2018, James Bottomley wrote: > On Wed, 2018-04-25 at 17:22 -0400, Mikulas Patocka wrote: > > > > On Wed, 25 Apr 2018, David Rientjes wrote: > > > > > > Do we really need the new config option?  This could just be > > > manually  tunable via fault injection IIUC. > > > > We do, because we want to enable it in RHEL and Fedora debugging > > kernels, so that it will be tested by the users. > > > > The users won't use some extra magic kernel options or debugfs files. > > If it can be enabled via a tunable, then the distro can turn it on > without the user having to do anything. You need to enable it on boot. Enabling it when the kernel starts to execute userspace code is already too late (because you would miss kvmalloc calls in the kernel boot path). These are files in the kernel-debug rpm package. Where would you put the extra kernel parameter to enable this feature? None of these files contain kernel parameters. kernel-debug /boot/.vmlinuz-3.10.0-693.21.1.el7.x86_64.debug.hmac kernel-debug /boot/System.map-3.10.0-693.21.1.el7.x86_64.debug kernel-debug /boot/config-3.10.0-693.21.1.el7.x86_64.debug kernel-debug /boot/initramfs-3.10.0-693.21.1.el7.x86_64.debug.img kernel-debug /boot/symvers-3.10.0-693.21.1.el7.x86_64.debug.gz kernel-debug /boot/vmlinuz-3.10.0-693.21.1.el7.x86_64.debug kernel-debug /etc/ld.so.conf.d/kernel-3.10.0-693.21.1.el7.x86_64.debug.conf kernel-debug /lib/modules/3.10.0-693.21.1.el7.x86_64.debug > If you want to present the user with a different boot option, you can > (just have the tunable set on the command line), but being tunable > driven means that you don't have to choose that option, you could > automatically enable it under a range of circumstances. I think most > sane distributions would want that flexibility. > > Kconfig proliferation, conversely, is a bit of a nightmare from both > the user and the tester's point of view, so we're trying to avoid it > unless absolutely necessary. > > James I already offered that we don't need to introduce a new kernel option and we can bind this feature to any other kernel option, that is enabled in the debug kernel, for example CONFIG_DEBUG_SG. Michal said no and he said that he wants a new kernel option instead. Mikulas --185206533-1203068836-1524696178=:25124--