<feed xmlns='http://www.w3.org/2005/Atom'>
<title>user/sven/linux.git/scripts/livepatch, branch next/master</title>
<subtitle>Linux Kernel
</subtitle>
<id>https://git.stealer.net/cgit.cgi/user/sven/linux.git/atom?h=next%2Fmaster</id>
<link rel='self' href='https://git.stealer.net/cgit.cgi/user/sven/linux.git/atom?h=next%2Fmaster'/>
<link rel='alternate' type='text/html' href='https://git.stealer.net/cgit.cgi/user/sven/linux.git/'/>
<updated>2026-04-03T07:01:17Z</updated>
<entry>
<title>Merge branch into tip/master: 'objtool/core'</title>
<updated>2026-04-03T07:01:17Z</updated>
<author>
<name>Ingo Molnar</name>
<email>mingo@kernel.org</email>
</author>
<published>2026-04-03T07:01:16Z</published>
<link rel='alternate' type='text/html' href='https://git.stealer.net/cgit.cgi/user/sven/linux.git/commit/?id=7ded7e183c4d4edbdf304e132d92f94c177194ea'/>
<id>urn:sha1:7ded7e183c4d4edbdf304e132d92f94c177194ea</id>
<content type='text'>
 # New commits in objtool/core:
    1735858caa4b ("objtool/x86: Reorder ORC register numbering")
    96f3b16a9de5 ("objtool: Support Clang RAX DRAP sequence")
    51a0b7c4ede5 ("livepatch/klp-build: report patch validation fuzz")
    1fbc9b855f08 ("livepatch/klp-build: add terminal color output")
    b41d8b7d1752 ("livepatch/klp-build: provide friendlier error messages")
    e506ad210d6d ("livepatch/klp-build: improve short-circuit validation")
    b4a535193935 ("livepatch/klp-build: fix shellcheck complaints")
    0573bcc4ffca ("livepatch/klp-build: add Makefile with check target")
    e4dbf70615e5 ("livepatch/klp-build: add grep-override function")
    d36a7343f4ba ("livepatch/klp-build: switch to GNU patch and recountdiff")
    757bd10ff0f0 ("livepatch/klp-build: support patches that add/remove files")
    4b57e97be22f ("objtool/klp: Correlate locals to globals")
    cdea5cadb0ca ("objtool/klp: Match symbols based on demangled_name for global variables")
    020b71dcafee ("objtool/klp: Remove .llvm suffix in demangle_name()")
    8206277746d5 ("objtool/klp: Also demangle global objects")
    0b8fc6adc3d9 ("objtool/klp: Use sym-&gt;demangled_name for symbol_name hash")
    a3f28d207245 ("objtool/klp: Remove trailing '_' in demangle_name()")
    a1cbaff2ea23 ("objtool/klp: Remove redundant strcmp() in correlate_symbols()")
    c19c854b3074 ("objtool: Use section/symbol type helpers")

Signed-off-by: Ingo Molnar &lt;mingo@kernel.org&gt;
</content>
</entry>
<entry>
<title>livepatch/klp-build: report patch validation fuzz</title>
<updated>2026-03-16T19:52:53Z</updated>
<author>
<name>Joe Lawrence</name>
<email>joe.lawrence@redhat.com</email>
</author>
<published>2026-03-10T20:37:51Z</published>
<link rel='alternate' type='text/html' href='https://git.stealer.net/cgit.cgi/user/sven/linux.git/commit/?id=51a0b7c4ede5c775e9d362e5f465ca993e076823'/>
<id>urn:sha1:51a0b7c4ede5c775e9d362e5f465ca993e076823</id>
<content type='text'>
Capture the output of the patch command to detect when a patch applies
with fuzz or line offsets.

If such "fuzz" is detected during the validation phase, warn the user
and display the details.  This helps identify input patches that may
need refreshing against the target source tree.

Ensure that internal patch operations (such as those in refresh_patch or
during the final build phase) can still run quietly.

Signed-off-by: Joe Lawrence &lt;joe.lawrence@redhat.com&gt;
Acked-by: Song Liu &lt;song@kernel.org&gt;
Link: https://patch.msgid.link/20260310203751.1479229-13-joe.lawrence@redhat.com
Signed-off-by: Josh Poimboeuf &lt;jpoimboe@kernel.org&gt;
</content>
</entry>
<entry>
<title>livepatch/klp-build: add terminal color output</title>
<updated>2026-03-16T19:52:53Z</updated>
<author>
<name>Joe Lawrence</name>
<email>joe.lawrence@redhat.com</email>
</author>
<published>2026-03-10T20:37:50Z</published>
<link rel='alternate' type='text/html' href='https://git.stealer.net/cgit.cgi/user/sven/linux.git/commit/?id=1fbc9b855f08f89ccf933324a5cbd8c53ee94d87'/>
<id>urn:sha1:1fbc9b855f08f89ccf933324a5cbd8c53ee94d87</id>
<content type='text'>
Improve the readability of klp-build output by implementing a basic
color scheme.  When the standard output and error are connected to a
terminal, highlight status messages in bold and warning/error prefixes
in yellow/red.

