mirror of
https://github.com/opnsense/src.git
synced 2026-05-28 04:12:45 -04:00
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
1 changed files with 4 additions and 0 deletions
|
|
@ -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 a new issue