Skip to content
GitLab
Projects Groups Topics Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
  • Register
  • Sign in
  • L linux
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributor statistics
    • Graph
    • Compare revisions
  • Issues 0
    • Issues 0
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 0
    • Merge requests 0
  • Deployments
    • Deployments
    • Releases
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • Repository
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Commits
  • Issue Boards
Collapse sidebar
  • Kirill Smelkov
  • linux
  • Repository
You need to sign in or sign up before continuing.
  • linux
  • scripts
  • basic
  • fixdep.c
Find file BlameHistoryPermalink
  • Lukas Bulwahn's avatar
    fixdep: exit with error code in error branches of do_config_file() · 7c2ec43a
    Lukas Bulwahn authored Jan 08, 2018
    do_config_file() should exit with an error code on internal run-time
    errors, and not return if it fails as then the error in do_config_file()
    would go unnoticed in the current code and allow the build to continue.
    The exit with error code will make the build fail in those very
    exceptional cases. If this occurs, this actually indicates a deeper
    problem in the execution of the kernel build process.
    
    Now, in these error cases, we do not explicitly free memory and close
    the file handlers in do_config_file(), as this is covered by exit().
    
    This issue in the fixdep script was introduced with its initial
    implementation back in 2002 by the original author Kai Germaschewski with
    this commit 04bd7217 ("kbuild: Make dependencies at compile time")
    in the linux history git tree, i.e.,
    git://git.kernel.org/pub/scm/linux/kernel/git/history/history.git.
    
    This issue was identified during the review of a previous patch that
    intended to address a memory leak detected by a static analysis tool.
    
    Link: https://lkml.org/lkml/2017/12/14/736
    
    
    
    Suggested-by: default avatarNicholas Mc Guire <der.herr@hofr.at>
    Suggested-by: default avatarMasahiro Yamada <yamada.masahiro@socionext.com>
    Signed-off-by: default avatarLukas Bulwahn <lukas.bulwahn@gmail.com>
    Signed-off-by: default avatarMasahiro Yamada <yamada.masahiro@socionext.com>
    7c2ec43a
GitLab Nexedi Edition | About GitLab | About Nexedi | 沪ICP备2021021310号-2 | 沪ICP备2021021310号-7