Blame test/integration/fedora-27/convert-global-local.patch
|
Packit Service |
ac8aad |
This is a test for #658: a kernel panic seen when patching an exported
|
|
Packit Service |
ac8aad |
function (e.g., kmalloc) which is used by patch_init().
|
|
Packit Service |
ac8aad |
---
|
|
Packit Service |
ac8aad |
diff -Nupr src.orig/mm/slub.c src/mm/slub.c
|
|
Packit Service |
ac8aad |
--- src.orig/mm/slub.c 2017-11-17 15:58:51.157211972 -0500
|
|
Packit Service |
ac8aad |
+++ src/mm/slub.c 2017-11-17 15:58:56.808211972 -0500
|
|
Packit Service |
ac8aad |
@@ -3731,6 +3731,9 @@ void *__kmalloc(size_t size, gfp_t flags
|
|
Packit Service |
ac8aad |
struct kmem_cache *s;
|
|
Packit Service |
ac8aad |
void *ret;
|
|
Packit Service |
ac8aad |
|
|
Packit Service |
ac8aad |
+ if (!jiffies)
|
|
Packit Service |
ac8aad |
+ printk("kpatch kmalloc\n");
|
|
Packit Service |
ac8aad |
+
|
|
Packit Service |
ac8aad |
if (unlikely(size > KMALLOC_MAX_CACHE_SIZE))
|
|
Packit Service |
ac8aad |
return kmalloc_large(size, flags);
|
|
Packit Service |
ac8aad |
|