Received: by 2002:ac0:a581:0:0:0:0:0 with SMTP id m1-v6csp1007015imm; Fri, 22 Jun 2018 08:48:47 -0700 (PDT) X-Google-Smtp-Source: ADUXVKJl6XlzPavMVkY8QjOXM/ag9yOyPFQeoA7oi4g7ZeVtVFyrRIjGK+1k0xwdxzCaRGLoOi8U X-Received: by 2002:a17:902:6802:: with SMTP id h2-v6mr2226856plk.113.1529682527305; Fri, 22 Jun 2018 08:48:47 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1529682527; cv=none; d=google.com; s=arc-20160816; b=QaMCyAvB81oyXFbS0dB0VA3rIKFG63M/tHDTuQTbddXSdPPtrY+e7Y5mLUEFOBK/dM Onbg169Ht36I97hscjs+TQExM/o+OXEYDCgGBXgrA9GLAq6eEkmWXTf13TbIyYDWTIap 6QCcygLgTJGYWDVggbZMSXzg/aASkBRu30Zh7s0ggwV78PmidnYHIfPC0dDUA8DpRFfS sD31lR5w11VLRRAGt6GcURplAxiUkrIhfZf3d4/V3N95PcwuWRiNnV+pDl3xTAQKH9EU 2B/Nc79J7pzov3m3Zpc2sRFIrjBrLboTVA1qQnJD02ymorGwVGxIs/Ljg4TnqrGaT5+m yPag== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:message-id:date :subject:cc:to:from:dkim-signature:arc-authentication-results; bh=jpZnm1YyIdLqnSXPTxrZgdSED/90cNSisvGzPI6ptbU=; b=iSDauH/h+zfANGBpUKH7b+LO/oWVWMHKJShSq7YPHGGHQGc76BpbrcW3Jw7CfpCEdz xHUgrepo/faCWogsjtU4WInRmKnMwSZBr2h2+DLdeQYK89vE7Is++FGUWadISKH17GRI 9d66SAkaRey3xe66jCfDgp/CIM6jDvcSNLStVjgmS1kqO+8QpXcAYxVU6m8LVXbx5QAM xVQjQlc07AMFc+bZngGhF0d7FoNVLr4JEBgoOrMDOZ4LkoQakQl96tdPCC8kH5c+9DSH MYagPv/If03t5LIjjbfgpAItziWyo1l1gwBftxIWfa3IepiMFrRhFswUxI6uyLmCbTnV 7s5A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@zx2c4.com header.s=mail header.b=ffNjqBT1; 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=NONE sp=NONE dis=NONE) header.from=zx2c4.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id a4-v6si7260899pfi.353.2018.06.22.08.48.32; Fri, 22 Jun 2018 08:48:47 -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=@zx2c4.com header.s=mail header.b=ffNjqBT1; 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=NONE sp=NONE dis=NONE) header.from=zx2c4.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S933923AbeFVPqd (ORCPT + 99 others); Fri, 22 Jun 2018 11:46:33 -0400 Received: from frisell.zx2c4.com ([192.95.5.64]:34461 "EHLO frisell.zx2c4.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S933670AbeFVPqc (ORCPT ); Fri, 22 Jun 2018 11:46:32 -0400 Received: by frisell.zx2c4.com (ZX2C4 Mail Server) with ESMTP id b6585bef; Fri, 22 Jun 2018 15:40:15 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=zx2c4.com; h=from:to:cc :subject:date:message-id:in-reply-to:references; s=mail; bh=KW60 zVfrC8Hwr589uxTW8kpYXS0=; b=ffNjqBT1w6jjw84lejxF+5ntbUZqSN56rWHf HFe/wfV7l16uX3hZk+Xr7Aj1M2VW6nIDGwhGDslEId54vCDcXiTiQ6djPGYNSXbE EmiaraXNeTzD3DaoxZ6lhm10xdHqAkLQ+JLLmRl0ZvWEfk+DUQzD74hIZWeluvHK 2Z1/qUCCYGRt9lXbnclZT4nTiNuJXuvUqptkvAh/WkM7R5crP1JACs31AwlByHsO 2LUKBN8sy+n7m9nmqOSh30gxyIQNbUQgerrRNboDr8W3n4Mpac31Pb6SyJ6GBF1p uvAYP4RIuOBMF1QW2MUCoaPkkSe4GziWp7xOOjoIGrFFDhs7NQ== Received: by frisell.zx2c4.com (ZX2C4 Mail Server) with ESMTPSA id 00b1b5ac (TLSv1.2:ECDHE-RSA-AES256-GCM-SHA384:256:NO); Fri, 22 Jun 2018 15:40:15 +0000 (UTC) From: "Jason A. Donenfeld" To: Shakeel Butt Cc: "Jason A. Donenfeld" , David Rientjes , Christoph Lameter , Pekka Enberg , Joonsoo Kim , Andrew Morton , Andrey Ryabinin , stable@vger.kernel.org, linux-mm@kvack.org, linux-kernel@vger.kernel.org Subject: [PATCH] kasan: depend on CONFIG_SLUB_DEBUG Date: Fri, 22 Jun 2018 17:46:23 +0200 Message-Id: <20180622154623.25388-1-Jason@zx2c4.com> In-Reply-To: References: Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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 --- 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