extable.c (b9ad8fe7b8cab3814d1de41e8ddca602b2646f4b) | extable.c (808b64565b028bd072c985624d5cbe4b6f5a5a35) |
---|---|
1// SPDX-License-Identifier: GPL-2.0-or-later 2/* Rewritten by Rusty Russell, on the backs of many others... 3 Copyright (C) 2001 Rusty Russell, 2002 Rusty Russell IBM. 4 5*/ 6#include <linux/ftrace.h> 7#include <linux/memory.h> 8#include <linux/extable.h> --- 50 unchanged lines hidden (view full) --- 59 e = search_module_extables(addr); 60 if (!e) 61 e = search_bpf_extables(addr); 62 return e; 63} 64 65int notrace core_kernel_text(unsigned long addr) 66{ | 1// SPDX-License-Identifier: GPL-2.0-or-later 2/* Rewritten by Rusty Russell, on the backs of many others... 3 Copyright (C) 2001 Rusty Russell, 2002 Rusty Russell IBM. 4 5*/ 6#include <linux/ftrace.h> 7#include <linux/memory.h> 8#include <linux/extable.h> --- 50 unchanged lines hidden (view full) --- 59 e = search_module_extables(addr); 60 if (!e) 61 e = search_bpf_extables(addr); 62 return e; 63} 64 65int notrace core_kernel_text(unsigned long addr) 66{ |
67 if (addr >= (unsigned long)_stext && 68 addr < (unsigned long)_etext) | 67 if (is_kernel_text(addr)) |
69 return 1; 70 71 if (system_state < SYSTEM_FREEING_INITMEM && 72 is_kernel_inittext(addr)) 73 return 1; 74 return 0; 75} 76 --- 73 unchanged lines hidden --- | 68 return 1; 69 70 if (system_state < SYSTEM_FREEING_INITMEM && 71 is_kernel_inittext(addr)) 72 return 1; 73 return 0; 74} 75 --- 73 unchanged lines hidden --- |