Received: by 2002:a05:6602:2086:0:0:0:0 with SMTP id a6csp3369965ioa; Tue, 26 Apr 2022 02:09:00 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzqZFlSTUgWmJtTdxGhAfp73QVGHsi4hsWtDyWTWOXlcREj8AgtKRPr94ytL3FQxrq82k/v X-Received: by 2002:a17:907:7ea9:b0:6f0:27a1:afb8 with SMTP id qb41-20020a1709077ea900b006f027a1afb8mr20150073ejc.59.1650964140706; Tue, 26 Apr 2022 02:09:00 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1650964140; cv=none; d=google.com; s=arc-20160816; b=VpZ/2+QijGvDKvukoGgv7yK5ZDV1A8Tm7LTRrKkeQQXG5tp9BaeCE7pGVl038qnN67 jKc8Pw9C4XHlJdN8KiTPO9KZv5zSyQ8OFa0wGihZumMNX/zsXNcUSY/92sv6DXNcOHTx JMxMCSVB3D132CLkj+qZbpL/dCMrLRiUzx/oerqRA+sknL+ZT+i4PO/u2vZ21/5smjR0 NjCV2BQ/44WLro5bf6PjuwrM4boVpmzE2QtNoZ7kEt/lluLkXr3vx5/GJ9ga95SCxtS9 q/iaM/efb8O4zw7ycivSDbZIxn3TBb0+5Vs5qFxsME3FjT8cLkBoucG9DKJAK2ObTVx6 r4iA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=1Q+RJPi5324M1G6R92MlojY1RDxai3y1EeSAyZxabSw=; b=Ac5x48hVe0IUGwaaLqpxhJOmiWxRF3h+kqHaoD24VgDUSW5DY+BGj6YJLFAzzta9rf 0D9jVbiR8uFPy6/L232jxGLy0/9Ef9zD/J13pO18st9vmWFWkbotC2EJfFZ9IXGVhZAq OxxTeE4u8qa/jCItTRPLSECqpLRnilfUSqhdYrhzBuVv2LF2yVgSDw/wgqeXt1r0Rt0d qj40JKk0TLllj1ReMwXV9iLAFWX2lvaV4H9dispPXktrZSXwjlXeMEGzIb53/mY9+4Qd OjdU/XJGwNjrAWjslzDCbwfXkWIkgvPVBQ+M5Gk0jOnRutNiowArDPxPWS7EOEIaSE+s fLWQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=mwaY4tFF; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 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 out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id qq8-20020a17090720c800b006f3b61321c3si642725ejb.841.2022.04.26.02.08.37; Tue, 26 Apr 2022 02:09:00 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=mwaY4tFF; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 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 S233240AbiDYW5L (ORCPT + 99 others); Mon, 25 Apr 2022 18:57:11 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43356 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231548AbiDYW5J (ORCPT ); Mon, 25 Apr 2022 18:57:09 -0400 Received: from mail-pg1-x530.google.com (mail-pg1-x530.google.com [IPv6:2607:f8b0:4864:20::530]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 6BB9310773B for ; Mon, 25 Apr 2022 15:54:02 -0700 (PDT) Received: by mail-pg1-x530.google.com with SMTP id x12so308640pgj.7 for ; Mon, 25 Apr 2022 15:54:02 -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=1Q+RJPi5324M1G6R92MlojY1RDxai3y1EeSAyZxabSw=; b=mwaY4tFFCUPbFZ9IDIp5vPVzIHchfx6du0rPPb25oDWZ0A9ngIKi75lz+toEJiKH67 UKsgX8v25kVY6GexOHFAemNMGbyqWLf2E6EkMTPB/Ll9YBUQCLryNor337fzamre81O9 iZjwAYNILcJ/rKfacKBNMBwi0Gj/JrfR+Qurk= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to; bh=1Q+RJPi5324M1G6R92MlojY1RDxai3y1EeSAyZxabSw=; b=XIVhbQxoRrfhW6hjOyitBE+RsQ6dqS/NGHq04dWh+SypYR55WGdQfYsu0Q7xcTksSM Zj96MRy6lC+I1ua3GafwLsTtNzyXIeaeSOJK2ZkIlmCPVBWj5l0TJsmgCTBlr/z0sQLM BqOmnTmCxVI9ddxrkiMRdFz+SNCLqZ9m1fyCy2OmMhJgCR7D48N2vQiZoITNWbc7jmWN He87oAwSu69DO2REGizedogP7fGZwHWjv9x5E3ZLcdLycEXUI2rZEGV7RUpgO+D0v+MB RfdvebMkBiZWcFMrO9zwmoVNLdEhvnL/9XJdi+RgrP98edmLOO2v0lrRYWLoTSJVh0NZ illg== X-Gm-Message-State: AOAM531nZ9ttFXfbE5AuyHg4Z/jMDOcglwACPcB251h/8817Bi9ubVgv J4aFAzqF29jF5Ld/qGQD10S/4A== X-Received: by 2002:a05:6a02:105:b0:381:fd01:330f with SMTP id bg5-20020a056a02010500b00381fd01330fmr16697414pgb.483.1650927241923; Mon, 25 Apr 2022 15:54:01 -0700 (PDT) Received: from www.outflux.net (smtp.outflux.net. [198.145.64.163]) by smtp.gmail.com with ESMTPSA id f14-20020a63380e000000b0038253c4d5casm10729293pga.36.2022.04.25.15.54.01 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 25 Apr 2022 15:54:01 -0700 (PDT) Date: Mon, 25 Apr 2022 15:54:00 -0700 From: Kees Cook To: Mark Rutland Cc: linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, akpm@linux-foundation.org, alex.popov@linux.com, catalin.marinas@arm.com, luto@kernel.org, will@kernel.org Subject: Re: [PATCH 0/8] stackleak: fixes and rework Message-ID: <202204251551.0CFE01DF4@keescook> References: <20220425115603.781311-1-mark.rutland@arm.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20220425115603.781311-1-mark.rutland@arm.com> X-Spam-Status: No, score=-2.7 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Apr 25, 2022 at 12:55:55PM +0100, Mark Rutland wrote: > This series reworks the stackleak code. The first patch fixes some > latent issues on arm64, and the subsequent patches improve the code to > improve clarity and permit better code generation. This looks nice; thanks! I'll put this through build testing and get it applied shortly... > While the improvement is small, I think the improvement to clarity and > code generation is a win regardless. Agreed. I also want to manually inspect the resulting memory just to make sure things didn't accidentally regress. There's also an LKDTM test for basic functionality. -Kees -- Kees Cook