Received: by 10.192.165.148 with SMTP id m20csp2120048imm; Thu, 3 May 2018 10:41:25 -0700 (PDT) X-Google-Smtp-Source: AB8JxZpEj80nGg+YVUF1sdS9ILRFsRj3gxvQxT6ZivTkBGBIG9mRpHKUQwGjIN4+KMcgFQaFXcCB X-Received: by 2002:a63:77c9:: with SMTP id s192-v6mr19755756pgc.51.1525369285239; Thu, 03 May 2018 10:41:25 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1525369285; cv=none; d=google.com; s=arc-20160816; b=k5ifCjwF7A6Stp6Fi/mTa0haLjZOR5O9bFRyvBWug2G6bxJbDPkECdoSN6Uh6C1xZ1 Z0eA1/CPm1xr8Hjcj3OD/2/yArkLSTlFtfcwNtYewgloL088uxsgnTNEhdjTYnqcJuix zGl0vi+pGkZpVknoCwkCxlWgx6+DkS2tl1+o2zMybGFV5Kp4PeoEUl4TVC/R+AKj8jkn Y6R1XVutF93OeSBEw15HxhYo3QKwvt0PIYKzsq8kXH1oiwodV/Fr8jlGoaTLSGqfTOOC +MNv0UIzgB34Jx/pJGb7H/WHAgXFz5gmG/JGeUvbQTBIJlZLidVtwiegaIxnUYmB0mZ7 RYSA== 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=JxUzzXJbRF2/fM8mT/Dc2SvusaxD+PMP4eTP3d7G/WU=; b=woZoICEtsZdjheht7ZwKLqcXk3p4eB4ojTsZz4p6P7MvX7De+JbrjyeazC1YQOczXH kOhO3YrZlKBRInlCApoLzpH2Ijo1r0NlCV++S6p7VzgOt2bJPs9crfjwkpa29snnrXTv XITlcxMfqNv26AZNMgHunAr/ixD3jbxuvm9eeGut5jrA5gWTWTFcqlqsV/7NlHOs1dKo yUzYBd0NStZheXqGPnEYtmCtQQdBEqN5ASFc6qjdUL8bISIW5ObeQU/dc5b3qsNM3cpk JKJl7ZfXdKLl1wfgU13+JKh7B+QI1ZjuungjxgqmE/8FCpKBc1wXL6fzX0vvbNVkM9Pn m7cQ== 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 n125-v6si11944833pga.197.2018.05.03.10.41.10; Thu, 03 May 2018 10:41:25 -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 S1751459AbeECRkx (ORCPT + 99 others); Thu, 3 May 2018 13:40:53 -0400 Received: from mx3-rdu2.redhat.com ([66.187.233.73]:45044 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1751007AbeECRku (ORCPT ); Thu, 3 May 2018 13:40:50 -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 F15B3406C743; Thu, 3 May 2018 17:40:49 +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 BA3752166BAD; Thu, 3 May 2018 17:40:49 +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 w43HenCX031386; Thu, 3 May 2018 13:40:49 -0400 Received: from localhost (mpatocka@localhost) by file01.intranet.prod.int.rdu2.redhat.com (8.14.4/8.14.4/Submit) with ESMTP id w43Henqd031382; Thu, 3 May 2018 13:40:49 -0400 X-Authentication-Warning: file01.intranet.prod.int.rdu2.redhat.com: mpatocka owned process doing -bs Date: Thu, 3 May 2018 13:40:48 -0400 (EDT) From: Mikulas Patocka X-X-Sender: mpatocka@file01.intranet.prod.int.rdu2.redhat.com To: John Stoffel cc: Andrew@stoffel.org, 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 , Hocko , James Bottomley , Michal@stoffel.org, edumazet@google.com, linux-mm@kvack.org, David Rientjes , 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: <23273.48986.516559.317965@quad.stoffel.home> Message-ID: References: <20180421144757.GC14610@bombadil.infradead.org> <20180424173836.GR17484@dhcp22.suse.cz> <1114eda5-9b1f-4db8-2090-556b4a37c532@infradead.org> <1524694663.4100.21.camel@HansenPartnership.com> <1524697697.4100.23.camel@HansenPartnership.com> <23266.8532.619051.784274@quad.stoffel.home> <23271.24580.695738.853532@quad.stoffel.home> <23273.48986.516559.317965@quad.stoffel.home> 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.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, 03 May 2018 17:40:50 +0000 (UTC) X-Greylist: inspected by milter-greylist-4.5.16 (mx1.redhat.com [10.11.55.5]); Thu, 03 May 2018 17:40:50 +0000 (UTC) for IP:'10.11.54.6' DOMAIN:'int-mx06.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 Wed, 2 May 2018, John Stoffel wrote: > You miss my point, which is that there's no explanation of what the > difference is between SLAB and SLUB and which I should choose. The > same goes here. If the KConfig option doesn't give useful info, it's > useless. So what, we could write explamantion of that option. > >> Now I also think that Linus has the right idea to not just sprinkle > >> BUG_ONs into the code, just dump and oops and keep going if you can. > >> If it's a filesystem or a device, turn it read only so that people > >> notice right away. > > Mikulas> This vmalloc fallback is similar to > Mikulas> CONFIG_DEBUG_KOBJECT_RELEASE. CONFIG_DEBUG_KOBJECT_RELEASE > Mikulas> changes the behavior of kobject_put in order to cause > Mikulas> deliberate crashes (that wouldn't happen otherwise) in > Mikulas> drivers that misuse kobject_put. In the same sense, we want > Mikulas> to cause deliberate crashes (that wouldn't happen otherwise) > Mikulas> in drivers that misuse kvmalloc. > > Mikulas> The crashes will only happen in debugging kernels, not in > Mikulas> production kernels. > > Says you. What about people or distros that enable it > unconditionally? They're going to get all kinds of reports and then > turn it off again. Crashing the system isn't the answer here. I've made that kvmalloc bug too (in the function dm_integrity_free_journal_scatterlist). I'd much rather like if the kernel crashed (because then - I would fix the bug). The kernel didn't crash and the bug sneaked into the official linux tree, where may be causing random crashes for other users. Mikulas