[Skiboot] [PATCH] core: Fix backtrace for gcc 6

Joel Stanley joel at jms.id.au
Tue Mar 1 14:21:00 AEDT 2016


On Mon, Feb 29, 2016 at 3:56 PM, Vasant Hegde
<hegdevasant at linux.vnet.ibm.com> wrote:
>> -       unsigned long *fp = __builtin_frame_address(1);
>> +       unsigned long *fp = __builtin_frame_address(0);
>>
>>         *count = 0;
>>         while(room) {
>> +               fp = (unsigned long *)fp[0];
>
>
> What if fp is NULL?

We dereference a null pointer.

Will we ever find ourselves in the situation where there is no frame pointer?


More information about the Skiboot mailing list