Skip to content

Add an empty /proc/modules to procfs. - #14134

Open
luiscape wants to merge 1 commit into
google:masterfrom
luiscape:luis/expose-empty-proc-modules
Open

Add an empty /proc/modules to procfs.#14134
luiscape wants to merge 1 commit into
google:masterfrom
luiscape:luis/expose-empty-proc-modules

Conversation

@luiscape

Copy link
Copy Markdown
Contributor

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.

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.
@github-actions
github-actions Bot requested review from fvoznika and xinzhong August 14, 2026 23:47
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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants