RTEMS | libmisc/stackchk: Add stack smashing protection (!277)
Joel Sherrill (@joel)
gitlab at rtems.org
Fri May 16 13:16:53 UTC 2025
Joel Sherrill commented on a discussion on cpukit/libmisc/stackchk/check.c: https://gitlab.rtems.org/rtems/rtos/rtems/-/merge_requests/277#note_122614
> RTEMS_SYSINIT_ISR_STACK,
> RTEMS_SYSINIT_ORDER_MIDDLE
> );
> +
> +/*
> + * This is the default implementation. The user can override it
> + * at the application
> + */
> +RTEMS_WEAK RTEMS_NO_RETURN void __stack_chk_fail(void)
@Hamzi None of the stack protection should be wrapped in conditionals. RTEMS needs to build it all the time. It is up to applications whether they turn it on or not. This is the same for many other things the user can turn on.
--
View it on GitLab: https://gitlab.rtems.org/rtems/rtos/rtems/-/merge_requests/277#note_122614
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/20250516/6945fa9e/attachment.htm>
More information about the bugs
mailing list