module.c (f991376e444aee8f5643a45703c1433bf7948940) | module.c (19809c2da28aee5860ad9a2eff760730a0710df0) |
---|---|
1/* Kernel module help for x86. 2 Copyright (C) 2001 Rusty Russell. 3 4 This program is free software; you can redistribute it and/or modify 5 it under the terms of the GNU General Public License as published by 6 the Free Software Foundation; either version 2 of the License, or 7 (at your option) any later version. 8 --- 71 unchanged lines hidden (view full) --- 80{ 81 void *p; 82 83 if (PAGE_ALIGN(size) > MODULES_LEN) 84 return NULL; 85 86 p = __vmalloc_node_range(size, MODULE_ALIGN, 87 MODULES_VADDR + get_module_load_offset(), | 1/* Kernel module help for x86. 2 Copyright (C) 2001 Rusty Russell. 3 4 This program is free software; you can redistribute it and/or modify 5 it under the terms of the GNU General Public License as published by 6 the Free Software Foundation; either version 2 of the License, or 7 (at your option) any later version. 8 --- 71 unchanged lines hidden (view full) --- 80{ 81 void *p; 82 83 if (PAGE_ALIGN(size) > MODULES_LEN) 84 return NULL; 85 86 p = __vmalloc_node_range(size, MODULE_ALIGN, 87 MODULES_VADDR + get_module_load_offset(), |
88 MODULES_END, GFP_KERNEL | __GFP_HIGHMEM, | 88 MODULES_END, GFP_KERNEL, |
89 PAGE_KERNEL_EXEC, 0, NUMA_NO_NODE, 90 __builtin_return_address(0)); 91 if (p && (kasan_module_alloc(p, size) < 0)) { 92 vfree(p); 93 return NULL; 94 } 95 96 return p; --- 161 unchanged lines hidden --- | 89 PAGE_KERNEL_EXEC, 0, NUMA_NO_NODE, 90 __builtin_return_address(0)); 91 if (p && (kasan_module_alloc(p, size) < 0)) { 92 vfree(p); 93 return NULL; 94 } 95 96 return p; --- 161 unchanged lines hidden --- |