Received: by 10.192.165.148 with SMTP id m20csp2486927imm; Thu, 26 Apr 2018 11:51:07 -0700 (PDT) X-Google-Smtp-Source: AIpwx4/USHy97TT3Iadcmw8WnzbqMuQfpc8ElA9alqm+Inbs3RA78VyBRCRJjYS/+oDbn7CFRYPC X-Received: by 2002:a17:902:3381:: with SMTP id b1-v6mr35263946plc.248.1524768667512; Thu, 26 Apr 2018 11:51:07 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1524768667; cv=none; d=google.com; s=arc-20160816; b=Zd1bF8L0saTcHwe6Saof8P8o3NpGlUVaiRCHouIoJyeJb4scr1MzQlESWmvAvKk8FW ciC45dnwcPXhkOfb3D3TxIJohrKuCUlrWZ1IqgaHFLN3XBoprss07NxzFXfXMrnAeyAk EV1xIj3v8Kp0C3sKURqAWoA7QSDTdLjUF7svGHzsPKqUs+R8vKh2847TBTCdHcJylLEb yRdHMoEq2dgmNyDN09G2qZ3WD+gXWMBwYeL6ZMWAIULOfeopa3tpoeMPE+vPfOo1QSjI iioYt8eT/kFnBAWhn6CI/sjWQn9apcAphM1MGYw0XiPYF11Gn2YkcxlHDIO8FnjE2eI+ rBMA== 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-disposition :mime-version:references:message-id:subject:cc:to:from:date :arc-authentication-results; bh=C5PnfGSDKWr6BPMaDzzNzuNcuqu+u7j+69dkOQJ6ZjE=; b=S0gEcWXiJ3LWavA72sHrJpmUkO+DdObOVxXsSMyJes7hYc8bbRa7hgCR+d52U4B5g5 mhoDj4GHd/JWlTomCMTlvucLEe6Qgc/8h7rgs+HoLiemxBZrPxoQndzFPeL1VutXz9Ac ofwutc+zYfNFSTSzwh5VDGMOBg8QPWmVrOXZ96qsEg7ZKYxlS1IsX1EUJ2et4YRb97OI i/EnXU/3vPKmY5Tg+LMta7OffatPCbhfKXesfdvx9bf49cxGOgR4UeD26ey8ONhfQcOA KGU1PKy9e8a1MUg/5mvzlTWXIcNYBO5fr7zjg4lLR762tTLd4jPty9iXDLs6BVqLBMip g0yg== 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 bf10-v6si20009570plb.417.2018.04.26.11.50.53; Thu, 26 Apr 2018 11:51:07 -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 S1756891AbeDZStg (ORCPT + 99 others); Thu, 26 Apr 2018 14:49:36 -0400 Received: from mx3-rdu2.redhat.com ([66.187.233.73]:36892 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1753665AbeDZStV (ORCPT ); Thu, 26 Apr 2018 14:49:21 -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 83174410FBB4; Thu, 26 Apr 2018 18:49:20 +0000 (UTC) Received: from redhat.com (ovpn-123-156.rdu2.redhat.com [10.10.123.156]) by smtp.corp.redhat.com (Postfix) with SMTP id 424EC215CDC8; Thu, 26 Apr 2018 18:49:19 +0000 (UTC) Date: Thu, 26 Apr 2018 21:49:19 +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: <20180426214011-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> <20180426184845-mutt-send-email-mst@kernel.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline 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.7]); Thu, 26 Apr 2018 18:49:20 +0000 (UTC) X-Greylist: inspected by milter-greylist-4.5.16 (mx1.redhat.com [10.11.55.7]); Thu, 26 Apr 2018 18:49:20 +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 12:07:25PM -0400, Mikulas Patocka wrote: > > 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). That's my point. I don't think your patch helps debug any memory corruptions. With CONFIG_DEBUG_SG using DMA API already causes a BUG_ON, that's before any memory can get corrupted. -- MST