All of lore.kernel.org
 help / color / mirror / Atom feed
* [kernel-hardening] Expanding HARDENED_ATOMIC
@ 2016-10-29  5:05 David Windsor
  2016-10-29  6:57 ` [kernel-hardening] " Reshetova, Elena
  0 siblings, 1 reply; 3+ messages in thread
From: David Windsor @ 2016-10-29  5:05 UTC (permalink / raw)
  To: kernel-hardening, Reshetova, Elena, Hans Liljestrand, Kees Cook,
	AKASHI Takahiro, Colin Vidal

Hi,

I've created a branch on Elena's github repo called
hardened_atomic_on_next_expanded
(https://github.com/ereshetova/linux-stable/tree/hardened_atomic_on_next_expanded)
which incorporates the PAX_REFCOUNT changes to extend atomic_t
coverage to kernel reference counters that were originally integer
types.  Our work to this point only addresses existing atomic_t users:
this patch is a first attempt to convert non-atomic_t reference
counter users to use atomic_t, and thus get overflow protection.

The users addressed in this branch are:
  * struct fs_struct.users
  * struct tty_port.count
  * struct tty_ldisc_ops.refcount
  * struct pipe_inode_info.{readers|writers|files|waiting_writers}
  * struct kmem_cache.refcount

This branch currently does not compile, as I am in the process of
cherrypicking the necessary changes from PAX_REFCOUNT.

I wanted to let Elena/Hans know about this now, as they are preparing
the next RFC.  I don't know if we want to actually expand kernel
coverage in this round of RFC's, but there shouldn't be much more work
left to get this working.

Thanks,
David

^ permalink raw reply	[flat|nested] 3+ messages in thread

* [kernel-hardening] RE: Expanding HARDENED_ATOMIC
  2016-10-29  5:05 [kernel-hardening] Expanding HARDENED_ATOMIC David Windsor
@ 2016-10-29  6:57 ` Reshetova, Elena
  2016-10-29  7:13   ` [kernel-hardening] " David Windsor
  0 siblings, 1 reply; 3+ messages in thread
From: Reshetova, Elena @ 2016-10-29  6:57 UTC (permalink / raw)
  To: David Windsor, kernel-hardening, Hans Liljestrand, Kees Cook,
	AKASHI Takahiro, Colin Vidal

Hi David, 

Thank you for letting us know! The most up-to-date branch now is hardened_atomic_next since it contains most recent fixes and it is rebased on top of latest Linux-next stable. 
I will probably terminate hardened_atomic_on_next branch after I cherry-pick your documentation change. 

I would propose that we send the existing rfc this weekend without your new additions and then we can include them into new rfcv4 or it might be also new patch set all together since this one is already so big. 
What do you think?

Best Regards,
Elena.

> I've created a branch on Elena's github repo called hardened_atomic_on_next_expanded
(https://github.com/ereshetova/linux-stable/tree/hardened_atomic_on_next_expanded)
which incorporates the PAX_REFCOUNT changes to extend atomic_t coverage to kernel reference counters that were originally integer types.  Our work to this point only addresses existing atomic_t users:
this patch is a first attempt to convert non-atomic_t reference counter users to use atomic_t, and thus get overflow protection.

The users addressed in this branch are:
  * struct fs_struct.users
  * struct tty_port.count
  * struct tty_ldisc_ops.refcount
  * struct pipe_inode_info.{readers|writers|files|waiting_writers}
  * struct kmem_cache.refcount

This branch currently does not compile, as I am in the process of cherrypicking the necessary changes from PAX_REFCOUNT.

I wanted to let Elena/Hans know about this now, as they are preparing the next RFC.  I don't know if we want to actually expand kernel coverage in this round of RFC's, but there shouldn't be much more work left to get this working.

Thanks,
David

^ permalink raw reply	[flat|nested] 3+ messages in thread

* [kernel-hardening] Re: Expanding HARDENED_ATOMIC
  2016-10-29  6:57 ` [kernel-hardening] " Reshetova, Elena
@ 2016-10-29  7:13   ` David Windsor
  0 siblings, 0 replies; 3+ messages in thread
From: David Windsor @ 2016-10-29  7:13 UTC (permalink / raw)
  To: Reshetova, Elena
  Cc: kernel-hardening, Hans Liljestrand, Kees Cook, AKASHI Takahiro,
	Colin Vidal

On Sat, Oct 29, 2016 at 2:57 AM, Reshetova, Elena
<elena.reshetova@intel.com> wrote:
> Hi David,
>
> Thank you for letting us know! The most up-to-date branch now is hardened_atomic_next since it contains most recent fixes and it is rebased on top of latest Linux-next stable.
> I will probably terminate hardened_atomic_on_next branch after I cherry-pick your documentation change.
>
> I would propose that we send the existing rfc this weekend without your new additions and then we can include them into new rfcv4 or it might be also new patch set all together since this one is already so big.
> What do you think?
>

I tend to agree: I will recreate the hardened_atomic_on_next_expanded
branch on top of hardened_atomic_next and call it
hardened_atomic_next_expanded.  I will post patches as soon as it
compiles.

> Best Regards,
> Elena.
>
>> I've created a branch on Elena's github repo called hardened_atomic_on_next_expanded
> (https://github.com/ereshetova/linux-stable/tree/hardened_atomic_on_next_expanded)
> which incorporates the PAX_REFCOUNT changes to extend atomic_t coverage to kernel reference counters that were originally integer types.  Our work to this point only addresses existing atomic_t users:
> this patch is a first attempt to convert non-atomic_t reference counter users to use atomic_t, and thus get overflow protection.
>
> The users addressed in this branch are:
>   * struct fs_struct.users
>   * struct tty_port.count
>   * struct tty_ldisc_ops.refcount
>   * struct pipe_inode_info.{readers|writers|files|waiting_writers}
>   * struct kmem_cache.refcount
>
> This branch currently does not compile, as I am in the process of cherrypicking the necessary changes from PAX_REFCOUNT.
>
> I wanted to let Elena/Hans know about this now, as they are preparing the next RFC.  I don't know if we want to actually expand kernel coverage in this round of RFC's, but there shouldn't be much more work left to get this working.
>
> Thanks,
> David

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2016-10-29  7:13 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-10-29  5:05 [kernel-hardening] Expanding HARDENED_ATOMIC David Windsor
2016-10-29  6:57 ` [kernel-hardening] " Reshetova, Elena
2016-10-29  7:13   ` [kernel-hardening] " David Windsor

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.