Re: [kernel-hardening] Re: [PATCH 0/3] exec: Pin stack limit during exec

2018-01-19 Thread David Windsor
I have some spare cycles; is there any more relevant information outside of this thread? Thanks, David > On Jan 19, 2018, at 5:49 PM, Kees Cook wrote: > >> On Tue, Jan 9, 2018 at 12:23 PM, Kees Cook wrote: >> Attempts to solve problems with the stack limit changing during exec >> continue to

[tip:locking/core] locking/refcount: Add refcount_t API kernel-doc comments

2017-03-12 Thread tip-bot for David Windsor
Commit-ID: bd174169c7a12a37b3b4aa2221f084ade010b182 Gitweb: http://git.kernel.org/tip/bd174169c7a12a37b3b4aa2221f084ade010b182 Author: David Windsor AuthorDate: Fri, 10 Mar 2017 10:34:12 -0500 Committer: Ingo Molnar CommitDate: Mon, 13 Mar 2017 07:41:08 +0100 locking/refcount: Add

[PATCH v3] refcount: add refcount_t API kernel-doc comments

2017-03-10 Thread David Windsor
v3: rebase against latest Linus tree; re-add include/linux/refcount.h missing from v2 series Signed-off-by: David Windsor --- include/linux/refcount.h | 19 lib/refcount.c | 124 ++- 2 files changed, 130 insertions(+), 13 deletions

[PATCH] refcount: add refcount_t API kernel-doc comments

2017-03-02 Thread David Windsor
This adds kernel-doc comments for the new refcount_t API. v2: incorporate fixes from Peter Zijlstra and Ingo Molnar Signed-off-by: David Windsor --- lib/refcount.c | 122 +++-- 1 file changed, 110 insertions(+), 12 deletions(-) diff --git a

[PATCH] refcount: add refcount_t API kernel-doc comments

2017-02-28 Thread David Windsor
This adds kernel-doc comments for the new refcount_t API. Signed-off-by: David Windsor --- include/linux/refcount.h | 19 ++ lib/refcount.c | 95 +++- 2 files changed, 105 insertions(+), 9 deletions(-) diff --git a/include/linux

Re: [RFC][PATCH 00/10] On inode::i_count and the usage vs reference count issue

2017-02-24 Thread David Windsor
On Fri, Feb 24, 2017 at 11:43 AM, Christoph Hellwig wrote: > Usage counts are common and useful, so for now they should stay as-is > and if people can came up with a useful primitive for them we can > consider implementing it. > While developing the refcount_t API, we used coccinelle to find area

Re: [RFC][PATCH 2/7] kref: Add kref_read()

2016-11-21 Thread David Windsor
On Mon, Nov 21, 2016 at 2:27 PM, Reshetova, Elena wrote: >> On Mon, Nov 21, 2016 at 04:49:15PM +0100, Peter Zijlstra wrote: >> > > Speaking of non-fitting patterns. This one is quite common in >> > > networking code for refcounters: >> > > >> > > if (atomic_cmpxchg(&cur->refcnt, 1, 0) == 1) {} Thi

Re: [RFC][PATCH 2/7] kref: Add kref_read()

2016-11-21 Thread David Windsor
On Fri, Nov 18, 2016 at 12:33 PM, Reshetova, Elena wrote: > On Thu, Nov 17, 2016 at 09:53:42AM +0100, Peter Zijlstra wrote: >> On Wed, Nov 16, 2016 at 12:08:52PM -0800, Alexei Starovoitov wrote: >> >> > I prefer to avoid 'fixing' things that are not broken. >> > Note, prog->aux->refcnt already has

Re: [RFC][PATCH 2/7] kref: Add kref_read()

2016-11-17 Thread David Windsor
On Thu, Nov 17, 2016 at 3:34 AM, Peter Zijlstra wrote: > On Wed, Nov 16, 2016 at 10:58:38AM -0800, Kees Cook wrote: >> On Wed, Nov 16, 2016 at 2:09 AM, Peter Zijlstra wrote: >> > On Tue, Nov 15, 2016 at 12:53:35PM -0800, Kees Cook wrote: >> >> >> >> What should we do about things like this (bpf_p

Re: [kernel-hardening] Re: [RFC v4 PATCH 00/13] HARDENED_ATOMIC

2016-11-10 Thread David Windsor
On Thu, Nov 10, 2016 at 3:56 PM, Kees Cook wrote: > On Thu, Nov 10, 2016 at 12:37 PM, Peter Zijlstra wrote: >> On Thu, Nov 10, 2016 at 10:24:35PM +0200, Elena Reshetova wrote: >>> This series brings the PaX/Grsecurity PAX_REFCOUNT >>> feature support to the upstream kernel. All credit for the >>>

Re: [kernel-hardening] Re: [RFC v4 PATCH 00/13] HARDENED_ATOMIC

2016-11-10 Thread David Windsor
On Thu, Nov 10, 2016 at 4:27 PM, Kees Cook wrote: > On Thu, Nov 10, 2016 at 1:23 PM, David Windsor wrote: >> On Thu, Nov 10, 2016 at 4:01 PM, Kees Cook wrote: >>> On Thu, Nov 10, 2016 at 12:48 PM, Will Deacon wrote: >>>> On Thu, Nov 10, 2016 at 09:37:49PM +0100,

Re: [kernel-hardening] Re: [RFC v4 PATCH 00/13] HARDENED_ATOMIC

2016-11-10 Thread David Windsor
On Thu, Nov 10, 2016 at 4:01 PM, Kees Cook wrote: > On Thu, Nov 10, 2016 at 12:48 PM, Will Deacon wrote: >> On Thu, Nov 10, 2016 at 09:37:49PM +0100, Peter Zijlstra wrote: >>> On Thu, Nov 10, 2016 at 10:24:35PM +0200, Elena Reshetova wrote: >>> > This series brings the PaX/Grsecurity PAX_REFCOUNT