Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(2691)

Issue 6456045: code review 6456045: syscall: workaround accept() bug on Darwin (Closed)

Can't Edit
Can't Publish+Mail
Start Review
Created:
11 years, 9 months ago by snaury
Modified:
11 years, 9 months ago
Reviewers:
rsc
CC:
golang-dev, adg, mikio
Visibility:
Public.

Description

syscall: workaround accept() bug on Darwin Darwin kernels have a bug in accept() where error result from an internal call is not checked and socket is accepted instead of ECONNABORTED error. However, such sockets have no sockaddr, which results in EAFNOSUPPORT error from anyToSockaddr, making Go http servers running on Mac OS X easily susceptible to denial of service from simple port scans with nmap. Fixes issue 3849.

Patch Set 1 #

Patch Set 2 : diff -r c87a4b5ad6d7 https://go.googlecode.com/hg/ #

Patch Set 3 : diff -r c87a4b5ad6d7 https://go.googlecode.com/hg/ #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+8 lines, -0 lines) Patch
M src/pkg/syscall/syscall_bsd.go View 1 1 chunk +8 lines, -0 lines 1 comment Download

Messages

Total messages: 5
snaury
Hello golang-dev@googlegroups.com, I'd like you to review this change to https://go.googlecode.com/hg/
11 years, 9 months ago (2012-07-26 17:57:20 UTC) #1
adg
LGTM I'll leave it a couple of days before I submit in case anyone else ...
11 years, 9 months ago (2012-07-26 23:26:27 UTC) #2
mikio
LGTM http://codereview.appspot.com/6456045/diff/5001/src/pkg/syscall/syscall_bsd.go File src/pkg/syscall/syscall_bsd.go (right): http://codereview.appspot.com/6456045/diff/5001/src/pkg/syscall/syscall_bsd.go#newcode306 src/pkg/syscall/syscall_bsd.go:306: if len == 0 { Also you could ...
11 years, 9 months ago (2012-07-28 12:07:27 UTC) #3
adg
*** Submitted as http://code.google.com/p/go/source/detail?r=0eae95b0307a *** syscall: workaround accept() bug on Darwin Darwin kernels have a ...
11 years, 9 months ago (2012-07-29 23:02:43 UTC) #4
rsc
11 years, 9 months ago (2012-07-29 23:36:40 UTC) #5
mikioh's comment did not get done. I will send it in as a separate CL.
Sign in to reply to this message.

Powered by Google App Engine
RSS Feeds Recent Issues | This issue
This is Rietveld f62528b