Re: [PATCHSET x86/master] add stack protector support for x86_32

From: Tejun Heo
Date: Mon Feb 09 2009 - 20:38:03 EST


Ingo Molnar wrote:
>> I had a patch a while back that would convert those function to take a
>> pointer to pt_regs instead of assuming that the struct was passed by
>> value. [...]
>
> Yes, that's the right solution. Getting a new call convention recognized
> is a 3 years timeframe project for a whole team of hackers. Adding a
> pointer is a 30 minutes project for one good kernel hacker ;)
>
>> [...] I'll take a stab at reworking it on top of this series.
>
> Cool!

We do add some overhead that way and Linus was against it several
years ago, so the addition of asmlinkage_protect() macros. Given that
the calling convention thing never happened through all the years and
modern machines probably wouldn't care much one way or the other, it
could just be about time to convert to pointer passing.

Thanks.

--
tejun
--
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/