All of lore.kernel.org
 help / color / mirror / Atom feed
* SCTP BH locking during sctp_inq_push()
@ 2015-09-10 15:13 Karl Heiss
  2015-09-10 19:31 ` Vlad Yasevich
  0 siblings, 1 reply; 2+ messages in thread
From: Karl Heiss @ 2015-09-10 15:13 UTC (permalink / raw)
  To: linux-sctp

Hi,

While looking through the code in sctp_backlog_rcv(), I noticed a case
whereby sctp_inq_push() can be called outside of a bh_lock_sock()
region if the likely case succeeds and the association has not moved.

The exact line in question:
https://github.com/torvalds/linux/blob/v4.2-rc8/net/sctp/input.c#L350

Intuitively this looks incorrect, as all other calls to
sctp_inq_push() are within a BH socket lock.  Am I missing something
obvious that allows this particular case?

Regards,
Karl

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

end of thread, other threads:[~2015-09-10 19:31 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-09-10 15:13 SCTP BH locking during sctp_inq_push() Karl Heiss
2015-09-10 19:31 ` Vlad Yasevich

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.