Received: by 2002:ab2:710b:0:b0:1ef:a325:1205 with SMTP id z11csp740404lql; Mon, 11 Mar 2024 16:37:47 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCUIzoFZi0CoD9J3cdoozYs6bIxSEkgUrm8CRm4L8kjX13qVoJsJ4Ekn5lczbSozfPy9JGURRylozMxBfkSHL0rCjaxz03t39MUAo7Ek4A== X-Google-Smtp-Source: AGHT+IEVxOJadUShcP7scL9OMaXUac9dfBm9S3XitUHHAArkLMNqXcnyc+gUqP9pKxa+j3a3zDSJ X-Received: by 2002:ac2:4e93:0:b0:513:8f41:eeb7 with SMTP id o19-20020ac24e93000000b005138f41eeb7mr4174793lfr.42.1710200267501; Mon, 11 Mar 2024 16:37:47 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1710200267; cv=pass; d=google.com; s=arc-20160816; b=ArpuHDHeheDWK3H5QHeO5AKHuKpsIa08vG1328tGTkSQLi9s8+ULQefmv7K7jJcDXL due4IDDKN/8al3RoYr0kbQRPdXiMYQ67laeki2Z0kIefUDeNX3nuWuz3NXjBYOV9uD6H v0HnE5n2kLFv/NKLvfziOosQ4UuiBhOgGR86s/AiiYAAVVqyR8zywqlu2g7jT+KK57Pr FQvv0nEU7SPuCPgoDyvhr+LDNFeqSicSSw3Xm7UOIYe+2fTZkz76lclSinqfNy2TXhel W+FYbkQh9Syy2gf0QKsJahywK+oz1LMyuVW1crdEyqDTHWvZeVyQswIdCyF0CfLfVRfI VbBw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-disposition:mime-version:list-unsubscribe:list-subscribe :list-id:precedence:message-id:subject:cc:to:from:date :dkim-signature; bh=Xm7ckg0f9VWSGYhP+vSFLa1BP8tcu5Wgr9BmHroe7cc=; fh=de6TFNdOObrBcYvjFPMfQXol1n4BLf2ZskIGhDxCOcQ=; b=UpPKeVwYW+Hl3L9MdJCnNn1A6gXZsyysFC/iMK5qhxIWQKU3XBIs70PVK28A1mwe+w gdVHilnCvc8GU7wZi2y1OdWjO5STg69ayil4/EKIjz0UcNuJxaRZ385CwdMKfg8VlSDl bxWyYEncfLkPIodZtKszWEwnvQLU3C6sES+AnnmrghQmrOIF1W04RQO3+eQi4SX7azOu z8OTaHtTDYFveOEK4fY8Ap+LTM/mZV0MkAcuq4jr3YU5gEPWTRh/ML2dYBoy1guWnYzW ZdByPOjjD2XToNxpql21Zf7yDuLarmBOe16feBjIm5f9VexHRxU7W1x6roMnV21GWrwx swJQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=ICS6mjMY; arc=pass (i=1 spf=pass spfdomain=chromium.org dkim=pass dkdomain=chromium.org dmarc=pass fromdomain=chromium.org); spf=pass (google.com: domain of linux-kernel+bounces-99666-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-99666-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=chromium.org Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [2604:1380:4601:e00::3]) by mx.google.com with ESMTPS id jg14-20020a170907970e00b00a4626463db1si1449433ejc.347.2024.03.11.16.37.47 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 11 Mar 2024 16:37:47 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-99666-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) client-ip=2604:1380:4601:e00::3; Authentication-Results: mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=ICS6mjMY; arc=pass (i=1 spf=pass spfdomain=chromium.org dkim=pass dkdomain=chromium.org dmarc=pass fromdomain=chromium.org); spf=pass (google.com: domain of linux-kernel+bounces-99666-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-99666-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=chromium.org Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by am.mirrors.kernel.org (Postfix) with ESMTPS id 3B6EA1F218F9 for ; Mon, 11 Mar 2024 23:37:47 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 1335A59167; Mon, 11 Mar 2024 23:37:35 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=chromium.org header.i=@chromium.org header.b="ICS6mjMY" Received: from mail-pf1-f175.google.com (mail-pf1-f175.google.com [209.85.210.175]) (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 C51E157890 for ; Mon, 11 Mar 2024 23:37:32 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.210.175 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1710200254; cv=none; b=heZMno7CNelr5fKNJr5aINjsu5XkHPI3LSRA7GXK3BZcn2IsnRqDZVHIGnPgTUfjg2RDb11DnKEpEiSFyTPKKva9T1QX/izlwsNlYl//LiA7ZOMSM+7/oyLtJkZieYCTOdhuvPZUN5bC9j72+bljpZmoHFGLmMFyG75h2FWRu4Y= 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.175 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 Received: by mail-pf1-f175.google.com with SMTP id d2e1a72fcca58-6e5dddd3b95so3597085b3a.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=Zyd47I8wQoDT5MALjSx8EL2fkfLKnebiHZughYdjSkMnocmcKxrQxiyq6NC6ngaxf9 eb9QBJ9V/0HrArzM8SRq5TOyeHGKFQ1YVN6vfLASxWfcRITQpQcOhjlyXE4W2jqyGUcq D061rMMFrne4lVCiaWHIJH6xbiGla658umapyM7c2ztFQb0NjtHaZSK03V1jt0JsB9UZ a+Hyk+0OFda+CyHy7cPintJXQkrWDrrrMkGP8HDgC+IzBcM+7GiT0/dA5hLWAlLMtTLd vlHm7SlnXBFHhFqM/+i+71iI+4C/NxH/h5s3ob7dioGKrC+QxnPbtducc6T/GzwVFt6v 20oQ== X-Gm-Message-State: AOJu0Yy03epdUI4XODLopjO1JjGg2kdWbtdHjt+2bfkkpB7f5UJOlFsn ZkJrOhNItWOpqc79HuLJAXJma1wF6JPlk3yNo8KwslAkoq2tzaPTSEtaYmgZ5Q== 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-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii 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(-) -- Kees Cook