Received: by 2002:a25:683:0:0:0:0:0 with SMTP id 125csp827941ybg; Tue, 9 Jun 2020 14:01:15 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyuJLPUqY+2p9lUCmd7R71tBT4uvGbjgPVKjpAHP5stNqT3YTWVu0OMooH6ZSDHRRXGKRaU X-Received: by 2002:a17:906:17c5:: with SMTP id u5mr229685eje.275.1591736474813; Tue, 09 Jun 2020 14:01:14 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1591736474; cv=none; d=google.com; s=arc-20160816; b=pPV2qR6C4aWT+XOUavSPFSa33OZ+PpOB9rV6OzmVWXEGqLVippqhYTRgKenJdN5CJr 43HbrdU5dkZTZ9C2bVJPLJ3WPIhx4Ai++6Pb00i7nVTuC5stXxEceYer62qyZxvX7aZG X0L/dW0o4SLyxLpRhxWp6ZogYXF/+DAV/5iCer2vT7DpmGrCXXRgH+53N1ui8CEXmuZ9 IuTFsLL+7uRlLbf3KKY1FEXKm8d1NI9Rcv48QtZz/GelQeur+nVFIoJ9Hgx+/0FT3vrv IBJxFHItdAZ9+vGeEPvFe81QwydK4nbHyU/+Y8kzVkYBjYWuKgUCriUDGRuxXZq/j2td qHBQ== 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=tGGQ3VocRYuP1AxRJCcf0YOuFdAQhDzmAD+bQaR7nDA=; b=R8CSnZDRAZbncS3Z54KhDuAiVz0xnqQvN2WtM4LRoA3R3YdV6g9pf+A8KKkG64ilf+ Zr6O2b8anIXqc0n2Hew4/F8D9bA50cbQkaGi8dQ0Pd+oo2zwb9kUpjkWOrdj47tri/kc GOnEmSM9rchslxbD0OkTxEqKyurbG0eS91sTtxMI5msUsZ9pjXTZUypoOIsUqd/EjigZ K73D8GTsCtpOExkeyE/cU8+EUSFVeLPUisfAxiH6j+AnoA8LqLJ4xMUbQqPeXXYuM/7a AaFtN1k9U7k1s6Z0URORkUkv/UrMCWLCXFYQa6oXy01GBvCli8Y9b6L6LPPkM4ZhZiIP WQgg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=eHah8lXm; 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 a2si11645533edl.517.2020.06.09.14.00.51; Tue, 09 Jun 2020 14:01:14 -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=eHah8lXm; 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 S1730470AbgFITPH (ORCPT + 99 others); Tue, 9 Jun 2020 15:15:07 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54574 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726903AbgFITPF (ORCPT ); Tue, 9 Jun 2020 15:15:05 -0400 Received: from mail-pf1-x441.google.com (mail-pf1-x441.google.com [IPv6:2607:f8b0:4864:20::441]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id AD692C05BD1E for ; Tue, 9 Jun 2020 12:15:05 -0700 (PDT) Received: by mail-pf1-x441.google.com with SMTP id b5so10490130pfp.9 for ; Tue, 09 Jun 2020 12:15:05 -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=tGGQ3VocRYuP1AxRJCcf0YOuFdAQhDzmAD+bQaR7nDA=; b=eHah8lXm/9NdioI0IQB1zdteauOgwpHoUWv7l0ccJihSiEXHjtaYGtLsa46BXQHRf7 Yv5rlSSlQSgQ0xLs6A13uJrWkHUd4+wvxefc11Rip7Zheaq+tjhgPtKEc60jT/XwgsLw pO9xQmpan/wYr/eEowfxeA5uFIlinxoaAc56M= 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=tGGQ3VocRYuP1AxRJCcf0YOuFdAQhDzmAD+bQaR7nDA=; b=cp+ROQ/Lh+wVdA7FBGyH/LPbexRuTVLVfEL9uwdMUfDfY5pWEsgk2oR9zp9tUbHBP6 u/VMFbo3igzAj81brWWPP9tWmfvAA+Etma1WgVKaH/jhS5lF6e4I0SlFMtStuVp4Yt2m +aGdp2UyT/Qk+LkxrH3Z7KJEF3wc0UduXTnRUwbi1hCl+IZAnrVIMcE3n/e1HrEVRBZt x//5oPcfwzqZzWIkqF/5ZIxBE2qvZ3TrPEF4kqV34MZMOB0T1HIwQqycWuuX7UbaK/Lz 8bDBFe433I+JsazZ6wm9z9mDQSUlepL59ZEg9fgjvM3zQga1WLHvlHVoydtUGWi0fEk4 twSA== X-Gm-Message-State: AOAM532Jc0RHS4DgVmY0tMwbTEsWEu8VsmTJHuk5StUxSdv5Pu3rPdvL Tc6QiT2nC5jpcYSfTSeoadxJHA== X-Received: by 2002:a63:2248:: with SMTP id t8mr25901047pgm.113.1591730105075; Tue, 09 Jun 2020 12:15:05 -0700 (PDT) Received: from www.outflux.net (smtp.outflux.net. [198.145.64.163]) by smtp.gmail.com with ESMTPSA id q18sm8933851pgn.34.2020.06.09.12.15.03 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 09 Jun 2020 12:15:04 -0700 (PDT) Date: Tue, 9 Jun 2020 12:15:02 -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 0/5] Improvements of the stackleak gcc plugin Message-ID: <202006091210.C139883AB@keescook> References: <20200604134957.505389-1-alex.popov@linux.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20200604134957.505389-1-alex.popov@linux.com> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Jun 04, 2020 at 04:49:52PM +0300, Alexander Popov wrote: > In this patch series I collected various improvements of the stackleak > gcc plugin. Thanks! > Alexander Popov (5): > gcc-plugins/stackleak: Exclude alloca() from the instrumentation logic > gcc-plugins/stackleak: Use asm instrumentation to avoid useless > register saving These look like they might need tweaks (noted in their separate replies). > gcc-plugins/stackleak: Add 'verbose' plugin parameter > gcc-plugins/stackleak: Don't instrument itself If you wanted to reorder the series and move these first, I could take these into my tree right away (they're logically separate from the other fixes). > gcc-plugins/stackleak: Don't instrument vgettimeofday.c in arm64 VDSO This seems good -- though I'm curious about 32-bit ARM and the other HAVE_GCC_PLUGINS architectures with vDSOs (which appears to be all of them except um). -- Kees Cook