Received: by 2002:ac0:aed5:0:0:0:0:0 with SMTP id t21csp2654423imb; Mon, 4 Mar 2019 10:30:58 -0800 (PST) X-Google-Smtp-Source: APXvYqzNYdtl6dNgx5v0wdsBCMGyO4qHGBcvGgHUR81xXx37uYy6unY5Ay7r71iy65EH7ulDmprg X-Received: by 2002:a63:fd03:: with SMTP id d3mr19348040pgh.359.1551724258679; Mon, 04 Mar 2019 10:30:58 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1551724258; cv=none; d=google.com; s=arc-20160816; b=YUf4KC3p+SVWbcuEGlHhbSkRQhnUhTte5BBrG/fKLiXV3HRY9vKN/Vw9jTePNIeWSr EUOKNqJ54HqP1BohNsO8FJHOv1zn5RMG9VSnwJB/b6zDfoOTYNlpw6mYcan/WJr3aHSH hkm2DAN4oXkqgix7PcVCVWl+Ba8NN96ZjP7GRXCSe7z2AxbEvT0/3diGiA5CxWfYhSKm nm/Mg1BUl7lQ5+I2WRUpyR+1L1yrSrSJJdYPtcJ1q35fVARHCWEm2Z2MWPI8Lfg+ONhs PRqUzNVSCYrRf+sIFLh4Ed1++X5VOsGsrHPDLR1MWrn6M7/Wn0NSDdUq0H6Sy+8/XCVH YRJQ== 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; bh=rkY60ZGZ5GzXTCVZGdJfnj3QrSrvwyXRT+DLIil7TAk=; b=tje/jgKpMFVH4NZYzQdplYcO/h+uvUevvE5hd4ivXbeRZzUXOh+bRrUyqg29QG9u7Y AhvfcQnc4G8ckDufRYborsIrhXh95Rk9hnnkLcVemBx1UetvIiVuUatrt8S5tUBj3uFZ 0lv6fkpSU79dV2qqaqCZ8h2bFhZ/4M1fenw7+IMjBLHa1oNMGOMsq8TbC4u7s0kpVRoZ VvqsHMGeJAISA0bd1h5cHFrRHZNbGtuO3vLYgH0sAeVNRLz92ECpIfy5x+Y/t1KnVBmG DeKUCkKrv+9f6rD3CUV6TliU/4AhcpKulFJsh3JO3vtpgUDnGGYtucnpoCTd4YdLC9i/ 5z3Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=bUnYOXoX; 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=chromium.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id u10si6047139plq.266.2019.03.04.10.30.43; Mon, 04 Mar 2019 10:30:58 -0800 (PST) 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=@chromium.org header.s=google header.b=bUnYOXoX; 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=chromium.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727333AbfCDRc5 (ORCPT + 99 others); Mon, 4 Mar 2019 12:32:57 -0500 Received: from mail-ua1-f67.google.com ([209.85.222.67]:33280 "EHLO mail-ua1-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725974AbfCDRc4 (ORCPT ); Mon, 4 Mar 2019 12:32:56 -0500 Received: by mail-ua1-f67.google.com with SMTP id q17so5145941uam.0 for ; Mon, 04 Mar 2019 09:32:55 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=rkY60ZGZ5GzXTCVZGdJfnj3QrSrvwyXRT+DLIil7TAk=; b=bUnYOXoX7yvX06rwCT958g5coU4Gk/jNsnhGFwysxWJBmuZb0WHLukHskO+5D+KeaS rOKnMZ8bIfbA6U7sJemi2xb3lh+108PIyZVtD2uvJU/0qp6vEnGPIabEVNakbqLkltW1 DFLclqm5WP2Aj5s7nmyDU1uGmTVPD3FbRL5Wc= 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=rkY60ZGZ5GzXTCVZGdJfnj3QrSrvwyXRT+DLIil7TAk=; b=K7NHVl2+zy89Y+kHpLfd6V034fBsygXi2dgJ4InwMGq9jeJ9ml4O5bPL8zhBnddKUu 4NETgBix5raKkdUkplFh2RC9+OiR3TlK+W6zKSWjaF3e2qqAGtqO1rtGKJC4+F/pk+a7 GPBZLT1Krtjr4q6N1XQXUvL3VZITrDEcT5208l7H//hD8evdwfDwz8BrMfB/LfWKX24q Rb/emRxK+pzGrdVnzsQ5UlWExGjEWvr4tU6+AiarmHIaJx81TMQldfbC1SseRO+ZdSTV 5WD8bTmMnM3t9Juc86MSV+s4jVxsObpuae8swmqXVPsAQdwGrC/Qa8c5JLeUeLDkpMEp 6PPw== X-Gm-Message-State: APjAAAVttxWWDUp9qLpTx2nzrjcCx1BWZWhCI4Yra4RtCgB6U/ZAnn4e IfM9CLZS7Y+PflMNLAQYedAIlEGb9TU= X-Received: by 2002:a67:ef83:: with SMTP id r3mr10046157vsp.101.1551720774872; Mon, 04 Mar 2019 09:32:54 -0800 (PST) Received: from mail-ua1-f47.google.com (mail-ua1-f47.google.com. [209.85.222.47]) by smtp.gmail.com with ESMTPSA id j131sm2064737vkf.20.2019.03.04.09.32.53 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 04 Mar 2019 09:32:53 -0800 (PST) Received: by mail-ua1-f47.google.com with SMTP id a42so5137515uad.1 for ; Mon, 04 Mar 2019 09:32:53 -0800 (PST) X-Received: by 2002:a67:89c9:: with SMTP id l192mr9968756vsd.188.1551720773428; Mon, 04 Mar 2019 09:32:53 -0800 (PST) MIME-Version: 1.0 References: <20190212180441.15340-1-keescook@chromium.org> <20190212180441.15340-2-keescook@chromium.org> In-Reply-To: From: Kees Cook Date: Mon, 4 Mar 2019 09:32:41 -0800 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH 1/2] gcc-plugins: structleak: Generalize to all variable types To: Arnd Bergmann Cc: Ard Biesheuvel , Linux Kernel Mailing List , Emese Revfy , Alexander Popov , Laura Abbott , Jann Horn , Alexander Potapenko , Kernel Hardening 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 Sat, Mar 2, 2019 at 2:16 PM Arnd Bergmann wrote: > > On Sat, Mar 2, 2019 at 4:43 PM Kees Cook wrote: > > > > On Sat, Mar 2, 2019 at 1:05 AM Ard Biesheuvel wrote: > > > > > > On Thu, 28 Feb 2019 at 21:27, Arnd Bergmann wrote: > > > > I get similar results with asan-stack=1 but without your plugin, only > > > > the combination of the two has the explosive stack size growth. > > > > I can look more closely, but I'm not sure it's entirely worth it: > > these two may not make sense to build at the same time. (e.g. the > > use-after-scope config was disallowed to work with this plugin.) > > Well, I still want to make sure all 'randconfig' builds complete without > warnings, and without having to turn off the otherwise useful > stack overflow warnings. > > One thing I noticed is that your patch removes the 'depends on > !COMPILE_TEST' check for GCC_PLUGIN_STRUCTLEAK_BYREF_ALL, > so if we add that back in, it would at least take care of the > allmodconfig and randconfig cases. Okay, I'll add this back in the next few days. -- Kees Cook