Skip to content

Feature/clear readmes - #9

Merged
GhostDog788 merged 19 commits into
mainfrom
feature/clear-readmes
May 23, 2026
Merged

GhostDog788 merged 19 commits into
mainfrom
feature/clear-readmes

Conversation

@GhostDog788

Copy link
Copy Markdown
Owner

No description provided.

@GhostDog788
GhostDog788 merged commit 5b490f8 into main May 23, 2026
6 checks passed
@GhostDog788
GhostDog788 deleted the feature/clear-readmes branch May 23, 2026 17:45

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 3cd0008a4b

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment on lines +213 to +217
tarballs=("$usr_src_dir"/linux-source-*.tar.* "$usr_src_dir"/linux-source-*/linux-source-*.tar.*)
shopt -u nullglob
if [[ ${#tarballs[@]} -gt 0 ]]; then
tarball="${tarballs[0]}"
if is_kernel_source_root "$source_tree"; then

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P1 Badge Select tarball matching live kernel before extraction

When no pre-extracted source tree is found, this path unconditionally uses tarballs[0], which is glob/lexicographic order, not the running kernel version. On hosts where multiple linux-source-*.tar.* files exist (common after kernel upgrades), this can extract the wrong kernel source and make GDB source mapping point to mismatched files, causing incorrect stepping/breakpoints in kernel code.

Useful? React with 👍 / 👎.

Comment on lines +223 to +226
tar -C "$source_tree" --strip-components=1 -xf "$tarball"
fi
ln -s source-tree "$source_link"
echo " kernel source: $source_link -> source-tree"

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 Badge Verify source-tree validity after tar extraction

The extraction always uses --strip-components=1 and then immediately links source to source-tree without validating that a kernel root was actually produced. If the tarball layout does not include a single top-level directory, strip-components=1 can drop top-level files and leave an incomplete tree, yet the script reports success and later debugging fails with missing kernel sources.

Useful? React with 👍 / 👎.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant