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/> References: <bug-266036-227@https.bugs.freebsd.org/bugzilla/>
next in thread | previous in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D266036 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. --=20 You are receiving this mail because: You are the assignee for the bug.=
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-266036-227-GS0m8WoAPC>