Acked-by: Song Liu &lt;song@kernel.org&gt;
Signed-off-by: Joe Lawrence &lt;joe.lawrence@redhat.com&gt;
Link: https://patch.msgid.link/20260310203751.1479229-12-joe.lawrence@redhat.com
Signed-off-by: Josh Poimboeuf &lt;jpoimboe@kernel.org&gt;
</content>
</entry>
<entry>
<title>livepatch/klp-build: provide friendlier error messages</title>
<updated>2026-03-16T19:52:53Z</updated>
<author>
<name>Joe Lawrence</name>
<email>joe.lawrence@redhat.com</email>
</author>
<published>2026-03-10T20:37:49Z</published>
<link rel='alternate' type='text/html' href='https://git.stealer.net/cgit.cgi/user/sven/linux.git/commit/?id=b41d8b7d1752f2f85fc1a87f5e4f4dda45adad15'/>
<id>urn:sha1:b41d8b7d1752f2f85fc1a87f5e4f4dda45adad15</id>
<content type='text'>
Provide more context for common klp-build failure modes.  Clarify which
user-provided patch is unsupported or failed to apply, and explicitly
identify which kernel build (original or patched) failed.

Acked-by: Song Liu &lt;song@kernel.org&gt;
Signed-off-by: Joe Lawrence &lt;joe.lawrence@redhat.com&gt;
Link: https://patch.msgid.link/20260310203751.1479229-11-joe.lawrence@redhat.com
Signed-off-by: Josh Poimboeuf &lt;jpoimboe@kernel.org&gt;
</content>
</entry>
<entry>
<title>livepatch/klp-build: Fix inconsistent kernel version</title>
<updated>2026-03-16T19:50:17Z</updated>
<author>
<name>Josh Poimboeuf</name>
<email>jpoimboe@kernel.org</email>
</author>
<published>2026-03-10T20:37:48Z</published>
<link rel='alternate' type='text/html' href='https://git.stealer.net/cgit.cgi/user/sven/linux.git/commit/?id=6f93f7b06810d04acc6b106a7d5ecd6000f80545'/>
<id>urn:sha1:6f93f7b06810d04acc6b106a7d5ecd6000f80545</id>
<content type='text'>
If .config hasn't been synced with auto.conf, any recent changes to
CONFIG_LOCALVERSION* may not get reflected in the kernel version name.

Use "make syncconfig" to force them to sync, and "make -s kernelrelease"
to get the version instead of having to construct it manually.

Fixes: 24ebfcd65a87 ("livepatch/klp-build: Introduce klp-build script for generating livepatch modules")
Closes: https://lore.kernel.org/20260217160645.3434685-10-joe.lawrence@redhat.com
Reported-by: Joe Lawrence &lt;joe.lawrence@redhat.com&gt;
Signed-off-by: Josh Poimboeuf &lt;jpoimboe@kernel.org&gt;
Signed-off-by: Joe Lawrence &lt;joe.lawrence@redhat.com&gt;
Acked-by: Song Liu &lt;song@kernel.org&gt;
Link: https://patch.msgid.link/20260310203751.1479229-10-joe.lawrence@redhat.com
Signed-off-by: Josh Poimboeuf &lt;jpoimboe@kernel.org&gt;
</content>
</entry>
<entry>
<title>livepatch/klp-build: improve short-circuit validation</title>
<updated>2026-03-16T19:46:49Z</updated>
<author>
<name>Joe Lawrence</name>
<email>joe.lawrence@redhat.com</email>
</author>
<published>2026-03-10T20:37:47Z</published>
<link rel='alternate' type='text/html' href='https://git.stealer.net/cgit.cgi/user/sven/linux.git/commit/?id=e506ad210d6d7aeaff4bca777428c8c8f9850150'/>
<id>urn:sha1:e506ad210d6d7aeaff4bca777428c8c8f9850150</id>
<content type='text'>
Update SHORT_CIRCUIT behavior to better handle patch validation and
argument processing in later klp-build steps.

Perform patch validation for both step 1 (building original kernel) and
step 2 (building patched kernel) to ensure patches are verified before
any compilation occurs.

Additionally, allow the user to omit input patches when skipping past
step 2.

Acked-by: Song Liu &lt;song@kernel.org&gt;
Signed-off-by: Joe Lawrence &lt;joe.lawrence@redhat.com&gt;
Link: https://patch.msgid.link/20260310203751.1479229-9-joe.lawrence@redhat.com
Signed-off-by: Josh Poimboeuf &lt;jpoimboe@kernel.org&gt;
</content>
</entry>
<entry>
<title>livepatch/klp-build: fix shellcheck complaints</title>
<updated>2026-03-16T19:46:49Z</updated>
<author>
<name>Joe Lawrence</name>
<email>joe.lawrence@redhat.com</email>
</author>
<published>2026-03-10T20:37:46Z</published>
<link rel='alternate' type='text/html' href='https://git.stealer.net/cgit.cgi/user/sven/linux.git/commit/?id=b4a53519393521c68ec65f43bfebd64f178e6220'/>
<id>urn:sha1:b4a53519393521c68ec65f43bfebd64f178e6220</id>
<content type='text'>
Fix or suppress the following shellcheck warnings:

  In klp-build line 57:
  	command grep "$@" || true
                               ^--^ SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly).

