Skip to content
GitLab
Projects Groups Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
  • Sign in
  • L linux-iv
  • 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-iv
  • Repository
Switch branch/tag
  • linux-iv
  • mm
  • kasan
  • common.c
Find file BlameHistoryPermalink
  • Walter Wu's avatar
    kasan: record and print the free track · e4b7818b
    Walter Wu authored Aug 06, 2020
    Move free track from kasan_alloc_meta to kasan_free_meta in order to make
    struct kasan_alloc_meta and kasan_free_meta size are both 16 bytes.  It is
    a good size because it is the minimal redzone size and a good number of
    alignment.
    
    For free track, we make some modifications as shown below:
    1) Remove the free_track from struct kasan_alloc_meta.
    2) Add the free_track into struct kasan_free_meta.
    3) Add a macro KASAN_KMALLOC_FREETRACK in order to check whether
       it can print free stack in KASAN report.
    
    [1]https://bugzilla.kernel.org/show_bug.cgi?id=198437
    
    [walter-zh.wu@mediatek.com: build fix]
      Link: http://lkml.kernel.org/r/20200710162440.23887-1-walter-zh.wu@mediatek.com
    
    
    
    Suggested-by: default avatarDmitry Vyukov <dvyukov@google.com>
    Co-developed-by: default avatarDmitry Vyukov <dvyukov@google.com>
    Signed-off-by: default avatarWalter Wu <walter-zh.wu@mediatek.com>
    Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
    Tested-by: default avatarDmitry Vyukov <dvyukov@google.com>
    Reviewed-by: default avatarDmitry Vyukov <dvyukov@google.com>
    Reviewed-by: default avatarAndrey Konovalov <andreyknvl@google.com>
    Cc: Andrey Ryabinin <aryabinin@virtuozzo.com>
    Cc: Alexander Potapenko <glider@google.com>
    Cc: Joel Fernandes <joel@joelfernandes.org>
    Cc: Jonathan Corbet <corbet@lwn.net>
    Cc: Josh Triplett <josh@joshtriplett.org>
    Cc: Lai Jiangshan <jiangshanlai@gmail.com>
    Cc: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
    Cc: Matthias Brugger <matthias.bgg@gmail.com>
    Cc: "Paul E . McKenney" <paulmck@kernel.org>
    Link: http://lkml.kernel.org/r/20200601051022.1230-1-walter-zh.wu@mediatek.com
    
    
    Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
    e4b7818b