public inbox for b.a.t.m.a.n@lists.open-mesh.org
 help / color / mirror / Atom feed
* [B.A.T.M.A.N.] Null pointer dereference, ticket #146
@ 2011-03-03 19:09 Linus Lüssing
  2011-03-03 19:09 ` [B.A.T.M.A.N.] [PATCH] RFC: batman-adv: Fix null pointer deref. when adding hard-if as soft-if Linus Lüssing
                   ` (2 more replies)
  0 siblings, 3 replies; 9+ messages in thread
From: Linus Lüssing @ 2011-03-03 19:09 UTC (permalink / raw)
  To: b.a.t.m.a.n

Hi everyone,

By accident I've typed in a mesh interface name for batman-adv which
already existed as a real interface. This produces a null pointer
dereference in orig_hash_add_if():
http://www.open-mesh.org/ticket/146

The attached patch shall illustrate the problem, but I'm not quite
satisfied with it. Although it seems to "fix" the problem and gets
rid of the call trace, it is probably still very racy. Does anyone
have an idea for a more sane but equally easy check to fix the issue?
Or is the only sane solution to hold an rcu-lock and compare the
hard_iface->soft_iface in hardif_enable_interface() with every
hard-iface->net_dev from the hardif_list?

Cheers, Linus

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

end of thread, other threads:[~2011-03-04 21:34 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-03-03 19:09 [B.A.T.M.A.N.] Null pointer dereference, ticket #146 Linus Lüssing
2011-03-03 19:09 ` [B.A.T.M.A.N.] [PATCH] RFC: batman-adv: Fix null pointer deref. when adding hard-if as soft-if Linus Lüssing
2011-03-03 20:22 ` [B.A.T.M.A.N.] Null pointer dereference, ticket #146 Sven Eckelmann
2011-03-03 20:39 ` [B.A.T.M.A.N.] [PATCH] batman-adv: Fix null pointer deref. when adding hard-if as soft-if Sven Eckelmann
2011-03-03 21:08   ` [B.A.T.M.A.N.] [PATCHv2] batman-adv: Disallow regular interface as mesh device Sven Eckelmann
2011-03-04 20:55     ` Marek Lindner
2011-03-04 21:18       ` Linus Lüssing
2011-03-04 21:24         ` Marek Lindner
2011-03-04 21:34     ` Marek Lindner

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox