#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: qualification
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 (2)

comment:1 Changed on 10/19/20 at 15:33:52 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.

comment:2 Changed on 06/23/21 at 07:07:55 by Sebastian Huber

Keywords: qualification added
Note: See TracTickets for help on using tickets.