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] [day] [month] [year] [list]
Date: Thu, 29 Feb 2024 15:03:45 +0100
From: Petr Machata <petrm@...dia.com>
To: Jakub Kicinski <kuba@...nel.org>
CC: Petr Machata <petrm@...dia.com>, "David S. Miller" <davem@...emloft.net>,
	Eric Dumazet <edumazet@...gle.com>, Paolo Abeni <pabeni@...hat.com>,
	<netdev@...r.kernel.org>, Ido Schimmel <idosch@...dia.com>, David Ahern
	<dsahern@...nel.org>, <mlxsw@...dia.com>
Subject: Re: [PATCH net-next 2/7] net: nexthop: Add NHA_OP_FLAGS


Jakub Kicinski <kuba@...nel.org> writes:

> On Wed, 28 Feb 2024 16:58:24 +0100 Petr Machata wrote:
>> Um, so as I said, I mostly figured let's use bitfield because of the
>> validation. I really like how it's all part of the policy and there's no
>> explicit checking code. So I'd keep it as it is.
>
> FWIW the same validation is possible for bare unsigned types with
> NLA_POLICY_MASK().

Awesome, that's what I need.

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