Fix the following warning:

  In klp-build line 565:
  		local file_dir="$(dirname "$file")"
                        ^------^ SC2034 (warning): file_dir appears unused. Verify use (or export if used externally).

Acked-by: Song Liu &lt;song@kernel.org&gt;
Signed-off-by: Joe Lawrence &lt;joe.lawrence@redhat.com&gt;
Link: https://patch.msgid.link/20260310203751.1479229-8-joe.lawrence@redhat.com
Signed-off-by: Josh Poimboeuf &lt;jpoimboe@kernel.org&gt;
</content>
</entry>
<entry>
<title>livepatch/klp-build: add Makefile with check target</title>
<updated>2026-03-16T19:46:48Z</updated>
<author>
<name>Joe Lawrence</name>
<email>joe.lawrence@redhat.com</email>
</author>
<published>2026-03-10T20:37:45Z</published>
<link rel='alternate' type='text/html' href='https://git.stealer.net/cgit.cgi/user/sven/linux.git/commit/?id=0573bcc4ffca498a6c644b0e1ccbe1a6d9b96a5c'/>
<id>urn:sha1:0573bcc4ffca498a6c644b0e1ccbe1a6d9b96a5c</id>
<content type='text'>
Add a standalone Makefile with a 'check' target that runs static code
analysis (shellcheck) on the klp-build script(s).  This is intended
strictly as a development aid.

Acked-by: Song Liu &lt;song@kernel.org&gt;
Signed-off-by: Joe Lawrence &lt;joe.lawrence@redhat.com&gt;
Link: https://patch.msgid.link/20260310203751.1479229-7-joe.lawrence@redhat.com
Signed-off-by: Josh Poimboeuf &lt;jpoimboe@kernel.org&gt;
</content>
</entry>
<entry>
<title>livepatch/klp-build: add grep-override function</title>
<updated>2026-03-16T19:46:48Z</updated>
<author>
<name>Joe Lawrence</name>
<email>joe.lawrence@redhat.com</email>
</author>
<published>2026-03-10T20:37:44Z</published>
<link rel='alternate' type='text/html' href='https://git.stealer.net/cgit.cgi/user/sven/linux.git/commit/?id=e4dbf70615e52255de3ff943ac08e0bbd080dcd6'/>
<id>urn:sha1:e4dbf70615e52255de3ff943ac08e0bbd080dcd6</id>
<content type='text'>
Provide a custom grep() function to catch direct usage of the command.
Bare grep calls are generally incompatible with pipefail and
errexit behavior (where a failed match causes the script to exit).

Developers can still call grep via command grep if that behavior is
explicitly desired.

Acked-by: Song Liu &lt;song@kernel.org&gt;
Signed-off-by: Joe Lawrence &lt;joe.lawrence@redhat.com&gt;
Link: https://patch.msgid.link/20260310203751.1479229-6-joe.lawrence@redhat.com
Signed-off-by: Josh Poimboeuf &lt;jpoimboe@kernel.org&gt;
</content>
</entry>
<entry>
<title>livepatch/klp-build: switch to GNU patch and recountdiff</title>
<updated>2026-03-16T19:46:48Z</updated>
<author>
<name>Joe Lawrence</name>
<email>joe.lawrence@redhat.com</email>
</author>
<published>2026-03-10T20:37:43Z</published>
<link rel='alternate' type='text/html' href='https://git.stealer.net/cgit.cgi/user/sven/linux.git/commit/?id=d36a7343f4bac518b6ef05e2ccc47acd3a2cdab9'/>
<id>urn:sha1:d36a7343f4bac518b6ef05e2ccc47acd3a2cdab9</id>
<content type='text'>
The klp-build script is currently very strict with input patches,
requiring them to apply cleanly via `git apply --recount`.  This
prevents the use of patches with minor contextual fuzz relative to the
target kernel sources.

To allow users to reuse a patch across similar kernel streams, switch to
using GNU patch and patchutils for intermediate patch manipulation.
Update the logic for applying, reverting, and regenerating patches:

- Use 'patch -p1' for better handling of context fuzz.
- Use 'recountdiff' to update line counts after FIX_PATCH_LINES.
- Drop git_refresh() and related git-specific logic.

Signed-off-by: Joe Lawrence &lt;joe.lawrence@redhat.com&gt;
Acked-by: Song Liu &lt;song@kernel.org&gt;
Link: https://patch.msgid.link/20260310203751.1479229-5-joe.lawrence@redhat.com
Signed-off-by: Josh Poimboeuf &lt;jpoimboe@kernel.org&gt;
</content>
</entry>
</feed>
