Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F147461495
D53412.id165233.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
554 B
Referenced Files
None
Subscribers
None
D53412.id165233.diff
View Options
diff --git a/sys/compat/linuxkpi/common/src/linux_page.c b/sys/compat/linuxkpi/common/src/linux_page.c
--- a/sys/compat/linuxkpi/common/src/linux_page.c
+++ b/sys/compat/linuxkpi/common/src/linux_page.c
@@ -345,6 +345,10 @@
page = vm_page_grab_iter(vm_obj, pindex, VM_ALLOC_NOCREAT, &pages);
if (page == NULL) {
page = PHYS_TO_VM_PAGE(IDX_TO_OFF(pfn));
+ if (page == NULL) {
+ pctrie_iter_reset(&pages);
+ return (VM_FAULT_SIGBUS);
+ }
if (!vm_page_busy_acquire(page, VM_ALLOC_WAITFAIL)) {
pctrie_iter_reset(&pages);
goto retry;
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Thu, Mar 12, 5:11 AM (22 h, 17 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
29551429
Default Alt Text
D53412.id165233.diff (554 B)
Attached To
Mode
D53412: linuxkpi: gracefully handle page lookup failure in lkpi_vmf_insert_pfn_prot_locked
Attached
Detach File
Event Timeline
Log In to Comment