Received: by 2002:ac0:a5a6:0:0:0:0:0 with SMTP id m35-v6csp383784imm; Fri, 21 Sep 2018 01:43:54 -0700 (PDT) X-Google-Smtp-Source: ANB0VdbGTU2lHMePgwaN6KtP6Rx8aJx3j6ZMBWzsD+rvlFDiuvxm5CUJWgLpO/RhTSMa9F5qQ6Ik X-Received: by 2002:a62:938e:: with SMTP id r14-v6mr46221688pfk.55.1537519434571; Fri, 21 Sep 2018 01:43:54 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1537519434; cv=none; d=google.com; s=arc-20160816; b=qRqzPCnIgZKcLjVSrQJGlEUCor3yl+pHc6Mz8fvgH1X5SOcJen/e5DjkK7MthNH21s 2X+FkXe4YnZVSqHQYpZZmSk4zyUSH8KvUnfbt5t3029NucuNDoSbNtVQ8W0kHc7uZdRF 4nFLfv4ws7YCuuSbmhSWDpdN9+ocKcH/NaGc9F6kv0T1albEtKsVz2DLTW7nUFKBi9uC xfC+qfRWIqV1GpPFMFXIcpdYt+4zzuzoh7rJ8Me7Aivr4kbf7v5faZOPNJk6lqMPy6PI 0A52zx5J0w02YnnY3wWRzVFdYhj7NQt1ekGEW16yDLn5BFk69pzYvEgD6FfWb67AHzs3 aNcA== 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 :references:in-reply-to:mime-version:dkim-signature; bh=VCY11d6Q8u0HYNWtx8TAGoyh4KZuFvy2DdJdgLsq9o4=; b=Os9tpbWYfVRw/dUfun0oF9YV7U0MP2WsuOOELdJoa3F7rwpJBc0qICRMSOAJ7wmK3j GVfIR0tuty/umV725EHN37HNcEPflKiAvanHYZ16HVGCdztxRS86bM2wHu1iujhHa7wh rQcyi7MWfJsIYRu1f1Atz4DN01gnHtb5Fr/hs1McQIW7Je99UXG9dfzBrWyYzN++ZlXb m7ZGrdo4XX89T6YG3uq+zfg/QmFIikyc8K1c5MgtpM291o1D9SfHjt2awyKWXK4VbyVh 1gNA0ngckHQajEyAs+7y2S1weY4IsP3Ko6A9QF1jaRsmoTVF2czY3f6zXezUJVKfV2u9 SZGw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20161025 header.b=hwTJfywd; 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 g35-v6si28029418plb.108.2018.09.21.01.43.38; Fri, 21 Sep 2018 01:43: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=hwTJfywd; 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 S2389473AbeIUOaS (ORCPT + 99 others); Fri, 21 Sep 2018 10:30:18 -0400 Received: from mail-it1-f195.google.com ([209.85.166.195]:35619 "EHLO mail-it1-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727795AbeIUOaS (ORCPT ); Fri, 21 Sep 2018 10:30:18 -0400 Received: by mail-it1-f195.google.com with SMTP id 139-v6so1090541itf.0 for ; Fri, 21 Sep 2018 01:42:29 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20161025; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=VCY11d6Q8u0HYNWtx8TAGoyh4KZuFvy2DdJdgLsq9o4=; b=hwTJfywdz5WnhE5Nga7GttYtqDQjsF3XZQoVKgV7ljaH2NcjzBeTucVUR8VQhvipMi oQePY5IU2hEXJ5e8QsU3oTa1uqKbHcn7LOj6+ynA8cMJHsW+O97BuR5FVgcbndXblCh5 ebG9/HiOiBiYSkco9t1WePM7IrLWzWaXdA3I9S4DkBqwSzzmI0PqCg56a4z9XJfoHO81 7e/p5PXSQPx6M4XKXw04s6qQnbVeIS04EHgsmwpnq3sOPsjkLieNQLkAX+B5e8s9zPkA 6SWx+fwsnaS5YSWY9z+nWVeKdn4GYcuI7OUmY/aEzRUhCLRM0y6Uo2c4ByK+ScIg1LTG zg6Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=VCY11d6Q8u0HYNWtx8TAGoyh4KZuFvy2DdJdgLsq9o4=; b=GuOz9p5GzIZWhzKgbYiS4qAxw96Oq4pY/hLx2CcUKlG5R+a5fzqAxkBLJ/36NW+w6/ 0552mnUDSpqaxexcPeUTnew60uIIKgd+b3oIBYbLF8DxkBAeP9DYM7CJrDj97lR4V9o4 OmiDsCs/YXWVUXo4tR+IsZXisi5NYfTKxqnspVzBuNYzODhYtSsasRSMs2FqfRHwQfN/ 8mhv3cJ4bVPJjnAy6Ja7E8QSoW3NoqvTcthSzRlSOGZ3lDxT/BHtczHi7UL4aYc1DMv8 FDhEDP7mXLdEetWZjMzCd5XH6m/k4SRn6o/aAmm2mMRCRa+Npc0n56QfOPrhExgHimgD tHbw== X-Gm-Message-State: APzg51DuD3svjBITJisowqxSPew7++N2i+36r+shE9U5XMe2O6g1q7Nb 3dPtLFwmReTDGu0uk67yQfr16+nyZoQvpslP918c/A== X-Received: by 2002:a24:ef43:: with SMTP id i64-v6mr5075062ith.47.1537519348581; Fri, 21 Sep 2018 01:42:28 -0700 (PDT) MIME-Version: 1.0 Received: by 2002:a02:5942:0:0:0:0:0 with HTTP; Fri, 21 Sep 2018 01:42:08 -0700 (PDT) In-Reply-To: References: <20180921001513.12504-1-Jason@zx2c4.com> From: Dmitry Vyukov Date: Fri, 21 Sep 2018 10:42:08 +0200 Message-ID: Subject: Re: [PATCH] framewarn: expand KASAN_EXTRA exception to KASAN To: Andy Lutomirski , kasan-dev Cc: "Jason A. Donenfeld" , Andrey Ryabinin , Alexander Potapenko , Arnd Bergmann , Ard Biesheuvel , 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, Sep 21, 2018 at 3:50 AM, Andy Lutomirski wrote: > This patch seems reasonable, but you emailed the wrong people :) > > On Thu, Sep 20, 2018 at 5:15 PM Jason A. Donenfeld wrote: >> >> It turns out that KASAN in general will bloat stack frames in unexpected >> ways, not just KASAN_EXTRA. So, this patch trivially changes that >> default to be associated with KASAN instead of KASAN_EXTRA. >> >> Signed-off-by: Jason A. Donenfeld >> --- >> lib/Kconfig.debug | 2 +- >> 1 file changed, 1 insertion(+), 1 deletion(-) >> >> diff --git a/lib/Kconfig.debug b/lib/Kconfig.debug >> index 4966c4fbe7f7..39078a080e29 100644 >> --- a/lib/Kconfig.debug >> +++ b/lib/Kconfig.debug >> @@ -222,7 +222,7 @@ config ENABLE_MUST_CHECK >> config FRAME_WARN >> int "Warn for stack frames larger than (needs gcc 4.4)" >> range 0 8192 >> - default 3072 if KASAN_EXTRA >> + default 3072 if KASAN >> default 2048 if GCC_PLUGIN_LATENT_ENTROPY >> default 1280 if (!64BIT && PARISC) >> default 1024 if (!64BIT && !PARISC) Looks fine to me. KASAN always increases stack size too for exactly that reason, so it's reasonable to allow larger frames rather than try to massage code every here and there to fit into the normal frame size. Acked-by: Dmitry Vyukov Thanks