pahole.sh lacks executable permission in source archive
Nobody has claimed this yet.
Assessment
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Newbie friendliness
- 76/100
- Issue type
- Bug
- Clarity
- Clearly specified
- Activity status
- Quiet
- Tech stack
- shell
- Domain
- build-system
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.
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.
- Dominant language
- C
- Stars
- 17.4k
- Forks
- 1.9k
- PR merge metrics
- No merged PRs in 30d
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.
More from NVIDIA/open-gpu-kernel-modules
-
build-problem
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
NVIDIA/open-gpu-kernel-modules#1377 ·
-
Difficulty 1/5 Under an hour Newbie friendliness 88/100
NVIDIA/open-gpu-kernel-modules#1360 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
NVIDIA/open-gpu-kernel-modules#1343 · 1 comment ·
-
HKC G27H7Pro redundant long-HPD loop after DisplayPort link training (RTX 5060 Laptop, 610.57.04) Openbug
Difficulty 2/5 1-3 hours Newbie friendliness 88/100
NVIDIA/open-gpu-kernel-modules#1323 ·
-
build-problem
Difficulty 2/5 1-3 hours Newbie friendliness 74/100
NVIDIA/open-gpu-kernel-modules#1155 · 1 comment ·
All issues in NVIDIA/open-gpu-kernel-modules
Similar issues
-
level/task module/gcp type/bug
Difficulty 2/5 1-3 hours Newbie friendliness 85/100
-
docs
Difficulty 1/5 Under an hour Newbie friendliness 85/100
-
P3 sonic-vpp
Difficulty 2/5 1-3 hours Newbie friendliness 88/100
sonic-net/sonic-buildimage#29662 ·
-
Difficulty 1/5 Under an hour Newbie friendliness 94/100
spack/spack-packages#6586 ·
-
category:port-update
Difficulty 2/5 1-3 hours Newbie friendliness 72/100