Skip to content

pahole.sh lacks executable permission in source archive #1155

@JeanCarfantan

Description

@JeanCarfantan

NVIDIA Open GPU Kernel Modules Version

595.71.05

Operating System and Version

6.12.88+deb13-amd64

Kernel Release

6.12.88-1 (2026-05-15) x86_64 GNU/Linux

Please confirm you are running a stable release kernel (e.g. not a -rc). We do not accept bug reports for unreleased kernels.

  • I am running on a stable kernel release.

Build Command

sudo dkms build nvidia/595.71.05 -k 6.12.88+deb13-amd64

Terminal output/Build Log

/bin/sh: 1: /var/lib/dkms/nvidia/595.71.05/build/pahole.sh: Permission denied make[4]: *** [.../Makefile.modfinal:64: .../nvidia-drm.ko] Error 126

More Info

Steps to Reproduce:

  1. Extract source archive from nvidia-open-dkms package or clone repository
  2. Run dkms build nvidia/595.71.05 -k 6.12.88+deb13-amd64
  3. Build fails with permission error

Root Cause:
The pahole.sh file is extracted without executable permissions (-rw-r--r-- instead of -rwxr-xr-x). Since DKMS extracts sources fresh for each kernel build, chmod +x is lost on every rebuild.

Expected Behavior:
The pahole.sh file should have executable permissions in the source archive.

Workaround:
Manually run: find /var/lib/dkms/nvidia/*/source/pahole.sh -exec chmod +x {} \;

Proposed Fix:
Add executable permission to pahole.sh in the build system or packaging configuration.

Additional Context:
This affects all DKMS builds of nvidia-open on systems with kernels requiring BTF generation.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions