Linux image 5.19 cuts off the build date

Bug #2008084 reported by Kian Parvin
14
This bug affects 3 people
Affects Status Importance Assigned to Milestone
linux (Ubuntu)
Confirmed
Undecided
Unassigned

Bug Description

Hi,

The output of uname -a is failing to show the full build date on Jammy 22.04.2 with kernel 5.19 as the string is too long. I believe there is some size limit that is being overrun when building the kernel.

lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 22.04.2 LTS
Release: 22.04
Codename: jammy

uname -v
#33~22.04.1-Ubuntu SMP PREEMPT_DYNAMIC Mon Jan 30 17:03:34 UTC 2

uname -a
Linux kianp 5.19.0-32-generic #33~22.04.1-Ubuntu SMP PREEMPT_DYNAMIC Mon Jan 30 17:03:34 UTC 2 x86_64 x86_64 x86_64 GNU/Linux

cat /proc/version
Linux version 5.19.0-32-generic (buildd@lcy02-amd64-026) (x86_64-linux-gnu-gcc (Ubuntu 11.3.0-1ubuntu1~22.04) 11.3.0, GNU ld (GNU Binutils for Ubuntu) 2.38) #33~22.04.1-Ubuntu SMP PREEMPT_DYNAMIC Mon Jan 30 17:03:34 UTC 2

cat /proc/version_signature
Ubuntu 5.19.0-32.33~22.04.1-generic 5.19.17

See above, the build date is missing the year (2023). On an older kernel the output of uname -v is much shorter which leads me to believe some buffer size limit is being hit.

(Older Kernel):
uname -v
#66-Ubuntu SMP Fri Jan 20 14:29:49 UTC 2023

Revision history for this message
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in linux (Ubuntu):
status: New → Confirmed
Revision history for this message
Andy Whitcroft (apw) wrote :

Yes the version there in /proc/version is from uname -v. The version field in utsname is 64 characters fixed width. This leads to truncation with the longer version on the backport and the very long flags.

Revision history for this message
Dimitri John Ledkov (xnox) wrote :

imho i find it weird that PREEMPT_DYNAMIC got added and printed by default in that place on all kernels.

imho PREEMPT_DYNAMIC shouldn't be in the -v output.

is this something we can raise upstream?

Revision history for this message
Dimitri John Ledkov (xnox) wrote :

ah, but that will not fix -a output either, so i guess sort of moot.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.