Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 6 additions & 2 deletions .github/workflows/hugo.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,9 @@ on:
push:
branches:
- main
pull_request:
branches:
- dev

# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:
Expand Down Expand Up @@ -37,7 +40,7 @@ jobs:
- name: Install Hugo CLI
run: |
wget -O ${{ runner.temp }}/hugo.deb https://github.com/gohugoio/hugo/releases/download/v${HUGO_VERSION}/hugo_extended_${HUGO_VERSION}_linux-amd64.deb \
&& sudo dpkg -i ${{ runner.temp }}/hugo.deb
&& sudo dpkg -i ${{ runner.temp }}/hugo.deb
- name: Install Dart Sass
run: sudo snap install dart-sass
- name: Checkout
Expand All @@ -53,13 +56,14 @@ jobs:
- name: Build with Hugo
env:
# For maximum backward compatibility with Hugo modules
TZ: "Europe/Lisbon"
HUGO_ENVIRONMENT: production
HUGO_ENV: production
run: |
hugo \
--gc \
--minify \
--baseURL "${{ steps.pages.outputs.base_url }}/"
--baseURL "${{ steps.pages.outputs.base_url }}/"
- name: Upload artifact
uses: actions/upload-pages-artifact@v3
with:
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
title: "Linux Debug"
title: Linux Hacking
date: 2025-08-30T20:35:21+01:00
draft: false
description: Linux kernel debugging
Expand All @@ -10,14 +10,14 @@ author: "ShellTux"
type: "post"
layout: "post"
cover:
hidden: false # hide everywhere but not in structured data
hidden: true # hide everywhere but not in structured data
image: "covers/linux-debug.png"
alt:
caption:
relative: true
---

Hacking linux kernel
Hacking linux kernel to change shebang implementation

<!--more-->

Expand Down Expand Up @@ -314,7 +314,7 @@ $ /tmp/shebang.sh

Notice that foo bar baz is passed as a single argument.

![linux-debug-tools](/linux-debug/linux-debug-tools.gif)
![linux-debug-tools](tools.gif)

### Debugging the kernel

Expand Down Expand Up @@ -345,7 +345,7 @@ On 2 terminal panes:
(gdb) target remote :1234
```

![linux-gdb](/linux-debug/linux-debug-gdb.gif)
![linux-gdb](gdb.gif)

Take your time to understand why everything after the interpreter is considered a single argument.

Expand Down Expand Up @@ -453,4 +453,4 @@ git apply < ../binfmt_script.patch
make -j4 # Recompile
```

![post-patch](/linux-debug/linux-post-patch.gif)
![post-patch](post-patch.gif)