examples: add cmdline-string.patch as a compatible example

This is a test example currently preferable to proc-version.patch as
crash utility has difficulty parsing /proc/version content after being
altered.

Signed-off-by: Linqing Lu <lilu@redhat.com>
This commit is contained in:
Linqing Lu 2023-01-25 13:45:03 -05:00
parent 059467dbc5
commit fa73892346
1 changed files with 13 additions and 0 deletions

View File

@ -0,0 +1,13 @@
diff -Nupr src.orig/fs/proc/cmdline.c src/fs/proc/cmdline.c
--- src.orig/fs/proc/cmdline.c 2022-10-24 15:41:08.858760066 -0400
+++ src/fs/proc/cmdline.c 2022-10-24 15:41:11.698715352 -0400
@@ -6,8 +6,7 @@
static int cmdline_proc_show(struct seq_file *m, void *v)
{
- seq_puts(m, saved_command_line);
- seq_putc(m, '\n');
+ seq_printf(m, "%s kpatch=1\n", saved_command_line);
return 0;
}