Raspberry Pi libs check fails kernel version
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
hobbit-plugins (Ubuntu) |
Fix Released
|
Undecided
|
Unassigned |
Bug Description
The standard libs check when running on Raspberry Pi (this seems to work on amd64) fails the kernel version check for two reasons. The first is known (permissions on the image file), but the second seems to be a difference in the way the kernel test results are provided.
Specifically, based on my looking at the perl code, I think this is the command run to collect the information:
strings vmlinuz-
Linux version 5.8.0-1007-raspi (buildd@
5.8.0-1007-raspi SMP preempt mod_unload aarch64
5.8.0-1007-raspi
5.8.0-1007-raspi
The problem seems to be on the first line, where after the expected version string, is an extra " (Ubuntu 5.8.0-1007.10-raspi 5.8.14)" text.
Editing the libs file as follows seems to solve the problem for me:
--- libs 2020-11-19 02:07:12.716041097 +0000
+++ libs.local 2020-11-19 02:05:20.625963787 +0000
@@ -104,7 +104,7 @@
}
} else {
- if ($kernel_
+ if ($kernel_
Alternatively, adding .* before the $ would also resolve this issue. I'm not sure how to collect and repeat the other version information to resolve this, nor how this might affect other platforms, so the above seems to be the simplest solution (to just ignore any extraneous text) that should work on any platform that it worked on before.
Regards,
Adam
CVE References
Changed in hobbit-plugins (Ubuntu): | |
status: | New → Fix Committed |
The attachment "Fix libs check for kernel version" seems to be a patch. If it isn't, please remove the "patch" flag from the attachment, remove the "patch" tag, and if you are a member of the ~ubuntu-reviewers, unsubscribe the team.
[This is an automated message performed by a Launchpad user owned by ~brian-murray, for any issues please contact him.]