Skip to content

Deny process_vm_readv in BPF filter from guest#47

Merged
jserv merged 1 commit intomainfrom
process-vm-readv
Apr 3, 2026
Merged

Deny process_vm_readv in BPF filter from guest#47
jserv merged 1 commit intomainfrom
process-vm-readv

Conversation

@jserv
Copy link
Copy Markdown
Contributor

@jserv jserv commented Apr 3, 2026

The guest runs as a child of the supervisor under the same UID, so process_vm_readv would succeed without a seccomp deny. The supervisor uses process_vm_readv on the child, not the reverse; the child has no legitimate use for it. Add NR 310 (x86_64) and NR 270 (aarch64) to the deny list alongside the existing process_vm_writev entries.

Change-Id: I9627c19c00750783fbf3da787b6c71be0a8876eb


Summary by cubic

Block process_vm_readv in the guest with a seccomp BPF deny to prevent cross-process memory reads.

  • Bug Fixes
    • Deny process_vm_readv (NR 310 on x86_64, NR 270 on aarch64) alongside process_vm_writev.
    • Add process-vm-deny-test and run it via scripts/run-tests.sh.
    • Syscall now fails early with EPERM, before the seccomp-unotify path.

Written for commit 00000b5. Summary will update on new commits.

cubic-dev-ai[bot]

This comment was marked as resolved.

The guest runs as a child of the supervisor under the same UID, so
process_vm_readv would succeed without a seccomp deny. The supervisor
uses process_vm_readv on the child, not the reverse; the child has no
legitimate use for it. Add NR 310 (x86_64) and NR 270 (aarch64) to the
deny list alongside the existing process_vm_writev entries.

Change-Id: I9627c19c00750783fbf3da787b6c71be0a8876eb
@jserv jserv force-pushed the process-vm-readv branch from 000058a to 00000b5 Compare April 3, 2026 15:21
@jserv jserv merged commit 94e8f7e into main Apr 3, 2026
5 checks passed
@jserv jserv deleted the process-vm-readv branch April 3, 2026 15:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant