On Wed, Aug 2, 2017 at 9:56 AM, Kees Cook wrote:
> On Wed, Aug 2, 2017 at 9:42 AM, Thomas Garnier wrote:
>> I noticed that not only we have the problem of gs:0x40 not being
>> accessible. The compiler will default to the fs register if
>> mcmodel=kernel is not set.
>>
>> On the next patch set, I
On Wed, Aug 2, 2017 at 9:42 AM, Thomas Garnier wrote:
> I noticed that not only we have the problem of gs:0x40 not being
> accessible. The compiler will default to the fs register if
> mcmodel=kernel is not set.
>
> On the next patch set, I am going to add support for
> -mstack-protector-guard=glo
On Thu, Jul 20, 2017 at 7:26 AM, Thomas Garnier wrote:
> On Wed, Jul 19, 2017 at 4:33 PM, H. Peter Anvin wrote:
>> On 07/19/17 11:26, Thomas Garnier wrote:
>>> On Tue, Jul 18, 2017 at 8:08 PM, Brian Gerst wrote:
On Tue, Jul 18, 2017 at 6:33 PM, Thomas Garnier
wrote:
> Perpcu uses
On Wed, Jul 19, 2017 at 4:33 PM, H. Peter Anvin wrote:
> On 07/19/17 11:26, Thomas Garnier wrote:
>> On Tue, Jul 18, 2017 at 8:08 PM, Brian Gerst wrote:
>>> On Tue, Jul 18, 2017 at 6:33 PM, Thomas Garnier wrote:
Perpcu uses a clever design where the .percu ELF section has a virtual
add
On 07/19/17 19:21, H. Peter Anvin wrote:
> On 07/19/17 16:33, H. Peter Anvin wrote:
>>>
>>> I agree that it is odd but that's how the compiler generates code. I
>>> will re-explore PIC options with mcmodel=small or medium, as mentioned
>>> on other threads.
>>
>> Why should the way compiler generat
On 07/19/17 16:33, H. Peter Anvin wrote:
>>
>> I agree that it is odd but that's how the compiler generates code. I
>> will re-explore PIC options with mcmodel=small or medium, as mentioned
>> on other threads.
>
> Why should the way compiler generates code affect the way we do things
> in assembl
On 07/19/17 11:26, Thomas Garnier wrote:
> On Tue, Jul 18, 2017 at 8:08 PM, Brian Gerst wrote:
>> On Tue, Jul 18, 2017 at 6:33 PM, Thomas Garnier wrote:
>>> Perpcu uses a clever design where the .percu ELF section has a virtual
>>> address of zero and the relocation code avoid relocating specific
On Tue, Jul 18, 2017 at 8:08 PM, Brian Gerst wrote:
> On Tue, Jul 18, 2017 at 6:33 PM, Thomas Garnier wrote:
>> Perpcu uses a clever design where the .percu ELF section has a virtual
>> address of zero and the relocation code avoid relocating specific
>> symbols. It makes the code simple and easi
On Tue, Jul 18, 2017 at 6:33 PM, Thomas Garnier wrote:
> Perpcu uses a clever design where the .percu ELF section has a virtual
> address of zero and the relocation code avoid relocating specific
> symbols. It makes the code simple and easily adaptable with or without
> SMP support.
>
> This desig