diff options
author | Takashi Iwai <[email protected]> | 2021-04-02 10:23:17 +0200 |
---|---|---|
committer | Rodrigo Vivi <[email protected]> | 2021-04-07 19:07:44 -0400 |
commit | b6a37a93c9ac3900987c79b726d0bb3699d8db4e (patch) | |
tree | 6d60bd59478bb8d48d5313dd3a16902b373e3d8a /net/ipv4/tcp_output.c | |
parent | e49d033bddf5b565044e2abe4241353959bc9120 (diff) |
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: <[email protected]>
Signed-off-by: Takashi Iwai <[email protected]>
Signed-off-by: Ville Syrjälä <[email protected]>
Link: https://patchwork.freedesktop.org/patch/msgid/[email protected]
(cherry picked from commit 337d7a1621c7f02af867229990ac67c97da1b53a)
Signed-off-by: Rodrigo Vivi <[email protected]>
Diffstat (limited to 'net/ipv4/tcp_output.c')
0 files changed, 0 insertions, 0 deletions