Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F157428614
D28926.id.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
1 KB
Referenced Files
None
Subscribers
None
D28926.id.diff
View Options
diff --git a/sys/fs/procfs/procfs_map.c b/sys/fs/procfs/procfs_map.c
--- a/sys/fs/procfs/procfs_map.c
+++ b/sys/fs/procfs/procfs_map.c
@@ -84,7 +84,7 @@
struct vnode *vp;
char *fullpath, *freepath, *type;
struct ucred *cred;
- vm_object_t obj, tobj, lobj;
+ vm_object_t lobj, nobj, obj, tobj;
int error, privateresident, ref_count, resident, shadow_count, flags;
vm_offset_t e_start, e_end;
vm_eflags_t e_eflags;
@@ -144,7 +144,8 @@
}
if (obj != NULL)
kern_proc_vmmap_resident(map, entry, &resident, &super);
- for (tobj = obj; tobj != NULL; tobj = tobj->backing_object) {
+ for (tobj = obj; tobj != NULL; tobj = nobj) {
+ nobj = tobj->backing_object;
if (tobj != obj && tobj != lobj)
VM_OBJECT_RUNLOCK(tobj);
}
diff --git a/sys/kern/kern_proc.c b/sys/kern/kern_proc.c
--- a/sys/kern/kern_proc.c
+++ b/sys/kern/kern_proc.c
@@ -2505,7 +2505,7 @@
vm_map_entry_t entry, tmp_entry;
struct vattr va;
vm_map_t map;
- vm_object_t obj, tobj, lobj;
+ vm_object_t lobj, nobj, obj, tobj;
char *fullpath, *freepath;
struct kinfo_vmentry *kve;
struct ucred *cred;
@@ -2551,8 +2551,8 @@
&kve->kve_resident, &super);
if (super)
kve->kve_flags |= KVME_FLAG_SUPER;
- for (tobj = obj; tobj != NULL;
- tobj = tobj->backing_object) {
+ for (tobj = obj; tobj != NULL; tobj = nobj) {
+ nobj = tobj->backing_object;
if (tobj != obj && tobj != lobj)
VM_OBJECT_RUNLOCK(tobj);
}
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Fri, May 22, 8:38 AM (21 h, 58 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
33417484
Default Alt Text
D28926.id.diff (1 KB)
Attached To
Mode
D28926: Close races in vm object chain traversal for unlock
Attached
Detach File
Event Timeline
Log In to Comment