[all-commits] [llvm/llvm-project] 395f73: msan: check that ucontext_t is initialized on sign...

Dmitry Vyukov via All-commits all-commits at lists.llvm.org
Wed Jan 5 04:21:03 PST 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 395f737c338c39b892d3ccdd8366dea4fc51c305
      https://github.com/llvm/llvm-project/commit/395f737c338c39b892d3ccdd8366dea4fc51c305
  Author: Dmitry Vyukov <dvyukov at google.com>
  Date:   2022-01-05 (Wed, 05 Jan 2022)

  Changed paths:
    M compiler-rt/lib/msan/msan_interceptors.cpp
    A compiler-rt/test/msan/Linux/signal_mcontext2.cpp

  Log Message:
  -----------
  msan: check that ucontext_t is initialized on signal return

A signal handler can alter ucontext_t to affect execution after
the signal returns. Check that the contents are initialized.
Restoring unitialized values in registers can't be good.

Reviewed By: vitalybuka

Differential Revision: https://reviews.llvm.org/D116209




More information about the All-commits mailing list