Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit ed92aa52 authored by Catalin Marinas's avatar Catalin Marinas Committed by Lee Jones
Browse files

UPSTREAM: arm64: doc: Add brk/mmap/mremap() to the Tagged Address ABI Exceptions



Prior to commit dcde237319e6 ("mm: Avoid creating virtual address
aliases in brk()/mmap()/mremap()"), the kernel allowed tagged addresses
to be passed to the brk/mmap/mremap() syscalls. This relaxation was
tightened in 5.6 (backported to stable 5.4) but the
tagged-address-abi.rst document was only partially updated.

Bug: 254441685
Signed-off-by: default avatarCatalin Marinas <catalin.marinas@arm.com>
Fixes: dcde237319e6 ("mm: Avoid creating virtual address aliases in brk()/mmap()/mremap()")
Reported-by: default avatarPeter Maydell <peter.maydell@linaro.org>
Cc: Will Deacon <will@kernel.org>
Cc: Vincenzo Frascino <vincenzo.frascino@arm.com>
Link: https://lore.kernel.org/r/20210423175134.14838-1-catalin.marinas@arm.com


Signed-off-by: default avatarCatalin Marinas <catalin.marinas@arm.com>
(cherry picked from commit 75516c75a72b5629736c611cf45058d95978a9f2)
Signed-off-by: default avatarLee Jones <joneslee@google.com>
Change-Id: I3cb5b63764bd094cfa0f0d3db5b2505be03daa3a
parent 6c8422df
Loading
Loading
Loading
Loading
+6 −0
Original line number Diff line number Diff line
@@ -113,6 +113,12 @@ ABI relaxation:

- ``shmat()`` and ``shmdt()``.

- ``brk()`` (since kernel v5.6).

- ``mmap()`` (since kernel v5.6).

- ``mremap()``, the ``new_address`` argument (since kernel v5.6).

Any attempt to use non-zero tagged pointers may result in an error code
being returned, a (fatal) signal being raised, or other modes of
failure.