Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update vm_map.c #419

Closed
wants to merge 1 commit into from
Closed

Update vm_map.c #419

wants to merge 1 commit into from

Conversation

wy-chung
Copy link
Contributor

@wy-chung wy-chung commented Dec 4, 2019

Should fault_type be initialized here since fault_type will be changed if the entry is wired and the program decided to jump to RetryLookup*? That is if the entry is wired entry, fault_type will be changed. But if the program later decides to jump to RetryLockup*, then the original contents from fault_typea will be lost.

Should fault_type be initialized here since fault_type will be changed if the entry is wired and the program decided to jump to RetryLookup*? That is if the entry is wired entry, fault_type will be changed. But if the program later decides to jump to RetryLockup*, then the original contents from fault_typea will be lost.
@markjdb
Copy link
Member

markjdb commented Dec 4, 2019

Nice find. I think you are right.

markjdb added a commit to markjdb/freebsd-dev that referenced this pull request Dec 6, 2019
Suppose that the map entry is wired, so that we later assign
fault_type = entry->protection.  Suppose further that we jump back to
RetryLookup.  Then fault_type will no longer contain the original
fault protection mask, but instead that of the wired entry.

Submitted by:	Wuyang Chung <wuyang.chung1@gmail.com>
Reviewed by:	kib
MFC after:	3 days
Github PR:	freebsd/freebsd-src#419
Differential Revision:	https://reviews.freebsd.org/D22683
@markjdb
Copy link
Member

markjdb commented Dec 6, 2019

Committed in r355469, thank you.

@markjdb markjdb closed this Dec 6, 2019
uqs pushed a commit that referenced this pull request Dec 7, 2019
Suppose that the map entry is wired, so that we later assign
fault_type = entry->protection.  Suppose further that we jump back to
RetryLookup.  Then fault_type will no longer contain the original
fault protection mask, but instead that of the wired entry.

Submitted by:	Wuyang Chung <wuyang.chung1@gmail.com>
Reviewed by:	kib
MFC after:	3 days
Github PR:	#419
Differential Revision:	https://reviews.freebsd.org/D22683


git-svn-id: svn+ssh://svn.freebsd.org/base/head@355469 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
uqs pushed a commit that referenced this pull request Dec 7, 2019
Suppose that the map entry is wired, so that we later assign
fault_type = entry->protection.  Suppose further that we jump back to
RetryLookup.  Then fault_type will no longer contain the original
fault protection mask, but instead that of the wired entry.

Submitted by:	Wuyang Chung <wuyang.chung1@gmail.com>
Reviewed by:	kib
MFC after:	3 days
Github PR:	#419
Differential Revision:	https://reviews.freebsd.org/D22683
mat813 pushed a commit to mat813/freebsd that referenced this pull request Dec 9, 2019
Suppose that the map entry is wired, so that we later assign
fault_type = entry->protection.  Suppose further that we jump back to
RetryLookup.  Then fault_type will no longer contain the original
fault protection mask, but instead that of the wired entry.

Submitted by:	Wuyang Chung <wuyang.chung1@gmail.com>
Reviewed by:	kib
MFC after:	3 days
Github PR:	freebsd#419
Differential Revision:	https://reviews.freebsd.org/D22683


git-svn-id: https://svn.freebsd.org/base/head@355469 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
brooksdavis pushed a commit to CTSRD-CHERI/cheribsd that referenced this pull request Dec 11, 2019
Suppose that the map entry is wired, so that we later assign
fault_type = entry->protection.  Suppose further that we jump back to
RetryLookup.  Then fault_type will no longer contain the original
fault protection mask, but instead that of the wired entry.

Submitted by:	Wuyang Chung <wuyang.chung1@gmail.com>
Reviewed by:	kib
MFC after:	3 days
Github PR:	freebsd/freebsd-src#419
Differential Revision:	https://reviews.freebsd.org/D22683
bdrewery pushed a commit to bdrewery/freebsd that referenced this pull request Dec 17, 2019
Suppose that the map entry is wired, so that we later assign
fault_type = entry->protection.  Suppose further that we jump back to
RetryLookup.  Then fault_type will no longer contain the original
fault protection mask, but instead that of the wired entry.

Submitted by:	Wuyang Chung <wuyang.chung1@gmail.com>
Reviewed by:	kib
MFC after:	3 days
Github PR:	freebsd#419
Differential Revision:	https://reviews.freebsd.org/D22683


git-svn-id: svn+ssh://svn.freebsd.org/base/head@355469 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
@wy-chung wy-chung deleted the patch-2 branch July 26, 2020 02:27
hardenedbsd-services pushed a commit to HardenedBSD/hardenedBSD that referenced this pull request Feb 10, 2023
* adjust gitignore

Signed-off-by: SchrodingerZhu <i@zhuyi.fan>

* also add prefix for rust objects

Signed-off-by: SchrodingerZhu <i@zhuyi.fan>

* export statistics api for rust

Signed-off-by: SchrodingerZhu <i@zhuyi.fan>

* conform clang-format-9

Signed-off-by: SchrodingerZhu <i@zhuyi.fan>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants