summaryrefslogtreecommitdiff
path: root/drivers/usb/image
diff options
context:
space:
mode:
authorTakashi Iwai <tiwai@suse.de>2021-04-02 11:23:17 +0300
committerVille Syrjälä <ville.syrjala@linux.intel.com>2021-04-08 00:00:24 +0300
commit337d7a1621c7f02af867229990ac67c97da1b53a (patch)
tree9fa5f0fa385c3956728b0a5f666a35b4c2dee5aa /drivers/usb/image
parent11cda4967a33003dc19e90f5df3470031a864d8d (diff)
downloadlinux-337d7a1621c7f02af867229990ac67c97da1b53a.tar.xz
drm/i915: Fix invalid access to ACPI _DSM objects
intel_dsm_platform_mux_info() tries to parse the ACPI package data from _DSM for the debug information, but it assumes the fixed format without checking what values are stored in the elements actually. When an unexpected value is returned from BIOS, it may lead to GPF or NULL dereference, as reported recently. Add the checks of the contents in the returned values and skip the values for invalid cases. v1->v2: Check the info contents before dereferencing, too BugLink: http://bugzilla.opensuse.org/show_bug.cgi?id=1184074 Cc: <stable@vger.kernel.org> Signed-off-by: Takashi Iwai <tiwai@suse.de> Signed-off-by: Ville Syrjälä <ville.syrjala@linux.intel.com> Link: https://patchwork.freedesktop.org/patch/msgid/20210402082317.871-1-tiwai@suse.de
Diffstat (limited to 'drivers/usb/image')
0 files changed, 0 insertions, 0 deletions