Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
SUSE:SLE-12-SP4:Update
crash.4081
crash-fix_for_changes_to_kernel_module_structur...
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File crash-fix_for_changes_to_kernel_module_structure.patch of Package crash.4081
commit 098cdab16dfa6a85e9dad2cad604dee14ee15f66 Author: Dave Anderson <anderson@redhat.com> Date: Fri Feb 12 14:32:53 2016 -0500 Fix for the changes made to the kernel module structure introduced by this kernel commit for Linux 4.5 and later kernels: commit 8244062ef1e54502ef55f54cced659913f244c3e modules: fix longstanding /proc/kallsyms vs module insertion race. Without the patch, the crash session fails during initialization with the error message: "crash: invalid structure member offset: module_num_symtab". (anderson@redhat.com) diff --git a/kernel.c b/kernel.c index e8969bb..5d8a965 100644 --- a/kernel.c +++ b/kernel.c @@ -679,6 +679,22 @@ kernel_init() kt->flags |= KALLSYMS_V2; } + if (INVALID_MEMBER(module_num_symtab) && + MEMBER_EXISTS("module", "core_kallsyms")) { + ASSIGN_OFFSET(module_num_symtab) = + MEMBER_OFFSET("module", "core_kallsyms") + + MEMBER_OFFSET("mod_kallsyms", "num_symtab"); + ASSIGN_OFFSET(module_symtab) = + MEMBER_OFFSET("module", "core_kallsyms") + + MEMBER_OFFSET("mod_kallsyms", "symtab"); + ASSIGN_OFFSET(module_strtab) = + MEMBER_OFFSET("module", "core_kallsyms") + + MEMBER_OFFSET("mod_kallsyms", "strtab"); + + if (!(kt->flags & NO_KALLSYMS)) + kt->flags |= KALLSYMS_V2; + } + if (!(kt->flags & DWARF_UNWIND)) kt->flags |= NO_DWARF_UNWIND;
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor