--------------ms7F52D945F5EC57969E8B4ECF
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
Hi,
It seems that under 2.0.3x series, if you do an
accept on an INET socket, you can get an incompletely formed
connection.
Assume the remote system sends a SYN.
The linux box responds with SYN-ACK and goes to state
SYN-RECV
After a while, the other end sends a reset which triggers
a state transition to TCP_CLOSE
TCP_CLOSE is a valid state to trigger the accept, and
so we get the call.
sys_accept doesn't check the return code from the
internal getpeername and returns OK rather than an
error (and it hasn't filled in the address).
I suspect that tcp_find_establish should have an extra condition
&& tcp_connected()
at the crucial point. Does anyone disagree?
Philip
-- Philip Gladstone +1 781 530 2461 Raptor Systems / Axent Technologies Waltham, MA http://www.raptor.com/ --------------ms7F52D945F5EC57969E8B4ECF Content-Type: application/x-pkcs7-signature; name="smime.p7s" Content-Transfer-Encoding: base64 Content-Disposition: attachment; filename="smime.p7s" Content-Description: S/MIME Cryptographic SignatureMIILogYJKoZIhvcNAQcCoIILkzCCC48CAQExCzAJBgUrDgMCGgUAMAsGCSqGSIb3DQEHAaCC CVgwggLXMIICQKADAgECAgIwtDANBgkqhkiG9w0BAQQFADCByDELMAkGA1UEBhMCWkExFTAT BgNVBAgTDFdlc3Rlcm4gQ2FwZTEUMBIGA1UEBxMLRHVyYmFudmlsbGUxGjAYBgNVBAoTEVRo YXd0ZSBDb25zdWx0aW5nMTMwMQYDVQQLEypDZXJ0aWZpY2F0ZSBTZXJ2aWNlcyBSU0EgSUsg MTk5OC4yLjI1IDg6MzUxOzA5BgNVBAMTMlRoYXd0ZSBQZXJzb25hbCBGcmVlbWFpbCBSU0Eg SXNzdWluZyBLZXkgMTk5OC4yLjI1MB4XDTk4MDgxMjE0NDIyOVoXDTk5MDgxMjE0NDIyOVow QzEfMB0GA1UEAxMWVGhhd3RlIEZyZWVtYWlsIE1lbWJlcjEgMB4GCSqGSIb3DQEJARYRcGhp bGlwQHJhcHRvci5jb20wgZ8wDQYJKoZIhvcNAQEBBQADgY0AMIGJAoGBA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b3DQMHMA4G CCqGSIb3DQMCAgIAgDANBggqhkiG9w0DAgIBQDANBgkqhkiG9w0BAQEFAASBgGKIj3C+dGbb 0AjoptclkUGsne9M1Oq6OvTE85a41WJ1PWEKbT88KZfifhsTZXSL6XNJHJ6TIYUmwOg18UDf 5+/DlIzXw8S9N/T6yy0H7m+zoJ9rwq7f/oE/SgekwqedCq7w0PyAFcdJeiJO+lMiU1y9YLBG n+4AXuaDHiriVV72 --------------ms7F52D945F5EC57969E8B4ECF--
- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.rutgers.edu Please read the FAQ at http://www.tux.org/lkml/faq.html