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/sys
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: v0.46.0
Choose a base ref
...
head repository: golang/sys
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: v0.47.0
Choose a head ref
  • 5 commits
  • 37 files changed
  • 6 contributors

Commits on Jun 11, 2026

  1. windows: document safe usage of TrusteeValue

    Failure to pin the memory pointed to by a TrusteeValue (a uintptr)
    can lead to the GC collecting the memory while it is still being
    referenced.
    
    Fixes #79923
    
    Change-Id: Ie28884856298cd60693c903843be6aa06a6a6964
    Reviewed-on: https://go-review.googlesource.com/c/sys/+/789000
    Auto-Submit: Damien Neil <[email protected]>
    LUCI-TryBot-Result: [email protected] <[email protected]>
    Reviewed-by: Quim Muntal <[email protected]>
    Reviewed-by: Cherry Mui <[email protected]>
    neild authored and gopherbot committed Jun 11, 2026
    Configuration menu
    Copy the full SHA
    c507910 View commit details
    Browse the repository at this point in the history

Commits on Jun 15, 2026

  1. unix: update glibc to 2.43

    Change-Id: Iba1e8753f68af6ac6ee741953b1efdb24183a204
    GitHub-Last-Rev: ec88943
    GitHub-Pull-Request: #280
    Reviewed-on: https://go-review.googlesource.com/c/sys/+/790440
    Reviewed-by: Tobias Klauser <[email protected]>
    LUCI-TryBot-Result: [email protected] <[email protected]>
    Reviewed-by: Dmitri Shuralyov <[email protected]>
    Reviewed-by: Cherry Mui <[email protected]>
    Reviewed-by: Ian Lance Taylor <[email protected]>
    Auto-Submit: Ian Lance Taylor <[email protected]>
    mauri870 authored and gopherbot committed Jun 15, 2026
    Configuration menu
    Copy the full SHA
    3cb6647 View commit details
    Browse the repository at this point in the history

Commits on Jun 24, 2026

  1. windows: avoid length overflow in NewNTString

    NewNTString initializes an NTString with RtlInitString, which cannot accurately represent sources whose NUL-terminated byte length exceeds MAX_USHORT. Reject strings whose byte representation cannot fit in the uint16 length fields before calling RtlInitString.
    
    Add a boundary round-trip test for NTString.
    
    Fixes golang/go#80103
    
    Change-Id: Id38882a952330305e6c23d0adc86a8bf7920d30e
    Reviewed-on: https://go-review.googlesource.com/c/sys/+/793100
    LUCI-TryBot-Result: [email protected] <[email protected]>
    Reviewed-by: Dmitri Shuralyov <[email protected]>
    Reviewed-by: Emmanuel Odeke <[email protected]>
    Auto-Submit: Damien Neil <[email protected]>
    Reviewed-by: Quim Muntal <[email protected]>
    Reviewed-by: Alex Brainman <[email protected]>
    Reviewed-by: Damien Neil <[email protected]>
    bg0d-droid authored and gopherbot committed Jun 24, 2026
    Configuration menu
    Copy the full SHA
    f3eeabf View commit details
    Browse the repository at this point in the history
  2. unix: use epoll_pwait rather than epoll_wait

    This extends a pattern implemented on arm64 by CL 21971
    to all arches.
    
    This is safe to do because epoll_pwait was added in Linux 2.6.19
    and x/sys's go.mod file sets go 1.25.0 which has a minimum Linux
    version of 3.2.
    
    epoll_wait is a legacy syscall that is being left behind
    - some newer arches (like arm64) do not implement it
    - libc implementations never call it
    - seccomp allow lists do not include it
    
    epoll_pwait is a complete superset of epoll_wait: it adds a new
    sigmask argument, but according to the docs:
    
      The sigmask argument may be specified as NULL, in which
      case epoll_pwait() is equivalent to epoll_wait().
    
    This might have the inverse downside where someone wrote a seccomp
    filter allowing epoll_wait but not epoll_pwait, but given that the
    rest of the ecosystem (libcs, ...) uses epoll_pwait this seems
    unlikely.
    
    Fixes golang/go#80080
    
    Change-Id: Ief3b7799e35c61cec328c328422155a29fc02ae4
    Reviewed-on: https://go-review.googlesource.com/c/sys/+/792700
    LUCI-TryBot-Result: [email protected] <[email protected]>
    Auto-Submit: Ian Lance Taylor <[email protected]>
    Reviewed-by: Tobias Klauser <[email protected]>
    Reviewed-by: Dmitri Shuralyov <[email protected]>
    Reviewed-by: Carlos Amedee <[email protected]>
    Reviewed-by: Ian Lance Taylor <[email protected]>
    Auto-Submit: Tobias Klauser <[email protected]>
    Jorropo authored and gopherbot committed Jun 24, 2026
    Configuration menu
    Copy the full SHA
    f6fb8a1 View commit details
    Browse the repository at this point in the history

Commits on Jun 30, 2026

  1. cpu: handle vendor suffixes in parseRelease

    Kernel release strings such as "3.4.35_hi3535" on some Synology devices
    failed to parse because only dash and plus suffixes were stripped.
    Parse the leading digits of each component instead, mirroring the Go
    runtime fix.
    
    This copies the implementation from the Go runtime's parseRelease as
    updated in CL 781800.
    
    Fixes golang/go#80094
    
    Co-authored-by: Brad Fitzpatrick <[email protected]>
    Change-Id: I41f8fd0a1d6c012eebd5368e623b42e99220d1a3
    Reviewed-on: https://go-review.googlesource.com/c/sys/+/793760
    Reviewed-by: Jorropo <[email protected]>
    Reviewed-by: Dmitri Shuralyov <[email protected]>
    LUCI-TryBot-Result: [email protected] <[email protected]>
    Auto-Submit: Dmitri Shuralyov <[email protected]>
    Reviewed-by: Junyang Shao <[email protected]>
    2 people authored and gopherbot committed Jun 30, 2026
    Configuration menu
    Copy the full SHA
    9e7e939 View commit details
    Browse the repository at this point in the history
Loading