<feed xmlns='http://www.w3.org/2005/Atom'>
<title>go, branch go1.15rc2</title>
<subtitle>Fork of Go programming language with my patches.</subtitle>
<id>http://git.kilabit.info/go/atom?h=go1.15rc2</id>
<link rel='self' href='http://git.kilabit.info/go/atom?h=go1.15rc2'/>
<link rel='alternate' type='text/html' href='http://git.kilabit.info/go/'/>
<updated>2020-08-07T14:56:02Z</updated>
<entry>
<title>[release-branch.go1.15] go1.15rc2</title>
<updated>2020-08-07T14:56:02Z</updated>
<author>
<name>Alexander Rakoczy</name>
<email>alex@golang.org</email>
</author>
<published>2020-08-06T20:23:54Z</published>
<link rel='alternate' type='text/html' href='http://git.kilabit.info/go/commit/?id=c4f8cb43caf0bcd0c730d7d04a3fce129393cecc'/>
<id>urn:sha1:c4f8cb43caf0bcd0c730d7d04a3fce129393cecc</id>
<content type='text'>
Change-Id: I2fe55c3f0328291b7d602cfae83d3f0b72cee14c
Reviewed-on: https://go-review.googlesource.com/c/go/+/247238
Run-TryBot: Alexander Rakoczy &lt;alex@golang.org&gt;
Reviewed-by: Carlos Amedee &lt;carlos@golang.org&gt;
TryBot-Result: Gobot Gobot &lt;gobot@golang.org&gt;
</content>
</entry>
<entry>
<title>[release-branch.go1.15] all: merge master into release-branch.go1.15</title>
<updated>2020-08-06T19:39:24Z</updated>
<author>
<name>Alexander Rakoczy</name>
<email>alex@golang.org</email>
</author>
<published>2020-08-06T19:22:07Z</published>
<link rel='alternate' type='text/html' href='http://git.kilabit.info/go/commit/?id=fd4126ae7fb42424dd22e52e001e3445a45c2b56'/>
<id>urn:sha1:fd4126ae7fb42424dd22e52e001e3445a45c2b56</id>
<content type='text'>
ba9e108899 cmd: update golang.org/x/xerrors
027d7241ce encoding/binary: read at most MaxVarintLen64 bytes in ReadUvarint
6f08e89ec3 cmd/go: fix error stacks when there are scanner errors
f235275097 net/http: fix cancelation of requests with a readTrackingBody wrapper
f92337422e runtime/race: fix ppc64le build
e49b2308a5 runtime/race: rebuild some .syso files to remove getauxval dependency
10523c0efb doc/go1.15: fix a few trivial inconsistencies
7388956b76 cmd/cgo: fix mangling of enum and union types
b56791cdea runtime: validate candidate searchAddr in pageAlloc.find
10374e2435 testing: fix quotation marks
7f86080476 cmd/compile: don't addLocalInductiveFacts if there is no direct edge from if block to phi block
54e75e8f9d crypto/ed25519: remove s390x KDSA implementation
6b4dcf19fa runtime: hold sched.lock over globrunqputbatch in runqputbatch
85afa2eb19 runtime: ensure startm new M is consistently visible to checkdead
c4fed25553 cmd/compile: add floating point load+op operations to addressing modes pass
19a932ceb8 cmd/link: don't mark shared library symbols reachable unconditionally
8696ae82c9 syscall: use correct file descriptor in dup2 fallback path
9591515f51 runtime, sync: add copyright headers to new files
074f2d800f doc/go1.15: surface the crypto/x509 CommonName deprecation note

Change-Id: I0bfcff1fc2de723960909d9dda718fee6abc2912
</content>
</entry>
<entry>
<title>cmd: update golang.org/x/xerrors</title>
<updated>2020-08-06T19:17:13Z</updated>
<author>
<name>Alexander Rakoczy</name>
<email>alex@golang.org</email>
</author>
<published>2020-08-06T18:57:38Z</published>
<link rel='alternate' type='text/html' href='http://git.kilabit.info/go/commit/?id=ba9e10889976025ee1d027db6b1cad383ec56de8'/>
<id>urn:sha1:ba9e10889976025ee1d027db6b1cad383ec56de8</id>
<content type='text'>
This pulls in CL 247217.

Fixes #40573

Change-Id: I89eeebb5da9a4668adc6b5c5155651e5da421d59
Reviewed-on: https://go-review.googlesource.com/c/go/+/247186
Run-TryBot: Alexander Rakoczy &lt;alex@golang.org&gt;
Reviewed-by: Bryan C. Mills &lt;bcmills@google.com&gt;
TryBot-Result: Gobot Gobot &lt;gobot@golang.org&gt;
</content>
</entry>
<entry>
<title>encoding/binary: read at most MaxVarintLen64 bytes in ReadUvarint</title>
<updated>2020-08-06T17:24:10Z</updated>
<author>
<name>Katie Hockman</name>
<email>katie@golang.org</email>
</author>
<published>2020-08-04T15:45:32Z</published>
<link rel='alternate' type='text/html' href='http://git.kilabit.info/go/commit/?id=027d7241ce050d197e7fabea3d541ffbe3487258'/>
<id>urn:sha1:027d7241ce050d197e7fabea3d541ffbe3487258</id>
<content type='text'>
This CL ensures that ReadUvarint consumes only a limited
amount of input (instead of an unbounded amount).

