Received: by 2002:ab2:f03:0:b0:1ef:ffd0:ce49 with SMTP id i3csp92759lqf; Tue, 26 Mar 2024 15:45:32 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCUROm5xdnJZXRyWUDJX7J9rnKiDR6pnqpFlKPBA60reFV/mSuKLeNZlYCIqnPrgsu52VwU8B4HHra1xhPh/07Zh0KXp5xQyTBrzZHyOEA== X-Google-Smtp-Source: AGHT+IHwmOW4ry+B/ZVJ+1NEGg0nkVwuk81hPkXtSXH2r8+XgcM1Q495mxCFu/sPmG1wmtfZ2Jcm X-Received: by 2002:a50:d71a:0:b0:566:777:af4f with SMTP id t26-20020a50d71a000000b005660777af4fmr725415edi.1.1711493132187; Tue, 26 Mar 2024 15:45:32 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1711493132; cv=pass; d=google.com; s=arc-20160816; b=VQMHIN4jUHJ8QpSAHqi/5BHcTvmHnKbQVa1DlDb7qr8K46MbtnekI8WfWVUXTpDB9T LPKtfOLdXcdmLez5JCA+DVh9dzylCC5WcECyr2GsExuGdsFZsrib6XkNlVUM3Pjfd2vl QeSp0KjPPICGRQiJd3hLreI9eiMKbRDBmSk6sRQeaBYfXW1fzbWCQHtspfRdaS8xXLDj We+X9sP7ro0scEBPSQIFupgIlj6YMfHgEFRzqtgaapiWukswyQQq+wvORWhcA1I4O/4w w+iZ1YujGoxc6w180s4WHXOw7HidkmD9oTT/S5SyczIps1vmCpT/GXsCG7viFMDzn3Hk o2dg== 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=VXI5ZdGfMORIPiIcqImDe2wXt3ueShbSXK4sRTx/QcM=; fh=cKbT6CgJSDh4p0T3xPBE93fbKEb1rs4ZFkAb77XFv3I=; b=FuUpql+KUG9/WQ6OFBnBy9VpvQOJBMwlcy7CcPaQ3WOelthiiAgNWde2C0Ym3kzchs dw7ah/ndssQ7vj6WW9tcmKMLgXHQJoBcvOTW/7/7RYK8QO9y7QUBXWkjHvJV76HzneYh mHb+kw7MHdSnCO08fNK3cnlmcSHvs9bWCyaA0KJSez8weh/E9HzIIJB98hpIuTjsIFjK Ch22h9VibuuD99MFKwJrh9moizNKTVTfadPywcO8w6/XGSUaq97g0eybZghP/JZ8BlCD 5WoTqTibKxIrgr8dLD8G4S5ZFb86Lb17u7jezI3oTGVpvVwULbPNzeFYJhX0wqSSNvML TE9g==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=W+Vmormj; 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-120092-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-120092-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. [147.75.80.249]) by mx.google.com with ESMTPS id w15-20020a05640234cf00b0056bf6434ed3si3865463edc.526.2024.03.26.15.45.32 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 26 Mar 2024 15:45:32 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-120092-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) client-ip=147.75.80.249; Authentication-Results: mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=W+Vmormj; 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-120092-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-120092-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 BD0BD1F66815 for ; Tue, 26 Mar 2024 22:45:31 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 68C2013DDB5; Tue, 26 Mar 2024 22:44:22 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=chromium.org header.i=@chromium.org header.b="W+Vmormj" 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 35CF554BFF for ; Tue, 26 Mar 2024 22:44:19 +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=1711493061; cv=none; b=ADBrVqVfDHkK+WXB5wvVnUnnotfYURfcmJqIFkUcSLYQ/iHGf54ICJXKuX4T0XeMW/V20oAldnRdUvH627u2M5PydnZGD6avBxS8Vud8hm0GQEOS4KYvqWoV0jwtLorzAaNFvXupXFA0O2s7Zqsf6cD/VgIEm2HRM9gFydA1EKY= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711493061; c=relaxed/simple; bh=DmzPSzaPgO5ZdYrZP/V5WrYINYntX9rvKUOE24fNeNI=; h=Date:From:To:Cc:Subject:Message-ID:MIME-Version:Content-Type: Content-Disposition; b=F73ivZVwLwkatTvObdX53ltyHyKoLU1Y5W2s2gHDWiLv7uv6997Pp16EsDrZAmmvWQ7NiwwfTkJMJlsh2/f5mWQUCBgbt2ffqt3MKC/RHg6TX9F7l1zIaw7m8SU/KxLD0slKII4jRJnX9CCfnr7nRK5wPhAAB+lTGl80v58kQ3U= 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=W+Vmormj; 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 Received: by mail-pf1-f174.google.com with SMTP id d2e1a72fcca58-6e740fff1d8so4402136b3a.1 for ; Tue, 26 Mar 2024 15:44:19 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; t=1711493059; x=1712097859; 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=VXI5ZdGfMORIPiIcqImDe2wXt3ueShbSXK4sRTx/QcM=; b=W+Vmormjn9EU5780R1Fax53N0KdU+9zbOYFEFW/CcBsS6FaDchRjAvZhUqjZea4RfO NrWHg3DqEkG8smFoAApc2NpVJicTfIzKJIhchEVtpCwm3PMg2aJUXqT3Jrh2hJIKA36D U0tbOjsTlWCHN/Yysfp5msqnVdWSewEVgZJMo= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1711493059; x=1712097859; 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=VXI5ZdGfMORIPiIcqImDe2wXt3ueShbSXK4sRTx/QcM=; b=SaPEmGLPp3j07VAen1gUlUQT9cyaksRwc/6IXEjHuo5dTH9j++uaK2abYUcGtDDnQn RKN1bdvmVPBPzAeLUWNy5r10llsO/0NrT1//BP+VLm/Nqjd5+X/bkkgS0SWE0pvVMYo1 aKYTR4LjdUQtEJzqPqX3NhFhXl8K3+U3bAnslbCAA2yLgRtLu4NX4+zh26zhY0X6WS5c Nr7YttWqB0UTDNbmstcgA9y2G9VAhkKwKr+uSGJMrbqRlW5NNK1urfKSRZ4Ck3snX9qe IYF/sNyavGbn98ccrbzW/r2subUL3Xnpvc8iJuzn5t3Pp2zg7cXQNzio27D6v58T3v7w 4jfA== X-Gm-Message-State: AOJu0YzvD7N6ou++q2LhLlT4xJfnCcSQnf2+PHPmQwWQGXmGX9DFv5h9 jX0iMd4IO3C4nimVF+0kMajhf5cx4raLHKLzIVUHlOtfHC+JUCc81moQ2HNnwA== X-Received: by 2002:a05:6a00:1896:b0:6e6:9f03:6a6d with SMTP id x22-20020a056a00189600b006e69f036a6dmr1317580pfh.3.1711493059527; Tue, 26 Mar 2024 15:44:19 -0700 (PDT) Received: from www.outflux.net ([198.0.35.241]) by smtp.gmail.com with ESMTPSA id hy4-20020a056a006a0400b006e6a16acf85sm6550957pfb.87.2024.03.26.15.44.19 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 26 Mar 2024 15:44:19 -0700 (PDT) Date: Tue, 26 Mar 2024 15:44:18 -0700 From: Kees Cook To: Linus Torvalds Cc: linux-kernel@vger.kernel.org, Justin Stitt , Kees Cook , linux-hardening@vger.kernel.org, Max Filippov , Muhammad Usama Anjum Subject: [GIT PULL] execve fixes for v6.9-rc2 Message-ID: <202403261544.E7B2404@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 execve fixes for v6.9-rc2. Thanks! -Kees The following changes since commit 725d50261285ccf02501f2a1a6d10b31ce014597: exec: Simplify remove_arg_zero() error path (2024-03-09 13:46:30 -0800) are available in the Git repository at: https://git.kernel.org/pub/scm/linux/kernel/git/kees/linux.git tags/execve-v6.9-rc2 for you to fetch changes up to 5248f4097308c1cdcf163314a6ea3c8c88c98cd9: binfmt: replace deprecated strncpy (2024-03-21 20:20:52 -0700) ---------------------------------------------------------------- execve fixes for v6.9-rc2 - Fix selftests to conform to the TAP output format (Muhammad Usama Anjum) - Fix NOMMU linux_binprm::exec pointer in auxv (Max Filippov) - Replace deprecated strncpy usage (Justin Stitt) - Replace another /bin/sh instance in selftests ---------------------------------------------------------------- Justin Stitt (1): binfmt: replace deprecated strncpy Kees Cook (2): selftests/exec: execveat: Improve debug reporting selftests/exec: Convert remaining /bin/sh to /bin/bash Max Filippov (1): exec: Fix NOMMU linux_binprm::exec in transfer_args_to_stack() Muhammad Usama Anjum (3): selftests/exec: binfmt_script: Add the overall result line according to TAP selftests/exec: load_address: conform test to TAP format output selftests/exec: recursion-depth: conform test to TAP format output fs/binfmt_elf_fdpic.c | 2 +- fs/exec.c | 1 + tools/testing/selftests/exec/Makefile | 4 +- tools/testing/selftests/exec/binfmt_script.py | 10 ++++- tools/testing/selftests/exec/execveat.c | 12 +++--- tools/testing/selftests/exec/load_address.c | 34 ++++++++--------- tools/testing/selftests/exec/recursion-depth.c | 53 +++++++++++++------------- 7 files changed, 61 insertions(+), 55 deletions(-) -- Kees Cook