[PATCH v2 1/3] score: Enforce stack and TLS alignment

Kinsey Moore kinsey.moore at oarcorp.com
Wed Mar 3 13:22:20 UTC 2021


-----Original Message-----
From: Sebastian Huber <sebastian.huber at embedded-brains.de> 
Sent: Wednesday, March 3, 2021 02:44
To: Kinsey Moore <kinsey.moore at oarcorp.com>; devel at rtems.org
Subject: Re: [PATCH v2 1/3] score: Enforce stack and TLS alignment

> On 02/03/2021 23:35, Kinsey Moore wrote:
>> I don't see that _Stack_Extend_size() does any overflow handling. Should it? Mathematical overflow is a possibility, but I'd expect to see problems attempting the allocation long before that since it's just pulling from the workspace area of the heap.
>
> Yes, I added this recently:
>
> https://git.rtems.org/rtems/commit/?id=08cbd4ba201317d0f529cbdb48db9f4775804963
>
> The problem is that if there is an overflow, then you may allocate a 
> small  number.

Ah, sorry. My local copy was stale by a day and I didn't see that patch come through.

> Please have a look at this patch set:
>
> https://lists.rtems.org/pipermail/devel/2021-March/065012.html

Will do.

Kinsey


More information about the devel mailing list