{
  "ml": {
    "v": "4",
    "fs": [
      {
        "id": 0,
        "prob": 0.9279925227165222,
        "class": 0
      }
    ],
    "prob": 0.9279925,
    "class": 0,
    "version": "v16.16",
    "thresholds": [
      0.9815004,
      0.99404883
    ],
    "analyzed_at": "2026-04-30T10:02:55Z"
  },
  "path": "p9fs_subr.c",
  "raw": {
    "v": "4",
    "fs": [
      {
        "f": "O(Er₂)",
        "x": 1,
        "id": 0,
        "is": [
          "VFSTOP9",
          "p9_client_create",
          "P9_DEBUG",
          "p9_is_proto_dotl",
          "p9_is_proto_dotu",
          "vfs_getopts",
          "strcmp",
          "strcmp",
          "strcmp",
          "P9_DEBUG",
          "p9_client_attach",
          "P9_DEBUG",
          "P9_DEBUG",
          "STAILQ_INIT",
          "P9FS_LOCK_INIT",
          "P9_DEBUG",
          "p9_client_destroy",
          "VFSTOP9",
          "STAILQ_FOREACH_SAFE",
          "vrele",
          "P9FS_NTOV",
          "p9_client_begin_disconnect",
          "VFSTOP9",
          "p9_client_disconnect",
          "VFSTOP9",
          "p9fs_complete_close",
          "p9_client_destroy",
          "P9FS_LOCK_DESTROY",
          "P9_DEBUG",
          "STAILQ_FOREACH_SAFE",
          "STAILQ_REMOVE",
          "p9_client_clunk",
          "STAILQ_FOREACH_SAFE",
          "STAILQ_REMOVE",
          "p9_client_clunk",
          "P9FS_VFID_LOCK",
          "STAILQ_REMOVE",
          "P9FS_VFID_UNLOCK",
          "P9FS_VOFID_LOCK",
          "STAILQ_REMOVE",
          "P9FS_VOFID_UNLOCK",
          "P9FS_VFID_LOCK",
          "STAILQ_INSERT_TAIL",
          "P9FS_VFID_UNLOCK",
          "P9FS_VOFID_LOCK",
          "STAILQ_INSERT_TAIL",
          "P9FS_VOFID_UNLOCK",
          "IS_ROOT",
          "malloc",
          "P9FS_VFID_LOCK",
          "STAILQ_FOREACH",
          "P9FS_VFID_UNLOCK",
          "P9FS_VFID_UNLOCK",
          "P9FS_VOFID_LOCK",
          "STAILQ_FOREACH",
          "p9fs_compatible_mode",
          "P9FS_VOFID_UNLOCK",
          "P9FS_VOFID_UNLOCK",
          "p9fs_get_fid_from_uid",
          "p9fs_get_fid_from_uid",
          "p9_client_attach",
          "p9fs_fid_add",
          "IS_ROOT",
          "p9fs_get_full_path",
          "KASSERT",
          "MIN",
          "p9_client_walk",
          "p9_client_clunk",
          "p9fs_fid_add",
          "free"
        ],
        "ms": {
          "text": {
            "tab_count": 346.0,
            "digit_ratio": 0.02,
            "space_count": 1177.0,
            "total_lines": 411.0,
            "char_entropy": 5.39,
            "mixed_indent": true,
            "unique_chars": 88.0,
            "import_density": 17.03,
            "string_density": 0.08,
            "avg_line_length": 24.35,
            "max_line_length": 90.0,
            "empty_line_ratio": 0.13,
            "last_line_length": 1.0,
            "most_common_char": "e",
            "whitespace_ratio": 0.19,
            "most_common_ratio": 0.05,
            "identifier_density": 1.02,
            "line_length_stddev": 23.25,
            "normalized_import_count": 3.45,
            "normalized_string_count": 1.68,
            "suspicious_comment_ratio": 0.07,
            "max_inline_whitespace_run": 4.0,
            "normalized_function_count": 0.59,
            "imports_to_functions_ratio": 5.83,
            "strings_to_functions_ratio": 2.83,
            "suspicious_identifier_ratio": 0.03,
            "normalized_unique_identifiers": 10.94,
            "identifiers_to_functions_ratio": 7.92
          },
          "imports": {
            "total": 70.0,
            "unique_modules": 36.0,
            "third_party_count": 70.0,
            "third_party_ratio": 1.0
          },
          "strings": {
            "total": 34.0,
            "avg_length": 17.76,
            "max_length": 33.0,
            "avg_entropy": 3.21,
            "total_bytes": 604.0,
            "entropy_stddev": 0.73
          },
          "comments": {
            "chars": 3678.0,
            "lines": 93.0,
            "total": 29.0,
            "todo_count": 1.0,
            "to_code_ratio": 0.29,
            "high_entropy_comments": 2.0
          },
          "functions": {
            "total": 12.0,
            "length_stddev": 22.33,
            "avg_name_length": 58.75,
            "no_params_count": 12.0,
            "avg_length_lines": 27.17,
            "max_length_lines": 78.0,
            "min_length_lines": 6.0,
            "high_entropy_names": 12.0,
            "density_per_100_lines": 2.92,
            "code_in_functions_ratio": 0.79
          },
          "identifiers": {
            "total": 420.0,
            "avg_length": 10.17,
            "max_length": 26.0,
            "min_length": 1.0,
            "avg_entropy": 2.66,
            "reuse_ratio": 0.23,
            "unique_count": 95.0,
            "length_stddev": 5.87,
            "has_digit_ratio": 0.46,
            "sequential_names": 3.0,
            "single_char_count": 3.0,
            "single_char_ratio": 0.03,
            "high_entropy_count": 16.0,
            "high_entropy_ratio": 0.17,
            "all_lowercase_ratio": 0.37,
            "all_uppercase_ratio": 0.17,
            "numeric_suffix_count": 1.0,
            "double_underscore_count": 1.0,
            "underscore_prefix_count": 1.0
          }
        },
        "ss": [
          [
            1638,
            "\u003csys/cdefs.h\u003e"
          ],
          [
            1661,
            "\u003csys/systm.h\u003e"
          ],
          [
            1684,
            "\u003csys/limits.h\u003e"
          ],
          [
            1708,
            "\u003csys/mount.h\u003e"
          ],
          [
            1731,
            "\u003csys/sysctl.h\u003e"
          ],
          [
            1755,
            "\u003csys/vnode.h\u003e"
          ],
          [
            1779,
            "p9fs_proto.h"
          ],
          [
            1780,
            "p9fs_proto.h"
          ],
          [
            1804,
            "\u003cfs/p9fs/p9_client.h\u003e"
          ],
          [
            1835,
            "\u003cfs/p9fs/p9_debug.h\u003e"
          ],
          [
            1865,
            "\u003cfs/p9fs/p9_protocol.h\u003e"
          ],
          [
            1898,
            "\u003cfs/p9fs/p9fs.h\u003e"
          ],
          [
            2570,
            "%s: p9_client_create failed\\n"
          ],
          [
            2571,
            "%s: p9_client_create failed"
          ],
          [
            2949,
            "access"
          ],
          [
            2950,
            "access"
          ],
          [
            3047,
            "any"
          ],
          [
            3048,
            "any"
          ],
          [
            3113,
            "single"
          ],
          [
            3114,
            "single"
          ],
          [
            3185,
            "user"
          ],
          [
            3186,
            "user"
          ],
          [
            3253,
            "%s: unknown access mode\\n"
          ],
          [
            3254,
            "%s: unknown access mode"
          ],
          [
            3531,
            "%s: attach failed: %d\\n"
          ],
          [
            3532,
            "%s: attach failed: %d"
          ],
          [
            3608,
            "%s: attach successful fid :%p\\n"
          ],
          [
            3609,
            "%s: attach successful fid :%p"
          ],
          [
            3808,
            "%s: INIT session successful\\n"
          ],
          [
            3809,
            "%s: INIT session successful"
          ],
          [
            5063,
            "%s: Clean close session .\\n"
          ],
          [
            5064,
            "%s: Clean close session ."
          ],
          [
            9986,
            "%s: Directory of %s doesn't exist"
          ],
          [
            9987,
            "%s: Directory of %s doesn't exist"
          ]
        ],
        "sz": 10418,
        "ts": [
          {
            "a": "T1068",
            "c": 0.949999988079071,
            "d": "Direct credential UID field access",
            "e": [
              "cr_uid"
            ],
            "i": "objectives/evasion/kernel-hide/lkm::cr-uid-manipulation",
            "l": 1
          },
          {
            "c": 0.8500000238418579,
            "d": "FreeBSD sysctl interface header",
            "e": [
              "sys/sysctl.h"
            ],
            "i": "objectives/evasion/kernel-hide/lkm::sys-sysctl-header",
            "l": 2
          }
        ],
        "sha": "e1f53013287c6179bacc3e9f8ca8ef842aab6f069ad2683b09b9ffa0beb1f96b",
        "path": "p9fs_subr.c",
        "type": "c"
      }
    ],
    "tv": "f6eaa"
  }
}