Received: by 2002:ac0:aed5:0:0:0:0:0 with SMTP id t21csp1409058imb; Sat, 2 Mar 2019 14:18:03 -0800 (PST) X-Google-Smtp-Source: APXvYqyiK+K3b5GBOyiMx/28RRgUxz39ySB5xWtp2X1b6WJZKC7ocftLGXzsH+N8kQo3Ir3p3BH9 X-Received: by 2002:a17:902:4d46:: with SMTP id o6mr12133766plh.302.1551565083181; Sat, 02 Mar 2019 14:18:03 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1551565083; cv=none; d=google.com; s=arc-20160816; b=NUoQrxczo75W8937VKjY+CCAg9IgAxSRz7QFQEp7CPuOs71CsvOSE/LCfUwKcRRIqE Smv74UG4NA2jm7oyeuiGmbSDxYyTzwxgoPTuP+cd+k5vrH9KPt3QGozm+Fv98TFf1dfF VW0GcrKUFp/PYqsnH9Wde9DcNgWtH26LhCZtrOXQzG0reDbszQoxWITWiOcE64nvA7LG hlECHAjw89JW3MOdcVAN9XE51EyYHmUYkDX9/QbYJZKmMo5KHipmrVbQjmenr70tOZWD dIWQdOqWpnr5TqvKtO1NrKEUR4cz8+MVOaKaSHAg4xW3unL+t2rWjXw0j4VoKA8nZTpZ npNQ== 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; bh=bR0p/R7by6RvefIldSpKSAx2xSqpBquQGgzDi4xf7FE=; b=t8/Fq1dz0GHp9eeOGURZ75bmGLQXdsXexdvDU+6e7P3VcUm/rMLKApBmgiBpsooeFc XQzpAvZf69AfgOZWwnNkkDi+dObe0qatfTHJVlh91SfhGNzCBYW5xCBHUPd/zUlGkBzy t2E6m8hD/eeWyMTGEwROv0QM/O3bDdwbWZlFZwwpJJywg0VtlPSfR93vkUMOo7wHyj1u SyY37NL6vMBK/uTnJ3D1ZXmzK0elyN0qPlhUE8cLROyvhLp4BSHyu2Cc/fMfK8JJVVWY h37SWKp+MTWdWwxr15A0BJ/DLgFjAeCxODLAqstAy3b3E/ibbUkmvn0MzEf7GNwh9Ga8 GB8w== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id i10si1457788pgs.572.2019.03.02.14.17.35; Sat, 02 Mar 2019 14:18:03 -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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726827AbfCBWQM (ORCPT + 99 others); Sat, 2 Mar 2019 17:16:12 -0500 Received: from mail-qk1-f195.google.com ([209.85.222.195]:37762 "EHLO mail-qk1-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726664AbfCBWQL (ORCPT ); Sat, 2 Mar 2019 17:16:11 -0500 Received: by mail-qk1-f195.google.com with SMTP id m9so860104qkl.4 for ; Sat, 02 Mar 2019 14:16:11 -0800 (PST) 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=bR0p/R7by6RvefIldSpKSAx2xSqpBquQGgzDi4xf7FE=; b=IeonzNhr42JL5T7p5QPPWcZkCapaxM4/hXoisiixst/adNPuCufzf4EpbK6w/e8MxJ 24iPq5sitNRB7IIpxL98i2xJaqE+WSvyMk8T+UfJvPmuFG3LsnFGtrcgmrM+iT3azS9P RGt1zL7fJQXmA7G7rhLcuLtg/8iXlUwkD1iZH+6WVRPCUMrf5LQejggCyp8TrudKPwOD UKfdsPnfymWdE1JDGSGIG7BNRKRZSde45qpJ1tA+gwhHzMG0wHO6R8AHINp3E+uYC69x lormCIOiU7YnnsaRxEFt3g6Vn6CPLF0OxwGoySmiXP+6n2TIF8jM029LpV+vg7E5CHHK eskQ== X-Gm-Message-State: APjAAAW0ynJSunReM3Ttn+gK4iBHE4Q0QhIlhC1QOldU/rKwPC2m3GGX x+vIsn7cMbTKZNAOhTCB2EwDukrvVyIe4fAtyTo= X-Received: by 2002:a37:7cf:: with SMTP id 198mr8882575qkh.173.1551564970578; Sat, 02 Mar 2019 14:16:10 -0800 (PST) MIME-Version: 1.0 References: <20190212180441.15340-1-keescook@chromium.org> <20190212180441.15340-2-keescook@chromium.org> In-Reply-To: From: Arnd Bergmann Date: Sat, 2 Mar 2019 23:15:53 +0100 Message-ID: Subject: Re: [PATCH 1/2] gcc-plugins: structleak: Generalize to all variable types To: Kees Cook 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 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. > > > 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. Right. I already had the use-after-scope stuff disabled for build testing, using the same 'depends on !COMPILE_TEST' check, so one more reason it did not make a difference. Arnd