[Slirp] Q
Michail T
michail.pwn at gmail.com
Mon May 16 23:02:12 UTC 2022
Yes my question was the first that you mentioned! (Do you mean whether
libslirp can happen to call tftp_input twice at
the same time?)
Cheers
Στις Τρί 17 Μαΐ 2022 στις 1:59 π.μ., ο/η Samuel Thibault <
samuel.thibault at aquilenet.fr> έγραψε:
> Michail T, le mar. 15 févr. 2022 22:01:24 +0200, a ecrit:
> > I would like to ask if it would be possible that tftp_input() is called
> twice
> > at the same time?
>
> I'm not sure what you mean exactly.
>
> Do you mean whether libslirp can happen to call tftp_input twice at
> the same time? Or do you mean whether the tftp_input function is safe
> against being called twice at the same time? It'd probably be good that
> you explain your situation, otherwise we're probably in an XY problem.
>
> Generally speaking, libslirp is thread-unsafe: there is global state in
> the slirp variable and yet no single mention of thread calls. So it's
> unsafe to call slirp_input several times concurrently for the same slirp
> state. As for tftp's tftp_input, tftp_session_allocate clearly shows
> that it's unsafe against concurrency.
>
> Samuel
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/slirp/attachments/20220517/c8c08d74/attachment.htm>
More information about the Slirp
mailing list