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: <2641256.1751992436@warthog.procyon.org.uk>
Date: Tue, 08 Jul 2025 17:33:56 +0100
From: David Howells <dhowells@...hat.com>
To: Xin Long <lucien.xin@...il.com>
Cc: dhowells@...hat.com, network dev <netdev@...r.kernel.org>,
    davem@...emloft.net, kuba@...nel.org,
    Eric Dumazet <edumazet@...gle.com>, Paolo Abeni <pabeni@...hat.com>,
    Simon Horman <horms@...nel.org>, Stefan Metzmacher <metze@...ba.org>,
    Moritz Buhl <mbuhl@...nbsd.org>, Tyler Fanelli <tfanelli@...hat.com>,
    Pengtao He <hepengtao@...omi.com>, linux-cifs@...r.kernel.org,
    Steve French <smfrench@...il.com>,
    Namjae Jeon <linkinjeon@...nel.org>,
    Paulo Alcantara <pc@...guebit.com>, Tom Talpey <tom@...pey.com>,
    kernel-tls-handshake@...ts.linux.dev,
    Chuck Lever <chuck.lever@...cle.com>,
    Jeff Layton <jlayton@...nel.org>,
    Benjamin Coddington <bcodding@...hat.com>,
    Steve Dickson <steved@...hat.com>, Hannes Reinecke <hare@...e.de>,
    Alexander Aring <aahringo@...hat.com>,
    Cong Wang <xiyou.wangcong@...il.com>,
    "D . Wythe" <alibuda@...ux.alibaba.com>,
    Jason Baron <jbaron@...mai.com>, illiliti <illiliti@...tonmail.com>,
    Sabrina Dubroca <sd@...asysnail.net>,
    Marcelo Ricardo Leitner <marcelo.leitner@...il.com>,
    Daniel Stenberg <daniel@...x.se>,
    Andy Gospodarek <andrew.gospodarek@...adcom.com>
Subject: Re: [PATCH net-next 05/15] quic: provide quic.h header files for kernel and userspace

Xin Long <lucien.xin@...il.com> wrote:

> +#ifndef __uapi_quic_h__
> +#define __uapi_quic_h__

I think capital letters are preferred for system headers, e.g.:
_UAPI_LINUX_QUIC_H.

> +enum quic_crypto_level {
> +	QUIC_CRYPTO_APP,
> +	QUIC_CRYPTO_INITIAL,
> +	QUIC_CRYPTO_HANDSHAKE,
> +	QUIC_CRYPTO_EARLY,
> +	QUIC_CRYPTO_MAX,
> +};

I would recommend that you assign explicit values to enums in uapi headers to
avoid accidental changes if someone tries inserting in the middle of the list.

> +struct quic_transport_param {
> +	uint8_t		remote;
> +	uint8_t		disable_active_migration;
> +	uint8_t		grease_quic_bit;

I believe use of __u8, __u16, __s32 and similar is preferred to uint8_t,
uint16_t, int32_t, etc. in UAPI headers.

> +enum {
> +	QUIC_TRANSPORT_ERROR_NONE,
> +	QUIC_TRANSPORT_ERROR_INTERNAL,
> +	QUIC_TRANSPORT_ERROR_CONNECTION_REFUSED,

Again, recommend assigning actual values.

David


Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