Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 29 Oct 2020 15:44:44 +0000 (UTC)
From:      Edward Tomasz Napierala <trasz@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r367139 - head/sys/compat/linprocfs
Message-ID:  <202010291544.09TFii5j037133@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: trasz
Date: Thu Oct 29 15:44:44 2020
New Revision: 367139
URL: https://svnweb.freebsd.org/changeset/base/367139

Log:
  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

Modified:
  head/sys/compat/linprocfs/linprocfs.c

Modified: head/sys/compat/linprocfs/linprocfs.c
==============================================================================
--- head/sys/compat/linprocfs/linprocfs.c	Thu Oct 29 15:36:20 2020	(r367138)
+++ head/sys/compat/linprocfs/linprocfs.c	Thu Oct 29 15:44:44 2020	(r367139)
@@ -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);



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202010291544.09TFii5j037133>