From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-dl1-f53.google.com (mail-dl1-f53.google.com [74.125.82.53]) (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 7202F3DCD87 for ; Thu, 23 Apr 2026 07:04:17 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=74.125.82.53 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1776927858; cv=none; b=VxjCq+C9LGQKSQ6+Ti39+RHoqnxWUzEln3oluzADUD02o5IeQ5yNaKFGjhrhZNCWTsTn1hJ8mZnwwRWezbqDG2FBdYVuJU1ROy5QBd08qSDkM7I4ErqC7FcCwmqHssutlBWN+69fZBRGEUocCJ6Wm8zYKylI7CjFdXBOHCM3uZM= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1776927858; c=relaxed/simple; bh=BOWFI4ZVdARo4b+YYZ3jA1Rs4kF32fa3LdQ7WaJFRDo=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=k4XoXyL0HBprP16j80RA/CiIKImLuVi7IWmQpcxyUTQBSzUkUQpPnNFXbX6EJ3nr8YI9AI+AJihTfsHJnzX9YZKan/CfsxcgoxDM22S+yyqj6/uJkXOrDtqac2LxUu0ZA1Z7PQF1nSxV050bwIpAwnIQaIwPfOj2P8m/r09lZG4= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com; spf=pass smtp.mailfrom=gmail.com; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b=hTsjzDNH; arc=none smtp.client-ip=74.125.82.53 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="hTsjzDNH" Received: by mail-dl1-f53.google.com with SMTP id a92af1059eb24-12c6df0b9bbso86542c88.1 for ; Thu, 23 Apr 2026 00:04:17 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20251104; t=1776927857; x=1777532657; darn=vger.kernel.org; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:from:to:cc:subject:date:message-id:reply-to; bh=8qPIWsE1aC3FA/rveJpSyhd4EiiBmj/2eCVy34kXTaI=; b=hTsjzDNHz5sloZCMBPgNj3gXFN0KBjhxtsLnaPgtE1tyb53FqS1bgKqm6AU8sfHS5E diWewmYFCqSpPhk+JkcLHICtTwOorScbamUD1YR2UBcvBXSIX7sty0J9JMM9nxZ9NCOK Iykey41+48vMAnhgv4SoyoW2LcBIvX3dlK64z0CZmh9xe4Fy1iwETvNUEr9TOuNuvSZo ZDbO8h5lR/6FN68yvo8DFU+6V6udnW734ozx0fJ1LgZhIddG7Cqixo1HRbhRo/8/XunC NSRxvr9VLvT4S5eCUuXm0imxJgtb1kTfcH0GV5dxPnJr/yMCTxLQfbLefdZ3K4zO8dRM CGvw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1776927857; x=1777532657; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:x-gm-gg:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=8qPIWsE1aC3FA/rveJpSyhd4EiiBmj/2eCVy34kXTaI=; b=ldQRtxWAdB6JEz1aq7V6w84qQv389VXE9tE19UHHjOyt8T4Plzqj/hz9h+qC5PSHQo oFZiT0HLEAMUk+SwNzjrQwacqeGbZkaOQgEiPUlnnylqJAxR9U8IicMW3kEvbNpYUAvd J89Qev+WXHG7DbZJxvZbnAU6F6PljN3ZSGz/lTbN229b4uOYFG8ikpUzQCIS/VnSP6Ay +ByAaJEb3tBzWLQoxBbGxqx6Gc1+g0sW4NlGNOJ2nEOsCdsE6qt1B5n5l8VbSz8cvLQd QxvSh9Ln+HaqhJyOqmhpiwuOm4k9GoDwJSfY+LNpntNHRaA2TyzITn89WEyJo+f3nnSd PXww== X-Forwarded-Encrypted: i=1; AFNElJ/Wyqlv67uzXfwA6mdjcYZmxf62u50TIjAsQ4lvHdAVdXUcg9bG8ecijQphorhM4M2eD72Ob8Nlc+kZGVU=@vger.kernel.org X-Gm-Message-State: AOJu0YwBf+Lj/UvWro8rf5PreYho3TTNkddw+71zwVnG7GedN/AGGY/1 7tIkdi68ovHQHRIZzlSaKMGyH7H4I2hx9bl9z+uN+UAa691L+h37LYZZ X-Gm-Gg: AeBDies5i0fXzzhrQHDfVLItP1neYQiJsGGE4OPz4/P4JNgzUXCtXOh89e7SyhnAwFH j5vWXdlXHkPKH98cfqny/Xyo13nNlQ5CNR5kYSF1t6WulyI5Ux3PBfNFOsIDleieKKlN9QVSREv obA0NAdHjKom4c0662LWPobxcTenJcOK1TEkq65JUUA7aRsSJ79TA8nvB+zmqzQ8eIIh/OW+9TR h02O3tWezSOBSx1n5jGvgAL+s0gSLuG4ve2/yOxlwyDgESBdmwLDz9ezOSKnUC7uk0IARgwtvfh hJaNCL7PLlAH76YfiLIk1Qu+x3Z30W9cyEbxCJ6alKyUsyfHslK7JtHYoJOSxLogfsqYvMk6wWI qlTUS1FqfUbYP8b0f07XfkXX0G3gPfAi003vgv/EZZ2rTYvrLzv2PbDRAfSF+SONoo10Zqpoj+o vpxxzUyRCQqDHLt/PMhyFrxYsWRea6XpQRWQ== X-Received: by 2002:a05:7022:12b:b0:11a:3734:3db3 with SMTP id a92af1059eb24-12c73fac54dmr17782302c88.32.1776927856545; Thu, 23 Apr 2026 00:04:16 -0700 (PDT) Received: from inky.localdomain ([2601:647:6700:64d0::3877]) by smtp.gmail.com with ESMTPSA id a92af1059eb24-12c74a185a8sm27322792c88.9.2026.04.23.00.04.15 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 23 Apr 2026 00:04:15 -0700 (PDT) Date: Thu, 23 Apr 2026 00:04:13 -0700 From: Charlie Jenkins To: Kees Cook Cc: Jonathan Corbet , Shuah Khan , linux-doc@vger.kernel.org, linux-mm@kvack.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH 0/2] Documentation/binfmt-misc.rst: Clarify "P" flag Message-ID: <20260423070413.GA156309@inky.localdomain> References: <20260419-binfmt_misc_doc_update_p-v1-0-757c12f33cc2@gmail.com> <202604211026.C462A59EC0@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 In-Reply-To: <202604211026.C462A59EC0@keescook> On Tue, Apr 21, 2026 at 10:29:07AM -0700, Kees Cook wrote: > On Sun, Apr 19, 2026 at 12:11:01AM -0400, Charlie Jenkins wrote: > > Improve the wording of the description of the "P" flag to explain that > > the interpreter gets the path to the file provided by execve and not the > > full path as well as documenting that AT_FLAGS can be read to see if the > > "P" flag is set. > > Thanks for the clarifications! I'll get this into the execve tree once > the merge window is over. (I usually wait for -rc2 to be released.) > (Or maybe this should go via linux-doc? I should add this file to the > EXEC entry in MAINTAINERS...) > > How did you happen across this mismatch(?weakness?) in the docs? I was writing an interpreter application that was using binfmt-misc and was using this documentation to do so. I was getting unexpected results so I read through the kernel code to figure out what was going on. - Charlie > > -Kees > > -- > Kees Cook