Skip to content
GitLab
Projects Groups Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
  • Sign in
  • L linux-ae
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
    • Locked Files
  • Issues 0
    • Issues 0
    • List
    • Boards
    • Service Desk
    • Milestones
    • Iterations
    • Requirements
  • Merge requests 0
    • Merge requests 0
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
    • Test Cases
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Packages and registries
    • Packages and registries
    • Container Registry
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Code review
    • Insights
    • Issue
    • Repository
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • linux-arm
  • linux-ae
  • Repository
Switch branch/tag
  • linux-ae
  • arch
  • x86
  • kernel
  • crash.c
Find file BlameHistoryPermalink
  • AKASHI Takahiro's avatar
    x86: kexec_file: purge system-ram walking from prepare_elf64_headers() · cbe66016
    AKASHI Takahiro authored Apr 13, 2018
    While prepare_elf64_headers() in x86 looks pretty generic for other
    architectures' use, it contains some code which tries to list crash
    memory regions by walking through system resources, which is not always
    architecture agnostic.  To make this function more generic, the related
    code should be purged.
    
    In this patch, prepare_elf64_headers() simply scans crash_mem buffer
    passed and add all the listed regions to elf header as a PT_LOAD
    segment.  So walk_system_ram_res(prepare_elf64_headers_callback) have
    been moved forward before prepare_elf64_headers() where the callback,
    prepare_elf64_headers_callback(), is now responsible for filling up
    crash_mem buffer.
    
    Meanwhile exclude_elf_header_ranges() used to be called every time in
    this callback it is rather redundant and now called only once in
    prepare_elf_headers() as well.
    
    Link: http://lkml.kernel.org/r/20180306102303.9063-4-takahiro.akashi@linaro.org
    
    
    Signed-off-by: default avatarAKASHI Takahiro <takahiro.akashi@linaro.org>
    Acked-by: default avatarDave Young <dyoung@redhat.com>
    Tested-by: default avatarDave Young <dyoung@redhat.com>
    Cc: Vivek Goyal <vgoyal@redhat.com>
    Cc: Baoquan He <bhe@redhat.com>
    Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
    Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
    cbe66016