drm/amd/dc/dce120: Fix audio register mapping, stop triggering KASAN
Lyude Paul authored
commit 44035ec2

 upstream.

There's been a very long running bug that seems to have been neglected for
a while, where amdgpu consistently triggers a KASAN error at start:

  BUG: KASAN: global-out-of-bounds in read_indirect_azalia_reg+0x1d4/0x2a0 [amdgpu]
  Read of size 4 at addr ffffffffc2274b28 by task modprobe/1889

After digging through amd's rather creative method for accessing registers,
I eventually discovered the problem likely has to do with the fact that on
my dce120 GPU there are supposedly 7 sets of audio registers. But we only
define a register mapping for 6 sets.

So, fix this and fix the KASAN warning finally.
Signed-off-by: default avatarLyude Paul <lyude@redhat.com>
Cc: stable@vger.kernel.org
Reviewed-by: default avatarAlex Deucher <alexander.deucher@amd.com>
Signed-off-by: default avatarAlex Deucher <alexander.deucher@amd.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
d0075f49
Name Last commit Last update
Documentation docs: update mediator contact information in CoC doc
LICENSES LICENSES: Remove CC-BY-SA-4.0 license text
arch nios2: add FORCE for vmlinuz.gz
block block: sed-opal: kmalloc the cmd/resp buffers
certs certs/blacklist_hashes.c: fix const confusion in certs blacklist
crypto crypto: drbg - make reseeding from get_random_bytes() synchronous
drivers drm/amd/dc/dce120: Fix audio register mapping, stop triggering KASAN
firmware Fix built-in early-load Intel microcode alignment
fs btrfs: free btrfs_path before copying subvol info to userspace
include audit: fix undefined behavior in bit shift for AUDIT_BIT
init random: handle latent entropy and command line from random_init()
ipc shm: extend forced shm destroy to support objects from several IPC nses
kernel ring_buffer: Do not deactivate non-existant pages
lib dyndbg: let query-modname override actual module name
mm mm: fs: initialize fsdata passed to write_begin/write_end interface
net tcp: configurable source port perturb table size
samples samples/kretprobes: Fix return value if register_kretprobe() failed
scripts cert host tools: Stop complaining about deprecated OpenSSL functions
security capabilities: fix potential memleak on error path from vfs_getxattr_alloc()
sound ASoC: sgtl5000: Reset the CHIP_CLK_CTRL reg on remove
tools selftests/intel_pstate: fix build for ARCH=x86_64
usr initramfs: restore default compression behavior
virt KVM: arm64: vgic: Fix exit condition in scan_its_table()
.clang-format clang-format: Set IndentWrappedFunctionNames false
.cocciconfig scripts: add Linux .cocciconfig for coccinelle
.get_maintainer.ignore
.gitattributes
.gitignore
.mailmap
COPYING
CREDITS
Kbuild
Kconfig
MAINTAINERS
Makefile
README
Linux kernel
============

There are several guides for kernel developers and users. These guides can
be rendered in a number of formats, like HTML and PDF. Please read
Documentation/admin-guide/README.rst first.

In order to build the documentation, use ``make htmldocs`` or
``make pdfdocs``.  The formatted documentation can also be read online at:

    https://www.kernel.org/doc/html/latest/

There are various text files in the Documentation/ subdirectory,
several of them using the Restructured Text markup notation.
See Documentation/00-INDEX for a list of what is contained in each file.

Please read the Documentation/process/changes.rst file, as it contains the
requirements for building and running the kernel, and information about
the problems which may result by upgrading your kernel.