FreeBSD Bugzilla – Attachment 210472 Details for
Bug 240992
linprocfs: /proc/[pid]/maps returns rounded file (?) size in the offset column
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
proposed patch
diff (text/plain), 874 bytes, created by
Mark Johnston
on 2020-01-05 21:44:56 UTC
(
hide
)
Description:
proposed patch
Filename:
MIME Type:
Creator:
Mark Johnston
Created:
2020-01-05 21:44:56 UTC
Size:
874 bytes
patch
obsolete
>diff --git a/sys/compat/linprocfs/linprocfs.c b/sys/compat/linprocfs/linprocfs.c >index ab41a5a4d934..6c6101bc86d3 100644 >--- a/sys/compat/linprocfs/linprocfs.c >+++ b/sys/compat/linprocfs/linprocfs.c >@@ -1146,7 +1146,7 @@ linprocfs_doprocmaps(PFS_FILL_ARGS) > vm_map_entry_t entry, tmp_entry; > vm_object_t obj, tobj, lobj; > vm_offset_t e_start, e_end; >- vm_ooffset_t off = 0; >+ vm_ooffset_t off; > vm_prot_t e_prot; > unsigned int last_timestamp; > char *name = "", *freename = NULL; >@@ -1196,7 +1196,7 @@ linprocfs_doprocmaps(PFS_FILL_ARGS) > vm_map_unlock_read(map); > ino = 0; > if (lobj) { >- off = IDX_TO_OFF(lobj->size); >+ off = entry->offset; > vp = vm_object_vnode(lobj); > if (vp != NULL) > vref(vp); >@@ -1220,6 +1220,7 @@ linprocfs_doprocmaps(PFS_FILL_ARGS) > } > } else { > flags = 0; >+ off = 0; > ref_count = 0; > shadow_count = 0; > }
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 240992
: 210472