Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 29 Jul 2021 12:13:56 GMT
From:      Mark Johnston <markj@FreeBSD.org>
To:        src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org
Subject:   git: 3afad070bddd - stable/13 - man9: Update guarantees for userspace fetch/store operations
Message-ID:  <202107291213.16TCDuI1056531@gitrepo.freebsd.org>

next in thread | raw e-mail | index | archive | help
The branch stable/13 has been updated by markj:

URL: https://cgit.FreeBSD.org/src/commit/?id=3afad070bdddb4718ccc8f2911551818f08a0840

commit 3afad070bdddb4718ccc8f2911551818f08a0840
Author:     Mark Johnston <markj@FreeBSD.org>
AuthorDate: 2021-07-22 17:08:42 +0000
Commit:     Mark Johnston <markj@FreeBSD.org>
CommitDate: 2021-07-29 12:11:39 +0000

    man9: Update guarantees for userspace fetch/store operations
    
    Platforms may either silently handle unaligned accesses or return an
    error.  Atomicity is not guaranteed in this case, however.
    
    Reviewed by:    kib
    Sponsored by:   The FreeBSD Foundation
    
    (cherry picked from commit fd5827b1785a9363abe601cbd9d8558b0fc8d3e8)
---
 share/man/man9/fetch.9 | 8 +++++---
 share/man/man9/store.9 | 8 +++++---
 2 files changed, 10 insertions(+), 6 deletions(-)

diff --git a/share/man/man9/fetch.9 b/share/man/man9/fetch.9
index 53927eb82584..16acb542c625 100644
--- a/share/man/man9/fetch.9
+++ b/share/man/man9/fetch.9
@@ -34,7 +34,7 @@
 .\"
 .\" $FreeBSD$
 .\"
-.Dd January 23, 2020
+.Dd July 22, 2021
 .Dt FETCH 9
 .Os
 .Sh NAME
@@ -72,8 +72,10 @@ The
 .Nm
 functions are designed to copy small amounts of data from user-space
 of the current process.
-If read is successful, it is performed atomically.
-The data read must be naturally aligned.
+If the user address is naturally aligned, then the operation will be
+performed atomically.
+Otherwise it may fail or be performed non-atomically, depending on
+the platform.
 .Pp
 The
 .Nm
diff --git a/share/man/man9/store.9 b/share/man/man9/store.9
index 089949e53938..6492fdbc3924 100644
--- a/share/man/man9/store.9
+++ b/share/man/man9/store.9
@@ -34,7 +34,7 @@
 .\"
 .\" $FreeBSD$
 .\"
-.Dd April 17, 2018
+.Dd July 22, 2021
 .Dt STORE 9
 .Os
 .Sh NAME
@@ -60,8 +60,10 @@
 The
 .Nm
 functions are designed to copy small amounts of data to user-space.
-If write is successful, it is performed atomically.
-The data written must be naturally aligned.
+If the user address is naturally aligned, then the operation will be
+performed atomically.
+Otherwise it may fail or be performed non-atomically, depending on
+the platform.
 .Pp
 The
 .Nm



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202107291213.16TCDuI1056531>