iio: adc: xilinx: fix potential use-after-free on remove
Sven Van Asbroeck authored
[ Upstream commit 62039b6a

 ]

When cancel_delayed_work() returns, the delayed work may still
be running. This means that the core could potentially free
the private structure (struct xadc) while the delayed work
is still using it. This is a potential use-after-free.

Fix by calling cancel_delayed_work_sync(), which waits for
any residual work to finish before returning.
Signed-off-by: default avatarSven Van Asbroeck <TheSven73@gmail.com>
Signed-off-by: default avatarJonathan Cameron <Jonathan.Cameron@huawei.com>
Signed-off-by: default avatarSasha Levin <sashal@kernel.org>
46ddbd4e
Name Last commit Last update
Documentation x86/speculation/mds: Fix documentation typo
arch x86/speculation/mds: Add 'mitigations=' support for MDS
block block: do not leak memory in bio_copy_user_iov()
certs Replace magic for trusting the secondary keyring with #define
crypto crypto: x86/poly1305 - fix overflow during partial reduction
drivers iio: adc: xilinx: fix potential use-after-free on remove
firmware License cleanup: add SPDX GPL-2.0 license identifier to files with no license
fs kernfs: fix barrier usage in __kernfs_new_node()
include cpu/speculation: Add 'mitigations=' cmdline option
init Revert "mm: use early_pfn_to_nid in page_ext_init"
ipc ipc/sem.c: prevent queue.status tearing in semop
kernel cpu/speculation: Add 'mitigations=' cmdline option
lib ubsan: Fix nasty -Wbuiltin-declaration-mismatch GCC-9 warnings
mm slab: fix a crash by reading /proc/slab_allocators
net netfilter: compat: initialize all fields in xt_init
samples samples: mei: use /dev/mei0 instead of /dev/mei
scripts kconfig/[mn]conf: handle backspace (^H) key
security selinux: never allow relabeling on context mounts
sound ASoC: Intel: avoid Oops if DMA setup fails
tools x86/msr-index: Cleanup bit defines
usr initramfs: fix initramfs rebuilds w/ compression after disabling
virt KVM: arm/arm64: vgic-its: Take the srcu lock when parsing the memslots
.cocciconfig scripts: add Linux .cocciconfig for coccinelle
.get_maintainer.ignore Add hch to .get_maintainer.ignore
.gitattributes .gitattributes: set git diff driver for C source code files
.gitignore kbuild: rpm-pkg: keep spec file until make mrproper
.mailmap .mailmap: Add Maciej W. Rozycki's Imagination e-mail address
COPYING [PATCH] update FSF address in COPYING
CREDITS MAINTAINERS: update TPM driver infrastructure changes
Kbuild License cleanup: add SPDX GPL-2.0 license identifier to files with no license
Kconfig License cleanup: add SPDX GPL-2.0 license identifier to files with no license
MAINTAINERS MAINTAINERS: Add Sasha as a stable branch maintainer
Makefile Linux 4.14.119
README README: add a new README file, pointing to the Documentation/
Linux kernel
============

This file was moved to Documentation/admin-guide/README.rst

Please notice that there are several guides for kernel developers and users.
These guides can be rendered in a number of formats, like HTML and PDF.

In order to build the documentation, use ``make htmldocs`` or
``make pdfdocs``.

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.