[Z/A/linux-oem][PATCH] Reading HDA capability register crashes the kernel

Hui Wang hui.wang at canonical.com
Mon Nov 6 05:34:35 UTC 2017


BugLink: http://bugs.launchpad.net/bugs/1730261

This patch is for Zesty, Artful and OEM kernel, since the OEM project is waiting for
this patch, we need to merge this patch to oem kernel ASAP(ahead of Artful kernel).

Xenial kernel doesn't read capability register in the HDA driver, we don't merge
this patch to Xenial kernel.

[Impact]
The kernel will crash on some machines when HDA driver initializes, this issue turn out
to be a firmware issue (capability register has wrong values), but we can imporve the
driver as this patch does to avoid crash the kernel.


[Test Case]
Applying the patch and boot the new kernel on those machines.

[Fix]
Abort reading the register when it meets a wrong value.

[Regression Potential]
No, it does not change any existing functions.


Takashi Iwai (1):
  ALSA: hda: Abort capability probe at invalid register read

 sound/hda/hdac_controller.c | 5 +++++
 1 file changed, 5 insertions(+)

-- 
2.7.4





More information about the kernel-team mailing list