Received: by 2002:a05:7412:e794:b0:fa:551:50a7 with SMTP id o20csp33423rdd; Mon, 8 Jan 2024 16:31:52 -0800 (PST) X-Google-Smtp-Source: AGHT+IH1hJf4dETbmjiZR7Q5yB6DLAUV19Wt2YwRWofu+2Xs8/QWoeJJ7tPjszLUwggD3syHzPyV X-Received: by 2002:a05:6358:5928:b0:175:9b4d:5d82 with SMTP id g40-20020a056358592800b001759b4d5d82mr1080154rwf.51.1704760312226; Mon, 08 Jan 2024 16:31:52 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1704760312; cv=none; d=google.com; s=arc-20160816; b=JzbgGd1amcy7d+heIhxKjI5IgkiHEV41VGTE/RWeaPoMjgBH9YhcWZ8k5RGfqSDRfC 9Y1nZamU138+3rxpJCW1MNFmTDHozCBqPRNQ2PilAYvGS6ghddOKhXro4kO3Acs6s13t wir/l2flsx9lROW+0nDX9vkcs9ZUVbwN4ZswVZ7ZcEmIbzaS15yps9C6oqhNQDETVdcN cHUNXo+b3rTaHVstmbFU3gg4yaXJkR6VkOy1y/jmgUHbgiGC/eadm9hkM6APa4W2H9mu dP7RqwGISCXCBk7XJFEigCMW47zrTLCkltM1hWDd3FrfBnNsi48nIraqlEz/TiP1oCqn hU/w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:list-unsubscribe:list-subscribe:list-id:precedence :dkim-signature; bh=zO50hugsTP49JzCek/Fz2sz/IjqHzazxTuZOtrr33Cc=; fh=keL75hcQgT0oMem/Bm3Hh3WSKgMQAT3UYfCkY+gMdxA=; b=cruyDY47m9q4i8E5vis1WPeECc2U6RKzbmlNnJ0fw/5VdrK8XDxMnwFoH45i8MHex9 lsRhh0TaywuhQbZ6Y438wJaY+i39rdzxA/yq7mQTIGdGvcmjh60Yf8vnqazOVS98co7z VwDiedeLzpDSrU9Ea8qF0r6dgikMZNG227rrQGlSqwJdbuETiPi7zV5DxzVmUIn048BN uudgDN+/rC9nvN9Ey7PpJ/3RpTQhRdntXABtugeu7LQvYyCki/J6EO9jSHW9xSg3TxKH eyGptrd2X/zhjY87sPN31tipKWFmbPck2qSl0jpmRTge/DJMo2TyUP/rK4Z201IGGElW SngA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linux-foundation.org header.s=google header.b=RolAEsfj; spf=pass (google.com: domain of linux-kernel+bounces-20217-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-20217-linux.lists.archive=gmail.com@vger.kernel.org" Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [2604:1380:40f1:3f00::1]) by mx.google.com with ESMTPS id r10-20020a63ce4a000000b005cdab7a395asi581512pgi.349.2024.01.08.16.31.51 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 08 Jan 2024 16:31:52 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-20217-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) client-ip=2604:1380:40f1:3f00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@linux-foundation.org header.s=google header.b=RolAEsfj; spf=pass (google.com: domain of linux-kernel+bounces-20217-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-20217-linux.lists.archive=gmail.com@vger.kernel.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 sy.mirrors.kernel.org (Postfix) with ESMTPS id A1BD8B22AD0 for ; Tue, 9 Jan 2024 00:31:07 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 9008A29A2; Tue, 9 Jan 2024 00:30:59 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linux-foundation.org header.i=@linux-foundation.org header.b="RolAEsfj" Received: from mail-lf1-f47.google.com (mail-lf1-f47.google.com [209.85.167.47]) (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 C0ACB28EC for ; Tue, 9 Jan 2024 00:30:56 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=linux-foundation.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linuxfoundation.org Received: by mail-lf1-f47.google.com with SMTP id 2adb3069b0e04-50e7d6565b5so2532417e87.0 for ; Mon, 08 Jan 2024 16:30:56 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux-foundation.org; s=google; t=1704760254; x=1705365054; darn=vger.kernel.org; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=zO50hugsTP49JzCek/Fz2sz/IjqHzazxTuZOtrr33Cc=; b=RolAEsfjHrLajGtxSX+oHtXRIviav4kRImNKeHTQfaZu7MTwJoY96YzsI3mj54pBiq eV/sEnlMH3KScPvBAtYnx3inNcS0g/RR78C/ykD2ADTEgnHflcepGC+ZbsOTKg9HxSVB KhmL5GtyBBvFXh6EW1tG5FrL+wykRjHU4MXt0= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1704760254; x=1705365054; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=zO50hugsTP49JzCek/Fz2sz/IjqHzazxTuZOtrr33Cc=; b=B3+fvLjWnO99WnviXSXkiFw6ZQ029Gz1kJE4omJjiU8nJRmbkdSGDg5bwN8qffZ41z SGt6lzAKSeCJCQcFemKltdatHGMGpmjBUTZh38nTi3PHTD5X/s3FOTMFuuKzlMody1xb hKz565IxvhsLGN/kl+CVaEDLe/VNCrow2nt+nSLXXlEoLqm1baxw8EKtyLvgaw5nIKgX NFfTEnstxZfpLkaTX6qGSTEPh5hDTzQmXzJH0iZXrXRaXt/lDvLeGJd+dXuAFvUhqE2V jPVYEioZlhLVD+ZK9nfRSKQKblTpLSylYYj1T6RXt3RfO62W4FN17E5gAc9sKbT/G9a1 CWcw== X-Gm-Message-State: AOJu0YxmpDNwkMw1gj8uozqs/819IXaDF0NKyHCC12I6PRKD796dTZ8C 1Ihc+lU8LB4RcQ6ba2sbBRB100BSw/N+meaLHmjEs5/iX1tT564r X-Received: by 2002:a05:6512:68c:b0:50e:8ec5:3025 with SMTP id t12-20020a056512068c00b0050e8ec53025mr2366939lfe.95.1704760254740; Mon, 08 Jan 2024 16:30:54 -0800 (PST) Received: from mail-lf1-f53.google.com (mail-lf1-f53.google.com. [209.85.167.53]) by smtp.gmail.com with ESMTPSA id m5-20020a056512114500b0050e84be8127sm123302lfg.101.2024.01.08.16.30.53 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Mon, 08 Jan 2024 16:30:53 -0800 (PST) Received: by mail-lf1-f53.google.com with SMTP id 2adb3069b0e04-50e7d6565b5so2532394e87.0 for ; Mon, 08 Jan 2024 16:30:53 -0800 (PST) X-Received: by 2002:a19:6719:0:b0:50e:cd02:b537 with SMTP id b25-20020a196719000000b0050ecd02b537mr85182lfc.11.1704760253453; Mon, 08 Jan 2024 16:30:53 -0800 (PST) Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 References: <202401081028.0E908F9E0A@keescook> In-Reply-To: From: Linus Torvalds Date: Mon, 8 Jan 2024 16:30:36 -0800 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [GIT PULL] execve updates for v6.8-rc1 To: Kees Cook Cc: linux-kernel@vger.kernel.org, Alexey Dobriyan , Josh Triplett Content-Type: text/plain; charset="UTF-8" On Mon, 8 Jan 2024 at 16:19, Linus Torvalds wrote: > > Anyway, I want to repeat: this patch is UNTESTED. It compiles for me. Actually, I take that back. I did a clang build, and clang noted that my "remove the retval initialization as unnecessary" was wrong, because the if (!bprm->fdpath) goto out_free; code path in alloc_bprm() still wanted that initial -ENOMEM initialization. So you need to fix the int retval; in alloc_bprm() to be back to the original int retval = -ENOMEM; but then it might all work. Again - note the "might". Somebody needs to actually test it. I may try to do that in between pulls. Linus