Re: [PATCH 2/2] x86: ia32_signal: remove unnecessary padding

From: Hiroshi Shimamoto
Date: Wed Nov 12 2008 - 13:34:48 EST


Andi Kleen wrote:
> Hiroshi Shimamoto <h-shimamoto@xxxxxxxxxxxxx> writes:
>
>> From: Hiroshi Shimamoto <h-shimamoto@xxxxxxxxxxxxx>
>>
>> Impact: cleanup
>
> Actually it's not a cleanup.
>
>> Remove unnecessary paddings, this saves 4 bytes.
>
> This might actually break code. The code is not actually used,
> but only kept around because some old gdb versions used this
> code as a marker for detecting signals.

I think, this cleanup doesn't change the code copied to user stack.
It removes additional 2 bytes from each struct, and these had not
been copied to user stack, because the structures were 10 bytes and
frame->retcode is 8 bytes.

Thanks,
Hiroshi Shimamoto
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/