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: 12765035 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 kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by smtp.lore.kernel.org (Postfix) with ESMTP id 51BCFC433EF for ; Tue, 1 Mar 2022 18:35:11 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id CE4098D0002; Tue, 1 Mar 2022 13:35:10 -0500 (EST) Received: by kanga.kvack.org (Postfix, from userid 40) id C6ABD8D0001; Tue, 1 Mar 2022 13:35:10 -0500 (EST) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id B32D38D0002; Tue, 1 Mar 2022 13:35:10 -0500 (EST) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (relay.hostedemail.com [64.99.140.27]) by kanga.kvack.org (Postfix) with ESMTP id 9D5F88D0001 for ; Tue, 1 Mar 2022 13:35:10 -0500 (EST) Received: from smtpin08.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay07.hostedemail.com (Postfix) with ESMTP id 5CE24217CB for ; Tue, 1 Mar 2022 18:35:10 +0000 (UTC) X-FDA: 79196669580.08.E1F768A Received: from mail-pf1-f173.google.com (mail-pf1-f173.google.com [209.85.210.173]) by imf23.hostedemail.com (Postfix) with ESMTP id CC568140003 for ; Tue, 1 Mar 2022 18:35:09 +0000 (UTC) Received: by mail-pf1-f173.google.com with SMTP id d17so15115860pfl.0 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=IdbgSwLhybjvYfghe+J+3rrWzC00VUolp8GyP4TD64soUIoqvAp7tbCbNbTl8/cqhg 32WeVgigEH8LXgf+LdjwjN91AfLG2d+Xt/TOO6NSIADYDKeLJeKZ5pPbxYlpsyKsH7jt YZKqzOzgoMXp81oJzzc0/ry+etI8WSmn8W2r43Eop+Yj3MGoWK7cb//dsK6KsrjrVULG UaAG0SudvhAJySFB6Xz9hoX/l6wYsH87hEJwWI5N7EBsm9PYIhnRG/4d+5XyUfBSL/DT NDVRsfxliOmQKtEPe3jcTrfsZxis4lZxpgfObl6k2peyv2POMETq2MmT5pamTwt5gmlc pSnA== X-Gm-Message-State: AOAM530IA4rmDFsTntP11ZyWAZBvSGhnmJnCTDw3kwliX+KBcFAg9jPd acrGjyA4WnzjmqpwqTxcSCzN6g== 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 X-Rspam-User: X-Rspamd-Server: rspam02 X-Rspamd-Queue-Id: CC568140003 X-Stat-Signature: zggtqriye8zgjoqgszyofabnpf7griq7 Authentication-Results: imf23.hostedemail.com; dkim=pass header.d=chromium.org header.s=google header.b=WnY8jN5y; dmarc=pass (policy=none) header.from=chromium.org; spf=pass (imf23.hostedemail.com: domain of keescook@chromium.org designates 209.85.210.173 as permitted sender) smtp.mailfrom=keescook@chromium.org X-HE-Tag: 1646159709-792145 X-Bogosity: Ham, tests=bogofilter, spamicity=0.000000, version=1.2.4 Sender: owner-linux-mm@kvack.org Precedence: bulk X-Loop: owner-majordomo@kvack.org List-ID: 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(-)