mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Charan Teja Reddy <quic_charante@quicinc.com>
To: <alx.manpages@gmail.com>, <mtk.manpages@gmail.com>,
	<minchan@kernel.org>, <nadav.amit@gmail.com>
Cc: <linux-man@vger.kernel.org>, <linux-kernel@vger.kernel.org>,
	"Charan Teja Reddy" <quic_charante@quicinc.com>
Subject: [PATCH] madvise.2: update EINVAL return info
Date: Wed, 16 Mar 2022 20:22:00 +0530	[thread overview]
Message-ID: <1647442320-7261-1-git-send-email-quic_charante@quicinc.com> (raw)

MADV_COLD and MADV_PAGEOUT advises on an address range which includes
locked, Huge TLB pages or VM_PFNMAP pages can return EINVAL. Update the
man pages accordingly.

Reported-by: Nadav Amit <nadav.amit@gmail.com>
Signed-off-by: Charan Teja Reddy <quic_charante@quicinc.com>
---
 man2/madvise.2 | 10 ++++++++++
 1 file changed, 10 insertions(+)

diff --git a/man2/madvise.2 b/man2/madvise.2
index f1f384c..ab98a87 100644
--- a/man2/madvise.2
+++ b/man2/madvise.2
@@ -505,6 +505,16 @@ is not a valid.
 .B EINVAL
 .I advice
 is
+.BR MADV_COLD
+or
+.BR MADV_PAGEOUT
+and the specified address range includes locked, Huge TLB pages, or
+.B VM_PFNMAP
+pages.
+.TP
+.B EINVAL
+.I advice
+is
 .B MADV_DONTNEED
 or
 .BR MADV_REMOVE
-- 
2.7.4


             reply	other threads:[~2022-03-16 14:52 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-03-16 14:52 Charan Teja Reddy [this message]
2022-03-17 21:02 ` Alejandro Colomar (man-pages)

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1647442320-7261-1-git-send-email-quic_charante@quicinc.com \
    --to=quic_charante@quicinc.com \
    --cc=alx.manpages@gmail.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-man@vger.kernel.org \
    --cc=minchan@kernel.org \
    --cc=mtk.manpages@gmail.com \
    --cc=nadav.amit@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®