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

Joel Sherrill (@joel) gitlab at rtems.org
Mon May 12 20:27:03 UTC 2025




Joel Sherrill commented on a discussion on testsuites/libtests/stackchk06/config.c: https://gitlab.rtems.org/rtems/rtos/rtems/-/merge_requests/277#note_122571

 > + */
 > +
 > +#ifdef HAVE_CONFIG_H
 > +#include "config.h"
 > +#endif
 > +
 > +#include <rtems.h>
 > +#include <rtems/score/thread.h>
 > +#include <rtems/bspIo.h>
 > +
 > +const char rtems_test_name[] = "STACKCHK06";
 > +
 > +RTEMS_NO_RETURN void __stack_chk_fail(void);
 > +
 > +/* configuration information */
 > +#define CONFIGURE_STACK_CHECKER_ENABLED

I think they are related and share code but can be independently enabled. @gedare Does this mean we need tests for each combination of stack checker enable and stack protect?

-- 
View it on GitLab: https://gitlab.rtems.org/rtems/rtos/rtems/-/merge_requests/277#note_122571
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/20250512/91e5b41d/attachment-0001.htm>


More information about the bugs mailing list