Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: golang/go
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: go1.17.11
Choose a base ref
...
head repository: golang/go
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: go1.17.12
Choose a head ref
  • 17 commits
  • 33 files changed
  • 12 contributors

Commits on Jun 29, 2022

  1. [release-branch.go1.17] cmd/dist: skip internal linking tests on arm64

    The previous workaround for issue #39466 only disabled this test for
    Linux. However, the issue manifests for all arm64 systems with gcc 9.4
    and above. The new netbsd-arm64 builder uses NetBSD-current with gcc
    10.3, so it fails in the same way.
    
    Updates #39466.
    For #53050.
    
    Change-Id: I276a99a5e60914e5c22f74a680e461bea17cfe92
    Reviewed-on: https://go-review.googlesource.com/c/go/+/383554
    Trust: Benny Siegert <[email protected]>
    Run-TryBot: Ian Lance Taylor <[email protected]>
    TryBot-Result: Gopher Robot <[email protected]>
    Reviewed-by: Ian Lance Taylor <[email protected]>
    (cherry picked from commit 1d60513)
    Reviewed-on: https://go-review.googlesource.com/c/go/+/415074
    Run-TryBot: Dmitri Shuralyov <[email protected]>
    Reviewed-by: Dmitri Shuralyov <[email protected]>
    Reviewed-by: Cherry Mui <[email protected]>
    bsiegert authored and dmitshur committed Jun 29, 2022
    Configuration menu
    Copy the full SHA
    651a8d8 View commit details
    Browse the repository at this point in the history
  2. [release-branch.go1.17] cmd/dist: test cgo internal linking on darwin…

    …-arm64
    
    CL 415074 disables testing cgo internal linking on all ARM64 but
    Windows, because it doesn't work with newer GCC. But
    - darwin-arm64 works, and it does not use GCC
    - we don't support cgo internal linking on windows-arm64 anyway.
    
    This CL fixes the condition.
    
    Fixes #53050.
    
    Change-Id: I9eb7b81ef75e482f5e95d2edae4863ba21396432
    Reviewed-on: https://go-review.googlesource.com/c/go/+/384269
    Trust: Cherry Mui <[email protected]>
    Run-TryBot: Cherry Mui <[email protected]>
    TryBot-Result: Gopher Robot <[email protected]>
    Reviewed-by: Ian Lance Taylor <[email protected]>
    (cherry picked from commit e4ca3fa)
    Reviewed-on: https://go-review.googlesource.com/c/go/+/415075
    Reviewed-by: Cherry Mui <[email protected]>
    Run-TryBot: Dmitri Shuralyov <[email protected]>
    Reviewed-by: Dmitri Shuralyov <[email protected]>
    cherrymui authored and dmitshur committed Jun 29, 2022
    Configuration menu
    Copy the full SHA
    8d2935a View commit details
    Browse the repository at this point in the history

