No description
Find a file
Arnd Bergmann 72df12d11e lib/test_lockup: fix kernel pointer check for separate address spaces
[ Upstream commit 5a06fcb15b ]

test_kernel_ptr() uses access_ok() to figure out if a given address
points to user space instead of kernel space. However on architectures
that set CONFIG_ALTERNATE_USER_ADDRESS_SPACE, a pointer can be valid
for both, and the check always fails because access_ok() returns true.

Make the check for user space pointers conditional on the type of
address space layout.

Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2022-04-08 13:58:44 +02:00
arch uaccess: fix type mismatch warnings from access_ok() 2022-04-08 13:58:44 +02:00
block Revert "Revert "block, bfq: honor already-setup queue merges"" 2022-04-08 13:58:38 +02:00
certs
crypto crypto: xts - Add softdep on ecb 2022-04-08 13:58:36 +02:00
Documentation f2fs: don't get FREEZE lock in f2fs_evict_inode in frozen fs 2022-04-08 13:58:40 +02:00
drivers media: cx88-mpeg: clear interrupt status register before streaming video 2022-04-08 13:58:44 +02:00
fs ntfs: add sanity check on allocation size 2022-04-08 13:58:41 +02:00
include sched/tracing: Report TASK_RTLOCK_WAIT tasks as TASK_UNINTERRUPTIBLE 2022-04-08 13:58:39 +02:00
init
ipc
kernel locking/lockdep: Iterate lock_classes directly when reading lockdep files 2022-04-08 13:58:39 +02:00
lib lib/test_lockup: fix kernel pointer check for separate address spaces 2022-04-08 13:58:44 +02:00
LICENSES
mm
net net/sched: act_ct: fix ref leak when switching zones 2022-04-08 13:58:35 +02:00
samples samples/bpf, xdpsock: Fix race when running for fix duration of time 2022-04-08 13:58:18 +02:00
scripts atomics: Fix atomic64_{read_acquire,set_release} fallbacks 2022-04-08 13:58:39 +02:00
security Fix incorrect type in assignment of ipv6 port for audit 2022-04-08 13:58:37 +02:00
sound ASoC: rt5682s: Fix the wrong jack type detected 2022-04-08 13:58:44 +02:00
tools selftests: tls: skip cmsg_to_pipe tests with TLS=n 2022-04-08 13:58:34 +02:00
usr
virt
.clang-format
.cocciconfig
.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.