On some inputs, ReadUvarint could read an arbitrary number
of bytes before deciding to return an overflow error.
After this CL, ReadUvarint returns that same overflow
error sooner, after reading at most MaxVarintLen64 bytes.

Fix authored by Robert Griesemer and Filippo Valsorda.

Thanks to Diederik Loerakker, Jonny Rhea, Raúl Kripalani,
and Preston Van Loon for reporting this.

Fixes #40618
Fixes CVE-2020-16845

Change-Id: Ie0cb15972f14c38b7cf7af84c45c4ce54909bb8f
Reviewed-on: https://team-review.git.corp.google.com/c/golang/go-private/+/812099
Reviewed-by: Filippo Valsorda &lt;valsorda@google.com&gt;
Reviewed-on: https://go-review.googlesource.com/c/go/+/247120
Run-TryBot: Katie Hockman &lt;katie@golang.org&gt;
TryBot-Result: Gobot Gobot &lt;gobot@golang.org&gt;
Reviewed-by: Alexander Rakoczy &lt;alex@golang.org&gt;
</content>
</entry>
<entry>
<title>cmd/go: fix error stacks when there are scanner errors</title>
<updated>2020-08-05T18:24:52Z</updated>
<author>
<name>Michael Matloob</name>
<email>matloob@golang.org</email>
</author>
<published>2020-08-04T17:24:37Z</published>
<link rel='alternate' type='text/html' href='http://git.kilabit.info/go/commit/?id=6f08e89ec3280bf6577c2bdb01243cbeeb1a259d'/>
<id>urn:sha1:6f08e89ec3280bf6577c2bdb01243cbeeb1a259d</id>
<content type='text'>
After golang.org/cl/228784 setLoadPackageDataError tries to decide whether an
error is caused by an imported package or an importing package by examining the
error itself to decide. Ideally, the errors themselves would belong to a
specific interface or some other property to make it unambiguous that they
were import errors. Since they don't, setLoadPackageDataError just checked
for nogoerrors and classified all other errors as import errors. But
it missed scanner errors which are also "caused" by the imported
package.

Fixes #40544

Change-Id: I39159bfdc286bee73697decd07b8aa9451f2db06
Reviewed-on: https://go-review.googlesource.com/c/go/+/246717
Run-TryBot: Michael Matloob &lt;matloob@golang.org&gt;
TryBot-Result: Gobot Gobot &lt;gobot@golang.org&gt;
Reviewed-by: Bryan C. Mills &lt;bcmills@google.com&gt;
</content>
</entry>
<entry>
<title>net/http: fix cancelation of requests with a readTrackingBody wrapper</title>
<updated>2020-08-04T19:27:13Z</updated>
<author>
<name>Damien Neil</name>
<email>dneil@google.com</email>
</author>
<published>2020-07-28T19:49:52Z</published>
<link rel='alternate' type='text/html' href='http://git.kilabit.info/go/commit/?id=f235275097eb68b36d171908cea6a0be23351a94'/>
<id>urn:sha1:f235275097eb68b36d171908cea6a0be23351a94</id>
<content type='text'>
Use the original *Request in the reqCanceler map, not the transient
wrapper created to handle body rewinding.

Change the key of reqCanceler to a struct{*Request}, to make it more
difficult to accidentally use the wrong request as the key.

Fixes #40453.

Change-Id: I4e61ee9ff2c794fb4c920a3a66c9a0458693d757
Reviewed-on: https://go-review.googlesource.com/c/go/+/245357
Run-TryBot: Damien Neil &lt;dneil@google.com&gt;
TryBot-Result: Gobot Gobot &lt;gobot@golang.org&gt;
Reviewed-by: Russ Cox &lt;rsc@golang.org&gt;
</content>
</entry>
<entry>
<title>runtime/race: fix ppc64le build</title>
<updated>2020-08-02T00:04:25Z</updated>
<author>
<name>Keith Randall</name>
<email>khr@golang.org</email>
</author>
<published>2020-08-01T19:55:47Z</published>
<link rel='alternate' type='text/html' href='http://git.kilabit.info/go/commit/?id=f92337422ef2ca27464c198bb3426d2dc4661653'/>
<id>urn:sha1:f92337422ef2ca27464c198bb3426d2dc4661653</id>
<content type='text'>
The .syso test also fails for ppc64le. Not sure why. For now, just
disable the test for that architecture. The test really only needs to
run on a single builder of any arch.

