Thread (20 messages) 20 messages, 2 authors, 2017-03-27

Re: [PATCH 05/18] net, bluetooth: convert rfcomm_dlc.refcnt from atomic_t to refcount_t

From: Marcel Holtmann <marcel@holtmann.org>
Date: 2017-03-27 14:07:12
Also in: bridge, linux-hams, lkml, netdev

Hi Elena,
refcount_t type and corresponding API should be
used instead of atomic_t when the variable is used as
a reference counter. This allows to avoid accidental
refcounter overflows that might lead to use-after-free
situations.

Signed-off-by: Elena Reshetova <elena.reshetova@intel.com>
Signed-off-by: Hans Liljestrand <redacted>
Signed-off-by: Kees Cook <redacted>
Signed-off-by: David Windsor <redacted>
---
include/net/bluetooth/rfcomm.h | 8 +++++---
net/bluetooth/rfcomm/core.c    | 4 ++--
2 files changed, 7 insertions(+), 5 deletions(-)
patch has been applied to bluetooth-next tree.

Regards

Marcel
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help