#4157 closed defect (fixed)

pthread_spin_unlock() may corrupt the thread stack if RTEMS_PROFILING and RTEMS_SMP is enabled

Reported by: Sebastian Huber Owned by: Sebastian Huber
Priority: normal Milestone: 6.1
Component: posix Version: 4.11
Severity: normal Keywords:
Cc: Blocked By:
Blocking:

Description

The call to _SMP_lock_Stats_register_or_max_section_time() registers a dummy statistics block which resides on the thread stack.

Change History (1)

comment:1 Changed on Oct 19, 2020 at 3:33:52 PM by Sebastian Huber <sebastian.huber@…>

Resolution: fixed
Status: assignedclosed

In 2b9fb314/rtems:

posix: Fix pthread_spin_unlock()

Prevent a call to _SMP_lock_Stats_register_or_max_section_time(). This fixes a
thread stack corruption in case RTEMS_PROFILING and RTEMS_SMP is enabled.

Close #4157.

Note: See TracTickets for help on using tickets.