AI Slop Code RIsk Monitor

firecracker-microvm/firecracker

Secure and fast microVMs for serverless computing.

4.4 Low pattern signal View on GitHub

Maintenance and Governance Review

This report summarizes scanner evidence for firecracker-microvm/firecracker, a Rust project with 37,282 GitHub stars. SynthScan examined 220,594 lines of code across 681 source files, recording 767 pattern matches distributed across 18 syntactic categories. The legacy adjusted pattern signal is 4.4 (Low pattern signal); it is not an authorship estimate.

Use the findings to ask whether maintainers can explain intent, verify dependencies, simplify unnecessary scaffolding, and focus review effort. Risk Payload v1 adds ownership, supply-chain, over-engineering, and review-effort vectors when available. These are prompts for human verification, not probabilities, security findings, or measured maintenance costs.

4.4
Adjusted Signal
4.4
Raw Pattern Score
100%
Time Factor
2026-10-09
Last Push
37.3K
Stars
Rust
Language
220.6K
Lines of Code
681
Files
767
Pattern Hits
2026-10-12
Scan Date
0.04
HC Hit Rate

Risk Review · v3

Use each vector to guide manual verification of the underlying findings.

Cognitive Ownership Risk 15.8/100 · LOW

Can maintainers explain intent, assumptions, and trade-offs? 694 finding(s).

Hallucinated Dependency & Supply Chain Risk 2.1/100 · LOW

Are imports declared and package/API names verified? 38 finding(s).

Agent Over-Engineering Ratio 7.5/100 · LOW

Are wrappers, guards, and repeated structures necessary? 258 finding(s).

PR Review Velocity Impact 19.7/100 · LOW

Which changes need focused human review? 767 finding(s).

What These Metrics Mean

Adjusted Signal
Legacy pattern score normalized per 1,000 scanned lines and multiplied by the repository-level time factor. It is not an estimate of AI authorship.
Raw Pattern Score
Sum of severity- and context-weighted pattern findings before applying the time factor.
Time Factor
A coarse multiplier based on repository last-push metadata. It does not identify when individual code was written.
Pattern Hits
Count of configured pattern findings. Review each location and surrounding code before acting.
HC Hit Rate
High- and critical-severity findings per scanned file. Severity is a configured detector weight, not proof of a vulnerability or authorship.
Lines / Files
Scan coverage denominators used by the legacy normalized score.

Pattern-Signal History

This chart tracks the legacy adjusted pattern score across scan runs. Changes can reflect source changes, scan coverage, or detector/scoring versions; they do not measure AI adoption or prove that a team refactored code. Compare runs only when their scoring versions are compatible. The dashed line tracks the raw pattern-hit count.

Severity Breakdown

Groups findings by configured severity weight. Severity is not a confidence estimate, security rating, or proof that a package is missing. Verify imports against the project's manifests and inspect each finding in its local design context.

CRITICAL 2HIGH 25MEDIUM 30LOW 710

Directory Score Breakdown

This horizontal bar chart shows where configured pattern scores accumulate across directories. Treat the bars as locations to inspect, not as evidence of authorship or code quality. Use the file-level findings to decide whether a directory needs a focused ownership, dependency, complexity, or review check.

Pattern Findings

The scanner identified 767 distinct pattern matches across 18 syntactic categories. Each entry below represents a discrete location in the source code where the engine recorded a detector match to inspect in context. Expand any category row to inspect the individual file paths, line numbers, code snippets, and the lexical context (CODE, COMMENT, or STRING) in which each match was detected.

Reading the findings table: The Severity column indicates the configured finding weight (CRITICAL / HIGH / MEDIUM / LOW). The Context column identifies whether the match occurred inside executable code, an inline comment, or a string literal — legacy comment-context matches receive a ×1.5 score weight. The ⚡ bolt icon marks clustered matches: three or more patterns within a 10-line window, each receiving an additional ×1.5 density multiplier under the legacy scoring model.

