linux-nfs.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [RFC][PATCH] nfsd: add +1 to reference counting scheme for struct nfsd4_session
@ 2017-02-09  7:38 David Windsor
  2017-02-11  6:42 ` David Windsor
  0 siblings, 1 reply; 14+ messages in thread
From: David Windsor @ 2017-02-09  7:38 UTC (permalink / raw)
  To: linux-nfs, netdev
  Cc: kernel-hardening, bfields, jlayton, keescook, elena.reshetova,
	dwindsor

In furtherance of the KSPP effort to add overflow protection to kernel
reference counters, a new type (refcount_t) and API have been created.
Part of the refcount_t API is refcount_inc(), which will not increment a
refcount_t variable if its value is 0 (as this would indicate a possible
use-after-free condition). 

In auditing the kernel for refcounting corner cases, we've come across the
case of struct nfsd4_session.  

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

end of thread, other threads:[~2017-02-15 16:45 UTC | newest]

Thread overview: 14+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-02-09  7:38 [RFC][PATCH] nfsd: add +1 to reference counting scheme for struct nfsd4_session David Windsor
2017-02-11  6:42 ` David Windsor
2017-02-11 12:31   ` Jeff Layton
2017-02-11 14:01     ` David Windsor
2017-02-11 14:09       ` Jeff Layton
2017-02-13 10:38       ` Christoph Hellwig
2017-02-13 11:42         ` David Windsor
2017-02-13 12:12           ` Christoph Hellwig
2017-02-14 13:48             ` David Windsor
2017-02-12  1:15     ` Bruce Fields
2017-02-12  1:42       ` David Windsor
2017-02-13 10:54   ` [kernel-hardening] " Hans Liljestrand
2017-02-13 11:46     ` David Windsor
2017-02-15 16:45       ` Bruce Fields

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).