From: Lev Olshvang <levonshe@yandex.com>
To: kernelnewbies <kernelnewbies@kernelnewbies.org>,
linux-il <linux-il@cs.huji.ac.il>
Subject: What will happen on attempt to write to read-only page when CONFIG_MEM_SOFT_DIRTY is off ?
Date: Mon, 11 Mar 2019 10:27:44 +0300 [thread overview]
Message-ID: <21618991552289264@iva7-7c2970ec7645.qloud-c.yandex.net> (raw)
Hello all,
Please help me to clarify what will page fault handler do (if any)
File arch/x86/include/asm/pgtable_types.h have following comment for 2 PAGE_DIRTY_BITs
#define _PAGE_BIT_DIRTY 6 /* was written to (raised by CPU) */
_PAGE_BIT_SOFT_DIRTY _PAGE_BIT_SOFTW3 /* software dirty tracking */
While documentation clearly explains that Page Fault handler sets second flag
https://www.kernel.org/doc/Documentation/vm/soft-dirty.txt
I do not have idea what will happen when tracking Soft Dirty flags is off, I suppose the answer is in mm/gup.c
but I was not able to track it to page handler.
Thanks you all.
Lev.
_______________________________________________
Kernelnewbies mailing list
Kernelnewbies@kernelnewbies.org
https://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies
reply other threads:[~2019-03-11 7:28 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
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=21618991552289264@iva7-7c2970ec7645.qloud-c.yandex.net \
--to=levonshe@yandex.com \
--cc=kernelnewbies@kernelnewbies.org \
--cc=linux-il@cs.huji.ac.il \
/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;
as well as URLs for NNTP newsgroup(s).