NVIDIA / NVIDIA/open-gpu-kernel-modules
pahole.sh lacks executable permission in source archive
Nobody has claimed this yet.
- Dominant language
- C
- Stars
- 17.4k
- Forks
- 1.9k
- PR merge metrics
- No merged PRs in 30d
Description
NVIDIA Open GPU Kernel Modules Version
modinfo nvidia-open 2>/dev/null | grep -E "version|vermagic" version: 595.71.05
Operating System and Version
6.12.88+deb13-amd64
Kernel Release
6.12.88
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
Title: pahole.sh lacks executable permission in source archive
Description:
The pahole.sh script in the source archive lacks the executable permission bit, causing DKMS builds to fail with "Permission denied" errors.
Environment:
- OS: Debian Trixie (testing)
- Kernel: 6.12.88+deb13-amd64
- DKMS: 3.3.0-1
- NVIDIA Open GPU Kernel Modules: 595.71.05
Steps to Reproduce:
- Extract source archive from nvidia-open-dkms package or clone repository
- Run
dkms build nvidia/595.71.05 -k 6.12.88+deb13-amd64 - Build fails with permission error
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
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.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by checking the executable mode of pahole.sh in the repository and in the generated nvidia-open-dkms source archive. Trace the archive or packaging step used by the dkms build command, then verify that the extracted script is executable and that the reported DKMS build no longer fails with Permission denied.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- shell
- Domain
- build-system
- Issue type
- Bug
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Activity status
- Quiet
- Clarity
- Clearly specified
- Newbie friendliness
- 76/100