From patchwork Mon Mar 11 23:37:31 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Kees Cook X-Patchwork-Id: 13589422 Received: from mail-pf1-f174.google.com (mail-pf1-f174.google.com [209.85.210.174]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id C522358ABD for ; Mon, 11 Mar 2024 23:37:32 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.210.174 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1710200254; cv=none; b=tO0VOzlgAHUZ5x+veo4eFYd3LCrUEe48jm9Pzh37njzTx8yENCcli65QtCUjGvncV/1AHHqKGC9bl2bQLYkwAQzVw68ooiMVBZKUmXHce7y4obo6YVYu0OVF1Fp8qiNAyHUR0j7wSbxUCL47CluAx0BkC9M+G8jnOnodVnNcppY= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1710200254; c=relaxed/simple; bh=UHDfEzsotiT9ePQ0y9StHgbMOf/lrrRURVo481jht18=; h=Date:From:To:Cc:Subject:Message-ID:MIME-Version:Content-Type: Content-Disposition; b=RLJiIrFmXx0JzI5QXP8yrjrmv3l4nOhCcPppAA3QinpAci7SsuWpcD7YRkvScl6/MPlGDvld8McaAhYegRooED8ddjot8q5GBYmh56Undxe4obk8lGvGAteU7GsHM8jE3LNgryKrWjQksAy3IHVrUHwunt+3opxmMjDDG7cURTY= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=chromium.org; spf=pass smtp.mailfrom=chromium.org; dkim=pass (1024-bit key) header.d=chromium.org header.i=@chromium.org header.b=ICS6mjMY; arc=none smtp.client-ip=209.85.210.174 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=chromium.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=chromium.org Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=chromium.org header.i=@chromium.org header.b="ICS6mjMY" Received: by mail-pf1-f174.google.com with SMTP id d2e1a72fcca58-6e5dddd3b95so3597084b3a.1 for ; Mon, 11 Mar 2024 16:37:32 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; t=1710200252; x=1710805052; darn=vger.kernel.org; h=content-disposition:mime-version:message-id:subject:cc:to:from:date :from:to:cc:subject:date:message-id:reply-to; bh=Xm7ckg0f9VWSGYhP+vSFLa1BP8tcu5Wgr9BmHroe7cc=; b=ICS6mjMYCTOwufVVhmEp2JHtDfE2EDE23slTRR32ea4HpM1JIOvTmxHhy6IDIp4Yvo zPa5tbgk3owf/QpW4BcLKDWYKLDeRxoIl+P7K8AzOpKItmhV1jWAnKPxsLiRgrZaTAN3 FRMRUAmk92nV1waX6t5R5HviJZLILjxjKSqSA= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1710200252; x=1710805052; h=content-disposition:mime-version:message-id:subject:cc:to:from:date :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=Xm7ckg0f9VWSGYhP+vSFLa1BP8tcu5Wgr9BmHroe7cc=; b=Jcu8TxT/jRqjAdMNqZmlaocOD9JNmPyAu+RH2C6mQDY7ZuqZJX0FgEV+GJCRsKBwgC ghq31msC8UyV5m5uZoRN4otpYHAR16yFLpW+J+dhAsm1+tpWEIvaciQIgLR+TJ2AN9lj ukXcI0avuPcS9VmdNex4Jbn9NdDDaDyKwdguyhwVCjO1qc/rb1vWZeM9cHrsuzrTk+Cd KtoEjqJplT/75WVHjFmgQJuvBbSltg/yLib4FgV2ele5yP4cVjmBalWB3G9MdXcTU0/v l9LBsUpHb9z4egfeZ5KfsqeEt52ngbYPKTwSNds/SERTTKtPz+GoaOYJpL7WIcEeF1In 43qg== X-Forwarded-Encrypted: i=1; AJvYcCXpsrTp0wXtyn6tUOp0d0pWSpVT4aD6ZrBX9u/LoJW6k0tG7t6KFA5JEh7Y0+KknsG/WdQMT2S4fBODeThTPUty5a2XNPvto4DAkkkD8Q== X-Gm-Message-State: AOJu0YzTp3dJmfb3P/OOQJY1lGHcrpl78c9a7UW8TrJjcHlXHVmjv7eL BLczbuFQjGa5qfMNn7zGPRsOoH94Qkr07tPw9OAXbe7ORapYb8BzT66BRK5/7g== X-Google-Smtp-Source: AGHT+IHD9UB7WtYdXSoqrw9ipbo6+l/ogripqDA2ow6WSs0p2YAHLpnIBCy3YZsyucMa8W5txpXHgQ== X-Received: by 2002:a05:6a00:2ea8:b0:6e6:758e:4ad6 with SMTP id fd40-20020a056a002ea800b006e6758e4ad6mr11969545pfb.17.1710200252063; Mon, 11 Mar 2024 16:37:32 -0700 (PDT) Received: from www.outflux.net ([198.0.35.241]) by smtp.gmail.com with ESMTPSA id t23-20020a62d157000000b006e56277fd45sm5138302pfl.190.2024.03.11.16.37.31 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 11 Mar 2024 16:37:31 -0700 (PDT) Date: Mon, 11 Mar 2024 16:37:31 -0700 From: Kees Cook To: Linus Torvalds Cc: linux-kernel@vger.kernel.org, Alexander Viro , Christian Brauner , Eric Biederman , Jan Kara , Kees Cook , Li kunyu , linux-fsdevel@vger.kernel.org, linux-kselftest@vger.kernel.org, linux-mm@kvack.org, Mark Brown , Max Filippov , Muhammad Usama Anjum , Shuah Khan Subject: [GIT PULL] execve updates for v6.9-rc1 Message-ID: <202403111637.203A9187C7@keescook> Precedence: bulk X-Mailing-List: linux-fsdevel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Disposition: inline Hi Linus, Please pull these small execve updates for v6.9-rc1. Details below. Thanks! -Kees The following changes since commit 41bccc98fb7931d63d03f326a746ac4d429c1dd3: Linux 6.8-rc2 (2024-01-28 17:01:12 -0800) are available in the Git repository at: https://git.kernel.org/pub/scm/linux/kernel/git/kees/linux.git tags/execve-v6.9-rc1 for you to fetch changes up to 725d50261285ccf02501f2a1a6d10b31ce014597: exec: Simplify remove_arg_zero() error path (2024-03-09 13:46:30 -0800) ---------------------------------------------------------------- execve updates for v6.9-rc1 - Drop needless error path code in remove_arg_zero() (Li kunyu, Kees Cook) - binfmt_elf_efpic: Don't use missing interpreter's properties (Max Filippov) - Use /bin/bash for execveat selftests ---------------------------------------------------------------- Kees Cook (2): selftests/exec: Perform script checks with /bin/bash exec: Simplify remove_arg_zero() error path Li kunyu (1): exec: Delete unnecessary statements in remove_arg_zero() Max Filippov (1): fs: binfmt_elf_efpic: don't use missing interpreter's properties fs/binfmt_elf_fdpic.c | 2 +- fs/exec.c | 11 +++-------- tools/testing/selftests/exec/execveat.c | 2 +- 3 files changed, 5 insertions(+), 10 deletions(-)