mirror of
https://github.com/dynup/kpatch
synced 2025-01-31 01:01:34 +00:00
3aa8fd9a4f
Patches rebased against RHEL-8.2 GA kernel-4.18.0-193.el8. Tests disabled for errors when building against updated 4.18.0-193.3.1.el8_2.x86_64 z-stream kernel: * data-read-mostly.patch: dev.o: Found a jump label at __netif_receive_skb_core()+0x32, using key netstamp_needed_key. Jump labels aren't supported with this kernel. Use static_key_enabled() instead. dev.o: Found a jump label at __netif_receive_skb_core()+0x95, using key generic_xdp_needed_key. Jump labels aren't supported with this kernel. Use static_key_enabled() instead. dev.o: Found a jump label at __netif_receive_skb_core()+0xd0, using key ingress_needed_key. Jump labels aren't supported with this kernel. Use static_key_enabled() instead. dev.o: Found a jump label at __netif_receive_skb_core()+0x412, using key nf_hooks_needed. Jump labels aren't supported with this kernel. Use static_key_enabled() instead. /root/github-kpatch/kpatch-build/create-diff-object: ERROR: dev.o: kpatch_regenerate_special_section: 2344: Found 4 jump label(s) in the patched code. Jump labels aren't currently supported. Use static_key_enabled() instead. * gcc-static-local-var-4.patch (ppc64le only): aio.o: Found a jump label at aio_free_ring()+0x7c, using key devmap_managed_key. Jump labels aren't supported with this kernel. Use static_key_enabled() instead. /root/github-kpatch/kpatch-build/create-diff-object: ERROR: aio.o: kpatch_regenerate_special_section: 2344: Found 1 jump label(s) in the patched code. Jump labels aren't currently supported. Use static_key_enabled() instead. * shadow-newpid.patch: fork.o: WARNING: unable to correlate static local variable ctr.70325 used by _do_fork, assuming variable is new fork.o: changed function: _do_fork exit.o: Found a jump label at do_exit()+0x6d3, using key devmap_managed_key. Jump labels aren't supported with this kernel. Use static_key_enabled() instead. /root/github-kpatch/kpatch-build/create-diff-object: ERROR: exit.o: kpatch_regenerate_special_section: 2344: Found 1 jump label(s) in the patched code. Jump labels aren't currently supported. Use static_key_enabled() instead. * special-static.patch: fork.o: Found a jump label at copy_process.part.34()+0x1fc, using key memcg_kmem_enabled_key. Jump labels aren't supported with this kernel. Use static_key_enabled() instead. fork.o: Found a jump label at copy_process.part.34()+0x21b, using key memory_cgrp_subsys_enabled_key. Jump labels aren't supported with this kernel. Use static_key_enabled() instead. fork.o: Found a jump label at copy_process.part.34()+0x72a, using key memory_cgrp_subsys_enabled_key. Jump labels aren't supported with this kernel. Use static_key_enabled() instead. fork.o: Found a jump label at copy_process.part.34()+0x773, using key memcg_kmem_enabled_key. Jump labels aren't supported with this kernel. Use static_key_enabled() instead ./root/github-kpatch/kpatch-build/create-diff-object: ERROR: fork.o: kpatch_regenerate_special_section: 2344: Found 4 jump label(s) in the patched code. Jump labels aren't currently supported. Use static_key_enabled() instead. Signed-off-by: Joe Lawrence <joe.lawrence@redhat.com>
35 lines
1.1 KiB
Diff
35 lines
1.1 KiB
Diff
diff -Nupr src.orig/fs/proc/cmdline.c src/fs/proc/cmdline.c
|
|
--- src.orig/fs/proc/cmdline.c 2020-05-12 11:14:29.250791853 -0400
|
|
+++ src/fs/proc/cmdline.c 2020-05-12 11:15:23.488441252 -0400
|
|
@@ -17,3 +17,10 @@ static int __init proc_cmdline_init(void
|
|
return 0;
|
|
}
|
|
fs_initcall(proc_cmdline_init);
|
|
+
|
|
+#include <linux/printk.h>
|
|
+void kpatch_print_message(void)
|
|
+{
|
|
+ if (!jiffies)
|
|
+ printk("hello there!\n");
|
|
+}
|
|
diff -Nupr src.orig/fs/proc/meminfo.c src/fs/proc/meminfo.c
|
|
--- src.orig/fs/proc/meminfo.c 2020-05-12 11:14:29.250791853 -0400
|
|
+++ src/fs/proc/meminfo.c 2020-05-12 11:15:23.488441252 -0400
|
|
@@ -21,6 +21,8 @@
|
|
#include <asm/pgtable.h>
|
|
#include "internal.h"
|
|
|
|
+void kpatch_print_message(void);
|
|
+
|
|
void __attribute__((weak)) arch_report_meminfo(struct seq_file *m)
|
|
{
|
|
}
|
|
@@ -57,6 +59,7 @@ static int meminfo_proc_show(struct seq_
|
|
sreclaimable = global_node_page_state(NR_SLAB_RECLAIMABLE);
|
|
sunreclaim = global_node_page_state(NR_SLAB_UNRECLAIMABLE);
|
|
|
|
+ kpatch_print_message();
|
|
show_val_kb(m, "MemTotal: ", i.totalram);
|
|
show_val_kb(m, "MemFree: ", i.freeram);
|
|
show_val_kb(m, "MemAvailable: ", available);
|