Received: by 2002:a25:683:0:0:0:0:0 with SMTP id 125csp775099ybg; Wed, 10 Jun 2020 13:24:17 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxjZhkoYH7czGrPVZqLknGtvawyL5u7SDIcUkuJqrKD7uTlCFOgSUUpvbP7ZLh+hkazagMy X-Received: by 2002:a17:906:8253:: with SMTP id f19mr5265991ejx.470.1591820657050; Wed, 10 Jun 2020 13:24:17 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1591820657; cv=none; d=google.com; s=arc-20160816; b=ByE2dzS5x3aM3hCEhfX6Qr9odbHsA0LQy2Ac+cXviYUp2FGdARJNchfXjVR2fKG6ql t6yI4gg01RzjvK0GuluZ2+DsFbCFgYoXtJKqHaX+8Vlr0rZsUPNdSe5glkwg8WiFJKHK HkJsY/VLSyhjE78Ed34uyQtJFdOfEsu247IcCGziLr2zziVjuMbmopCSVlFVLaSAmJl4 kZBZLmNaOXGyffK+Ev1OFVWUCd90/5Q4VKwV0UaF3rEGRtS7FEW18To/8KlXi9opHY0V cufgHChNeTDmOEuTOJZfwxPmFEF6vxM2/3195hpwjlw4TiyONrdHQpg/WpWhrU1cwgMc HrXg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :dkim-signature; bh=DXoJ3aLq9uhplWhtB2O8RgTDmA73SlXyMWG4MRv/Ld0=; b=PPv0D73TduT4Pe4omxliR6JHlv2njDBzQaYTHCrxhK4tvghaHttuAr6h2Wsonz4rNk 241FEQmJe9fbhqmHMfD34zygYxcM5rvcKGI8vF+I8jGEFHHlLLGQzfq28E+1Pm72VlMM tehJ2rYTUsdNMVnsafhRGv9rqggduiG5Fe6+X8rclitYabS1cJcxYhGz1uVbru1895t9 NyKikL1z+D6pavec3lrc5I+XhQxoeq6B0Joj4585/H6mp/ZMqQi7+Y47v8aLnThVYmw+ vGv5FcGQFt+Em3U/C0Tw/hEb/q9vp65yarNEbP21cn8/Uglj4iu4PvfyEomYfd8NjbnN hBPg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=Les6gM1u; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 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. [23.128.96.18]) by mx.google.com with ESMTP id oz26si674729ejb.252.2020.06.10.13.23.54; Wed, 10 Jun 2020 13:24:17 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=Les6gM1u; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 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 S1730476AbgFJUEe (ORCPT + 99 others); Wed, 10 Jun 2020 16:04:34 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59082 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727877AbgFJUEd (ORCPT ); Wed, 10 Jun 2020 16:04:33 -0400 Received: from mail-pf1-x442.google.com (mail-pf1-x442.google.com [IPv6:2607:f8b0:4864:20::442]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B78C5C03E96F for ; Wed, 10 Jun 2020 13:04:32 -0700 (PDT) Received: by mail-pf1-x442.google.com with SMTP id 64so1570553pfv.11 for ; Wed, 10 Jun 2020 13:04:32 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to; bh=DXoJ3aLq9uhplWhtB2O8RgTDmA73SlXyMWG4MRv/Ld0=; b=Les6gM1utqz0wgQgKhZ4Nfpc6QS2e+nlg1Z/E14+jR0X69Sr3LwW3Zm/3lj8osjycK p6DUplVPD/d8Rthsbcyt2ZdYdwH3RELL5O74k3dxdMf4kX7zka4VtVliwa5J4nSVuu9e CL0gdKwiiV/4hvJM+5XPBMzv9WqFgKyQV9MGQ= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to; bh=DXoJ3aLq9uhplWhtB2O8RgTDmA73SlXyMWG4MRv/Ld0=; b=CrlbFXI67l0ttYtK/VuWAZ0v5525tY7ybzIodrRFbUEwa/WFKqDkJUtVOTKH91Vn+W 4UqpCJbsQ2NzxBe1mMj9bx3dcPXmX5XqJFX3lCSHiIF/lyLOheWpJ2bxVyGkK+RBcm1N sRbRfVW252i7xe2BQs123PsfHjNPpy67EVM10BLYVqM6mv48RZoHSXM1RMSRHkfHKN3e VMNUTScuF4mIlr/MVs1AJHEe+tNYSejeBYAqVrvpJmi82DLhSwv6tiMWUNsomzG10fPj OHoI3sDj2+WmhXJLDThwz/326tNtEkIg8Y6xF3VRyH8n2yR27lXPjtNneTZ9O5f4nZDe 8K9Q== X-Gm-Message-State: AOAM533FtB+sY/yXK6492/HrtBd5YiTKGtjas08f9Qh6s8HN46+cSkj8 rLPJrVjNQKlbc7rWcVwPPJ83hw== X-Received: by 2002:a63:df48:: with SMTP id h8mr3947452pgj.411.1591819472188; Wed, 10 Jun 2020 13:04:32 -0700 (PDT) Received: from www.outflux.net (smtp.outflux.net. [198.145.64.163]) by smtp.gmail.com with ESMTPSA id w190sm723093pfw.35.2020.06.10.13.04.30 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 10 Jun 2020 13:04:30 -0700 (PDT) Date: Wed, 10 Jun 2020 13:04:29 -0700 From: Kees Cook To: Alexander Popov Cc: Emese Revfy , Miguel Ojeda , Masahiro Yamada , Michal Marek , Andrew Morton , Masahiro Yamada , Thiago Jung Bauermann , Luis Chamberlain , Jessica Yu , Sven Schnelle , Iurii Zaikin , Catalin Marinas , Will Deacon , Vincenzo Frascino , Thomas Gleixner , Peter Collingbourne , Naohiro Aota , Alexander Monakov , Mathias Krause , PaX Team , Brad Spengler , Laura Abbott , Florian Weimer , kernel-hardening@lists.openwall.com, linux-kbuild@vger.kernel.org, x86@kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, gcc@gcc.gnu.org, notify@kernel.org Subject: Re: [PATCH 3/5] gcc-plugins/stackleak: Add 'verbose' plugin parameter Message-ID: <202006101303.71B51BF1@keescook> References: <20200604134957.505389-1-alex.popov@linux.com> <20200604134957.505389-4-alex.popov@linux.com> <202006091147.193047096C@keescook> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Jun 10, 2020 at 06:52:10PM +0300, Alexander Popov wrote: > On 09.06.2020 21:47, Kees Cook wrote: > > On Thu, Jun 04, 2020 at 04:49:55PM +0300, Alexander Popov wrote: > >> Add 'verbose' plugin parameter for stackleak gcc plugin. > >> It can be used for printing additional info about the kernel code > >> instrumentation. > >> > >> For using it add the following to scripts/Makefile.gcc-plugins: > >> gcc-plugin-cflags-$(CONFIG_GCC_PLUGIN_STACKLEAK) \ > >> += -fplugin-arg-stackleak_plugin-verbose > >> > >> Signed-off-by: Alexander Popov > > > > Acked-by: Kees Cook > > I see that I will change this patch after leaving alloca() support. > I'm going to add debug printing about functions that call alloca(). > I have to omit your 'acked-by' for the changed patch, right? If it changes dramatically, drop my Ack, yes. But since it's going via my tree, my Ack is mostly just a quick email marker to say "yes, looks good". :) -- Kees Cook