Hacktoberfest 2026: the issues maintainers tagged for October, open and beginner-friendly. Browse Hacktoberfest issues

diagnose: a line reading "blacklistamdgpu" is treated as blacklisting amdgpu

Open Beginner friendly
#506 0 comments 0 reactions 0 assignees View on GitHub

Maintainers usually reply within 2 days

@rominf is already working on this.

Since Oct 6, 2026.

  • #558 by @rominf — open

Assessment

Difficulty
2/5
Estimated time
1-3 hours
Newbie friendliness
76/100
Issue type
Bug
Clarity
Clearly specified
Activity status
Active
Tech stack
rust
Domain
cli

Research direction

Start at the line_blacklists_amdgpu function and read the doc comment describing the documented blacklist grammar. Verify the existing behavior with a line containing no whitespace after blacklist, then confirm that only lines matching the documented shape are reported by rocm diagnose.

Written by the indexing model from the issue text.

Description

bug

Current behavior

line_blacklists_amdgpu strips the blacklist prefix and then trims leading whitespace, so it never requires any whitespace between the directive and the module name:

line_blacklists_amdgpu("blacklistamdgpu") -> true

modprobe does not treat that line as a directive, so nothing is blacklisted — but rocm diagnose reports amdgpu_blacklisted_in for that file.

Expected behavior

Matches the contract the function's own doc comment states, ^\s*blacklist\s+amdgpu\b, where \s+ requires at least one whitespace character.

Steps to reproduce

Put a line reading exactly blacklistamdgpu in a file under /etc/modprobe.d/ and run rocm diagnose.

Consequence

The diagnosis points at a non-cause. A user is told to un-blacklist a module that was never blacklisted, while whatever actually prevented the driver loading goes unreported.

Possible solution

Require whitespace after the directive. The doc comment one line above already states the intended grammar; the code is the side that disagrees.

Environment

  • Built from main. Pure text parsing, platform-independent.

Additional context

Found by property-testing the modprobe grammar — the property asserted that a line only reports a blacklist when it matches the documented shape. Pre-existing; unrelated to any in-flight change, which is why it is filed separately rather than folded into one.

Dominant language
Rust
Stars
41
Forks
10
Avg merge
5d 14h
Merged PRs (30d)
87

Getting set up

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from ROCm/rocm-cli

All issues in ROCm/rocm-cli

Similar issues

More Rust issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.