Received: by 2002:ac0:a581:0:0:0:0:0 with SMTP id m1-v6csp1033989imm; Fri, 22 Jun 2018 09:12:55 -0700 (PDT) X-Google-Smtp-Source: ADUXVKLWRrAaPXfwEofj3nXg+sZCnNZ5721vok9v6pVITQ0cpi9WJ8ZJQst3bG6RX3UM4ExgN2ym X-Received: by 2002:a17:902:28e4:: with SMTP id f91-v6mr2400153plb.146.1529683974999; Fri, 22 Jun 2018 09:12:54 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1529683974; cv=none; d=google.com; s=arc-20160816; b=G4k+no2Klltaw0RFw4LmG6sp0GoxBpEHcOUdMigK7DtNGghhUbrNiHpHlSn/lkqafF Srj23y4AhUAFRwlNrOc17+T7sCvnnsPFhpTTaRyxY4cmdbc9KNeMHLQxEZ0nNTq1HWdB xsuEi3imFB0/Nbu7F9/H43LA4QBdN3zZNuPt+LlJOtU6PdOHxGeIKyEIoslL0ZWVo9cl EUF0/Bu2BhUfAdd71VCDyVPbd1/fg5k5u98smkVJVVk3W9b/vDb/RplpgLCmBwHzKYcq N1Tmq1y0arAXvHaE9p0Y1f4oi91vpAl0J0Rd0yX7WRUGvCNd/odJkqr+GCgEwMNFHBu0 9cWg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature :arc-authentication-results; bh=ii5G3KnlucUIn9UlNNE+YCO4B8eaXoF8PxtqvdwuOZc=; b=PPnOgrgVuxKwCxLkcF+kZQLfrkxbzS/qzlLb3HekO+Q8x5PJXxpqQWGlSVR/mk6jQE CPmsahViF8MC3eazxW7NZayVDVXHwGCwde6XcDq8hzPuUFMAidV68uMoau57MoBCl3VZ aGLs1bO2pXiKEmAdh0mOwexuPb7RmIWfNg10Z9v5VDWK1sxObMA+hFt7f54vciKKNgiB d0ZSQqplIyaI6TwShjREi36/V9Q7e13bQA0ktULDYbI6PYno1gZM0M6hFPAIToQ0gpDP JPcdnXo5uyMByRMtoFTmxy1LQZHLw6JPxP97MQJFkDSeeJtcoGL+tiAr352OVYxMNXdw YJGg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20161025 header.b=McKbbDT1; 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=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id b65-v6si7806435pfj.2.2018.06.22.09.12.40; Fri, 22 Jun 2018 09:12:54 -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; dkim=pass header.i=@google.com header.s=20161025 header.b=McKbbDT1; 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=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S934103AbeFVQKr (ORCPT + 99 others); Fri, 22 Jun 2018 12:10:47 -0400 Received: from mail-wr0-f196.google.com ([209.85.128.196]:41199 "EHLO mail-wr0-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751385AbeFVQKp (ORCPT ); Fri, 22 Jun 2018 12:10:45 -0400 Received: by mail-wr0-f196.google.com with SMTP id h10-v6so7213657wrq.8 for ; Fri, 22 Jun 2018 09:10:45 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=ii5G3KnlucUIn9UlNNE+YCO4B8eaXoF8PxtqvdwuOZc=; b=McKbbDT1wT4NPdk+8x5dlYAXmASXWOj+tGYBFTdNX7EXaTgmBCTR3fhBoHixNIlB1C cS3YDKmn/Xa1V9xDxBh7ZkNM3Le8bmxUSXzjaT9qsvbISUFoMArvKrs03STNTnl6D7zg 3YNtSeKyTxdK8CbHhrGiDMJYhDicEthtk1Ue/WhYwXroxpcwWWe1Er8U2p4P/6NW9EGo ZWDKz+29xwgBq+yNogXUVFr4fpWqL9dCHVViAbc1MkjuH7HV7bJnO6YzeApQKIbBlp80 wk0SYHtmeolfOCRYDxkMaxt3nDUlE2jhRYHjWttI0FoNHn4Fcl/tBe9dTx9e9uctPTkC K7KQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=ii5G3KnlucUIn9UlNNE+YCO4B8eaXoF8PxtqvdwuOZc=; b=Olx/nFx6W4e+rt4yde6jzXunHGeZgVKbZ1/0Tm23Q4xmWp3bCTnc3a7kwdsQmOPC64 s2KACHvrLGi8bIgw1YPGRdpOMMnHQUNtowpPgDP6zIbh1IQJTAMZGeS1OBkMHIwlb6jp Qw+jdcE3XvUfElo7T8MOzvKBoNp0PLs65idmMrsEu0eD4VdMOy7W8pA/slXbZZ2GWlJX urvoW8zUmibM+gi+MabEyhgC+eL3LKlOu2P/mCDWnC9FIWUJyib67abkH7WLT25U++lS P3DADzUfbbqrqiu5wYoTkWKvCqEP4LlJD8VCeCjg71L9kVgeFsWTcUPGDGYWSic+Q/Sn iQwA== X-Gm-Message-State: APt69E0G92U8emWT/EgFY6oRKhJ9m2sUg6DixAhfDIBwEY3baEK57wjk 85ttqcZThP7+vyfrdXd4aQ8B9V1dhaBVXpohOWz+6Q== X-Received: by 2002:adf:dd03:: with SMTP id a3-v6mr2262594wrm.2.1529683844280; Fri, 22 Jun 2018 09:10:44 -0700 (PDT) MIME-Version: 1.0 References: <20180622154623.25388-1-Jason@zx2c4.com> In-Reply-To: <20180622154623.25388-1-Jason@zx2c4.com> From: Shakeel Butt Date: Fri, 22 Jun 2018 09:10:31 -0700 Message-ID: Subject: Re: [PATCH] kasan: depend on CONFIG_SLUB_DEBUG To: "Jason A . Donenfeld" Cc: David Rientjes , Christoph Lameter , Pekka Enberg , Joonsoo Kim , Andrew Morton , Andrey Ryabinin , stable@vger.kernel.org, Linux MM , LKML Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Jun 22, 2018 at 8:46 AM Jason A. Donenfeld wrote: > > KASAN depends on having access to some of the accounting that SLUB_DEBUG > does; without it, there are immediate crashes [1]. So, the natural thing > to do is to make KASAN select SLUB_DEBUG. > > [1] http://lkml.kernel.org/r/CAHmME9rtoPwxUSnktxzKso14iuVCWT7BE_-_8PAC=pGw1iJnQg@mail.gmail.com > > Fixes: f9e13c0a5a33 ("slab, slub: skip unnecessary kasan_cache_shutdown()") > Cc: Shakeel Butt > Cc: David Rientjes > Cc: Christoph Lameter > Cc: Pekka Enberg > Cc: Joonsoo Kim > Cc: Andrew Morton > Cc: Andrey Ryabinin > Cc: > Cc: > Cc: > Signed-off-by: Jason A. Donenfeld Reviewed-by: Shakeel Butt > --- > lib/Kconfig.kasan | 1 + > 1 file changed, 1 insertion(+) > > diff --git a/lib/Kconfig.kasan b/lib/Kconfig.kasan > index 3d35d062970d..c253c1b46c6b 100644 > --- a/lib/Kconfig.kasan > +++ b/lib/Kconfig.kasan > @@ -6,6 +6,7 @@ if HAVE_ARCH_KASAN > config KASAN > bool "KASan: runtime memory debugger" > depends on SLUB || (SLAB && !DEBUG_SLAB) > + select SLUB_DEBUG if SLUB > select CONSTRUCTORS > select STACKDEPOT > help > -- > 2.17.1 >