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
  • linux
  • kernel
  • sched
  • debug.c
Find file BlameHistoryPermalink
  • Colin Ian King's avatar
    sched/debug: Fix memory corruption caused by multiple small reads of flags · 8d4d9c7b
    Colin Ian King authored Oct 29, 2020
    Reading /proc/sys/kernel/sched_domain/cpu*/domain0/flags mutliple times
    with small reads causes oopses with slub corruption issues because the kfree is
    free'ing an offset from a previous allocation. Fix this by adding in a new
    pointer 'buf' for the allocation and kfree and use the temporary pointer tmp
    to handle memory copies of the buf offsets.
    
    Fixes: 5b9f8ff7
    
     ("sched/debug: Output SD flag names rather than their values")
    Reported-by: default avatarJeff Bastian <jbastian@redhat.com>
    Signed-off-by: default avatarColin Ian King <colin.king@canonical.com>
    Signed-off-by: default avatarPeter Zijlstra (Intel) <peterz@infradead.org>
    Reviewed-by: default avatarValentin Schneider <valentin.schneider@arm.com>
    Link: https://lkml.kernel.org/r/20201029151103.373410-1-colin.king@canonical.com
    8d4d9c7b
GitLab Nexedi Edition | About GitLab | About Nexedi | 沪ICP备2021021310号-2 | 沪ICP备2021021310号-7