Catalin Marinas
95236ae76b
mm: Avoid creating virtual address aliases in brk()/mmap()/mremap()
...
commit dcde237319e626d1ec3c9d8b7613032f0fd4663a upstream.
Currently the arm64 kernel ignores the top address byte passed to brk(),
mmap() and mremap(). When the user is not aware of the 56-bit address
limit or relies on the kernel to return an error, untagging such
pointers has the potential to create address aliases in user-space.
Passing a tagged address to munmap(), madvise() is permitted since the
tagged pointer is expected to be inside an existing mapping.
The current behaviour breaks the existing glibc malloc() implementation
which relies on brk() with an address beyond 56-bit to be rejected by
the kernel.
Remove untagging in the above functions by partially reverting commit
ce18d171cb ("mm: untag user pointers in mmap/munmap/mremap/brk"). In
addition, update the arm64 tagged-address-abi.rst document accordingly.
Link: https://bugzilla.redhat.com/1797052
Fixes: ce18d171cb ("mm: untag user pointers in mmap/munmap/mremap/brk")
Cc: <[email protected] > # 5.4.x-
Cc: Florian Weimer <[email protected] >
Reviewed-by: Andrew Morton <[email protected] >
Reported-by: Victor Stinner <[email protected] >
Acked-by: Will Deacon <[email protected] >
Acked-by: Andrey Konovalov <[email protected] >
Signed-off-by: Catalin Marinas <[email protected] >
Signed-off-by: Will Deacon <[email protected] >
Signed-off-by: Greg Kroah-Hartman <[email protected] >
2020-02-28 17:22:21 +01:00
..
ABI
PM / devfreq: Add new name attribute for sysfs
2020-02-05 21:22:40 +00:00
accounting
admin-guide
dm: add dm-clone to the documentation index
2020-01-17 19:48:45 +01:00
arm
Documentation/arm/samsung-s3c24xx: Remove stray U+FEFF character to fix title
2019-08-12 15:25:32 -06:00
arm64
mm: Avoid creating virtual address aliases in brk()/mmap()/mremap()
2020-02-28 17:22:21 +01:00
block
docs: block: null_blk: enhance document style
2019-09-11 16:04:22 -06:00
bpf
cdrom
core-api
Modules fixes for v5.4-rc3
2019-10-11 10:19:24 -07:00
cpu-freq
Documentation: cpufreq: Update policy notifier documentation
2019-09-02 22:44:05 +02:00
crypto
Merge branch 'linus' of git://git.kernel.org/pub/scm/linux/kernel/git/herbert/crypto-2.6
2019-09-18 12:11:14 -07:00
dev-tools
mm, page_owner: decouple freeing stack trace from debug_pagealloc
2019-10-14 15:04:00 -07:00
devicetree
dt-bindings: iio: adc: ad7606: Fix wrong maxItems value
2020-02-14 16:34:19 -05:00
doc-guide
driver-api
This is the bulk of pin control changes for the v5.4 kernel
2019-09-19 14:19:33 -07:00
EDID
fault-injection
fb
fbdev: fix numbering of fbcon options
2020-02-24 08:36:42 +01:00
features
It's a somewhat calmer cycle for docs this time, as the churn of the mass
2019-09-17 16:22:26 -07:00
filesystems
add virtio-fs
2019-09-27 15:54:24 -07:00
firmware-guide
Documentation: ACPI: DSD: Convert LED documentation to ReST
2019-08-20 23:53:46 +02:00
firmware_class
fpga
Documentation: fpga: dfl: add descriptions for virtualization and new interfaces.
2019-09-03 19:35:42 -07:00
gpu
Merge drm/drm-next into drm-intel-next-queued
2019-08-22 00:10:36 -07:00
hid
hwmon
hwmon: docs: Extend inspur-ipsps1 title underline
2019-10-07 05:56:57 -07:00
i2c
docs: i2c: convert to ReST and add to driver-api bookset
2019-07-31 13:25:27 -06:00
ia64
ide
iio
infiniband
Documentation/infiniband: update name of some functions
2019-09-13 16:55:55 -03:00
input
Input: docs: fix spelling mistake "potocol" -> "protocol"
2019-08-06 11:24:49 -06:00
ioctl
fs-verity: add UAPI header
2019-07-28 16:59:16 -07:00
isdn
docs: isdn: convert to ReST and add to kAPI bookset
2019-07-31 13:30:25 -06:00
kbuild
Modules fixes for v5.4-rc3
2019-10-11 10:19:24 -07:00
kernel-hacking
docs: Add documentation for Symbol Namespaces
2019-09-10 10:30:49 +02:00
leds
livepatch
locking
doc 🔒 remove reference to clever use of read-write lock
2019-09-14 01:53:27 -06:00
m68k
docs: README.buddha: convert to ReST and add to m68k book
2019-07-31 13:30:10 -06:00
maintainer
docs: Fix typo on pull requests guide
2019-08-12 15:14:14 -06:00
media
drm main pull for 5.4-rc1
2019-09-19 16:24:24 -07:00
mic
mips
Main MIPS changes for v5.4:
2019-09-22 09:30:30 -07:00
misc-devices
Docs: misc: xilinx_sdfec: Add documentation
2019-08-15 17:54:38 +02:00
netlabel
networking
can: j1939: fix address claim code example
2020-01-17 19:48:28 +01:00
nios2
docs: nios2: add it to the main Documentation body
2019-07-31 13:31:51 -06:00
openrisc
docs: openrisc: convert to ReST and add to documentation body
2019-07-31 13:30:20 -06:00
parisc
docs: parisc: convert to ReST and add to documentation body
2019-07-31 13:30:15 -06:00
PCI
Merge git://git.kernel.org/pub/scm/linux/kernel/git/netdev/net
2019-08-27 14:23:31 -07:00
pcmcia
power
Merge branches 'pm-opp', 'pm-qos', 'acpi-pm', 'pm-domains' and 'pm-tools'
2019-09-17 09:49:19 +02:00
powerpc
docs: powerpc: Add missing documentation reference
2019-09-17 23:59:34 +10:00
process
Documentation/process: Add fallthrough pseudo-keyword
2019-10-11 09:26:05 -07:00
RCU
Merge branches 'consolidate.2019.08.01b', 'fixes.2019.08.12a', 'lists.2019.08.13a' and 'torture.2019.08.01b' into HEAD
2019-08-13 14:30:30 -07:00
riscv
It's a somewhat calmer cycle for docs this time, as the churn of the mass
2019-09-17 16:22:26 -07:00
s390
Documentation/s390: remove outdated debugging390 documentation
2019-08-21 12:41:43 +02:00
scheduler
sched/fair: Fix low cpu usage with high throttling by removing expiration of cpu-local slices
2019-08-08 09:09:30 +02:00
scsi
scsi: smartpqi: Update attribute name to driver_version
2020-01-17 19:48:27 +01:00
security
Merge branch 'next-integrity' of git://git.kernel.org/pub/scm/linux/kernel/git/zohar/linux-integrity
2019-09-27 19:37:27 -07:00
sh
sound
sound updates for 5.4
2019-09-17 17:43:33 -07:00
sparc
sphinx
Documentation: sphinx: Don't parse socket() as identifier reference
2019-08-12 14:55:30 -06:00
sphinx-static
spi
spi: docs: convert to ReST and add it to the kABI bookset
2019-07-31 14:13:13 -06:00
target
timers
trace
Tracing updates:
2019-09-20 11:19:48 -07:00
translations
doc: arm64: fix grammar dtb placed in no attributes region
2019-09-06 08:44:34 -06:00
usb
USB: rio500: Remove Rio 500 kernel driver
2019-10-04 10:53:36 +02:00
userspace-api
virt
KVM/Hyper-V: Add new KVM capability KVM_CAP_HYPERV_DIRECT_TLBFLUSH
2019-09-24 13:37:13 +02:00
virtual
cpuidle: add haltpoll governor
2019-07-30 17:27:37 +02:00
vm
mm: treewide: clarify pgtable_page_{ctor,dtor}() naming
2019-09-26 10:10:44 -07:00
w1
docs: w1: convert to ReST and add to the kAPI group of docs
2019-07-31 14:16:17 -06:00
watchdog
linux-watchdog 5.4-rc1 tag
2019-09-27 11:17:38 -07:00
x86
x86/speculation/taa: Add documentation for TSX Async Abort
2019-10-28 08:37:00 +01:00
xtensa
.gitignore
atomic_bitops.txt
atomic_t.txt
bus-virt-phys-mapping.txt
Changes
CodingStyle
conf.py
COPYING-logo
crc32.txt
debugging-modules.txt
debugging-via-ohci1394.txt
digsig.txt
DMA-API-HOWTO.txt
DMA-API.txt
dma-mapping: remove dma_release_declared_memory
2019-09-04 11:13:19 +02:00
DMA-attributes.txt
DMA-ISA-LPC.txt
docutils.conf
dontdiff
futex-requeue-pi.txt
hwspinlock.txt
index.rst
Main MIPS changes for v5.4:
2019-09-22 09:30:30 -07:00
io-mapping.txt
io_ordering.txt
IPMI.txt
IRQ-affinity.txt
IRQ-domain.txt
IRQ.txt
irqflags-tracing.txt
Kconfig
kobject.txt
kprobes.txt
kref.txt
logo.gif
lzo.txt
mailbox.txt
Makefile
memory-barriers.txt
nommu-mmap.txt
padata.txt
padata: allocate workqueue internally
2019-09-13 21:15:39 +10:00
percpu-rw-semaphore.txt
pi-futex.txt
preempt-locking.txt
rbtree.txt
remoteproc.txt
robust-futex-ABI.txt
robust-futexes.txt
rpmsg.txt
speculation.txt
static-keys.txt
SubmittingPatches
tee.txt
this_cpu_ops.txt
unaligned-memory-access.txt
xz.txt