Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F147272138
D53412.1782736999.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Size
554 B
Referenced Files
None
Subscribers
None
D53412.1782736999.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
Mon, Jun 29, 12:43 PM (6 h, 47 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
28983475
Default Alt Text
D53412.1782736999.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