* [PATCH] arm64: doc: Add brk/mmap/mremap() to the Tagged Address ABI Exceptions
@ 2021-04-23 17:51 Catalin Marinas
2021-04-30 17:56 ` Catalin Marinas
0 siblings, 1 reply; 2+ messages in thread
From: Catalin Marinas @ 2021-04-23 17:51 UTC (permalink / raw)
To: linux-arm-kernel; +Cc: Peter Maydell, Will Deacon, Vincenzo Frascino
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.
Signed-off-by: Catalin Marinas <catalin.marinas@arm.com>
Fixes: dcde237319e6 ("mm: Avoid creating virtual address aliases in brk()/mmap()/mremap()")
Reported-by: Peter Maydell <peter.maydell@linaro.org>
Cc: Will Deacon <will@kernel.org>
Cc: Vincenzo Frascino <vincenzo.frascino@arm.com>
---
Documentation/arm64/tagged-address-abi.rst | 6 ++++++
1 file changed, 6 insertions(+)
diff --git a/Documentation/arm64/tagged-address-abi.rst b/Documentation/arm64/tagged-address-abi.rst
index cbc4d4500241..459e6b66ff68 100644
--- a/Documentation/arm64/tagged-address-abi.rst
+++ b/Documentation/arm64/tagged-address-abi.rst
@@ -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.
_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH] arm64: doc: Add brk/mmap/mremap() to the Tagged Address ABI Exceptions
2021-04-23 17:51 [PATCH] arm64: doc: Add brk/mmap/mremap() to the Tagged Address ABI Exceptions Catalin Marinas
@ 2021-04-30 17:56 ` Catalin Marinas
0 siblings, 0 replies; 2+ messages in thread
From: Catalin Marinas @ 2021-04-30 17:56 UTC (permalink / raw)
To: Catalin Marinas, linux-arm-kernel
Cc: Will Deacon, Peter Maydell, Vincenzo Frascino
On Fri, 23 Apr 2021 18:51:34 +0100, Catalin Marinas wrote:
> 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.
Applied to arm64 (for-next/core), thanks!
[1/1] arm64: doc: Add brk/mmap/mremap() to the Tagged Address ABI Exceptions
https://git.kernel.org/arm64/c/75516c75a72b
--
Catalin
_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2021-04-30 17:57 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-04-23 17:51 [PATCH] arm64: doc: Add brk/mmap/mremap() to the Tagged Address ABI Exceptions Catalin Marinas
2021-04-30 17:56 ` Catalin Marinas
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.