FreeBSD Bugzilla – Attachment 168832 Details for
Bug 204426
Processes terminating cannot access memory
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
OBJ_DEAD tracker for stable/10
3.patch (text/plain), 1.35 KB, created by
Konstantin Belousov
on 2016-03-31 14:51:12 UTC
(
hide
)
Description:
OBJ_DEAD tracker for stable/10
Filename:
MIME Type:
Creator:
Konstantin Belousov
Created:
2016-03-31 14:51:12 UTC
Size:
1.35 KB
patch
obsolete
>Index: vm/vm_fault.c >=================================================================== >--- vm/vm_fault.c (revision 297453) >+++ vm/vm_fault.c (working copy) >@@ -426,6 +426,8 @@ fast_failed: > * If the object is dead, we stop here > */ > if (fs.object->flags & OBJ_DEAD) { >+printf("%d vm_fault OBJ_DEAD %p\n", curproc->p_pid, fs.object); >+stack_print(&fs.object->dead_stack); > unlock_and_deallocate(&fs); > return (KERN_PROTECTION_FAILURE); > } >Index: vm/vm_object.c >=================================================================== >--- vm/vm_object.c (revision 297453) >+++ vm/vm_object.c (working copy) >@@ -265,6 +265,7 @@ _vm_object_allocate(objtype_t type, vm_pindex_t si > #if VM_NRESERVLEVEL > 0 > LIST_INIT(&object->rvq); > #endif >+stack_zero(&object->dead_stack); > } > > /* >Index: vm/vm_object.h >=================================================================== >--- vm/vm_object.h (revision 297453) >+++ vm/vm_object.h (working copy) >@@ -74,6 +74,7 @@ > > #include <vm/_vm_radix.h> > >+#include <sys/stack.h> > /* > * Types defined: > * >@@ -174,6 +175,7 @@ struct vm_object { > } un_pager; > struct ucred *cred; > vm_ooffset_t charge; >+struct stack dead_stack; > }; > > /* >@@ -253,6 +255,7 @@ static __inline void > vm_object_set_flag(vm_object_t object, u_short bits) > { > >+if ((bits & OBJ_DEAD) != 0) stack_save(&object->dead_stack); > object->flags |= bits; > } >
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 204426
:
167570
|
168808
|
168832
|
168870
|
168872
|
169679