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
  • mm
  • vmalloc.c
Find file BlameHistoryPermalink
  • Alexander Potapenko's avatar
    mm: kmsan: handle alloc failures in kmsan_ioremap_page_range() · fdea03e1
    Alexander Potapenko authored Apr 13, 2023
    Similarly to kmsan_vmap_pages_range_noflush(), kmsan_ioremap_page_range()
    must also properly handle allocation/mapping failures.  In the case of
    such, it must clean up the already created metadata mappings and return an
    error code, so that the error can be propagated to ioremap_page_range(). 
    Without doing so, KMSAN may silently fail to bring the metadata for the
    page range into a consistent state, which will result in user-visible
    crashes when trying to access them.
    
    Link: https://lkml.kernel.org/r/20230413131223.4135168-2-glider@google.com
    Fixes: b073d7f8
    
     ("mm: kmsan: maintain KMSAN metadata for page operations")
    Signed-off-by: default avatarAlexander Potapenko <glider@google.com>
    Reported-by: default avatarDipanjan Das <mail.dipanjan.das@gmail.com>
      Link: https://lore.kernel.org/linux-mm/CANX2M5ZRrRA64k0hOif02TjmY9kbbO2aCBPyq79es34RXZ=cAw@mail.gmail.com/
    
    
    Reviewed-by: default avatarMarco Elver <elver@google.com>
    Cc: Christoph Hellwig <hch@infradead.org>
    Cc: Dmitry Vyukov <dvyukov@google.com>
    Cc: Uladzislau Rezki (Sony) <urezki@gmail.com>
    Cc: <stable@vger.kernel.org>
    Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
    fdea03e1
GitLab Nexedi Edition | About GitLab | About Nexedi | 沪ICP备2021021310号-2 | 沪ICP备2021021310号-7