RE: [PATCH] Remove hardcoded static string length

From: David Laight
Date: Thu May 25 2023 - 11:04:43 EST


From: Kenny Ho
> Sent: 25 May 2023 15:28
> To: David Laight <David.Laight@xxxxxxxxxx>
> Cc: Andrew Lunn <andrew@xxxxxxx>; Marc Dionne <marc.dionne@xxxxxxxxxxxx>; Kenny Ho <Kenny.Ho@xxxxxxx>;
> David Howells <dhowells@xxxxxxxxxx>; David S. Miller <davem@xxxxxxxxxxxxx>; Eric Dumazet
> <edumazet@xxxxxxxxxx>; Jakub Kicinski <kuba@xxxxxxxxxx>; Paolo Abeni <pabeni@xxxxxxxxxx>; linux-
> afs@xxxxxxxxxxxxxxxxxxx; netdev@xxxxxxxxxxxxxxx; linux-kernel@xxxxxxxxxxxxxxx
> Subject: Re: [PATCH] Remove hardcoded static string length
>
> On Thu, May 25, 2023 at 5:14 AM David Laight <David.Laight@xxxxxxxxxx> wrote:
> >
> > I does rather beg the question as what is in UTS_RELEASE when
> > it exceeds (IIRC) about 48 characters?
>
> Thanks for the question as it made me dig deeper. UTS_RELEASE is
> actually capped at 64:
...

But isn't UTS_RELEASE usually much shorter?
I think it is what 'uname -r' prints, the longest I've seen recently
is "3.10.0-1127.19.1.el7.x86_64" - well under the limit.

...
>
> "The standard formulation seems to be: <project> <version> built
> <yyyy>-<mm>-<dd>"

Which I don't recall the string actually matching?
Also the people who like reproducible builds don't like __DATE__.

David

-
Registered Address Lakeside, Bramley Road, Mount Farm, Milton Keynes, MK1 1PT, UK
Registration No: 1397386 (Wales)