Re: tcp_sendmsg atomicity?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 




If more than one process or thread are writing to the same TCP socket,
and one write calls wait_for_tcp_memory(), the socket lock will be
dropped and reacquired. This appears to open a window where the second
writer can put its data in the middle of the first writer's data.

Assuming I have this correctly, is this a bug that should be fixed in
tcp_sendmsg() or should the callers' guarantee the atomicity themselves?

John Byrne
-
: send the line "unsubscribe linux-net" in
the body of a message to majordomo@vger.kernel.org


[Index of Archives]     [Netdev]     [Ethernet Bridging]     [Linux 802.1Q VLAN]     [Linux Wireless]     [Kernel Newbies]     [Security]     [Linux for Hams]     [Netfilter]     [Git]     [Bugtraq]     [Yosemite News and Information]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux PCI]     [Linux Admin]     [Samba]

  Powered by Linux