Make linprocfs(4) print a warning when there's not enough room to fill
/proc/self/maps. Submitted by: dchagin (earlier version) Reviewed by: emaste (earlier version) MFC after: 2 weeks Sponsored by: The FreeBSD Foundation Differential Revision: https://reviews.freebsd.org/D20576
This commit is contained in:
parent
b1497fb649
commit
ad7b26ecdc
@ -1252,6 +1252,10 @@ linprocfs_doprocmaps(PFS_FILL_ARGS)
|
||||
*name ? " " : " ",
|
||||
name
|
||||
);
|
||||
if (error == -1) {
|
||||
linux_msg(td, "cannot fill /proc/self/maps; "
|
||||
"consider bumping PFS_MAXBUFSIZ");
|
||||
}
|
||||
if (freename)
|
||||
free(freename, M_TEMP);
|
||||
vm_map_lock_read(map);
|
||||
|
Loading…
Reference in New Issue
Block a user