Change-Id: I346cdc01ada09d43c4c504fbc30be806f59d5422
Reviewed-on: https://go-review.googlesource.com/c/go/+/246358
Run-TryBot: Keith Randall &lt;khr@golang.org&gt;
TryBot-Result: Gobot Gobot &lt;gobot@golang.org&gt;
Reviewed-by: Ian Lance Taylor &lt;iant@golang.org&gt;
</content>
</entry>
<entry>
<title>runtime/race: rebuild some .syso files to remove getauxval dependency</title>
<updated>2020-08-01T06:32:57Z</updated>
<author>
<name>Keith Randall</name>
<email>khr@golang.org</email>
</author>
<published>2020-07-31T20:56:18Z</published>
<link rel='alternate' type='text/html' href='http://git.kilabit.info/go/commit/?id=e49b2308a523c3bb69753caee2eacce41f097039'/>
<id>urn:sha1:e49b2308a523c3bb69753caee2eacce41f097039</id>
<content type='text'>
We can't depend on getauxval because it only exists in glibc &gt;= 2.16.
Tsan has been updated to avoid that dependency
(https://reviews.llvm.org/D84859). This CL rebuilds the affected
.syso files, and adds a test to make sure we don't regress.

Fixes #37485

Change-Id: I891f54d28ec0d7da50a8df1adadc76dd6e7ab3e0
Reviewed-on: https://go-review.googlesource.com/c/go/+/246258
Run-TryBot: Keith Randall &lt;khr@golang.org&gt;
TryBot-Result: Gobot Gobot &lt;gobot@golang.org&gt;
Reviewed-by: Dmitry Vyukov &lt;dvyukov@google.com&gt;
</content>
</entry>
<entry>
<title>doc/go1.15: fix a few trivial inconsistencies</title>
<updated>2020-08-01T01:11:19Z</updated>
<author>
<name>Toshihiro Shiino</name>
<email>shiino.toshihiro@gmail.com</email>
</author>
<published>2020-07-31T03:02:55Z</published>
<link rel='alternate' type='text/html' href='http://git.kilabit.info/go/commit/?id=10523c0efb908ab0ff4872a2e9e91b314d3d46ed'/>
<id>urn:sha1:10523c0efb908ab0ff4872a2e9e91b314d3d46ed</id>
<content type='text'>
For #37419

Change-Id: I8ede539df5d5344aeb44ba1a7e2383363d92157f
Reviewed-on: https://go-review.googlesource.com/c/go/+/245977
Reviewed-by: Dmitri Shuralyov &lt;dmitshur@golang.org&gt;
Run-TryBot: Dmitri Shuralyov &lt;dmitshur@golang.org&gt;
TryBot-Result: Gobot Gobot &lt;gobot@golang.org&gt;
</content>
</entry>
<entry>
<title>cmd/cgo: fix mangling of enum and union types</title>
<updated>2020-07-31T16:35:33Z</updated>
<author>
<name>Matthew Dempsky</name>
<email>mdempsky@google.com</email>
</author>
<published>2020-07-31T01:35:00Z</published>
<link rel='alternate' type='text/html' href='http://git.kilabit.info/go/commit/?id=7388956b76ce15a11346cebefcf6193db044caaf'/>
<id>urn:sha1:7388956b76ce15a11346cebefcf6193db044caaf</id>
<content type='text'>
Consider this test package:

    package p

    // enum E { E0 };
    // union U { long x; };
    // void f(enum E e, union U* up) {}
    import "C"

    func f() {
    	C.f(C.enum_E(C.E0), (*C.union_U)(nil))
    }

In Go 1.14, cgo translated this to (omitting irrelevant details):

    type _Ctype_union_U [8]byte

    func f() {
    	_Cfunc_f(uint32(_Ciconst_E0), (*[8]byte)(nil))
    }

    func _Cfunc_f(p0 uint32, p1 *[8]byte) (r1 _Ctype_void) { ... }

Notably, _Ctype_union_U was declared as a defined type, but uses were
being rewritten into uses of the underlying type, which matched how
_Cfunc_f was declared.

After CL 230037, cgo started consistently rewriting "C.foo" type
expressions as "_Ctype_foo", which caused it to start emitting:

    type _Ctype_enum_E uint32
    type _Ctype_union_U [8]byte

    func f() {
    	_Cfunc_f(_Ctype_enum_E(_Ciconst_E0), (*_Ctype_union_U)(nil))
    }

    // _Cfunc_f unchanged

Of course, this fails to type-check because _Ctype_enum_E and
_Ctype_union_U are defined types.

This CL changes cgo to emit:

    type _Ctype_enum_E = uint32
    type _Ctype_union_U = [8]byte

    // f unchanged since CL 230037
    // _Cfunc_f still unchanged

It would probably be better to fix this in (*typeConv).loadType so
that cgo generated code uses the _Ctype_foo aliases too. But as it
wouldn't have any effect on actual compilation, it's not worth the
risk of touching it at this point in the release cycle.

Updates #39537.
Fixes #40494.

Change-Id: I88269660b40aeda80a9a9433777601a781b48ac0
Reviewed-on: https://go-review.googlesource.com/c/go/+/246057
Reviewed-by: Ian Lance Taylor &lt;iant@golang.org&gt;
</content>
</entry>
</feed>