Commits on Jul 6, 2022

  1. [release-branch.go1.17] cmd/go: pass --no-decorate when listing git t…

    …ags for a commit
    
    This avoids a parse error when the user's global .gitconfig sets
    log.decorate to true.
    
    Updates #51312.
    Fixes #51351.
    
    Change-Id: Ic47b0f604c0c3a404ec50d6e09f4e138045ac2f2
    Reviewed-on: https://go-review.googlesource.com/c/go/+/387835
    Run-TryBot: Bryan Mills <[email protected]>
    Auto-Submit: Bryan Mills <[email protected]>
    Reviewed-by: Bryan Mills <[email protected]>
    TryBot-Result: Gopher Robot <[email protected]>
    Reviewed-by: Dmitri Shuralyov <[email protected]>
    Reviewed-by: David Chase <[email protected]>
    Reviewed-by: Dmitri Shuralyov <[email protected]>
    (cherry picked from commit a30f434)
    Reviewed-on: https://go-review.googlesource.com/c/go/+/414875
    hidu authored and heschi committed Jul 6, 2022
    Configuration menu
    Copy the full SHA
    77cc1c0 View commit details
    Browse the repository at this point in the history
  2. [release-branch.go1.17] runtime: store consistent total allocation st…

    …ats as uint64
    
    Currently the consistent total allocation stats are managed as uintptrs,
    which means they can easily overflow on 32-bit systems. Fix this by
    storing these stats as uint64s. This will cause some minor performance
    degradation on 32-bit systems, but there really isn't a way around this,
    and it affects the correctness of the metrics we export.
    
    For #52680.
    Fixes #52688.
    
    Change-Id: I8b1926116e899ae9f03d58e0320bcb9264945b3e
    Reviewed-on: https://go-review.googlesource.com/c/go/+/411496
    Run-TryBot: Michael Knyszek <[email protected]>
    TryBot-Result: Gopher Robot <[email protected]>
    Reviewed-by: Michael Pratt <[email protected]>
    mknyszek authored and heschi committed Jul 6, 2022
    Configuration menu
    Copy the full SHA
    b1be664 View commit details
    Browse the repository at this point in the history
  3. [release-branch.go1.17] cmd/compile: allow 128-bit values to be spilled

    We sometimes use 16-byte load+store to move values around in memory.
    In rare circumstances, the loaded value must be spilled because the
    store can't happen yet.
    
    In that case, we need to be able to spill the 16-byte value.
    
    Fixes #53470
    
    Change-Id: I09fd08e11a63c6ba3ef781d3f5ede237e9b0132e
    Reviewed-on: https://go-review.googlesource.com/c/go/+/413294
    Reviewed-by: Keith Randall <[email protected]>
    TryBot-Result: Gopher Robot <[email protected]>
    Reviewed-by: David Chase <[email protected]>
    Run-TryBot: Keith Randall <[email protected]>
    Reviewed-by: Keith Randall <[email protected]>
    (cherry picked from commit c2d373d)
    Reviewed-on: https://go-review.googlesource.com/c/go/+/413456
    Reviewed-by: Carlos Amedee <[email protected]>
    randall77 authored and heschi committed Jul 6, 2022
    Configuration menu
    Copy the full SHA
    9ef614f View commit details
    Browse the repository at this point in the history
  4. [release-branch.go1.17] runtime: add race annotations to metricsSema

    metricsSema protects the metrics map. The map implementation is race
    instrumented regardless of which package is it called from.
    
    semacquire/semrelease are not automatically race instrumented, so we can
    trigger race false positives without manually annotating our lock
    acquire and release.
    
    See similar instrumentation on trace.shutdownSema and reflectOffs.lock.
    
    Fixes #53589.
    For #53542.
    
    Change-Id: Ia3fd239ac860e037d09c7cb9c4ad267391e70705
    Reviewed-on: https://go-review.googlesource.com/c/go/+/414517
    Run-TryBot: Michael Pratt <[email protected]>
    TryBot-Result: Gopher Robot <[email protected]>
    Reviewed-by: Cherry Mui <[email protected]>
    (cherry picked from commit d6481d5)
    Reviewed-on: https://go-review.googlesource.com/c/go/+/415196
    prattmic authored and heschi committed Jul 6, 2022
    Configuration menu
    Copy the full SHA
    fc07039 View commit details
    Browse the repository at this point in the history
  5. [release-branch.go1.17] runtime: add race annotations to cbs.lock

    cbs.lock protects a map. The map implementation is race instrumented
    regardless of which package is it called from.
    
    lock/unlock are not automatically race instrumented, so we can trigger
    race false positives without manually annotating our lock acquire and
    release.
    
    compileCallback is used during initialization before the P is available,
    at which point raceacquire will crash during a racecallback to get the
    race proc. Thus we skip instrumentation until scheduler initialization
    is complete.
    
    Fixes #53612.
    For #50249.
    
    Change-Id: Ie49227c9e9210ffbf0aee65f86f2b7b6a2f64638
    Reviewed-on: https://go-review.googlesource.com/c/go/+/414518
    TryBot-Result: Gopher Robot <[email protected]>
    Reviewed-by: Cherry Mui <[email protected]>
    Run-TryBot: Michael Pratt <[email protected]>
    (cherry picked from commit 20760cf)
    Reviewed-on: https://go-review.googlesource.com/c/go/+/415197
    prattmic authored and heschi committed Jul 6, 2022
    Configuration menu
    Copy the full SHA
    ae2dfcc View commit details
    Browse the repository at this point in the history

