[SRU] [Bionic] [PATCH 0/1] Fix unbootable kernel inside VMs
Kai-Heng Feng
kai.heng.feng at canonical.com
Tue Jul 9 11:11:33 UTC 2019
BugLink: https://bugs.launchpad.net/bugs/1829378
[Impact]
NULL pointer dereference in acpi_quirk_matches_bios_ids() renders kernel
unbootable.
[Fix]
It's a regression caused by commit abd273f52766 ("UBUNTU: SAUCE: ACPI /
bus: Add some Lenovo laptops in list of acpi table term list").
When both bios_vendor and bios_ver are NULL then a NULL string is passed
to strncmp() and the issue occurs.
VMs may not provides string bios_vendor or bios_ver, so bail out early
when either bios_vendor or bios_ver is NULL.
[Test]
User reported the test kernel with proposed fix solves the issue.
[Regression Potenial]
Low. It's quite trivial so I don't think it'll regress anything.
Kai-Heng Feng (1):
UBUNTU: SAUCE: ACPI / bus: Fix NULL pointer dereference in
acpi_quirk_matches_bios_ids()
drivers/acpi/bus.c | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)
--
2.17.1
More information about the kernel-team
mailing list