[Bug 237778] sysctl.name (0.1) false positive

bugzilla-noreply at freebsd.org bugzilla-noreply at freebsd.org
Tue May 7 21:54:28 UTC 2019


            Bug ID: 237778
           Summary: sysctl.name (0.1) false positive
           Product: Base System
           Version: CURRENT
          Hardware: Any
                OS: Any
            Status: New
          Severity: Affects Only Me
          Priority: ---
         Component: kern
          Assignee: bugs at FreeBSD.org
          Reporter: alfix86 at gmail.com
 Attachment #204249 text/plain
         mime type:

Created attachment 204249
  --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=204249&action=edit
file to reproduce the problem

The magical "sysctl.name" (0.1), implemented in kern_sysctl.c, gets the 
'string name' from the 'int id' of a node, It returns 0 (false positive) and 
builds a fake name for a non-existent OID. The problem is reproducible by the 
attached file 'bad_name.c'.

Question: Is it a feature? (this code is 20-years-old)
Others OIDs sysctl.{oiddesc|oidfmt|oidlabel} return an error for a non-existent 

I have a solution, but I would be sure it is a problem before to create a diff 
on review.freebsd.org. 


You are receiving this mail because:
You are the assignee for the bug.

More information about the freebsd-bugs mailing list