Commits on Jul 12, 2022

  1. [release-branch.go1.17] net/http: don't strip whitespace from Transfe…

    …r-Encoding headers
    
    Do not accept "Transfer-Encoding: \rchunked" as a valid TE header
    setting chunked encoding.
    
    Thanks to Zeyu Zhang (https://www.zeyu2001.com/) for identifying
    the issue.
    
    For #53188
    For CVE-2022-1705
    Fixes #53432
    
    Change-Id: I1a16631425159267f2eca68056b057192a7edf6c
    Reviewed-on: https://go-review.googlesource.com/c/go/+/409874
    Reviewed-by: Roland Shoemaker <[email protected]>
    Reviewed-by: Brad Fitzpatrick <[email protected]>
    (cherry picked from commit e5017a9)
    Reviewed-on: https://go-review.googlesource.com/c/go/+/415217
    Reviewed-by: Dmitri Shuralyov <[email protected]>
    Run-TryBot: Dmitri Shuralyov <[email protected]>
    Reviewed-by: Dmitri Shuralyov <[email protected]>
    TryBot-Result: Gopher Robot <[email protected]>
    neild authored and mknyszek committed Jul 12, 2022
    Configuration menu
    Copy the full SHA
    d13431c View commit details
    Browse the repository at this point in the history
  2. [release-branch.go1.17] net/http: preserve nil values in Header.Clone

    ReverseProxy makes a distinction between nil and zero-length header values.
    Avoid losing nil-ness when cloning a request.
    
    Thanks to Christian Mehlmauer for discovering this.
    
    For #53423
    For CVE-2022-32148
    Fixes #53620
    
    Change-Id: Ice369cdb4712e2d62e25bb881b080847aa4801f5
    Reviewed-on: https://go-review.googlesource.com/c/go/+/412857
    Reviewed-by: Ian Lance Taylor <[email protected]>
    Reviewed-by: Brad Fitzpatrick <[email protected]>
    (cherry picked from commit b2cc0fe)
    Reviewed-on: https://go-review.googlesource.com/c/go/+/415221
    Reviewed-by: Heschi Kreinick <[email protected]>
    TryBot-Result: Gopher Robot <[email protected]>
    Run-TryBot: Michael Knyszek <[email protected]>
    Run-TryBot: Heschi Kreinick <[email protected]>
    Reviewed-by: Michael Knyszek <[email protected]>
    neild authored and mknyszek committed Jul 12, 2022
    Configuration menu
    Copy the full SHA
    ed2f33e View commit details
    Browse the repository at this point in the history
  3. [release-branch.go1.17] encoding/xml: use iterative Skip, rather than…

    … recursive
    
    Prevents exhausting the stack limit in _incredibly_ deeply nested
    structures.
    
    Fixes #53711
    Updates #53614
    Fixes CVE-2022-28131
    
    Change-Id: I47db4595ce10cecc29fbd06afce7b299868599e6
    Reviewed-on: https://team-review.git.corp.google.com/c/golang/go-private/+/1419912
    Reviewed-by: Julie Qiu <[email protected]>
    Reviewed-by: Damien Neil <[email protected]>
    (cherry picked from commit 9278cb78443d2b4deb24cbb5b61c9ba5ac688d49)
    Reviewed-on: https://go-review.googlesource.com/c/go/+/417068
    TryBot-Result: Gopher Robot <[email protected]>
    Reviewed-by: Heschi Kreinick <[email protected]>
    Run-TryBot: Michael Knyszek <[email protected]>
    rolandshoemaker authored and mknyszek committed Jul 12, 2022
    Configuration menu
    Copy the full SHA
    58facfb View commit details
    Browse the repository at this point in the history
  4. [release-branch.go1.17] encoding/xml: limit depth of nesting in unmar…

    …shal
    
    Prevent exhausting the stack limit when unmarshalling extremely deeply
    nested structures into nested types.
    
    Fixes #53715
    Updates #53611
    Fixes CVE-2022-30633
    
    Change-Id: Ic6c5d41674c93cfc9a316135a408db9156d39c59
    Reviewed-on: https://team-review.git.corp.google.com/c/golang/go-private/+/1421319
    Reviewed-by: Damien Neil <[email protected]>
    Reviewed-by: Julie Qiu <[email protected]>
    (cherry picked from commit ebee00a55e28931b2cad0e76207a73712b000432)
    Reviewed-on: https://go-review.googlesource.com/c/go/+/417069
    Reviewed-by: Heschi Kreinick <[email protected]>
    Run-TryBot: Michael Knyszek <[email protected]>
    TryBot-Result: Gopher Robot <[email protected]>
    rolandshoemaker authored and mknyszek committed Jul 12, 2022
    Configuration menu
    Copy the full SHA
    2678d0c View commit details
    Browse the repository at this point in the history
  5. [release-branch.go1.17] go/parser: limit recursion depth

    Limit nested parsing to 100,000, which prevents stack exhaustion when
    parsing deeply nested statements, types, and expressions. Also limit
    the scope depth to 1,000 during object resolution.
    
    Thanks to Juho Nurminen of Mattermost for reporting this issue.
    
    Fixes #53707
    Updates #53616
    Fixes CVE-2022-1962
    
    Change-Id: I4d7b86c1d75d0bf3c7af1fdea91582aa74272c64
    Reviewed-on: https://team-review.git.corp.google.com/c/golang/go-private/+/1491025
    Reviewed-by: Russ Cox <[email protected]>
    Reviewed-by: Damien Neil <[email protected]>
    (cherry picked from commit 6a856f08d58e4b6705c0c337d461c540c1235c83)
    Reviewed-on: https://go-review.googlesource.com/c/go/+/417070
    Reviewed-by: Heschi Kreinick <[email protected]>
    TryBot-Result: Gopher Robot <[email protected]>
    Run-TryBot: Michael Knyszek <[email protected]>
    rolandshoemaker authored and mknyszek committed Jul 12, 2022
    Configuration menu
    Copy the full SHA
    ba8788e View commit details
    Browse the repository at this point in the history
  6. [release-branch.go1.17] compress/gzip: fix stack exhaustion bug in Re…

    …ader.Read
    
    Replace recursion with iteration in Reader.Read to avoid stack
    exhaustion when there are a large number of files.
    
    Fixes CVE-2022-30631
    Fixes #53717
    Updates #53168
    
    Change-Id: I47d8afe3f2d40b0213ab61431df9b221794dbfe0
    Reviewed-on: https://team-review.git.corp.google.com/c/golang/go-private/+/1455673
    Reviewed-by: Roland Shoemaker <[email protected]>
    Reviewed-by: Julie Qiu <[email protected]>
    (cherry picked from commit cf498969c8a0bae9d7a24b98fc1f66c824a4775d)
    Reviewed-on: https://go-review.googlesource.com/c/go/+/417071
    Reviewed-by: Heschi Kreinick <[email protected]>
    Run-TryBot: Michael Knyszek <[email protected]>
    TryBot-Result: Gopher Robot <[email protected]>
    Tatiana Bradley authored and mknyszek committed Jul 12, 2022
    Configuration menu
    Copy the full SHA
    0117dee View commit details
    Browse the repository at this point in the history
  7. [release-branch.go1.17] io/fs: fix stack exhaustion in Glob

    A limit is added to the number of path separators allowed by an input to
    Glob, to prevent stack exhaustion issues.
    
    Thanks to Juho Nurminen of Mattermost who reported a similar issue in
    path/filepath.
    
    Fixes #53719
    Updates #53415
    Fixes CVE-2022-30630
    
    Change-Id: I5a9d02591fed90cd3d52627f5945f1301e53465d
    Reviewed-on: https://team-review.git.corp.google.com/c/golang/go-private/+/1497588
    Reviewed-by: Roland Shoemaker <[email protected]>
    (cherry picked from commit fdccc5d7bd0f276d0a8de3a818ca844f0bed5d97)
    Reviewed-on: https://go-review.googlesource.com/c/go/+/417072
    Reviewed-by: Heschi Kreinick <[email protected]>
    TryBot-Result: Gopher Robot <[email protected]>
    Run-TryBot: Michael Knyszek <[email protected]>
    julieqiu authored and mknyszek committed Jul 12, 2022
    Configuration menu
    Copy the full SHA
    8c1d8c8 View commit details
    Browse the repository at this point in the history
  8. [release-branch.go1.17] path/filepath: fix stack exhaustion in Glob

    A limit is added to the number of path separators allowed by an input to
    Glob, to prevent stack exhaustion issues.
    
    Thanks to Juho Nurminen of Mattermost who reported the issue.
    
    Fixes #53713
    Updates #53416
    Fixes CVE-2022-30632
    
    Change-Id: I1b9fd4faa85411a05dbc91dceae1c0c8eb021f07
    Reviewed-on: https://team-review.git.corp.google.com/c/golang/go-private/+/1498176
    Reviewed-by: Roland Shoemaker <[email protected]>
    (cherry picked from commit d182a6d1217fd0d04c9babfa9a7ccd3515435c39)
    Reviewed-on: https://go-review.googlesource.com/c/go/+/417073
    Reviewed-by: Heschi Kreinick <[email protected]>
    TryBot-Result: Gopher Robot <[email protected]>
    Run-TryBot: Michael Knyszek <[email protected]>
    julieqiu authored and mknyszek committed Jul 12, 2022
    Configuration menu
    Copy the full SHA
    76f8b73 View commit details
    Browse the repository at this point in the history
  9. [release-branch.go1.17] encoding/gob: add a depth limit for ignored f…

    …ields
    
    Enforce a nesting limit of 10,000 for ignored fields during decoding
    of messages. This prevents the possibility of triggering stack
    exhaustion.
    
    Fixes #53709
    Updates #53615
    Fixes CVE-2022-30635
    
    Change-Id: I05103d06dd5ca3945fcba3c1f5d3b5a645e8fb0f
    Reviewed-on: https://team-review.git.corp.google.com/c/golang/go-private/+/1484771
    Reviewed-by: Damien Neil <[email protected]>
    Reviewed-by: Tatiana Bradley <[email protected]>
    (cherry picked from commit 55e8f938d22bfec29cc9dc9671044c5a41d1ea9c)
    Reviewed-on: https://go-review.googlesource.com/c/go/+/417074
    Run-TryBot: Heschi Kreinick <[email protected]>
    TryBot-Result: Gopher Robot <[email protected]>
    Reviewed-by: Heschi Kreinick <[email protected]>
    rolandshoemaker authored and mknyszek committed Jul 12, 2022
    Configuration menu
    Copy the full SHA
    cd54600 View commit details
    Browse the repository at this point in the history
  10. [release-branch.go1.17] go1.17.12

    Change-Id: I12bfc6a625d61a7a25ecdaa10c8f78953c4c3bcf
    Reviewed-on: https://go-review.googlesource.com/c/go/+/417178
    Run-TryBot: Gopher Robot <[email protected]>
    Auto-Submit: Gopher Robot <[email protected]>
    TryBot-Result: Gopher Robot <[email protected]>
    Reviewed-by: Michael Knyszek <[email protected]>
    Reviewed-by: Heschi Kreinick <[email protected]>
    gopherbot authored and mknyszek committed Jul 12, 2022
    Configuration menu
    Copy the full SHA
    1ed3c12 View commit details
    Browse the repository at this point in the history
Loading