Date: Thu, 25 Aug 2022 20:02:22 +0000 From: bugzilla-noreply@freebsd.org To: bugs@FreeBSD.org Subject: [Bug 266036] valgrind reporting invalid read/write for setproctitle Message-ID: <bug-266036-227-GS0m8WoAPC@https.bugs.freebsd.org/bugzilla/> In-Reply-To: <bug-266036-227@https.bugs.freebsd.org/bugzilla/>
index | next in thread | previous in thread | raw e-mail
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=266036 Konstantin Belousov <kib@FreeBSD.org> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |kib@FreeBSD.org --- Comment #1 from Konstantin Belousov <kib@FreeBSD.org> --- Show the value of kern.ps_strings on your system. I suspect that it would be just the address that is reported: solo% printf "%x\n" $(sysctl -n kern.ps_strings) 7fffffffefe0 In other words, this is how setproctitle(3) works: by modifying ps_strings to point to other arguments strings. ps_strings is initialized by kernel during image activation. -- You are receiving this mail because: You are the assignee for the bug.home | help
Want to link to this message? Use this
URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-266036-227-GS0m8WoAPC>
