Received: by 2002:ac0:aed5:0:0:0:0:0 with SMTP id t21csp1239831imb; Sat, 2 Mar 2019 07:44:45 -0800 (PST) X-Google-Smtp-Source: APXvYqy1yc4V2RGwDQL1GeFGzV88NXSGJDXY0Mh6MrXQfKlKbJ74e870OR988/AOC3c9QvmcQ6t3 X-Received: by 2002:a17:902:b416:: with SMTP id x22mr11372309plr.285.1551541485570; Sat, 02 Mar 2019 07:44:45 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1551541485; cv=none; d=google.com; s=arc-20160816; b=ARNBzz6rsrzhL80aFwLceTvTl+GHmtpbYB/xSaXAmDKtzAS15fsMsXr8KXEh8YH7Df aRK2DsHuA7TccOfTl4gwijpqVmPsH5wElMQs9KB/OPaXFNFS8vivaoJ8qj8Hg1QoJeyv zNzr9Y3PHayqJLbwjOSOFqmZwcZPisGPInZKfbJN9fpUqRRyHew51bo1UDK9cvoaTDQj U5RtiRo1cmqeeh916QZEVCnocP8GspUc1w8QZtZxNHsS9LBRv/JmBji3Rhzw+qcOy1oe oQPWWAX0XXKAZO+XeupRomnP1VT1JmvO9DmRZj80iv8si7YJt4cXm0qhuvgugNsGgoIq QWPg== 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=nbJjxwxOlfJ3iaGGg9xeY6Ddwu/l4z5tJPWN/qYSwE0=; b=INVnfwCFwQN/GJO9PZR4560/FnvhtP2tkkLgBQGbp+1qdJS6CurUxxX4HUqvDe2N7u zanQFwZlNrfZJHO9gOw4mSolBQPXhJw8zKSWZyKmFOxeH6ykQEzKTWxcJgTPPQgH/Vp7 u9lTefpsBUu7rtv8/WLfpcT8ljtCquhqS9YZB41L12bZOHw89iMts/0aJLKNKD9h2EkN R+YfEc54mlLfcULbDT3zTODL/XRD1fbWQZUCSYVKk9I0Ylh1/3BFxZmPHCqV2nlNOZre x8463wAuWSqF4O4hZ/rNIoBUUyJ2VHqbGo2d8ztmlENUUmMIhW9RI0URmxMD/uaYOPp3 y3TQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=FT7xEuaa; 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 e127si882761pgc.360.2019.03.02.07.44.16; Sat, 02 Mar 2019 07:44:45 -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=FT7xEuaa; 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 S1726368AbfCBPnn (ORCPT + 99 others); Sat, 2 Mar 2019 10:43:43 -0500 Received: from mail-ua1-f65.google.com ([209.85.222.65]:43928 "EHLO mail-ua1-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726086AbfCBPnn (ORCPT ); Sat, 2 Mar 2019 10:43:43 -0500 Received: by mail-ua1-f65.google.com with SMTP id g1so658180uae.10 for ; Sat, 02 Mar 2019 07:43:42 -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=nbJjxwxOlfJ3iaGGg9xeY6Ddwu/l4z5tJPWN/qYSwE0=; b=FT7xEuaa1OFYuO9BfHNTFSoK544uvygXdgTReUnuvoa+53+RkUd5s0BYLAJ5OK6vhE PNZEFU01htCD3GlKY7q/u5WBNGk7Qh5MaYYg8ZdzE8zK3DW9UXFsUpYODY6C8ur71PvG WKPkljS0MBvWeW343LmuGB7+fA+P8gKBGuWyM= 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=nbJjxwxOlfJ3iaGGg9xeY6Ddwu/l4z5tJPWN/qYSwE0=; b=SWp6BSf04KOaVR//slwKuFrIyQQB96ecJEu5Xs1cElq/u6hAPFVXPQniXqNV92aXYR g60rhLzSvm0l0T5y9c8AiBmjNdtCq4+h6Qf/gIbcYAN0Btck/rmEq9g8qnPCc/XXpn9n 6ErR8csdRNLmZnCiODgAUforKP2C2vqcnVJGRdTPDHWe10J/XN31c1W2+hHIFm7CbXvl pCOvDDkySpfkiCkKyHfcJWtr7bt/pHOTc6uLyxulXIvPoQhUjfwgO3me9cZX0mDPWZTB fpsnDGlucSFr+iFafOWMK3WsJZ8jwwrQ2VDwbxwXpuXMTwbI+b5vYr2hJtxE1OeHLPuy kr7A== X-Gm-Message-State: APjAAAUJQNha//B7NsjB60UKi14LG3rmdOowpiM/bLi06i5+IOyrNpDL OoywYXlBts0DXyYzj+9hMHeYoxI7dlw= X-Received: by 2002:a67:f409:: with SMTP id p9mr5458959vsn.213.1551541420770; Sat, 02 Mar 2019 07:43:40 -0800 (PST) Received: from mail-ua1-f45.google.com (mail-ua1-f45.google.com. [209.85.222.45]) by smtp.gmail.com with ESMTPSA id 62sm328560vkj.23.2019.03.02.07.43.38 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sat, 02 Mar 2019 07:43:39 -0800 (PST) Received: by mail-ua1-f45.google.com with SMTP id c5so666861uaq.7 for ; Sat, 02 Mar 2019 07:43:38 -0800 (PST) X-Received: by 2002:a67:fe97:: with SMTP id b23mr5668281vsr.66.1551541418513; Sat, 02 Mar 2019 07:43:38 -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: Sat, 2 Mar 2019 07:43:24 -0800 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH 1/2] gcc-plugins: structleak: Generalize to all variable types To: Ard Biesheuvel Cc: Arnd Bergmann , 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 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.) > > I can help analyze this further, but maybe you can have a look first, > > there might be something obvious when you read the input to the > > plugin. > > > > Is this before or after use-after-scope was disabled entirely? I was wondering the same thing, but I assumed it didn't matter: it wasn't possible to use both before it was entirely disabled. -- Kees Cook