mirror of
https://github.com/dynup/kpatch
synced 2024-12-29 16:52:04 +00:00
1d942ebb41
Rename the old Fedora 25 integration patch directory and rebase to Fedora 27 sources. Fixes #761. Signed-off-by: Joe Lawrence <joe.lawrence@redhat.com>
17 lines
526 B
Diff
17 lines
526 B
Diff
This is a test for #658: a kernel panic seen when patching an exported
|
|
function (e.g., kmalloc) which is used by patch_init().
|
|
---
|
|
diff -Nupr src.orig/mm/slub.c src/mm/slub.c
|
|
--- src.orig/mm/slub.c 2017-11-17 15:58:51.157211972 -0500
|
|
+++ src/mm/slub.c 2017-11-17 15:58:56.808211972 -0500
|
|
@@ -3731,6 +3731,9 @@ void *__kmalloc(size_t size, gfp_t flags
|
|
struct kmem_cache *s;
|
|
void *ret;
|
|
|
|
+ if (!jiffies)
|
|
+ printk("kpatch kmalloc\n");
|
|
+
|
|
if (unlikely(size > KMALLOC_MAX_CACHE_SIZE))
|
|
return kmalloc_large(size, flags);
|
|
|