Follow @Openwall on Twitter for new release announcements and other news
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <CAEXv5_j8Bo9u1WUTH2QwYwye+j9270S+rgzjnsvcbojrYW7sfQ@mail.gmail.com>
Date: Thu, 17 Dec 2015 12:55:44 -0500
From: David Windsor <dave@...gbits.org>
To: kernel-hardening@...ts.openwall.com
Subject: Re: [RFC PATCH v2 01/12] x86: add PAX_REFCOUNT support

On Thu, Dec 17, 2015 at 12:16 PM, Greg KH <gregkh@...uxfoundation.org> wrote:
> On Thu, Dec 17, 2015 at 09:57:39AM -0500, David Windsor wrote:
>> --- a/include/linux/sched.h
>> +++ b/include/linux/sched.h
>> @@ -749,6 +749,17 @@ struct signal_struct {
>>  #ifdef CONFIG_TASKSTATS
>>       struct taskstats *stats;
>>  #endif
>> +
>> +#ifdef CONFIG_GRKERNSEC
>> +     u32 curr_ip;
>> +     u32 saved_ip;
>> +     u32 gr_saddr;
>> +     u32 gr_daddr;
>> +     u16 gr_sport;
>> +     u16 gr_dport;
>> +     u8 used_accept:1;
>> +#endif
>> +
>
> Why is this here in this patch?
>

For pax_report_refcount_overflow in fs/exec.c:

1754: if (current->signal->curr_ip)

This is guarded by CONFIG_PAX_REFCOUNT, which, as it stands, should
depend on CONFIG_GRKERNSEC.  The Kconfig options likely need to
change, depending on the naming of these features moving forward.

> thanks,
>
> greg k-h

Powered by blists - more mailing lists

Confused about mailing lists and their use? Read about mailing lists on Wikipedia and check out these guidelines on proper formatting of your messages.