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: <f11c16d9-5b29-b0d8-c9bc-d6bdb49f00d1@kernel.org>
Date: Thu, 21 Aug 2025 20:32:59 +0300 (EEST)
From: Ilpo Järvinen <ij@...nel.org>
To: "Chia-Yu Chang (Nokia)" <chia-yu.chang@...ia-bell-labs.com>
cc: Eric Dumazet <edumazet@...gle.com>, 
    "pabeni@...hat.com" <pabeni@...hat.com>, 
    "linux-doc@...r.kernel.org" <linux-doc@...r.kernel.org>, 
    "corbet@....net" <corbet@....net>, "horms@...nel.org" <horms@...nel.org>, 
    "dsahern@...nel.org" <dsahern@...nel.org>, 
    "kuniyu@...zon.com" <kuniyu@...zon.com>, 
    "bpf@...r.kernel.org" <bpf@...r.kernel.org>, 
    "netdev@...r.kernel.org" <netdev@...r.kernel.org>, 
    "dave.taht@...il.com" <dave.taht@...il.com>, 
    "jhs@...atatu.com" <jhs@...atatu.com>, "kuba@...nel.org" <kuba@...nel.org>, 
    "stephen@...workplumber.org" <stephen@...workplumber.org>, 
    "xiyou.wangcong@...il.com" <xiyou.wangcong@...il.com>, 
    "jiri@...nulli.us" <jiri@...nulli.us>, 
    "davem@...emloft.net" <davem@...emloft.net>, 
    "andrew+netdev@...n.ch" <andrew+netdev@...n.ch>, 
    "donald.hunter@...il.com" <donald.hunter@...il.com>, 
    "ast@...erby.net" <ast@...erby.net>, 
    "liuhangbin@...il.com" <liuhangbin@...il.com>, 
    "shuah@...nel.org" <shuah@...nel.org>, 
    "linux-kselftest@...r.kernel.org" <linux-kselftest@...r.kernel.org>, 
    "ncardwell@...gle.com" <ncardwell@...gle.com>, 
    "Koen De Schepper (Nokia)" <koen.de_schepper@...ia-bell-labs.com>, 
    "g.white@...lelabs.com" <g.white@...lelabs.com>, 
    "ingemar.s.johansson@...csson.com" <ingemar.s.johansson@...csson.com>, 
    "mirja.kuehlewind@...csson.com" <mirja.kuehlewind@...csson.com>, 
    "cheshire@...le.com" <cheshire@...le.com>, 
    "rs.ietf@....at" <rs.ietf@....at>, 
    "Jason_Livingood@...cast.com" <Jason_Livingood@...cast.com>, 
    "vidhi_goel@...le.com" <vidhi_goel@...le.com>
Subject: RE: [PATCH v15 net-next 10/14] tcp: accecn: AccECN option

On Thu, 21 Aug 2025, Chia-Yu Chang (Nokia) wrote:

> > -----Original Message-----
> > From: Eric Dumazet <edumazet@...gle.com> 
> > Sent: Thursday, August 21, 2025 2:30 PM
> > To: Chia-Yu Chang (Nokia) <chia-yu.chang@...ia-bell-labs.com>
> > Cc: pabeni@...hat.com; linux-doc@...r.kernel.org; corbet@....net; horms@...nel.org; dsahern@...nel.org; kuniyu@...zon.com; bpf@...r.kernel.org; netdev@...r.kernel.org; dave.taht@...il.com; jhs@...atatu.com; kuba@...nel.org; stephen@...workplumber.org; xiyou.wangcong@...il.com; jiri@...nulli.us; davem@...emloft.net; andrew+netdev@...n.ch; donald.hunter@...il.com; ast@...erby.net; liuhangbin@...il.com; shuah@...nel.org; linux-kselftest@...r.kernel.org; ij@...nel.org; ncardwell@...gle.com; Koen De Schepper (Nokia) <koen.de_schepper@...ia-bell-labs.com>; g.white@...lelabs.com; ingemar.s.johansson@...csson.com; mirja.kuehlewind@...csson.com; cheshire@...le.com; rs.ietf@....at; Jason_Livingood@...cast.com; vidhi_goel@...le.com
> > Subject: Re: [PATCH v15 net-next 10/14] tcp: accecn: AccECN option
> > 
> > 
> > CAUTION: This is an external email. Please be very careful when clicking links or opening attachments. See the URL nok.it/ext for additional information.
> > 
> > 
> > 
> > On Fri, Aug 15, 2025 at 1:40 AM <chia-yu.chang@...ia-bell-labs.com> wrote:
> [...]
> > >  /* Used for make_synack to form the ACE flags */ diff --git 
> > > a/include/uapi/linux/tcp.h b/include/uapi/linux/tcp.h index 
> > > bdac8c42fa82..53e0e85b52be 100644
> > > --- a/include/uapi/linux/tcp.h
> > > +++ b/include/uapi/linux/tcp.h
> > > @@ -316,6 +316,13 @@ struct tcp_info {
> > >                                          * in milliseconds, including any
> > >                                          * unfinished recovery.
> > >                                          */
> > > +       __u32   tcpi_received_ce;    /* # of CE marks received */
> > > +       __u32   tcpi_delivered_e1_bytes;  /* Accurate ECN byte counters */
> > > +       __u32   tcpi_delivered_e0_bytes;
> > > +       __u32   tcpi_delivered_ce_bytes;
> > > +       __u32   tcpi_received_e1_bytes;
> > > +       __u32   tcpi_received_e0_bytes;
> > > +       __u32   tcpi_received_ce_bytes;
> > >  };
> > >
> > 
> > We do not add more fields to tcp_info, unless added fields are a multiple of 64 bits.
> > 
> > Otherwise a hole is added and can not be recovered.
> 
> Hi Eric,
> 
> Thanks for the feedback.
> 
> Then, would it make sense to add __u32 reserved; here or this is not an 
> option?

Wouldn't it also make sense to change the byte counters to __u64?

(It won't help the alignment though if the CE counter is left __u32.)

-- 
 i.

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