netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* Wrong usage of hash in L2TP leading to NULL ptr derefs
@ 2012-05-28 16:12 Sasha Levin
  2012-05-28 16:19 ` James Chapman
  0 siblings, 1 reply; 3+ messages in thread
From: Sasha Levin @ 2012-05-28 16:12 UTC (permalink / raw)
  To: Eric Dumazet, David Miller, jchapman
  Cc: netdev@vger.kernel.org, linux-kernel@vger.kernel.org

Hi all,

Looking at net/l2tp/l2tp_ip{6}.c, l2tp uses UDP for communications, but
uses inet_hash and inet_unhash for hashing - which appears to be wrong
(and causes NULL ptr derefs during runtime).

Since I'm not too familiar with the protocol, I'm not sure if the right
fix would be to switch it to use the UDP hashing code, or to actually
initialize everything inet_hash() expects so the current hashing would
work properly.

Help appreciated!

Thanks,
Sasha

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

end of thread, other threads:[~2012-05-28 17:21 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-05-28 16:12 Wrong usage of hash in L2TP leading to NULL ptr derefs Sasha Levin
2012-05-28 16:19 ` James Chapman
2012-05-28 17:21   ` Sasha Levin

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).