[all-commits] [llvm/llvm-project] 0d91c1: [lldb] Fix use-after-free in jThreadsInfo stop inf...

Jonas Devlieghere via All-commits all-commits at lists.llvm.org
Mon Sep 14 18:08:39 PDT 2026


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 0d91c104dde79e5f4467c90cf109d16aabe45c99
      https://github.com/llvm/llvm-project/commit/0d91c104dde79e5f4467c90cf109d16aabe45c99
  Author: Jonas Devlieghere <jonas at devlieghere.com>
  Date:   2026-09-14 (Mon, 14 Sep 2026)

  Changed paths:
    M lldb/source/Plugins/Process/gdb-remote/ProcessGDBRemote.cpp
    M lldb/source/Plugins/Process/gdb-remote/ProcessGDBRemote.h

  Log Message:
  -----------
  [lldb] Fix use-after-free in jThreadsInfo stop info cache (#223488)

WillPublicStop iterates over the array borrowed from m_jthreadsinfo_sp
while WillResume concurrently resets the pointer on another thread,
freeing the array during the walk.

Protect the cached stop info with a mutex and copy the shared pointer
out before processing. Also modernize m_shared_cache_info to Guarded.

rdar://186776438



To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications


More information about the All-commits mailing list