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: aee9a19
Choose a base ref
...
head repository: golang/go
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: 7c47a6b
Choose a head ref
  • 17 commits
  • 46 files changed
  • 11 contributors

Commits on Mar 8, 2023

  1. [release-branch.go1.20] internal/testpty: fix error handling

    When calling a c library function, you discover that an error has
    occurred, typically by looking at the return value of the function. Only
    after that can you use errno to figure out the cause of the error.
    
    Nothing about cgo changes that story -- you still have to look at the
    result before checking the error that represents errno. If not you can
    get false errors if the function happens to leak a non-zero errno.
    
    Fix testpty to check errors correctly.
    
    Fixes #58942.
    
    Change-Id: Idb95f8dd6a8ed63f653190c2e722e742cf50542b
    Reviewed-on: https://go-review.googlesource.com/c/go/+/463397
    Run-TryBot: Heschi Kreinick <[email protected]>
    Reviewed-by: Michael Pratt <[email protected]>
    Auto-Submit: Heschi Kreinick <[email protected]>
    TryBot-Result: Gopher Robot <[email protected]>
    (cherry picked from commit f85c282)
    Reviewed-on: https://go-review.googlesource.com/c/go/+/474616
    Reviewed-by: Carlos Amedee <[email protected]>
    heschi authored and cagedmantis committed Mar 8, 2023
    Configuration menu
    Copy the full SHA
    4df95d5 View commit details
    Browse the repository at this point in the history

