Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 24 Apr 2024 13:55:28 +0000
From:      bugzilla-noreply@freebsd.org
To:        ports-bugs@FreeBSD.org
Subject:   [Bug 278566] devel/valgrind: __sysctlbyname looks like false positive detect
Message-ID:  <bug-278566-7788@https.bugs.freebsd.org/bugzilla/>

next in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D278566

            Bug ID: 278566
           Summary: devel/valgrind: __sysctlbyname looks like false
                    positive detect
           Product: Ports & Packages
           Version: Latest
          Hardware: Any
                OS: Any
            Status: New
          Severity: Affects Only Me
          Priority: ---
         Component: Individual Port(s)
          Assignee: ports-bugs@FreeBSD.org
          Reporter: rozhuk.im@gmail.com
                CC: pjfloyd@wanadoo.fr
                CC: pjfloyd@wanadoo.fr
             Flags: maintainer-feedback?(pjfloyd@wanadoo.fr)
 Attachment #250205 text/plain
         mime type:

Created attachment 250205
  --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=3D250205&action=
=3Dedit
example code

--90284-- Set osrel for current process with value 1400511
=3D=3D90284=3D=3D Syscall param __sysctlbyname(name) points to uninitialise=
d byte(s)
=3D=3D90284=3D=3D    at 0x4992CDA: __sysctlbyname (in /lib/libc.so.7)
=3D=3D90284=3D=3D    by 0x20185F: main (in
/home/rim/docs/Progs/FreeBSD/sysctlbyname_broken)
=3D=3D90284=3D=3D  Address 0x1ffc000466 is on thread 1's stack
=3D=3D90284=3D=3D  in frame #1, created by main (???:)
=3D=3D90284=3D=3D  Uninitialised value was created by a stack allocation
=3D=3D90284=3D=3D    at 0x2017F0: main (in
/home/rim/docs/Progs/FreeBSD/sysctlbyname_broken)
=3D=3D90284=3D=3D=20

But in way that it used some args OUT only (kernel only write result), and =
all
100% bytes are initialized.

--=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-278566-7788>