Over-Commented Block396 hits · 396 pts
SeverityFileLineSnippetContext
LOWrust-toolchain.toml1# Copyright 2023 Amazon.com, Inc. or its affiliates. All Rights Reserved.COMMENT
LOWtools/ab_test.py361 # direction). In particular, if one scenario yields a slight improvement and the next yields aCOMMENT
LOWresources/rebuild.sh101COMMENT
LOWresources/rootfs/overlay/usr/local/bin/readmem.c1// Copyright 2020 Amazon.com, Inc. or its affiliates. All Rights Reserved.COMMENT
LOWresources/rootfs/overlay/usr/local/bin/init.c1// Copyright 2020 Amazon.com, Inc. or its affiliates. All Rights Reserved.COMMENT
LOWresources/rootfs/overlay/usr/local/bin/fillmem.c1// Copyright 2020 Amazon.com, Inc. or its affiliates. All Rights Reserved.COMMENT
LOW…/rootfs/overlay/usr/local/bin/fast_page_fault_helper.c1// Copyright 2024 Amazon.com, Inc. or its affiliates. All Rights Reserved.COMMENT
LOWtests/conftest.py601# uvm_restored — uvm_booted, snapshotted, restored from the snapshotCOMMENT
LOWtests/conftest.py621#COMMENT
LOW…sts/integration_tests/security/test_vulnerabilities.py101 #COMMENT
LOW…sts/integration_tests/security/test_vulnerabilities.py181 assert res.returncode == 1, res.stdoutCOMMENT
LOW…sts/integration_tests/security/test_vulnerabilities.py341 uvm_a = request.getfixturevalue("uvm_any_a")COMMENT
LOWtests/integration_tests/security/__init__.py1# Copyright 2025 Amazon.com, Inc. or its affiliates. All Rights Reserved.COMMENT
LOWtests/integration_tests/style/__init__.py1# Copyright 2025 Amazon.com, Inc. or its affiliates. All Rights Reserved.COMMENT
LOWtests/integration_tests/style/test_licenses.py141COMMENT
LOWtests/integration_tests/performance/__init__.py1# Copyright 2025 Amazon.com, Inc. or its affiliates. All Rights Reserved.COMMENT
LOWtests/integration_tests/performance/test_huge_pages.py21COMMENT
LOWtests/integration_tests/performance/test_huge_pages.py41 # Referenced: 0 kBCOMMENT
LOW…tegration_tests/functional/test_cpu_template_helper.py101 return cpu_config_dictCOMMENT
LOW…tegration_tests/functional/test_cpu_template_helper.py121 # is 0 on all tested platforms. On the other hand, the userspace cpuidCOMMENT
LOW…tegration_tests/functional/test_cpu_template_helper.py141 # CPUID.20000000h is not documented in Intel SDM and AMD APM. KVM doesn'tCOMMENT
LOW…tegration_tests/functional/test_cpu_template_helper.py181# List of MSR indices that should not be tested due to its mutability or inavailablilityCOMMENT
LOW…tegration_tests/functional/test_cpu_template_helper.py201 # SYSENTER.COMMENT
LOW…tegration_tests/functional/test_cpu_template_helper.py221 0x6E0,COMMENT
LOW…/integration_tests/functional/test_net_config_space.py161 # on the interface.COMMENT
LOWtests/integration_tests/functional/__init__.py1# Copyright 2025 Amazon.com, Inc. or its affiliates. All Rights Reserved.COMMENT
LOWtests/integration_tests/functional/test_vsock.py161COMMENT
LOW…on_tests/functional/test_cpu_features_host_vs_guest.py161}COMMENT
LOW…on_tests/functional/test_cpu_features_host_vs_guest.py381COMMENT
LOW…on_tests/functional/test_cpu_features_host_vs_guest.py441COMMENT
LOW…on_tests/functional/test_cpu_features_host_vs_guest.py461 # ENQCMD/ENQCMDS are instructions that allow software to atomically write 64-byteCOMMENT
LOW…on_tests/functional/test_cpu_features_host_vs_guest.py481 # (#AC) exception if an operand of an atomic operation crosses two cache lines. ItCOMMENT
LOWtests/integration_tests/functional/test_balloon.py401COMMENT
LOW…tegration_tests/functional/test_cpu_features_x86_64.py221# * TSC is different for each guest.COMMENT
LOWtests/framework/http_api.py21 def __init__(self):COMMENT
LOWtests/host_tools/sysgenid.c1// Copyright 2026 Amazon.com, Inc. or its affiliates. All Rights Reserved.COMMENT
LOWtests/host_tools/vmclock.c1// Copyright 2025 Amazon.com, Inc. or its affiliates. All Rights Reserved.COMMENT
LOWtests/host_tools/vsock_helper.c1// Copyright 2018 Amazon.com, Inc. or its affiliates. All Rights Reserved.COMMENT
LOWtests/host_tools/test_syscalls.c1// Copyright 2024 Amazon.com, Inc. or its affiliates. All Rights Reserved.COMMENT
LOWtests/host_tools/devmem.c1// Copyright 2026 Amazon.com, Inc. or its affiliates. All Rights Reserved.COMMENT
LOWsrc/jailer/src/env.rs41const DEV_NET_TUN_MINOR: u32 = 200;COMMENT
LOWsrc/jailer/src/env.rs81// pid namespace, we will call clone with a NULL stack pointer. We can do this because we willCOMMENT
LOWsrc/jailer/src/env.rs681 // for all of them.COMMENT
LOWsrc/jailer/src/cgroup.rs41 // search PROC_MOUNTS for cgroup mount pointsCOMMENT
LOWsrc/jailer/src/cgroup.rs241}COMMENT
LOWsrc/jailer/src/cgroup.rs261// on the following helper function) helps with propagating the values.COMMENT
LOWsrc/jailer/src/resource_limits.rs21 RlimitFsize,COMMENT
LOWsrc/jailer/src/resource_limits.rs41 // c_uint (which is an u32)COMMENT
LOWsrc/clippy-tracing/src/main.rs21#[derive(Parser)]COMMENT
LOWsrc/acpi-tables/src/aml.rs201}COMMENT
LOWsrc/acpi-tables/src/aml.rs1241COMMENT
LOWsrc/acpi-tables/src/aml.rs1301 .unwrap()COMMENT
LOWsrc/acpi-tables/src/aml.rs1321 // 0x0CF8, // LengthCOMMENT
LOWsrc/acpi-tables/src/aml.rs1341 // 0x00000000, // Translation OffsetCOMMENT
LOWsrc/acpi-tables/src/aml.rs1621 [0x14, 0x09, 0x5F, 0x53, 0x54, 0x41, 0x00, 0xA4, 0x0A, 0x0F]COMMENT
LOWsrc/acpi-tables/src/aml.rs1861COMMENT
LOWsrc/acpi-tables/src/aml.rs1981 // {COMMENT
LOWsrc/acpi-tables/src/fadt.rs21COMMENT
LOWsrc/acpi-tables/src/rsdp.rs1// Copyright © 2019 Intel CorporationCOMMENT
LOWsrc/utils/src/time.rs181/// Converts a timestamp in seconds to an equivalent one in nanoseconds.COMMENT
336 more matches not shown…
Hyper-Verbose Identifiers218 hits · 218 pts
SeverityFileLineSnippetContext
LOWtests/conftest.py121def pytest_collection_modifyitems(items):CODE
LOWtests/conftest.py130def pytest_runtest_makereport(item, call): # pylint:disable=unused-argumentCODE
LOWtests/conftest.py271def test_fc_session_root_path():CODE
LOWtests/README.md503def test_with_any_microvm_and_my_init(test_microvm_any):CODE
LOWtests/integration_tests/security/test_fips.py61def test_fips_rng_reseed_on_snapshot_restore(uvm_booted, microvm_factory):CODE
LOWtests/integration_tests/security/test_fips.py76def test_fips_reseeded_kernel_csprng(fips_snapshot_pair):CODE
LOWtests/integration_tests/security/test_seccomp.py180def test_default_seccomp_level(uvm):CODE
LOWtests/integration_tests/security/test_jail.py114def test_exec_destination_path_is_symlink(uvm):CODE
LOWtests/integration_tests/security/test_jail.py134def test_exec_destination_path_is_hardlink(uvm):CODE
LOWtests/integration_tests/security/test_jail.py154def test_default_chroot_hierarchy(uvm):CODE
LOWtests/integration_tests/security/test_jail.py209def test_arbitrary_usocket_location(uvm):CODE
LOWtests/integration_tests/security/test_jail.py227def test_jailer_bind_mount_propagation(uvm):CODE
LOWtests/integration_tests/security/test_jail.py302 def enable_controller_in_subtree(self, cgname, controller):CODE
LOWtests/integration_tests/security/test_jail.py429def test_cgroups_custom_parent(uvm, cgroups_info):CODE
LOWtests/integration_tests/security/test_jail.py484def test_cgroups_without_numa(uvm, cgroups_info):CODE
LOWtests/integration_tests/security/test_jail.py521def test_cgroups_parent_cgroup_but_no_cgroup(CODE
LOWtests/integration_tests/security/test_jail.py584def test_args_default_resource_limits(uvm):CODE
LOWtests/integration_tests/security/test_jail.py608def test_args_resource_limits(uvm):CODE
LOWtests/integration_tests/security/test_jail.py624def test_positive_file_size_limit(uvm):CODE
LOWtests/integration_tests/security/test_jail.py642def test_negative_file_size_limit(uvm):CODE
LOWtests/integration_tests/security/test_jail.py678def test_negative_no_file_limit(uvm):CODE
LOWtests/integration_tests/security/test_jail.py697def test_new_pid_ns_resource_limits(uvm):CODE
LOWtests/integration_tests/security/test_jail.py753def test_firecracker_kill_by_pid(uvm, daemonize, new_pid_ns):CODE
LOW…sts/integration_tests/security/test_vulnerabilities.py141def download_spectre_meltdown_checker(tmp_path_factory):CODE
LOW…sts/integration_tests/security/test_vulnerabilities.py166def test_spectre_meltdown_checker_on_host(spectre_meltdown_checker):CODE
LOW⚡…sts/integration_tests/security/test_vulnerabilities.py177def test_vulnerabilities_on_host():CODE
LOW⚡…sts/integration_tests/security/test_vulnerabilities.py184def get_vuln_files_exception_dict(template, guest_kernel_version):CODE
LOW…sts/integration_tests/security/test_vulnerabilities.py240def check_vulnerabilities_files_on_guest(microvm):CODE
LOW…sts/integration_tests/security/test_vulnerabilities.py318def test_check_vulnerability_files_ab(request, uvm_any):CODE
LOW…sts/integration_tests/security/test_vulnerabilities.py332def test_spectre_meltdown_checker_on_guest(CODE
LOW…sts/integration_tests/security/test_vulnerabilities.py364def test_spec_store_bypass_mitigated(uvm_booted):CODE
LOWtests/integration_tests/security/test_nv.py23def test_no_nested_virtualization(uvm_booted):CODE
LOWtests/integration_tests/style/test_repo.py15def test_repo_no_spaces_in_paths():CODE
LOWtests/integration_tests/style/test_repo.py39def test_repo_validate_changelog():CODE
LOWtests/integration_tests/style/test_markdown.py25def test_markdown_internal_links():CODE
LOWtests/integration_tests/performance/test_boottime.py71def get_systemd_analyze_times(microvm):CODE
LOWtests/integration_tests/performance/test_boottime.py102def launch_vm_with_boot_timer(CODE
LOW…s/integration_tests/performance/test_hotplug_memory.py282def test_virtio_mem_hotplug_hotunplug(uvm_any_memhp):CODE
LOW…s/integration_tests/performance/test_hotplug_memory.py301def test_unplug_keeps_region_protected(uvm_any_memhp):CODE
LOW…s/integration_tests/performance/test_hotplug_memory.py361def test_snapshot_restore_persistence(uvm, microvm_factory, snapshot_type):CODE
LOW…s/integration_tests/performance/test_hotplug_memory.py401def test_snapshot_restore_incremental(uvm, microvm_factory, snapshot_type):CODE
LOW…s/integration_tests/performance/test_hotplug_memory.py522def test_memory_hotplug_latency(CODE
LOWtests/integration_tests/performance/test_block.py174def test_block_vhost_user_performance(CODE
LOWtests/integration_tests/performance/test_vsock.py99def consume_vsock_ping_output(ping_output):CODE
LOWtests/integration_tests/performance/test_initrd.py28def test_microvm_initrd_with_serial(uvm_with_initrd, huge_pages):CODE
LOWtests/integration_tests/performance/test_network.py97def test_network_tcp_throughput(CODE
LOW…tegration_tests/performance/test_vhost_user_metrics.py16def test_vhost_user_block_metrics(uvm, vcpu_count, metrics):CODE
LOWtests/integration_tests/performance/test_steal_time.py21def test_pvtime_steal_time_increases(uvm):CODE
LOW…sts/integration_tests/performance/test_rate_limiter.py97def test_rx_rate_limiting_cpu_load(uvm):CODE
LOW…sts/integration_tests/performance/test_rate_limiter.py237def _check_tx_rate_limit_patch(test_microvm):CODE
LOW…sts/integration_tests/performance/test_rate_limiter.py263def _check_rx_rate_limit_patch(test_microvm):CODE
LOW…sts/integration_tests/performance/test_rate_limiter.py340def _start_iperf_server_on_guest(test_microvm):CODE
LOW…sts/integration_tests/performance/test_rate_limiter.py356def _start_iperf_server_on_host(netns_cmd_prefix):CODE
LOWtests/integration_tests/performance/test_snapshot.py153def test_post_restore_latency(CODE
LOWtests/integration_tests/performance/test_snapshot.py266def test_snapshot_create_latency(CODE
LOWtests/integration_tests/performance/test_pmem.py156def emit_fio_single_read_metrics(logs_dir, metrics):CODE
LOWtests/integration_tests/performance/test_balloon.py51def test_hinting_reporting_cpu(CODE
LOWtests/integration_tests/performance/test_balloon.py126def test_hinting_fault_latency(CODE
LOW…gration_tests/performance/test_process_startup_time.py19def test_startup_time_new_pid_ns(microvm_factory, guest_kernel, rootfs, metrics):CODE
LOW…gration_tests/performance/test_process_startup_time.py31def test_startup_time_daemonize(microvm_factory, guest_kernel, rootfs, metrics):CODE
158 more matches not shown…
Empty Error Handlers17 hits · 85 pts
SeverityFileLineSnippetContext
HIGHtests/conftest.py455except: # pylint: disable=bare-exceptCODE
HIGHtests/conftest.py473except: # pylint: disable=bare-exceptCODE
HIGHtests/integration_tests/security/test_custom_seccomp.py84except:CODE
HIGH…ts/integration_tests/functional/test_cmd_line_start.py391except: # pylint: disable=bare-exceptCODE
HIGH…ts/integration_tests/functional/test_cmd_line_start.py415except: # pylint: disable=bare-exceptCODE
HIGHtests/integration_tests/functional/test_vsock.py316except (SocketTimeout, ConnectionResetError, BrokenPipeError):CODE
HIGHtests/framework/jailer.py206except TimeoutError:CODE
HIGHtests/framework/utils.py526except (FileNotFoundError, PermissionError):CODE
HIGHtests/framework/utils.py537except (FileNotFoundError, PermissionError, IndexError, ValueError):CODE
HIGHtests/framework/utils.py551except (FileNotFoundError, PermissionError):CODE
HIGHtests/framework/utils.py589except (FileNotFoundError, subprocess.TimeoutExpired, OSError):CODE
HIGHtests/framework/utils.py622except (FileNotFoundError, subprocess.TimeoutExpired, OSError):CODE
HIGHtests/framework/utils.py574except (FileNotFoundError, PermissionError):CODE
HIGHtests/framework/utils.py567except (FileNotFoundError, PermissionError):CODE
HIGHtests/framework/microvm.py356except ProcessLookupError:CODE
HIGHtests/host_tools/drive.py63except OSError:CODE
HIGHtests/host_tools/cpu_load.py75except KeyError:CODE
Self-Referential Comments18 hits · 54 pts
SeverityFileLineSnippetContext
MEDIUMtools/release-tag.sh12# Create a tag for the specified release.COMMENT
MEDIUMresources/rebuild.sh139 # Create a temporary branch where we can apply patches and thenCOMMENT
MEDIUMresources/rebuild.sh327 # Create the directory in which we will store the kernels and rootfsCOMMENT
MEDIUMtests/integration_tests/security/test_jail.py544 # Create the parent cgroup.COMMENT
MEDIUMtests/integration_tests/performance/test_vsock.py138 # Create a vsock deviceCOMMENT
MEDIUM…/integration_tests/functional/test_net_config_space.py32 # Create the control ssh connection.COMMENT
MEDIUM…/integration_tests/functional/test_drive_vhost_user.py53 # Create a rw rootfs file that is unique to the microVMCOMMENT
MEDIUM…/integration_tests/functional/test_drive_vhost_user.py187 # Create a rw rootfs file that is unique to the microVMCOMMENT
MEDIUM…/integration_tests/functional/test_drive_vhost_user.py243 # Create a rootfs with partuuid unique to this microVMCOMMENT
MEDIUMtests/integration_tests/functional/test_vsock.py384 # Create a socat process in the guest which will connect to the host socatCOMMENT
MEDIUM…sts/functional/test_snapshot_not_losing_dirty_pages.py51 # Create a large file dynamically based on available spaceCOMMENT
MEDIUMtests/integration_tests/functional/test_api.py1123 # Create a vsock device.COMMENT
MEDIUMtests/integration_tests/functional/test_api.py1155 # Create a new entropy device should be OK.COMMENT
MEDIUM…ts/integration_tests/functional/test_snapshot_basic.py254 # Create a snapshot from a microvm.COMMENT
MEDIUMtests/framework/utils.py430 # Create the async processCOMMENT
MEDIUMtests/framework/microvm.py238 # Create the jailer context associated with this microvm.COMMENT
MEDIUMtests/host_tools/udp_offload.py37 # Create a UDP socketCOMMENT
MEDIUMtests/host_tools/network.py276 # Create the tap device tap0 directly in the network namespace to avoidCOMMENT
Fake / Example Data29 hits · 38 pts
SeverityFileLineSnippetContext
LOW⚡tests/data/metadata.json3 "meta-data": "Lorem ipsum dolor sit amet, consectetur adipiscing elit",CODE
LOW⚡tests/data/metadata.json3 "meta-data": "Lorem ipsum dolor sit amet, consectetur adipiscing elit",CODE
LOW⚡tests/data/metadata.json7 "meta-data": "Lorem ipsum dolor sit amet"CODE
LOW⚡tests/data/metadata.json7 "meta-data": "Lorem ipsum dolor sit amet"CODE
LOWtests/data/metadata_invalid.json3 "meta-data": "Lorem ipsum dolor sit amet, consectetur adipiscing elit",CODE
LOWtests/data/metadata_invalid.json3 "meta-data": "Lorem ipsum dolor sit amet, consectetur adipiscing elit",CODE
LOW⚡src/vmm/tests/devices.rs72 let mut dummy_data = [1u8; BYTES_COUNT];CODE
LOW⚡src/vmm/tests/devices.rs76 dummy_data.as_mut_ptr() as *const c_void,CODE
LOW⚡src/vmm/tests/devices.rs77 dummy_data.len(),CODE
LOW⚡src/vmm/tests/devices.rs80 assert!(dummy_data.len() == usize::try_from(rc).unwrap());CODE
LOWsrc/vmm/tests/devices.rs102 assert!(data[..31] == dummy_data[..31]);CODE
LOWsrc/vmm/tests/devices.rs103 assert!(data[32..64] == dummy_data[32..64]);CODE
LOW⚡src/vmm/tests/devices.rs118 dummy_data.as_mut_ptr() as *const c_void,CODE
LOW⚡src/vmm/tests/devices.rs119 dummy_data.len(),CODE
LOW⚡src/vmm/tests/devices.rs122 assert!(dummy_data.len() == usize::try_from(rc).unwrap());CODE
LOW⚡src/vmm/tests/devices.rs220 let mut dummy_data = [1u8; BYTES_COUNT];CODE
LOW⚡src/vmm/tests/devices.rs224 dummy_data.as_mut_ptr() as *const c_void,CODE
LOW⚡src/vmm/tests/devices.rs225 dummy_data.len(),CODE
LOW⚡src/vmm/tests/devices.rs228 assert!(dummy_data.len() == usize::try_from(rc).unwrap());CODE
LOWsrc/vmm/tests/devices.rs250 assert!(data[..31] == dummy_data[..31]);CODE
LOWsrc/vmm/tests/devices.rs251 assert!(data[32..64] == dummy_data[32..64]);CODE
LOW⚡src/vmm/tests/devices.rs266 dummy_data.as_mut_ptr() as *const c_void,CODE
LOW⚡src/vmm/tests/devices.rs267 dummy_data.len(),CODE
LOW⚡src/vmm/tests/devices.rs270 assert!(dummy_data.len() == usize::try_from(rc).unwrap());CODE
LOWsrc/vmm/src/vmm_config/drive.rs242 let dummy_id = String::from("1");CODE
LOWsrc/vmm/src/vmm_config/drive.rs244 drive_id: dummy_id.clone(),CODE
LOWsrc/vmm/src/vmm_config/drive.rs267 assert_eq!(block_devs.get_index_of_drive_id(&dummy_id), Some(0));CODE
LOWsrc/firecracker/src/api_server/request/drive.rs119 "drive_id": "dummy_id",CODE
LOWsrc/firecracker/src/api_server/request/balloon.rs165 "amount_mib": "dummy_id",CODE
Cross-Language Confusion7 hits · 35 pts
SeverityFileLineSnippetContext
HIGH…/integration_tests/functional/test_drive_vhost_user.py312 mkfs_mount_cmd = "mkfs.ext4 /dev/vdb && mkdir -p /tmp/tmp && mount /dev/vdb /tmp/tmp && umount /tmp/tmp"CODE
HIGHtests/integration_tests/functional/test_drive_virtio.py445 vm.ssh.check_output("mount /dev/vdb /tmp && umount /tmp")CODE
HIGHtests/integration_tests/functional/test_drive_virtio.py463 vm.ssh.check_output("mount /dev/vdb /tmp && umount /tmp")CODE
HIGHtests/integration_tests/functional/test_serial_io.py362 "echo 'hello' > /dev/ttyS0 && stty -F /dev/ttyS0 $(stty -F /dev/ttyS0 -g)"CODE
HIGHtests/framework/utils.py659 cmd = "cd ../src/firecracker && cargo pkgid | cut -d# -f2 | cut -d: -f2"CODE
HIGH.buildkite/pipeline_release_qa.py69 "| jq '(..|select(.priority? != null).priority) += 100' "CODE
HIGH.buildkite/pipeline_pr.py44 "./tools/devtool -y build_devctr && DEVCTR_IMAGE_TAG=latest ./tools/devtool test --no-build -- integration_testsCODE
Deep Nesting27 hits · 27 pts
SeverityFileLineSnippetContext
LOWtools/ab_plot.py113CODE
LOWtools/ab_plot.py191CODE
LOWtests/conftest.py410CODE
LOW…ts/integration_tests/security/test_seccomp_validate.py33CODE
LOW…sts/integration_tests/security/test_vulnerabilities.py240CODE
LOWtests/integration_tests/functional/test_vsock.py341CODE
LOWtests/integration_tests/functional/test_vsock.py499CODE
LOW…tegration_tests/functional/test_cpu_features_x86_64.py615CODE
LOW…tegration_tests/functional/test_cpu_features_x86_64.py870CODE
LOWtests/framework/swagger_validator.py52CODE
LOWtests/framework/swagger_validator.py156CODE
LOWtests/framework/gitlint_rules.py24CODE
LOWtests/framework/guest_stats.py62CODE
LOWtests/framework/jailer.py85CODE
LOWtests/framework/jailer.py180CODE
LOWtests/framework/utils.py498CODE
LOWtests/framework/microvm.py317CODE
LOWtests/framework/microvm.py602CODE
LOWtests/framework/static_analysis.py441CODE
LOWtests/framework/static_analysis.py565CODE
LOWtests/framework/utils_cpuid.py106CODE
LOWtests/host_tools/fcmetrics.py28CODE
LOWtests/host_tools/fcmetrics.py460CODE
LOW.buildkite/pipeline_perf.py181CODE
LOW.buildkite/common.py134CODE
LOW.buildkite/common.py364CODE
LOW.buildkite/common.py440CODE
Decorative Section Separators6 hits · 21 pts
SeverityFileLineSnippetContext
MEDIUMtests/conftest.py592# =============================================================================COMMENT
MEDIUMtests/conftest.py594# =============================================================================COMMENT
MEDIUM⚡…sts/integration_tests/security/test_vulnerabilities.py191 # ==============================COMMENT
MEDIUM⚡…sts/integration_tests/security/test_vulnerabilities.py194 # --------------------------------------------COMMENT
MEDIUMsrc/vmm/src/logger/rate_limited.rs16//! ┌───────────────────┬────────────────────────────────────────┐COMMENT
MEDIUMsrc/vmm/src/logger/rate_limited.rs18//! └───────────────────┴────────────────────────────────────────┘COMMENT
Hallucination Indicators2 hits · 20 pts
SeverityFileLineSnippetContext
CRITICALsrc/vmm/src/devices/virtio/transport/pci/device.rs634 let bar_offset: u32 = self.cap_pci_cfg_info.cap.cap.offset.into();CODE
CRITICALsrc/vmm/src/devices/virtio/transport/pci/device.rs659 let bar_offset: u32 = self.cap_pci_cfg_info.cap.cap.offset.into();CODE
Redundant / Tautological Comments11 hits · 16 pts
SeverityFileLineSnippetContext
LOWtools/ab_plot.py215 # Check if difference is significantCOMMENT
LOWtests/integration_tests/performance/test_huge_pages.py200 # Verify if guest can run commands, and also wake up the fast page fault helper to trigger page faults.COMMENT
LOWtests/integration_tests/functional/test_net.py62 # Check if the high ingress traffic broke the net interface.COMMENT
LOWtests/integration_tests/functional/test_metrics.py131 # Verify if guest can run commands.COMMENT
LOWtests/integration_tests/functional/test_error_code.py35 # Check if FC process is closedCOMMENT
LOWtests/integration_tests/functional/test_max_devices.py54 # Verify if guest can run commands.COMMENT
LOWtests/integration_tests/functional/test_uffd.py101 # Verify if the restored guest works.COMMENT
LOWtests/integration_tests/functional/test_uffd.py107 # Verify if the restored guest works.COMMENT
LOWtests/integration_tests/functional/test_drive_virtio.py49 # Check if reading from the entire disk results in a file of the same sizeCOMMENT
LOWtests/integration_tests/functional/test_serial_io.py271 # Check if the total memory size changed.COMMENT
LOWtests/framework/swagger_validator.py176 # Check if it's a parameter placeholder or exact matchCOMMENT
Excessive Try-Catch Wrapping11 hits · 12 pts
SeverityFileLineSnippetContext
LOWtests/framework/properties.py135 except Exception:CODE
LOWtests/framework/utils_vsock.py54 except Exception as err:CODE
LOWtests/framework/http_api.py65 except Exception as e:CODE
LOWtests/framework/http_api.py93 except Exception as e:CODE
LOWtests/framework/http_api.py109 except Exception as e:CODE
LOWtests/framework/utils.py74 except Exception as exc:CODE
LOWtests/framework/utils.py83 except Exception as exc:CODE
MEDIUMtests/host_tools/udp_offload.py57 eprint(f"Error sending message: {e}")CODE
LOWtests/host_tools/network.py59 except Exception as exc:CODE
LOWtests/host_tools/network.py149 except Exception:CODE
LOWtests/host_tools/network.py225 except Exception as exc:CODE
AI Slop Vocabulary4 hits · 10 pts
SeverityFileLineSnippetContext
LOW…ts/integration_tests/security/test_seccomp_validate.py77 # We just add 1000000 to the allowed arg and assume itCOMMENT
MEDIUM.github/codecov.yml2 # We utilize optional statuses that are okay to fail, soCOMMENT
MEDIUMsrc/vmm/src/vstate/vm.rs770 // TODO: Once Host 5.10 goes out of support, we can make this more robust and work onCOMMENT
MEDIUMsrc/firecracker/examples/uffd/uffd_utils.rs80 // happening, but let's try to be a bit more robust and retry a few timesCOMMENT
Structural Annotation Overuse6 hits · 10 pts
SeverityFileLineSnippetContext
LOW…tegration_tests/functional/test_cpu_features_x86_64.py450 # Step 1: Verify that guest CPUID exposes IA32_ARCH_CAPABILITIES.COMMENT
LOW⚡…tegration_tests/functional/test_cpu_features_x86_64.py475 # Step 2: Capture a live IA32_ARCH_CAPABILITIES baseline.COMMENT
LOW⚡…tegration_tests/functional/test_cpu_features_x86_64.py484 # Step 3: Build a minimal template that leaves CPUID unchanged, togglesCOMMENT
LOW…tegration_tests/functional/test_cpu_features_x86_64.py495 # Step 4: Apply the template and verify that only bit 0 differs from theCOMMENT
LOWdocs/device-hotplug.md68### Step 1: Remove the device from the guestCOMMENT
LOWdocs/device-hotplug.md84### Step 2: Unplug from the hostCOMMENT
Verbosity Indicators5 hits · 9 pts
SeverityFileLineSnippetContext
LOW…tegration_tests/functional/test_cpu_features_x86_64.py450 # Step 1: Verify that guest CPUID exposes IA32_ARCH_CAPABILITIES.COMMENT
LOW⚡…tegration_tests/functional/test_cpu_features_x86_64.py475 # Step 2: Capture a live IA32_ARCH_CAPABILITIES baseline.COMMENT
LOW⚡…tegration_tests/functional/test_cpu_features_x86_64.py484 # Step 3: Build a minimal template that leaves CPUID unchanged, togglesCOMMENT
LOW…tegration_tests/functional/test_cpu_features_x86_64.py495 # Step 4: Apply the template and verify that only bit 0 differs from theCOMMENT
LOWsrc/vmm/src/devices/virtio/queue.rs936 // With firecracker's batching of used IRQs, we need to check if addition of the lastCOMMENT
Slop Phrases3 hits · 8 pts
SeverityFileLineSnippetContext
MEDIUMtests/pyproject.toml29# to run only the similarities checker, you can use "--disable=allCOMMENT
LOWsrc/vmm/src/devices/virtio/balloon/util.rs58 // Don't forget to push the last range to the result.COMMENT
MEDIUMsrc/firecracker/src/main.rs134 // It's worth noting that the abort is caused by sending a SIG_ABORT signal to the process.COMMENT
AI Response Leakage1 hit · 8 pts
SeverityFileLineSnippetContext
HIGHsrc/vmm/src/devices/virtio/vsock/csm/connection.rs55// respected, the receiving peer's behaviour is undefined. In this implementation, weCOMMENT
AI Structural Patterns5 hits · 4 pts
SeverityFileLineSnippetContext
LOWtests/framework/jailer.py42CODE
LOWtests/framework/utils.py731CODE
LOWtests/framework/microvm.py660CODE
LOWtests/framework/microvm.py848CODE
LOWtests/framework/kvm.py39CODE
Modern Structural Boilerplate1 hit · 1 pts
SeverityFileLineSnippetContext
LOWtests/framework/static_analysis.py23logger = logging.getLogger(__name__)CODE