* [withdrawn] rfcomm-corec-avoid-dangling-pointer-check-session-exists.patch removed from -mm tree
@ 2011-05-30 21:01 akpm
0 siblings, 0 replies; only message in thread
From: akpm @ 2011-05-30 21:01 UTC (permalink / raw)
To: david, David, linville, marcel, padovan, mm-commits
The patch titled
rfcomm/core.c: avoid dangling pointer, check session exists
has been removed from the -mm tree. Its filename was
rfcomm-corec-avoid-dangling-pointer-check-session-exists.patch
This patch was dropped because it was withdrawn
The current -mm tree may be found at http://userweb.kernel.org/~akpm/mmotm/
------------------------------------------------------
Subject: rfcomm/core.c: avoid dangling pointer, check session exists
From: David Fries <david@fries.net>
rfcomm_process_sessions is calling rfcomm_process_rx, but in this case the
session is closed and freed leaving a dangling pointer that blows up when
rfcomm_process_rx returns and rfcomm_process_dlcs is called with the now
dangling session pointer. Check to see if the entry is still in the list.
Signed-off-by: David Fries <David@Fries.net>
Cc: Marcel Holtmann <marcel@holtmann.org>
Cc: "Gustavo F. Padovan" <padovan@profusion.mobi>
Cc: "John W. Linville" <linville@tuxdriver.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
---
net/bluetooth/rfcomm/core.c | 6 ++++++
1 file changed, 6 insertions(+)
diff -puN net/bluetooth/rfcomm/core.c~rfcomm-corec-avoid-dangling-pointer-check-session-exists net/bluetooth/rfcomm/core.c
--- a/net/bluetooth/rfcomm/core.c~rfcomm-corec-avoid-dangling-pointer-check-session-exists
+++ a/net/bluetooth/rfcomm/core.c
@@ -1955,6 +1955,12 @@ static inline void rfcomm_process_sessio
default:
rfcomm_process_rx(s);
+ /* The current session can be closed as part of rx
+ * in which case s is now dangling. Check if it
+ * has been removed.
+ */
+ if(n->prev != p)
+ continue;
break;
}
_
Patches currently in -mm which might be from david@fries.net are
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2011-05-30 21:01 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-05-30 21:01 [withdrawn] rfcomm-corec-avoid-dangling-pointer-check-session-exists.patch removed from -mm tree akpm
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.