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

Issue 7406050: code review 7406050: syscall: fix FD passing on FreeBSD, NetBSD and OpenBSD (Closed)

Can't Edit
Can't Publish+Mail
Start Review
Created:
12 years ago by dave
Modified:
12 years ago
Reviewers:
CC:
dho, minux1, bradfitz, mdempsky, golang-dev
Visibility:
Public.

Description

syscall: fix FD passing on FreeBSD and NetBSD Fixes issue 3348.

Patch Set 1 #

Patch Set 2 : diff -r 512627a9cdb8 https://code.google.com/p/go #

Patch Set 3 : diff -r 512627a9cdb8 https://code.google.com/p/go #

Patch Set 4 : diff -r 512627a9cdb8 https://code.google.com/p/go #

Patch Set 5 : diff -r 512627a9cdb8 https://code.google.com/p/go #

Total comments: 1

Patch Set 6 : diff -r 512627a9cdb8 https://code.google.com/p/go #

Patch Set 7 : diff -r 512627a9cdb8 https://code.google.com/p/go #

Patch Set 8 : diff -r c28d9e5f42ff https://code.google.com/p/go #

Patch Set 9 : diff -r c28d9e5f42ff https://code.google.com/p/go #

Unified diffs Side-by-side diffs Delta from patch set Stats (+2 lines, -2 lines) Patch
M src/pkg/syscall/passfd_test.go View 1 2 3 4 5 6 7 1 chunk +1 line, -1 line 0 comments Download
M src/pkg/syscall/sockcmsg_unix.go View 1 2 3 4 5 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 23
dave_cheney.net
Hello devon.odell@gmail.com (cc: golang-dev@googlegroups.com), I'd like you to review this change to https://code.google.com/p/go
12 years ago (2013-02-26 12:08:33 UTC) #1
dave_cheney.net
Tested on freebsd/amd64 and freebsd/arm, also linux/amd64. Can someone please test on openbsd/* On Tue, ...
12 years ago (2013-02-26 12:10:57 UTC) #2
minux1
On Tue, Feb 26, 2013 at 8:10 PM, Dave Cheney <dave@cheney.net> wrote: > Tested on ...
12 years ago (2013-02-26 12:30:03 UTC) #3
dave_cheney.net
OK, thanks, I'll update the description and leave the OpenBSD issue open. On 26 Feb ...
12 years ago (2013-02-26 12:58:46 UTC) #4
bradfitz
LGTM once you're happy with your testing.
12 years ago (2013-02-26 15:43:52 UTC) #5
minux1
The test also passes on NetBSD/amd64 and NetBSD/386. (I re-imaged my RPi, so I can't ...
12 years ago (2013-02-26 16:02:28 UTC) #6
minux1
This patch makes the test pass on OpenBSD/amd64: diff -r 512627a9cdb8 src/pkg/syscall/sockcmsg_unix.go --- a/src/pkg/syscall/sockcmsg_unix.go Mon ...
12 years ago (2013-02-26 16:25:38 UTC) #7
dho
Does it work with b[cmsgAlignOf(h.Len):]? This stuff is (unfortunately) really sensitive to alignment and sizing ...
12 years ago (2013-02-26 16:42:33 UTC) #8
minux1
On Wed, Feb 27, 2013 at 12:42 AM, Devon H. O'Dell <devon.odell@gmail.com>wrote: > Does it ...
12 years ago (2013-02-26 16:49:14 UTC) #9
mdempsky
https://codereview.appspot.com/7406050/diff/4006/src/pkg/syscall/sockcmsg_unix.go File src/pkg/syscall/sockcmsg_unix.go (right): https://codereview.appspot.com/7406050/diff/4006/src/pkg/syscall/sockcmsg_unix.go#newcode82 src/pkg/syscall/sockcmsg_unix.go:82: data := uintptr(cmsgAlignOf(int(uintptr(cmsgData(h))))) Shouldn't instead cmsgData be fixed instead ...
12 years ago (2013-02-26 18:50:29 UTC) #10
dave_cheney.net
Thank you to all who tested this patch, @mdempsky is correct, the fix should go ...
12 years ago (2013-02-26 21:40:29 UTC) #11
dave_cheney.net
Hello devon.odell@gmail.com, minux.ma@gmail.com, bradfitz@golang.org, mdempsky@google.com (cc: golang-dev@googlegroups.com), Please take another look.
12 years ago (2013-02-26 21:41:27 UTC) #12
bradfitz
LGTM
12 years ago (2013-02-26 21:42:03 UTC) #13
mdempsky
LGTM
12 years ago (2013-02-26 21:43:45 UTC) #14
dave_cheney.net
> We probably should create more tests for the control message parsing stuff. @minux, I ...
12 years ago (2013-02-26 21:43:52 UTC) #15
dave_cheney.net
On 2013/02/26 21:43:45, mdempsky wrote: > LGTM Ok, i'll suck in my gut and commit ...
12 years ago (2013-02-26 21:47:39 UTC) #16
mdempsky
> I am concerned that the we are passing fd's, which are size_t > types ...
12 years ago (2013-02-26 21:48:06 UTC) #17
mdempsky
On 2013/02/26 21:47:39, dfc wrote: > Is anyone able to test on netbsd or openbsd ...
12 years ago (2013-02-26 21:48:35 UTC) #18
dave_cheney.net
Ahh, that was my misunderstanding, I was working from the definition of most fds passed ...
12 years ago (2013-02-26 21:49:11 UTC) #19
mdempsky
Hm, still slice bounds out of range on OpenBSD: === RUN TestPassFD --- PASS: TestPassFD ...
12 years ago (2013-02-26 21:56:30 UTC) #20
mdempsky
On 2013/02/26 21:56:30, mdempsky wrote: > Hm, still slice bounds out of range on OpenBSD: ...
12 years ago (2013-02-26 21:56:50 UTC) #21
dave_cheney.net
Ok, I'll reduce the scope of this CL to freebsd and netbsd, and leave issue ...
12 years ago (2013-02-26 22:01:23 UTC) #22
dave_cheney.net
12 years ago (2013-02-26 22:13:29 UTC) #23
*** Submitted as https://code.google.com/p/go/source/detail?r=cb5b97738c48 ***

syscall: fix FD passing on FreeBSD and NetBSD

Fixes issue 3348.

R=devon.odell, minux.ma, bradfitz, mdempsky
CC=golang-dev
https://codereview.appspot.com/7406050
Sign in to reply to this message.

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