Add an empty /proc/modules to procfs. - #14134
Open
luiscape wants to merge 1 commit into
Open
Conversation
It's my understanding that Linux exposes `/proc/modules` empty in most configurations (it's possible to not expose modules but that seems rare; only if the kernel is compile with that configuration). Some applications like NVIDIA's GPUDirect Storage libraries (libcufile) will scan `/proc/modules`. However, under gVisor, the scan never succeeds and will hang forever.
EtiennePerot
approved these changes
Aug 14, 2026
copybara-service Bot
pushed a commit
that referenced
this pull request
Aug 17, 2026
It's my understanding that Linux exposes `/proc/modules` empty in most configurations (it's possible to not expose modules but that seems rare; only if the kernel is compile with that configuration). Some applications like NVIDIA's GPUDirect Storage libraries (libcufile) will scan `/proc/modules`. However, if `/proc/modules` isn't available, applications will hang forever. This PR adds `/proc/modules` as an empty file to all Sandboxes. This was already possible with `--override-procs=module`, but I think that having it be available everywhere is more reasonable than optionally adding it in some configurations. FUTURE_COPYBARA_INTEGRATE_REVIEW=#14134 from luiscape:luis/expose-empty-proc-modules e0efc73 PiperOrigin-RevId: 964963099
copybara-service Bot
pushed a commit
that referenced
this pull request
Aug 17, 2026
It's my understanding that Linux exposes `/proc/modules` empty in most configurations (it's possible to not expose modules but that seems rare; only if the kernel is compile with that configuration). Some applications like NVIDIA's GPUDirect Storage libraries (libcufile) will scan `/proc/modules`. However, if `/proc/modules` isn't available, applications will hang forever. This PR adds `/proc/modules` as an empty file to all Sandboxes. This was already possible with `--override-procs=module`, but I think that having it be available everywhere is more reasonable than optionally adding it in some configurations. FUTURE_COPYBARA_INTEGRATE_REVIEW=#14134 from luiscape:luis/expose-empty-proc-modules e0efc73 PiperOrigin-RevId: 964963099
copybara-service Bot
pushed a commit
that referenced
this pull request
Aug 17, 2026
It's my understanding that Linux exposes `/proc/modules` empty in most configurations (it's possible to not expose modules but that seems rare; only if the kernel is compile with that configuration). Some applications like NVIDIA's GPUDirect Storage libraries (libcufile) will scan `/proc/modules`. However, if `/proc/modules` isn't available, applications will hang forever. This PR adds `/proc/modules` as an empty file to all Sandboxes. This was already possible with `--override-procs=module`, but I think that having it be available everywhere is more reasonable than optionally adding it in some configurations. FUTURE_COPYBARA_INTEGRATE_REVIEW=#14134 from luiscape:luis/expose-empty-proc-modules e0efc73 PiperOrigin-RevId: 964963099
copybara-service Bot
pushed a commit
that referenced
this pull request
Aug 17, 2026
It's my understanding that Linux exposes `/proc/modules` empty in most configurations (it's possible to not expose modules but that seems rare; only if the kernel is compile with that configuration). Some applications like NVIDIA's GPUDirect Storage libraries (libcufile) will scan `/proc/modules`. However, if `/proc/modules` isn't available, applications will hang forever. This PR adds `/proc/modules` as an empty file to all Sandboxes. This was already possible with `--override-procs=module`, but I think that having it be available everywhere is more reasonable than optionally adding it in some configurations. FUTURE_COPYBARA_INTEGRATE_REVIEW=#14134 from luiscape:luis/expose-empty-proc-modules e0efc73 PiperOrigin-RevId: 964963099
copybara-service Bot
pushed a commit
that referenced
this pull request
Aug 17, 2026
It's my understanding that Linux exposes `/proc/modules` empty in most configurations (it's possible to not expose modules but that seems rare; only if the kernel is compile with that configuration). Some applications like NVIDIA's GPUDirect Storage libraries (libcufile) will scan `/proc/modules`. However, if `/proc/modules` isn't available, applications will hang forever. This PR adds `/proc/modules` as an empty file to all Sandboxes. This was already possible with `--override-procs=module`, but I think that having it be available everywhere is more reasonable than optionally adding it in some configurations. FUTURE_COPYBARA_INTEGRATE_REVIEW=#14134 from luiscape:luis/expose-empty-proc-modules e0efc73 PiperOrigin-RevId: 964963099
copybara-service Bot
pushed a commit
that referenced
this pull request
Aug 17, 2026
It's my understanding that Linux exposes `/proc/modules` empty in most configurations (it's possible to not expose modules but that seems rare; only if the kernel is compile with that configuration). Some applications like NVIDIA's GPUDirect Storage libraries (libcufile) will scan `/proc/modules`. However, if `/proc/modules` isn't available, applications will hang forever. This PR adds `/proc/modules` as an empty file to all Sandboxes. This was already possible with `--override-procs=module`, but I think that having it be available everywhere is more reasonable than optionally adding it in some configurations. FUTURE_COPYBARA_INTEGRATE_REVIEW=#14134 from luiscape:luis/expose-empty-proc-modules e0efc73 PiperOrigin-RevId: 964963099
copybara-service Bot
pushed a commit
that referenced
this pull request
Aug 19, 2026
It's my understanding that Linux exposes `/proc/modules` empty in most configurations (it's possible to not expose modules but that seems rare; only if the kernel is compile with that configuration). Some applications like NVIDIA's GPUDirect Storage libraries (libcufile) will scan `/proc/modules`. However, if `/proc/modules` isn't available, applications will hang forever. This PR adds `/proc/modules` as an empty file to all Sandboxes. This was already possible with `--override-procs=module`, but I think that having it be available everywhere is more reasonable than optionally adding it in some configurations. FUTURE_COPYBARA_INTEGRATE_REVIEW=#14134 from luiscape:luis/expose-empty-proc-modules e0efc73 PiperOrigin-RevId: 964963099
copybara-service Bot
pushed a commit
that referenced
this pull request
Aug 19, 2026
It's my understanding that Linux exposes `/proc/modules` empty in most configurations (it's possible to not expose modules but that seems rare; only if the kernel is compile with that configuration). Some applications like NVIDIA's GPUDirect Storage libraries (libcufile) will scan `/proc/modules`. However, if `/proc/modules` isn't available, applications will hang forever. This PR adds `/proc/modules` as an empty file to all Sandboxes. This was already possible with `--override-procs=module`, but I think that having it be available everywhere is more reasonable than optionally adding it in some configurations. FUTURE_COPYBARA_INTEGRATE_REVIEW=#14134 from luiscape:luis/expose-empty-proc-modules e0efc73 PiperOrigin-RevId: 964963099
copybara-service Bot
pushed a commit
that referenced
this pull request
Aug 19, 2026
It's my understanding that Linux exposes `/proc/modules` empty in most configurations (it's possible to not expose modules but that seems rare; only if the kernel is compile with that configuration). Some applications like NVIDIA's GPUDirect Storage libraries (libcufile) will scan `/proc/modules`. However, if `/proc/modules` isn't available, applications will hang forever. This PR adds `/proc/modules` as an empty file to all Sandboxes. This was already possible with `--override-procs=module`, but I think that having it be available everywhere is more reasonable than optionally adding it in some configurations. FUTURE_COPYBARA_INTEGRATE_REVIEW=#14134 from luiscape:luis/expose-empty-proc-modules e0efc73 PiperOrigin-RevId: 964963099
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
It's my understanding that Linux exposes
/proc/modulesempty in most configurations (it's possible to not expose modules but that seems rare; only if the kernel is compile with that configuration).Some applications like NVIDIA's GPUDirect Storage libraries (libcufile) will scan
/proc/modules. However, if/proc/modulesisn't available, applications will hang forever.This PR adds
/proc/modulesas an empty file to all Sandboxes. This was already possible with--override-procs=module, but I think that having it be available everywhere is more reasonable than optionally adding it in some configurations.