stack stressor can segfault because of shared alternative stack in sighandler

Bug #1845464 reported by Colin Ian King
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
stress-ng (Ubuntu)
Fix Released
High
Colin Ian King

Bug Description

It turns out that a shared mmap'd altstack is a really bad idea as it can be clobbered by child and parent causing segfaults on the return path out of the handler. Make the altstack privately mapped.

Changed in stress-ng (Ubuntu):
importance: Undecided → High
status: New → In Progress
assignee: nobody → Colin Ian King (colin-king)
Revision history for this message
Colin Ian King (colin-king) wrote :
Changed in stress-ng (Ubuntu):
status: In Progress → Fix Committed
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package stress-ng - 0.10.07-1

---------------
stress-ng (0.10.07-1) unstable; urgency=medium

  * Makefile: bump version
  * Remove smatchify script, we now use other tools to static
    analyse stress-ng
  * core-helper: add sanity check if ttyname returns NULL to avoid
    null pointer dereferencing
  * stress-fp-error: fix checks for NaN and Inf (LP: #1846216)
  * Don't show utf8 chars on dump consoles (LP: #1846196)
  * stress-clone: make child process larger to make it more
    OOM-able (LP: #1845948)
  * core-out-of-memory: open and close proc interface after each write
  * Add autobuild detection of getsid() for better portability
  * stress-ng.h: only use x86 target clones for x86 arches
  * stress-rdrand: unroll loop x 4 more times for more throughput
  * inline the __keep_stressing function, reduce call overhead
    for more throughput
  * stress-stack: make alternative signal stack privately
    mapped (LP: #1845464)

 -- Colin King <email address hidden> Tue, 1 Oct 2019 16:39:52 +0100

Changed in stress-ng (Ubuntu):
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.