Skip to content

Conversation

@zvonkok
Copy link
Collaborator

@zvonkok zvonkok commented Jan 13, 2026

The kernel's devtmpfs (via mem.c driver) automatically creates /dev/null, /dev/zero, /dev/random, /dev/urandom when mounted. Symlinks (/dev/fd, /dev/stdin, etc.) are created by kata-agent.

  • Remove coreutils.rs (ln, mknod no longer needed)
  • Remove proc_symlinks() and device_nodes() from mount.rs
  • Remove mount_parsing fuzz target (no longer applicable)
  • Add #[ignore] to dangerous tests (module disable, power_off hook)
  • Add --include-ignored to CI workflows for safe runner execution

@zvonkok zvonkok marked this pull request as ready for review January 13, 2026 15:28
Copilot AI review requested due to automatic review settings January 13, 2026 15:28
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR removes manual device node and symlink creation by relying on the kernel's devtmpfs filesystem and kata-agent to handle /dev setup automatically. This simplifies the codebase by eliminating custom implementations of core utilities.

Changes:

  • Removed the coreutils module containing ln and mknod implementations
  • Removed manual device node and symlink creation from mount.rs
  • Removed the mount_parsing fuzz target and its configuration
  • Added #[ignore] attributes to dangerous tests that affect system state
  • Updated CI workflows to run ignored tests with --include-ignored flag

Reviewed changes

Copilot reviewed 9 out of 9 changed files in this pull request and generated 2 comments.

Show a summary per file
File Description
src/coreutils.rs Removed entire module - no longer needed for device setup
src/main.rs Removed coreutils module import
src/lib.rs Removed coreutils from public module exports
src/mount.rs Removed proc_symlinks() and device_nodes() functions, updated comments to reflect devtmpfs behavior, removed related tests
src/lockdown.rs Added #[ignore] attributes to tests that permanently modify system state
fuzz/fuzz_targets/mount_parsing.rs Removed obsolete fuzz target
fuzz/Cargo.toml Removed mount_parsing target configuration
.github/workflows/static-checks.yaml Added --include-ignored flag to run previously ignored tests in CI
.github/workflows/coverage.yaml Added --include-ignored flag for coverage of ignored tests

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Copilot AI review requested due to automatic review settings January 13, 2026 15:39
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 9 out of 9 changed files in this pull request and generated 3 comments.


💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@zvonkok zvonkok added the ok-to-test Ok to test label Jan 13, 2026
Copilot AI review requested due to automatic review settings January 13, 2026 15:53
The kernel's devtmpfs (via mem.c driver) automatically creates
/dev/null, /dev/zero, /dev/random, /dev/urandom when mounted.
Symlinks (/dev/fd, /dev/stdin, etc.) are created by kata-agent.

- Remove coreutils.rs (ln, mknod no longer needed)
- Remove proc_symlinks() and device_nodes() from mount.rs
- Remove mount_parsing fuzz target (no longer applicable)
- Add #[ignore] to dangerous tests (module disable, power_off hook)
- Add --include-ignored to CI workflows for safe runner execution

Co-Authored-By: Zvonko Kaiser <zkaiser@nvidia.com>
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 9 out of 9 changed files in this pull request and generated 1 comment.


💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@zvonkok zvonkok merged commit 0b319f2 into NVIDIA:main Jan 13, 2026
25 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ok-to-test Ok to test

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant