Debian Patches

Status for golang-1.15/1.15.15-1~deb11u4

Patch Description Author Forwarded Bugs Origin Last update
0001-Disable-test-for-UserHomeDir.patch Disable test for UserHomeDir.
On Debian buildds, the user home dir does not exist, so this test fails.
"Dr. Tobias Quathamer" <toddy@debian.org> no 2018-12-19
0002-Fix-Lintian-warnings-about-wrong-interpreter-path.patch Fix Lintian warnings about wrong interpreter path
The command used for this change is as follows:

grep -rH "/usr/bin/env perl" * | cut -d: -f1 | xargs -n1 sed -i -e "s,/usr/bin/env perl,/usr/bin/perl,"
"Dr. Tobias Quathamer" <toddy@debian.org> no 2019-08-01
0003-cmd-go-cmd-cgo-pass-mfp32-and-mhard-soft-float-to-MI.patch cmd/go, cmd/cgo: pass -mfp32 and -mhard/soft-float to MIPS GCC
For mips32 currently, we are using FP32, while the gcc may be FPXX,
which may generate .MIPS.abiflags and .gnu.attributes section with
value as FPXX. So the kernel will treat the exe as FPXX, and may
choose to use FR=1 FPU mode for it.
Currently, in Go, we use 2 lwc1 to load both half of a double value
to a pair of even-odd FPR. This behavior can only work with FR=0 mode.

In FR=1 mode, all of 32 FPR are 64bit. If we lwc1 the high-half of a double
value to an odd FPR, and try to use the previous even FPR to compute, the
real high-half of even FPR will be unpredicatable.
We set -mfp32 to force the gcc generate FP32 code and section value.

More details about FP32/FPXX/FP64 are explained in:
https://web.archive.org/web/20180828210612/https://dmz-portal.mips.com/wiki/MIPS_O32_ABI_-_FR0_and_FR1_Interlinking

When GOMIPS/GOMIPS64 is set as softfloat, we should also pass
-msoft-float to gcc.

Here we also add -mno-odd-spreg option, since Loongson's CPU cannot use
odd-number FR in FR=0 mode.

Fixes #39435
YunQiang Su <wzssyqa@gmail.com> no 2020-06-09
0015-CVE-2022-24921.patch CVE-2022-24921 Russ Cox <rsc@golang.org> no backport, https://github.com/golang/go/commit/2b65cde5 2022-02-02
0004-cmd-dist-fix-build-failure-of-misc-cgo-test-on-arm64.patch cmd/dist: fix build failure of misc/cgo/test on arm64
Test7978 of misc/cgo/test fails in 'dist test' on arm64 if the C compiler
is of GCC-9.4 or above and its 'outline atomics' feature is enabled, since
the internal linking hasn't yet supported "__attribute__((constructor))"
and also mis-handles hidden visibility.

Two changes are made for 'misc/cgo/test' to fix the issue:
1. passing "-tags=internal" for the internal linking PIE case.
2. skipping Test7978 on arm64 for the internal linking cases.

This CL fixes 'dist test' failure only, user is expected to pass the option
'-mno-outline-atomics' via CGO_CFLAGS if running into the same problem when
building cgo program using internal linking.

Updates #39466
Xiangdong Ji <xiangdong.ji@arm.com> no 2020-08-05
0005-cmd-dist-increase-default-timeout-scale-for-arm.patch [PATCH] cmd/dist: increase default timeout scale for arm

Most developers use (faster) amd64 machines setting the test timeouts,
but test may run on slower arm ones and also different tests may suffer
different relative slowdown on the arm CPUs.

Due to those two varying factors it is safer to allow a higher timeout
scale on arm to avoid tests timing out.
Balint Reczey <balint.reczey@canonical.com> yes 2020-08-31
0006-skip-userns-test-in-schroot-as-well.patch skip userns test in schroot as well
When schroot is using overlayfs, it fails to detect it as chroot.
Shengjing Zhu <zhsj@debian.org> no 2021-02-05
0007-CVE-2021-39293.patch CVE-2021-39293 Roland Shoemaker <roland@golang.org> no backport, https://github.com/golang/go/commit/bacbc334 2021-08-18
0008-CVE-2021-38297.patch CVE-2021-38297 Michael Knyszek <mknyszek@google.com> no backport, https://github.com/golang/go/commit/4548fcc8 2021-09-02
0009-CVE-2021-41771.patch CVE-2021-41771 Roland Shoemaker <roland@golang.org> no backport, https://github.com/golang/go/commit/d19c5bdb 2021-10-14
0010-CVE-2021-44716.patch CVE-2021-44716 Filippo Valsorda <filippo@golang.org> no backport, https://github.com/golang/go/commit/48d94896 2021-12-09
0011-CVE-2021-44717.patch CVE-2021-44717 Russ Cox <rsc@golang.org> no backport, https://github.com/golang/go/commit/44a3fb49 2021-12-08
0012-CVE-2022-23806.patch CVE-2022-23806 Filippo Valsorda <filippo@golang.org> no backport, https://github.com/golang/go/commit/6b3e741a 2022-02-02
0013-CVE-2022-23772.patch CVE-2022-23772 Katie Hockman <katie@golang.org> no backport, https://github.com/golang/go/commit/07ee9e64 2022-01-19
0014-CVE-2022-23773.patch CVE-2022-23773

Only change in coderep.go is backported. Changes in coderepo_test.go
and mod_invalid_version.txt are used for testing, which can't be
cherry-picked directly.
"Bryan C. Mills" <bcmills@google.com> no backport, https://github.com/golang/go/commit/de76489a 2022-01-13

All known versions for source package 'golang-1.15'

Links