media: imx274: fix stack corruption in imx274_read_reg
Luca Ceresoli authored
commit cea8c007 upstream.

imx274_read_reg() takes a u8 pointer ("reg") and casts it to pass it
to regmap_read(), which takes an unsigned int pointer. This results in
a corrupted stack and random crashes.

Fixes: 0985dd30

 ("media: imx274: V4l2 driver for Sony imx274 CMOS sensor")

Cc: stable@vger.kernel.org # for 4.15 and up
Signed-off-by: default avatarLuca Ceresoli <luca@lucaceresoli.net>
Signed-off-by: default avatarSakari Ailus <sakari.ailus@linux.intel.com>
Signed-off-by: default avatarMauro Carvalho Chehab <mchehab+samsung@kernel.org>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
d70f7e42
Name Last commit Last update
Documentation x86/speculation/l1tf: Drop the swap storage limit restriction when l1tf=off
LICENSES Merge tag 'docs-4.20' of git://git.lwn.net/linux
arch powerpc/tm: Unset MSR[TS] if not recheckpointing
block block: Fix null_blk_zoned creation failure with small number of zones
certs export.h: remove VMLINUX_SYMBOL() and VMLINUX_SYMBOL_STR()
crypto crypto: cfb - fix decryption
drivers media: imx274: fix stack corruption in imx274_read_reg
firmware kbuild: remove all dummy assignments to obj-
fs f2fs: sanity check of xattr entry size
include media: cec: keep track of outstanding transmits
init psi: fix reference to kernel commandline enable
ipc ipc: IPCMNI limit check for semmni
kernel cgroup: fix CSS_TASK_ITER_PROCS
lib XArray: Fix xa_alloc when id exceeds max
mm mm, page_alloc: fix has_unmovable_pages for HugePages
net tipc: fix a double free in tipc_enable_bearer()
samples Merge tag 'vfio-v4.20-rc1.v2' of git://github.com/awilliam/linux-vfio
scripts Merge branch 'x86-urgent-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip
security KEYS: fix parsing invalid pkey info string
sound ASoC: intel: cht_bsw_max98090_ti: Add pmc_plt_clk_0 quirk for Chromebook Gnawty
tools perf env: Also consider env->arch == NULL as local operation
usr initramfs: move gen_initramfs_list.sh from scripts/ to usr/
virt KVM: fix unregistering coalesced mmio zone from wrong bus
.clang-format page cache: Convert find_get_pages_contig to XArray
.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.

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.