lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <2ab879f1-2938-4ece-a6b2-be34e4ad4c5d@app.fastmail.com>
Date: Mon, 07 Oct 2024 07:54:35 -0700
From: "Josh Triplett" <josh@...htriplett.org>
To: brauner@...nel.org
Cc: jlayton@...nel.org, josef@...icpanda.com, linux-fsdevel@...r.kernel.org,
 linux-kernel@...r.kernel.org, luca.boccassi@...il.com, oleg@...hat.com,
 paul@...l-moore.com
Subject: Re: [PATCH] pidfd: add ioctl to retrieve pid info

Christian Brauner wrote:
> struct pidfd_info {
>	/* Let userspace request expensive stuff explictly. */
>	__u64 request_mask;
>	/* And let the kernel indicate whether it knows about it. */
>	__u64 result_mask;

I don't think it's necessary to have these two fields separate. The kernel should write to the same mask field userspace used.

In theory there could be an operation to probe for *everything* the kernel understands, but in practice with a binary structure there's little point finding out about flags you don't know the corresponding structure bits for.

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