RTEMS | libmisc/stackchk: Add stack smashing protection (!277)

Mohamed Hassan (@Hamzi) gitlab at rtems.org
Thu Oct 31 12:35:23 UTC 2024




Mohamed Hassan commented on a discussion on cpukit/libmisc/stackchk/check.c: https://gitlab.rtems.org/rtems/rtos/rtems/-/merge_requests/277#note_114124

 >    RTEMS_SYSINIT_ISR_STACK,
 >    RTEMS_SYSINIT_ORDER_MIDDLE
 >  );
 > +
 > +#ifdef DISABLE_STACK_CHK_GUARD_RUNTIME_CONFIG
 > +  __attribute__((weak)) uintptr_t __stack_chk_guard = STACK_CHK_GUARD_VALUE;
 > +
 > +#else
 > +  __attribute__((weak)) uintptr_t __stack_chk_guard = 0;
 > +
 > +/*
 > + * This function set the stack check guard value
 > + */
 > +static void __attribute__((constructor, 
 > +no_stack_protector)) __construct_stk_chk_guard()

Aha, sorry for misunderstanding I'll modify this.

-- 
View it on GitLab: https://gitlab.rtems.org/rtems/rtos/rtems/-/merge_requests/277#note_114124
You're receiving this email because of your account on gitlab.rtems.org.


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rtems.org/pipermail/bugs/attachments/20241031/80110df7/attachment.htm>


More information about the bugs mailing list