From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id A0F6419A for ; Thu, 21 Nov 2024 02:29:43 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1732156183; cv=none; b=FGHFothG9FmS3mWJCR0+ry3DYtvO1XZsh5tsZ1RJ+ub7eix9MQXpviTI6GCuAQZLYZhWy0Nt9sFZffEIM3+R3Y591qNzX2tdeUcIW+bEuioGiA8hwSYoUhPXsZWSsylul3Mtf4PMCSaJ0R7ubS2JmS1kcmG5vtgJ4vCOwQsvkmQ= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1732156183; c=relaxed/simple; bh=0ytbXT8imuofcKIPoWDodsOwesbWgAvq0MlCY+uF9SA=; h=Date:From:To:CC:Subject:In-Reply-To:References:Message-ID: MIME-Version:Content-Type; b=PghjBUP65mbHZuj4xPTDR5yWYW/I56QtJ3VFiPU7I+93AjJlEzav0vAPp94oOZ0p94Toz/Cz4getcj4oaLlPxBacFHMutl6HVdJcoj9kxe+0ddVmr21tWYL7/QnBRYx/J4aHUi78wqrl29XA9bQdCLwhmES326titu1C5rLlhNE= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=A0YbIPdJ; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="A0YbIPdJ" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 1872EC4CECD; Thu, 21 Nov 2024 02:29:43 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1732156183; bh=0ytbXT8imuofcKIPoWDodsOwesbWgAvq0MlCY+uF9SA=; h=Date:From:To:CC:Subject:In-Reply-To:References:From; b=A0YbIPdJ/6uI9xVOQyjYYiRY2Cs93NsqSMzw6nX4lyPHHgw8Pnluaave4GaabtQSa JwqJ/hcGg7OVMIUxjMbNGQp6prGW70mPuBglAU+4lQzfilldtKJeT7YodsEyssnB9T yC9GrrFhr3Nab3adEid6J4nCf7hY5nzzMQfEjs+vX7A4q5c10GnvAlCI+ybEPX6EE1 XtFvNY1dIgdGxfAl16yBJMwGJCUAt8cpK+O/2SREvjwS5VV6IrH13qkbJiYG8+3SWH 3YDAq0VI/uxkEbaK2wKTKZ/PGTwmYsa0AGRKM8FeMeC6B511EPR4Ek5tiLYDpse/qr Bp6TwNYoURaug== Date: Wed, 20 Nov 2024 18:29:44 -0800 From: Kees Cook To: Linus Torvalds , "Eric W. Biederman" CC: linux-kernel@vger.kernel.org, Alexander Viro , Christophe JAILLET , Dan Carpenter , Nir Lichtman , syzbot+03e1af5c332f7e0eb84b@syzkaller.appspotmail.com, Tycho Andersen , Vegard Nossum , =?UTF-8?Q?Zbigniew_J=C4=99drzejewski-Szmek?= Subject: Re: [GIT PULL] execve updates for v6.13-rc1 User-Agent: K-9 Mail for Android In-Reply-To: References: <202411190900.FE40FA5@keescook> <87jzcxv227.fsf@email.froward.int.ebiederm.org> Message-ID: 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=utf-8 Content-Transfer-Encoding: quoted-printable On November 20, 2024 6:23:55 PM PST, Linus Torvalds wrote: >But we're *not* adding a new complete garbage "copy random stuff badly >from user space" thing=2E I'll drop this and resend the PR=2E I think using the dentry should work, as you say=2E Though with a more par= anoid hat on, I wonder if it could be an info leak if the original filename= isn't "visible" in the context it's running in; containers do weird stuff= =2E (But I'm hard-pressed to imagine how the filename would actually be a u= seful "secret"=2E) -Kees --=20 Kees Cook