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: 13589423 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 CBEA4C5475B for ; Mon, 11 Mar 2024 23:37:35 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 3D9756B011E; Mon, 11 Mar 2024 19:37:35 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id 389666B0122; Mon, 11 Mar 2024 19:37:35 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 2790F6B011E; Mon, 11 Mar 2024 19:37:35 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0011.hostedemail.com [216.40.44.11]) by kanga.kvack.org (Postfix) with ESMTP id 15C696B011C for ; Mon, 11 Mar 2024 19:37:35 -0400 (EDT) Received: from smtpin10.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay01.hostedemail.com (Postfix) with ESMTP id E10FF1C0F87 for ; Mon, 11 Mar 2024 23:37:34 +0000 (UTC) X-FDA: 81886372428.10.9A23027 Received: from mail-pf1-f179.google.com (mail-pf1-f179.google.com [209.85.210.179]) by imf02.hostedemail.com (Postfix) with ESMTP id 3710880005 for ; Mon, 11 Mar 2024 23:37:33 +0000 (UTC) Authentication-Results: imf02.hostedemail.com; dkim=pass header.d=chromium.org header.s=google header.b=CNBYKioj; dmarc=pass (policy=none) header.from=chromium.org; spf=pass (imf02.hostedemail.com: domain of keescook@chromium.org designates 209.85.210.179 as permitted sender) smtp.mailfrom=keescook@chromium.org ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=hostedemail.com; s=arc-20220608; t=1710200253; h=from:from:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type:content-transfer-encoding:in-reply-to: references:dkim-signature; bh=Xm7ckg0f9VWSGYhP+vSFLa1BP8tcu5Wgr9BmHroe7cc=; b=s3zjN0Eii2qRk86lHoRCpiqaiQ+3Bx4dmM3Nd7Nu3C3bEeLUJN6TSoHDHc8Ev2junCXVFF Un1xHes4j+RjvptYgLpEln8ueIDXadLS3CYX+l5lNTDH0VStfP+6wcCZM+zXxQ51Xd0JpT eSJAdYszdlqTTA8TylbR+9VFFYaO/AI= ARC-Authentication-Results: i=1; imf02.hostedemail.com; dkim=pass header.d=chromium.org header.s=google header.b=CNBYKioj; dmarc=pass (policy=none) header.from=chromium.org; spf=pass (imf02.hostedemail.com: domain of keescook@chromium.org designates 209.85.210.179 as permitted sender) smtp.mailfrom=keescook@chromium.org ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1710200253; a=rsa-sha256; cv=none; b=1R3TohZcDWyxziWf4BQbwOVwmrHAip+9oczCOyE9/0ZbaQE4vzVMBraFhQ6F/pch1eQGOD T2LHiGEv1vWIB1oT0gs708ex0+rGzXl58al/kG1+NeogA+qy0mcxC1wE3ptwwTlPwKzXFr s/i+JUZGhbWWB+XOEMmwPHsI2H42b3o= Received: by mail-pf1-f179.google.com with SMTP id d2e1a72fcca58-6e5dddd3b95so3597083b3a.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=kvack.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=CNBYKioj7s6hsW9X8JU83Sv8yA7gBJFPEjxg1QO2WrjKDNCs7e1MUKtGIKTg+GBJJ9 OoXbPN4okpSQI64i8td5QjkekBR20gZevklxqCofKKKfkbEzguxrEZNyJmqOSXCWq07y VGsk+JB0PsPDGagLG83FVrtdyFsSbNiVE6lro= 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=Wl3ZB3tidRdSu+B2fhK2/vWCK/YcWQ7MTd9Da+y3h69NZCNZU233GA9NKjZo9XM8f7 pRhjoTgiJSAFgeafWygHwnRYG8VMrht0XFkq+M43OosUP+tTEvro4K+smJtbiT3yKDES 7GjQb+CZQ0mHibYn4fALlw+1c+hCQqOwRf+Z76vKaxB1p5lPQG8tPxW44PDC8TD7cQUl qobaKnw0nyUiWg7/Sqlk2L2xCNl8WAozPyP2L+UAbMUJlht4wcxkJY4NrsYLrweRO8A8 eDQIs2uQucIf/kZCHqLom5V3sktKbHU5SYQRiYoFD988DMgHoxN3payrQ7EOz5xkFUkd d9vQ== X-Forwarded-Encrypted: i=1; AJvYcCWF/sXRSsdvFaqXOFtRlN8MHauYhIRreLNunSuUgRVHa1CcG9KiRC3XRbDW+cbrej+KMwHGaf1i6UrQWwIqxxrE9II= X-Gm-Message-State: AOJu0YzV+bT3Qbu1nU/9Ml2cGq13szC8f+HMBBIpFHJoi+OtLL1810xa 30VxtuWrlYZTjxQgSf1GGkmAoiIknhaqnFtxfY5nxEUbjTL2R4QZxIV91qAW9g== 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> MIME-Version: 1.0 Content-Disposition: inline X-Rspamd-Queue-Id: 3710880005 X-Rspam-User: X-Rspamd-Server: rspam02 X-Stat-Signature: wgou38hbeoyqrb64r718ebq4e5a5z7y3 X-HE-Tag: 1710200252-219883 X-HE-Meta: U2FsdGVkX1+D9XbsjzlfCfPNnX4itUc7ZsS6TEmcc2MqTTZlNGn56eJthe0RDY73zmo0kR54JLplDdCKdiJ34rwOglN5SRMX+p6Dz9+Ofch3qubfp+vXZvRMYx5w69AIk5aiNYwtgjykC+xPB6NtRzeSQYzLnKY9/WDowFpurSrmQq2bxACfkW4Oc9dEl1ko4ER3iHQP0z48XSEkRJc5ktwSpny5NX1JzzrbRkztnO9PnNWtHLLny/ZfndJwR8mYcCJpOzb/KQgtbNNl2iKpgRuA8NoDConhLGnKwPmlpXeIGYmyoWgue1OH8TUQ/7crm7dEnC0y8GqGALFiky9PzZoHT9AkRFGJc/Km+qePLrVUsgbzrayF3LSLMBmtI6w9sasE3Ddhs/ULsqYG/L2Lp2Qt77oO838zzh8p2tjkc012nL31BrrHpowk+zGmD90WoapBB/VbC9Fvia2o6vWdxBDmffqq43KefP9CgcV6jFjqwJdcyLKG6pTbmtU4ppeSL1ryv4gIj/PwI6RoLC72WZOMnYfZKZE7gD1CEPJEsEd19Sv7dHuj85OVUJ1ab46Ujlw1bqxeDg9O2TBL8q16Xo5OC4tBcwuFA3stQpjmhZbu2G064g8xrHRO24Is+FoWG7KOQTrcO3QdNaUYWN4VSsn+1FysHfN+45zRNXENgigtg8P9BzIxZERx3FDIPpxSfiwoEgH/ohE95v8E0KoTnqcg2KCMCHi5iE5j8qGML00bOJzLZW9rv0m0JgBqlrIbj2/r2ZE59LNY/WgRP/EnxszJCKUe7qwnIHg/31iNNEG4NTAqJ39AqdY4MyNz/ZEBChvzU7aYaaaUtfDgowysN2mNa3n7xNYQKt8FFEy+aZwtukMhZG6jKO/QU1BC92CsThsvgbe6AN06/Xddu7HkLTS+aJo0ufIGeb9ljiYTp60epesXDbSzoWIDq1Ln1p5ljsDLL4ST/0asoo0SzVJ Q6PsIg2r xVx4I17Vu+vbXST6r4bqcwRhy6wEaFGurvs0NdvTe+u7a/dfSe+SCDWWfhMwTVmO+CEEmuMVJLAMt5JmZ76i6utD7I/cQET1e0OE5i3LY9kSm10bET9le6RGIeXoSRbU4+8u0jfVuZ8Q4L2fDYDPKSXAmbiFrb/vq+YLb9Yq0nyFMAmPErkUmWoWjHfyDQbaOEfTH4yu3RVDpGQ1q5sT4aBRxoEV+TAiSJAigk3R3GOZBDSiJyfFmKpEEtrMBPR3ga6V6WDbuW2HpaK3nbCdJaw52LRWMpLQxGtUeYOd3u+IKv5QkDPG+2V87UWocGiYfx/I9Jzyix8KhXPFBHF+gL991tn4xRyTfgOd1M7uMBdIFRAeREiQqNBYJbUQ9tcabF+e56PxCzSMyeA1u2Gt5tPUGnNTVVN8YzYG0 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: List-Subscribe: List-Unsubscribe: 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(-)