Commits on Mar 9, 2023

  1. [release-branch.go1.20] cmd/go: avoid running slow tests on non-longt…

    …est builders
    
    Also annotate calls to tooSlow with specific reasons.
    
    This will somewhat reduce test coverage on the 'darwin' builders until
    we have darwin 'longtest' builders (#35678,#49055), but still seems
    worthwhile to avoid alert fatigue from tests that really shouldn't be
    running in the short configurations.
    
    Updates #58918.
    Updates #58919.
    Fixes #58938.
    
    Change-Id: I0000f0084b262beeec3eca3e9b8a45d61fab4313
    Reviewed-on: https://go-review.googlesource.com/c/go/+/474137
    Reviewed-by: Ian Lance Taylor <[email protected]>
    Auto-Submit: Bryan Mills <[email protected]>
    Run-TryBot: Bryan Mills <[email protected]>
    TryBot-Result: Gopher Robot <[email protected]>
    (cherry picked from commit 9f532dd)
    Reviewed-on: https://go-review.googlesource.com/c/go/+/474580
    Bryan C. Mills authored and cagedmantis committed Mar 9, 2023
    Configuration menu
    Copy the full SHA
    b852f39 View commit details
    Browse the repository at this point in the history

Commits on Mar 15, 2023

  1. [release-branch.go1.20] Revert "cmd/compile: enable address folding f…

    …or global symbols of shared library"
    
    This reverts CL 445535.
    
    Reason for revert: see issue #58826. It doesn't handle large offset well.
    
    Updates #58826.
    Fixes #58920.
    
    Change-Id: Ic4a33f4c510c88628ea7e16207a60977a04cf798
    Reviewed-on: https://go-review.googlesource.com/c/go/+/474175
    Reviewed-by: Heschi Kreinick <[email protected]>
    TryBot-Result: Gopher Robot <[email protected]>
    Run-TryBot: Cherry Mui <[email protected]>
    Reviewed-by: Keith Randall <[email protected]>
    (cherry picked from commit a4cf4fd)
    Reviewed-on: https://go-review.googlesource.com/c/go/+/474235
    Reviewed-by: Keith Randall <[email protected]>
    cherrymui committed Mar 15, 2023
    Configuration menu
    Copy the full SHA
    5c7cc46 View commit details
    Browse the repository at this point in the history
  2. [release-branch.go1.20] cmd/link: use label symbols for Duff's device…

    …s on darwin/arm64
    
    On darwin, the external linker generally supports CALL relocations
    with addend. One exception is that for a very large binary when it
    decides to insert a trampoline, instead of applying the addend to
    the call target (in the trampoline), it applies the addend to the
    CALL instruction in the caller, i.e. generating a call to
    trampoline+addend, which is not the correct address and usually
    points to unreloated functions.
    
    To work around this, we use label symbols so the CALL is targeting
    a label symbol without addend. To make things simple we always use
    label symbols for CALLs with addend (in external linking mode on
    darwin/arm64), even for small binaries.
    
    Updates #58935.
    Fixes #58954.
    
    Change-Id: I38aed6b62a0496c277c589b5accbbef6aace8dd5
    Reviewed-on: https://go-review.googlesource.com/c/go/+/474620
    TryBot-Result: Gopher Robot <[email protected]>
    Run-TryBot: Cherry Mui <[email protected]>
    Reviewed-by: Than McIntosh <[email protected]>
    (cherry picked from commit 7dbd6de)
    Reviewed-on: https://go-review.googlesource.com/c/go/+/475175
    cherrymui committed Mar 15, 2023
    Configuration menu
    Copy the full SHA
    fa42da1 View commit details
    Browse the repository at this point in the history

Commits on Mar 17, 2023

  1. [release-branch.go1.20] cmd/go,cmd/link: prefer external linking when…

    … strange cgo flags seen
    
    This patch changes the Go command to examine the set of compiler
    flags feeding into the C compiler when packages that use cgo are built.
    If any of a specific set of strange/dangerous flags are in use,
    then the Go command generates a token file ("preferlinkext") and
    embeds it into the compiled package's archive.
    
    When the Go linker reads the archives of the packages feeding into the
    link and detects a "preferlinkext" token, it will then use external
    linking for the program by default (although this default can be
    overridden with an explicit "-linkmode" flag).
    
    The intent here is to avoid having to teach the Go linker's host object
    reader to grok/understand the various odd symbols/sections/types that
    can result from boutique flag use, but rather to just boot the objects
    in question over to the C linker instead.
    
    Fixes #59051.
    Updates #58619.
    Updates #58620.
    Updates #58848.
    
    Change-Id: I56382dd305de8dac3841a7a7e664277826061eaa
    Reviewed-on: https://go-review.googlesource.com/c/go/+/475375
    Reviewed-by: Cherry Mui <[email protected]>
    Reviewed-by: Bryan Mills <[email protected]>
    Run-TryBot: Than McIntosh <[email protected]>
    TryBot-Result: Gopher Robot <[email protected]>
    (cherry picked from commit 035db07)
    Reviewed-on: https://go-review.googlesource.com/c/go/+/476577
    thanm authored and cherrymui committed Mar 17, 2023
    Configuration menu
    Copy the full SHA
    3ff6dbd View commit details
    Browse the repository at this point in the history

Commits on Mar 22, 2023

  1. [release-branch.go1.20] cmd/link/internal/arm: fix off-by-1 in trampo…

    …line reachability computation
    
    Tweak the code in trampoline generation that determines if a given
    call branch will reach, changing the lower limit guard from "x <
    -0x800000" to "x <= -0x800000". This is to resolve linking failures
    when the computed displacement is exactly -0x800000, which results in
    errors of the form
    
      .../ld.gold: internal error in arm_branch_common, at ../../gold/arm.cc:4079
    
    when using the Gold linker, and
    
      ...:(.text+0x...): relocation truncated to fit: R_ARM_CALL against `runtime.morestack_noctxt'
    
    when using the bfd linker.
    
    Fixes #59059.
    Updates #59034.
    Updates #58425.
    
    Change-Id: I8a76986b38727df1b961654824c2af23f06b9fcf
    Reviewed-on: https://go-review.googlesource.com/c/go/+/475957
    Run-TryBot: Than McIntosh <[email protected]>
    TryBot-Result: Gopher Robot <[email protected]>
    Reviewed-by: Cherry Mui <[email protected]>
    (cherry picked from commit f26bf20)
    Reviewed-on: https://go-review.googlesource.com/c/go/+/476936
    thanm authored and heschi committed Mar 22, 2023
    Configuration menu
    Copy the full SHA
    b52a696 View commit details
    Browse the repository at this point in the history

Commits on Mar 23, 2023

  1. [release-branch.go1.20] time: fix timezone lookup logic for non-DST z…

    …ones
    
    This change fixes time.LoadLocationFromTZData and time.Location.lookup logic if the given time is after the last transition and the extend string doesn't have the DST rule.
    
    For #58682
    Fixes #59075
    
    Change-Id: Ie34a6d658d14c2b33098b29ab83c041ef0d34266
    GitHub-Last-Rev: f6681eb
    GitHub-Pull-Request: #58684
    Reviewed-on: https://go-review.googlesource.com/c/go/+/471020
    Reviewed-by: Ian Lance Taylor <[email protected]>
    TryBot-Result: Gopher Robot <[email protected]>
    Auto-Submit: Ian Lance Taylor <[email protected]>
    Reviewed-by: Cherry Mui <[email protected]>
    Run-TryBot: Ian Lance Taylor <[email protected]>
    Run-TryBot: Ian Lance Taylor <[email protected]>
    (cherry picked from commit 90dde5d)
    Reviewed-on: https://go-review.googlesource.com/c/go/+/478658
    Reviewed-by: Dmitri Shuralyov <[email protected]>
    Reviewed-by: Heschi Kreinick <[email protected]>
    Auto-Submit: Heschi Kreinick <[email protected]>
    KimMachineGun authored and gopherbot committed Mar 23, 2023
    Configuration menu
    Copy the full SHA
    65fa8a6 View commit details
    Browse the repository at this point in the history

Commits on Mar 29, 2023

  1. [release-branch.go1.20] cmd/compile: re-compile instantiated generic …

    …methods in linkshared mode
    
    For G[T] that was seen and compiled in imported package, it is not added
    to typecheck.Target.Decls, prevent wasting compile time re-creating
    DUPOKS symbols. However, the linker do not support a type symbol
    referencing a method symbol across DSO boundary. That causes unreachable
    sym error when building under -linkshared mode.
    
    To fix it, always re-compile generic methods in linkshared mode.
    
    Fixes #59236
    
    Change-Id: I894b417cfe8234ae1fe809cc975889345df22cef
    Reviewed-on: https://go-review.googlesource.com/c/go/+/477375
    Run-TryBot: Cuong Manh Le <[email protected]>
    Reviewed-by: Cherry Mui <[email protected]>
    Reviewed-by: Matthew Dempsky <[email protected]>
    TryBot-Result: Gopher Robot <[email protected]>
    Reviewed-on: https://go-review.googlesource.com/c/go/+/479355
    cuonglm authored and mdempsky committed Mar 29, 2023
    Configuration menu
    Copy the full SHA
    94c02a3 View commit details
    Browse the repository at this point in the history
  2. [release-branch.go1.20] cmd/compile: don't assume pointer of a slice …

    …is non-nil
    
    unsafe.SliceData can return pointers which are nil. That function gets
    lowered to the SSA OpSlicePtr, which the compiler assumes is non-nil.
    This used to be the case as OpSlicePtr was only used in situations
    where the bounds check already passed. But with unsafe.SliceData that
    is no longer the case.
    
    There are situations where we know it is nil. Use Bounded() to
    indicate that.
    
    I looked through all the uses of OSPTR and added SetBounded where it
    made sense. Most OSPTR results are passed directly to runtime calls
    (e.g. memmove), so even if we know they are non-nil that info isn't
    helpful.
    
    Fixes #59296
    
    Change-Id: I437a15330db48e0082acfb1f89caf8c56723fc51
    Reviewed-on: https://go-review.googlesource.com/c/go/+/479896
    Reviewed-by: Matthew Dempsky <[email protected]>
    Reviewed-by: Keith Randall <[email protected]>
    TryBot-Result: Gopher Robot <[email protected]>
    Run-TryBot: Keith Randall <[email protected]>
    (cherry picked from commit b899641ecea7d07c997282e985beb295c31d1097)
    Reviewed-on: https://go-review.googlesource.com/c/go/+/479899
    Run-TryBot: Keith Randall <[email protected]>
    Reviewed-by: Cuong Manh Le <[email protected]>
    randall77 authored and mdempsky committed Mar 29, 2023
    Configuration menu
    Copy the full SHA
    8dce4ca View commit details
    Browse the repository at this point in the history
  3. [release-branch.go1.20] cmd/internal/obj/ppc64: fix incorrect base re…

    …g causing segv
    
    This fixes a segv that was reported due to building minio. The
    problem occurred because of an incorrect selection of the
    base register, which was introduced by CL 306369.
    
    Fixes #59220
    
    Change-Id: Ieb77b2afa8fb4e6f3943df5ce138679f6750d376
    Reviewed-on: https://go-review.googlesource.com/c/go/+/479475
    Reviewed-by: Archana Ravindar <[email protected]>
    TryBot-Result: Gopher Robot <[email protected]>
    Reviewed-by: Matthew Dempsky <[email protected]>
    Run-TryBot: Lynn Boger <[email protected]>
    Reviewed-by: Cherry Mui <[email protected]>
    laboger authored and mdempsky committed Mar 29, 2023
    Configuration menu
    Copy the full SHA
    9a164d1 View commit details
    Browse the repository at this point in the history

Commits on Apr 4, 2023

  1. [release-branch.go1.20] net/textproto: avoid overpredicting the numbe…

    …r of MIME header keys
    
    A parsed MIME header is a map[string][]string. In the common case,
    a header contains many one-element []string slices. To avoid
    allocating a separate slice for each key, ReadMIMEHeader looks
    ahead in the input to predict the number of keys that will be
    parsed, and allocates a single []string of that length.
    The individual slices are then allocated out of the larger one.
    
    The prediction of the number of header keys was done by counting
    newlines in the input buffer, which does not take into account
    header continuation lines (where a header key/value spans multiple
    lines) or the end of the header block and the start of the body.
    This could lead to a substantial amount of overallocation, for
    example when the body consists of nothing but a large block of
    newlines.
    
    Fix header key count prediction to take into account the end of
    the headers (indicated by a blank line) and continuation lines
    (starting with whitespace).
    
    Thanks to Jakob Ackermann (@das7pad) for reporting this issue.
    
    Fixes CVE-2023-24534
    For #58975
    Fixes #59268
    
    Change-Id: I0591593e67b6fdba22a32dcc3334fad797727f5c
    Reviewed-on: https://team-review.git.corp.google.com/c/golang/go-private/+/1802452
    Run-TryBot: Damien Neil <[email protected]>
    Reviewed-by: Roland Shoemaker <[email protected]>
    Reviewed-by: Julie Qiu <[email protected]>
    Reviewed-on: https://team-review.git.corp.google.com/c/golang/go-private/+/1802397
    Run-TryBot: Roland Shoemaker <[email protected]>
    TryBot-Result: Security TryBots <[email protected]>
    Reviewed-on: https://go-review.googlesource.com/c/go/+/481988
    Run-TryBot: Michael Knyszek <[email protected]>
    TryBot-Bypass: Michael Knyszek <[email protected]>
    Auto-Submit: Michael Knyszek <[email protected]>
    Reviewed-by: Matthew Dempsky <[email protected]>
    neild authored and gopherbot committed Apr 4, 2023
    Configuration menu
    Copy the full SHA
    3991f6c View commit details
    Browse the repository at this point in the history
  2. [release-branch.go1.20] mime/multipart: avoid excessive copy buffer a…

    …llocations in ReadForm
    
    When copying form data to disk with io.Copy,
    allocate only one copy buffer and reuse it rather than
    creating two buffers per file (one from io.multiReader.WriteTo,
    and a second one from os.File.ReadFrom).
    
    Thanks to Jakob Ackermann (@das7pad) for reporting this issue.
    
    For CVE-2023-24536
    For #59153
    For #59270
    
    Reviewed-on: https://team-review.git.corp.google.com/c/golang/go-private/+/1802453
    Run-TryBot: Damien Neil <[email protected]>
    Reviewed-by: Julie Qiu <[email protected]>
    Reviewed-by: Roland Shoemaker <[email protected]>
    Change-Id: I44ef17c4b4964cdac2858317275594194801fee3
    Reviewed-on: https://team-review.git.corp.google.com/c/golang/go-private/+/1802398
    Run-TryBot: Roland Shoemaker <[email protected]>
    Reviewed-on: https://go-review.googlesource.com/c/go/+/481989
    Auto-Submit: Michael Knyszek <[email protected]>
    Run-TryBot: Michael Knyszek <[email protected]>
    TryBot-Result: Gopher Robot <[email protected]>
    Reviewed-by: Matthew Dempsky <[email protected]>
    neild authored and gopherbot committed Apr 4, 2023
    Configuration menu
    Copy the full SHA
    ea6b5a6 View commit details
    Browse the repository at this point in the history
  3. [release-branch.go1.20] net/textproto, mime/multipart: improve accoun…

    …ting of non-file data
    
    For requests containing large numbers of small parts,
    memory consumption of a parsed form could be about 250%
    over the estimated size.
    
    When considering the size of parsed forms, account for the size of
    FileHeader structs and increase the estimate of memory consumed by
    map entries.
    
    Thanks to Jakob Ackermann (@das7pad) for reporting this issue.
    
    For CVE-2023-24536
    For #59153
    For #59270
    
    Reviewed-on: https://team-review.git.corp.google.com/c/golang/go-private/+/1802454
    Run-TryBot: Damien Neil <[email protected]>
    Reviewed-by: Roland Shoemaker <[email protected]>
    Reviewed-by: Julie Qiu <[email protected]>
    Change-Id: I9753aa1f8a1b1479c160f870def3b7081b6847ac
    Reviewed-on: https://team-review.git.corp.google.com/c/golang/go-private/+/1802399
    TryBot-Result: Security TryBots <[email protected]>
    Run-TryBot: Roland Shoemaker <[email protected]>
    Reviewed-on: https://go-review.googlesource.com/c/go/+/481990
    TryBot-Bypass: Michael Knyszek <[email protected]>
    Reviewed-by: Matthew Dempsky <[email protected]>
    Run-TryBot: Michael Knyszek <[email protected]>
    Auto-Submit: Michael Knyszek <[email protected]>
    neild authored and gopherbot committed Apr 4, 2023
    Configuration menu
    Copy the full SHA
    ec18f62 View commit details
    Browse the repository at this point in the history
  4. [release-branch.go1.20] mime/multipart: limit parsed mime message sizes

    The parsed forms of MIME headers and multipart forms can consume
    substantially more memory than the size of the input data.
    A malicious input containing a very large number of headers or
    form parts can cause excessively large memory allocations.
    
    Set limits on the size of MIME data:
    
    Reader.NextPart and Reader.NextRawPart limit the the number
    of headers in a part to 10000.
    
    Reader.ReadForm limits the total number of headers in all
    FileHeaders to 10000.
    
    Both of these limits may be set with with
    GODEBUG=multipartmaxheaders=<values>.
    
    Reader.ReadForm limits the number of parts in a form to 1000.
    This limit may be set with GODEBUG=multipartmaxparts=<value>.
    
    Thanks for Jakob Ackermann (@das7pad) for reporting this issue.
    
    For CVE-2023-24536
    For #59153
    For #59270
    
    Change-Id: I36ddceead7f8292c327286fd8694e6113d3b4977
    Reviewed-on: https://team-review.git.corp.google.com/c/golang/go-private/+/1802455
    Run-TryBot: Damien Neil <[email protected]>
    Reviewed-by: Roland Shoemaker <[email protected]>
    Reviewed-by: Julie Qiu <[email protected]>
    Reviewed-on: https://team-review.git.corp.google.com/c/golang/go-private/+/1802608
    Run-TryBot: Roland Shoemaker <[email protected]>
    Reviewed-on: https://go-review.googlesource.com/c/go/+/481991
    Run-TryBot: Michael Knyszek <[email protected]>
    Reviewed-by: Matthew Dempsky <[email protected]>
    Auto-Submit: Michael Knyszek <[email protected]>
    TryBot-Bypass: Michael Knyszek <[email protected]>
    neild authored and gopherbot committed Apr 4, 2023
    Configuration menu
    Copy the full SHA
    bf8c7c5 View commit details
    Browse the repository at this point in the history
  5. [release-branch.go1.20] go/scanner: reject large line and column numb…

    …ers in //line directives
    
    Setting a large line or column number using a //line directive can cause
    integer overflow even in small source files.
    
    Limit line and column numbers in //line directives to 2^30-1, which
    is small enough to avoid int32 overflow on all reasonbly-sized files.
    
    Fixes CVE-2023-24537
    For #59180
    Fixes #59274
    
    Reviewed-on: https://team-review.git.corp.google.com/c/golang/go-private/+/1802456
    Reviewed-by: Julie Qiu <[email protected]>
    Reviewed-by: Roland Shoemaker <[email protected]>
    Run-TryBot: Damien Neil <[email protected]>
    Change-Id: Ib9c5cb38428ed34ab129d451b00a2998e72c861c
    Reviewed-on: https://team-review.git.corp.google.com/c/golang/go-private/+/1802401
    TryBot-Result: Security TryBots <[email protected]>
    Run-TryBot: Roland Shoemaker <[email protected]>
    Reviewed-on: https://go-review.googlesource.com/c/go/+/481992
    Reviewed-by: Matthew Dempsky <[email protected]>
    Auto-Submit: Michael Knyszek <[email protected]>
    Run-TryBot: Michael Knyszek <[email protected]>
    TryBot-Bypass: Michael Knyszek <[email protected]>
    neild authored and gopherbot committed Apr 4, 2023
    Configuration menu
    Copy the full SHA
    e7c4b07 View commit details
    Browse the repository at this point in the history
  6. [release-branch.go1.20] html/template: disallow actions in JS templat…

    …e literals
    
    ECMAScript 6 introduced template literals[0][1] which are delimited with
    backticks. These need to be escaped in a similar fashion to the
    delimiters for other string literals. Additionally template literals can
    contain special syntax for string interpolation.
    
    There is no clear way to allow safe insertion of actions within JS
    template literals, as handling (JS) string interpolation inside of these
    literals is rather complex. As such we've chosen to simply disallow
    template actions within these template literals.
    
    A new error code is added for this parsing failure case, errJsTmplLit,
    but it is unexported as it is not backwards compatible with other minor
    release versions to introduce an API change in a minor release. We will
    export this code in the next major release.
    
    The previous behavior (with the cavet that backticks are now escaped
    properly) can be re-enabled with GODEBUG=jstmpllitinterp=1.
    
    This change subsumes CL471455.
    
    Thanks to Sohom Datta, Manipal Institute of Technology, for reporting
    this issue.
    
    Fixes CVE-2023-24538
    For #59234
    Fixes #59272
    
    [0] https://tc39.es/ecma262/multipage/ecmascript-language-expressions.html#sec-template-literals
    [1] https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Template_literals
    
    Change-Id: Idff74ec386e9b73d6e9a3c9f71990eabc0ce7506
    Reviewed-on: https://team-review.git.corp.google.com/c/golang/go-private/+/1802457
    Reviewed-by: Damien Neil <[email protected]>
    Run-TryBot: Damien Neil <[email protected]>
    Reviewed-by: Julie Qiu <[email protected]>
    Reviewed-by: Roland Shoemaker <[email protected]>
    Reviewed-on: https://team-review.git.corp.google.com/c/golang/go-private/+/1802688
    Run-TryBot: Roland Shoemaker <[email protected]>
    Reviewed-on: https://go-review.googlesource.com/c/go/+/481993
    Run-TryBot: Michael Knyszek <[email protected]>
    Auto-Submit: Michael Knyszek <[email protected]>
    TryBot-Bypass: Michael Knyszek <[email protected]>
    Reviewed-by: Matthew Dempsky <[email protected]>
    rolandshoemaker authored and gopherbot committed Apr 4, 2023
    Configuration menu
    Copy the full SHA
    20374d1 View commit details
    Browse the repository at this point in the history
  7. [release-branch.go1.20] go1.20.3

    Change-Id: I1ca3074262203c6f250c902ca087d244edf9eb96
    Reviewed-on: https://go-review.googlesource.com/c/go/+/482097
    TryBot-Bypass: Michael Knyszek <[email protected]>
    Reviewed-by: Michael Knyszek <[email protected]>
    Run-TryBot: Gopher Robot <[email protected]>
    Auto-Submit: Gopher Robot <[email protected]>
    Reviewed-by: Matthew Dempsky <[email protected]>
    gopherbot authored and mknyszek committed Apr 4, 2023
    Configuration menu
    Copy the full SHA
    7c47a6b View commit details
    Browse the repository at this point in the history
Loading