linux-sctp.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* Racy addr->valid in sctp_inet6addr_event() and sctp_copy_laddrs()
@ 2023-08-08 19:07 Sishuai Gong
  2023-08-09 16:26 ` Xin Long
  0 siblings, 1 reply; 2+ messages in thread
From: Sishuai Gong @ 2023-08-08 19:07 UTC (permalink / raw)
  To: marcelo.leitner, lucien.xin; +Cc: linux-sctp

Hello,

We observed a data race over addr->valid between sctp_inet6addr_event() and 
sctp_copy_laddrs(). Under the following execution order, sctp_copy_laddrs()
might copy the addr that is no longer valid.

sctp_copy_laddrs()              sctp_inet6addr_event()
if (!addr->valid)
        continue;
                                		addr->valid = 0;
memcpy(&temp, &addr->a, sizeof(temp));

Thanks

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

end of thread, other threads:[~2023-08-09 16:27 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-08-08 19:07 Racy addr->valid in sctp_inet6addr_event() and sctp_copy_laddrs() Sishuai Gong
2023-08-09 16:26 ` Xin Long

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