Re: pt_regs leak into userspace (was Re: [PATCH v3 20/71] ARC: Signal handling)

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Monday 11 February 2013 03:06 PM, Jonas Bonn wrote:
> On 11 February 2013 08:26, Vineet Gupta <Vineet.Gupta1@xxxxxxxxxxxx> wrote:
>
>> The only downside of this patch is that userspace signal stack grows in size,
>> since signal frame only cares about scratch regs (pt_regs), but has to accommodate
>> unused placeholder for callee regs too by virtue of using user_regs_struct.
> Is this really true?  Don't setcontext and friends require that _all_
> the registers be part of sigcontext?

But for an ABI - callee saved regs will anyhow be saved/restored even in
setcontext case ! So collecting it for that purpose seems useless, or am I missing
something here.

-Vineet

--
To unsubscribe from this list: send the line "unsubscribe linux-arch" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [Linux Kernel]     [Kernel Newbies]     [x86 Platform Driver]     [Netdev]     [Linux Wireless]     [Netfilter]     [Bugtraq]     [Linux Filesystems]     [Yosemite Discussion]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Device Mapper]

  Powered by Linux