From patchwork Tue Mar 1 18:35:07 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Kees Cook X-Patchwork-Id: 12765034 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 91205C433F5 for ; Tue, 1 Mar 2022 18:35:12 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S236943AbiCASfw (ORCPT ); Tue, 1 Mar 2022 13:35:52 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36362 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236938AbiCASfu (ORCPT ); Tue, 1 Mar 2022 13:35:50 -0500 Received: from mail-pf1-x42c.google.com (mail-pf1-x42c.google.com [IPv6:2607:f8b0:4864:20::42c]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 4C9D858818 for ; Tue, 1 Mar 2022 10:35:09 -0800 (PST) Received: by mail-pf1-x42c.google.com with SMTP id k1so4559969pfu.2 for ; Tue, 01 Mar 2022 10:35:09 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; h=date:from:to:cc:subject:message-id:mime-version:content-disposition; bh=Yy0S/B12hrVPjredzRX6p9VMgeZxxbvZgB4AarEd5qU=; b=WnY8jN5y6YAWbFGObh76FWUsKPn4rw1SFnANHAjfTW69nEb45tmennx1tH54hKoWsB faL+Agd+WVa/iPRnRnb/5+nJJRxgi+GoA0no6W++0HF2z/qMCa2WO254Ybfs1wmgGnVn 73iqz1HudaUJADjdls1sx+JB0DWLHlu5rS/po= 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:mime-version :content-disposition; bh=Yy0S/B12hrVPjredzRX6p9VMgeZxxbvZgB4AarEd5qU=; b=JNDmjJ/5SuGkJ8eUxSph4pOruSXSG+MmSt9dbr9iHBLH9+cvAkW1IaKuPqc5PdNmIn cUTSbkymD6n//1CfGo4Gznfqhe1aDwoiMqJn8k4hA74qDjxloTvPtLfL/SxQDMX1mJeZ tFpG8i4gPhhhKibGO/jltOEp//a67L1bomX7BZ2n9yIUCu4hD9n6tOHASm/xFFRTD0SN Z7/orvFkOtKmJcM4r+pPyBMisDWejRdmYyG1kVwCukaRPGul5XfXueiXlOWXHQASangv x13gpre4NtvMIxW+eSjz5maKbvD6jVyb2fs0XE6t+/Z20CWy9k+H/yjbGi71HW2cVVgk Zu3Q== X-Gm-Message-State: AOAM531S9IR4xt/QUbfouCZkVP4wNzqYbceMIyswVh6oD/FAtra9P6SK 5P0ADnN9IuoxY0kk4apZjYUlaQ== X-Google-Smtp-Source: ABdhPJzl0MJD80w950DodgcHrr5EeyxdMeFiLD/sjfEB7EeY1VSOJNI3izQXcWHok5SsIUKekCNK3g== X-Received: by 2002:a63:2f87:0:b0:374:4ebe:2048 with SMTP id v129-20020a632f87000000b003744ebe2048mr22660117pgv.157.1646159708786; Tue, 01 Mar 2022 10:35:08 -0800 (PST) Received: from www.outflux.net (smtp.outflux.net. [198.145.64.163]) by smtp.gmail.com with ESMTPSA id d16-20020a17090ad99000b001bcbc4247a0sm2709947pjv.57.2022.03.01.10.35.08 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 01 Mar 2022 10:35:08 -0800 (PST) Date: Tue, 1 Mar 2022 10:35:07 -0800 From: Kees Cook To: Linus Torvalds Cc: linux-kernel@vger.kernel.org, Alexander Viro , Eric Biederman , Kees Cook , linux-fsdevel@vger.kernel.org, linux-mm@kvack.org, matoro , matoro , John Paul Adrian Glaubitz Subject: [GIT PULL] binfmt_elf fix for v5.17-rc7 Message-ID: <202203011032.7D3F2719@keescook> MIME-Version: 1.0 Content-Disposition: inline Precedence: bulk List-ID: X-Mailing-List: linux-fsdevel@vger.kernel.org Hi Linus, Please pull this binfmt_elf fix for v5.17-rc7. This addresses a regression[1] under ia64 where some ET_EXEC binaries were not loading. Thanks! -Kees [1] https://linux-regtracking.leemhuis.info/regzbot/regression/a3edd529-c42d-3b09-135c-7e98a15b150f@leemhuis.info/ The following changes since commit dfd42facf1e4ada021b939b4e19c935dcdd55566: Linux 5.17-rc3 (2022-02-06 12:20:50 -0800) are available in the Git repository at: https://git.kernel.org/pub/scm/linux/kernel/git/kees/linux.git tags/binfmt_elf-v5.17-rc7 for you to fetch changes up to 439a8468242b313486e69b8cc3b45ddcfa898fbf: binfmt_elf: Avoid total_mapping_size for ET_EXEC (2022-03-01 10:29:20 -0800) ---------------------------------------------------------------- binfmt_elf fix for v5.17-rc7 - Fix ia64 ET_EXEC loading ---------------------------------------------------------------- Kees Cook (1): binfmt_elf: Avoid total_mapping_size for ET_EXEC fs/binfmt_elf.c | 25 ++++++++++++++++++------- 1 file changed, 18 insertions(+), 7 deletions(-)