<feed xmlns='http://www.w3.org/2005/Atom'>
<title>go/src/syscall/exec_linux_test.go, branch main</title>
<subtitle>Fork of Go programming language with my patches.</subtitle>
<id>http://git.kilabit.info/go/atom?h=main</id>
<link rel='self' href='http://git.kilabit.info/go/atom?h=main'/>
<link rel='alternate' type='text/html' href='http://git.kilabit.info/go/'/>
<updated>2025-10-17T20:10:27Z</updated>
<entry>
<title>all: remove unnecessary loop variable copies in tests</title>
<updated>2025-10-17T20:10:27Z</updated>
<author>
<name>Tobias Klauser</name>
<email>tklauser@distanz.ch</email>
</author>
<published>2025-10-14T09:40:26Z</published>
<link rel='alternate' type='text/html' href='http://git.kilabit.info/go/commit/?id=b5aefe07e5afe2fd5d49c6a4219cc826b3e4e34e'/>
<id>urn:sha1:b5aefe07e5afe2fd5d49c6a4219cc826b3e4e34e</id>
<content type='text'>
Copying the loop variable is no longer necessary since Go 1.22.

Change-Id: Iebb21dac44a20ec200567f1d786f105a4ee4999d
Reviewed-on: https://go-review.googlesource.com/c/go/+/711640
Reviewed-by: Florian Lehner &lt;lehner.florian86@gmail.com&gt;
Auto-Submit: Damien Neil &lt;dneil@google.com&gt;
Reviewed-by: Dmitri Shuralyov &lt;dmitshur@google.com&gt;
Reviewed-by: Damien Neil &lt;dneil@google.com&gt;
Auto-Submit: Tobias Klauser &lt;tobias.klauser@gmail.com&gt;
LUCI-TryBot-Result: Go LUCI &lt;golang-scoped@luci-project-accounts.iam.gserviceaccount.com&gt;
</content>
</entry>
<entry>
<title>runtime: in asan mode call __lsan_do_leak_check when exiting</title>
<updated>2025-03-06T02:23:46Z</updated>
<author>
<name>Ian Lance Taylor</name>
<email>iant@golang.org</email>
</author>
<published>2025-02-22T01:13:20Z</published>
<link rel='alternate' type='text/html' href='http://git.kilabit.info/go/commit/?id=645ea530191105dc89dd8d67640d61a4d0526df9'/>
<id>urn:sha1:645ea530191105dc89dd8d67640d61a4d0526df9</id>
<content type='text'>
This enables the ASAN default behavior of reporting C memory leaks.
It can be disabled with ASAN_OPTIONS=detect_leaks=0.

Fixes #67833

Change-Id: I420da1b5d79cf70d8cf134eaf97bf0a22f61ffd0
Cq-Include-Trybots: luci.golang.try:gotip-linux-amd64-asan-clang15,gotip-linux-arm64-asan-clang15
Reviewed-on: https://go-review.googlesource.com/c/go/+/651755
Reviewed-by: Cherry Mui &lt;cherryyz@google.com&gt;
Reviewed-by: Ian Lance Taylor &lt;iant@google.com&gt;
Auto-Submit: Ian Lance Taylor &lt;iant@google.com&gt;
LUCI-TryBot-Result: Go LUCI &lt;golang-scoped@luci-project-accounts.iam.gserviceaccount.com&gt;
</content>
</entry>
<entry>
<title>syscall: skip testAmbientCaps tests if there is no nobody user</title>
<updated>2025-02-14T22:00:03Z</updated>
<author>
<name>Carlos Ramos Carreño</name>
<email>vnmabus@gmail.com</email>
</author>
<published>2025-02-14T10:14:29Z</published>
<link rel='alternate' type='text/html' href='http://git.kilabit.info/go/commit/?id=1959703dddffef61760d5d4fdedc4df8d2d73438'/>
<id>urn:sha1:1959703dddffef61760d5d4fdedc4df8d2d73438</id>
<content type='text'>
When there is not a nobody user (for example inside Docker), the
tests TestAmbientCaps and TestAmbientCapsUserns should be skipped
instead of failing.

Fixes #71644

Change-Id: I7f92db19e2b6f449d8d897650a0ecd89f5150f4a
GitHub-Last-Rev: a4c4f5bb61929b4981dc0b92d773bd4ef13d7d3d
GitHub-Pull-Request: golang/go#71729
Reviewed-on: https://go-review.googlesource.com/c/go/+/649396
LUCI-TryBot-Result: Go LUCI &lt;golang-scoped@luci-project-accounts.iam.gserviceaccount.com&gt;
Reviewed-by: Ian Lance Taylor &lt;iant@google.com&gt;
Auto-Submit: Ian Lance Taylor &lt;iant@golang.org&gt;
Reviewed-by: Carlos Amedee &lt;carlos@golang.org&gt;
</content>
</entry>
<entry>
<title>syscall: use testenv.Executable</title>
<updated>2024-09-03T20:11:34Z</updated>
<author>
<name>Kir Kolyshkin</name>
<email>kolyshkin@gmail.com</email>
</author>
<published>2024-08-30T05:24:30Z</published>
<link rel='alternate' type='text/html' href='http://git.kilabit.info/go/commit/?id=763781c6ec92fceeb530167bc41985b865516f3a'/>
<id>urn:sha1:763781c6ec92fceeb530167bc41985b865516f3a</id>
<content type='text'>
Change-Id: I4390d4bfb7deb974df6546e30ebbb4b6fff74730
Reviewed-on: https://go-review.googlesource.com/c/go/+/609836
Auto-Submit: Ian Lance Taylor &lt;iant@google.com&gt;
Reviewed-by: Tobias Klauser &lt;tobias.klauser@gmail.com&gt;
Reviewed-by: Dmitri Shuralyov &lt;dmitshur@google.com&gt;
Reviewed-by: Ian Lance Taylor &lt;iant@google.com&gt;
LUCI-TryBot-Result: Go LUCI &lt;golang-scoped@luci-project-accounts.iam.gserviceaccount.com&gt;
</content>
</entry>
<entry>
<title>syscall: skip TestAmbientCapsUserns when restricted, document</title>
<updated>2024-05-15T07:45:37Z</updated>
<author>
<name>Michael Stapelberg</name>
<email>stapelberg@golang.org</email>
</author>
<published>2024-05-14T08:54:40Z</published>
<link rel='alternate' type='text/html' href='http://git.kilabit.info/go/commit/?id=d05af626956af449fb13815cef06b606bc7740c6'/>
<id>urn:sha1:d05af626956af449fb13815cef06b606bc7740c6</id>
<content type='text'>
fixes golang/go#67088

Change-Id: I42e7a8d02b161187772f147e3e136ab6e0f71d7f
Reviewed-on: https://go-review.googlesource.com/c/go/+/585059
LUCI-TryBot-Result: Go LUCI &lt;golang-scoped@luci-project-accounts.iam.gserviceaccount.com&gt;
Reviewed-by: Ian Lance Taylor &lt;iant@google.com&gt;
</content>
</entry>
<entry>
<title>syscall: fix typo in comment</title>
<updated>2024-02-27T16:40:42Z</updated>
<author>
<name>guoguangwu</name>
<email>guoguangwu@magic-shield.com</email>
</author>
<published>2024-02-24T10:29:13Z</published>
<link rel='alternate' type='text/html' href='http://git.kilabit.info/go/commit/?id=269e0df5f315bd24943d2607bed7b7c0200037e9'/>
<id>urn:sha1:269e0df5f315bd24943d2607bed7b7c0200037e9</id>
<content type='text'>
Change-Id: I1804315fd3ec50ab1e3f480efd92c59e36fd47d0
GitHub-Last-Rev: 07d969ab71eabfe7034b62f45a1f4058b66ee014
GitHub-Pull-Request: golang/go#65921
Reviewed-on: https://go-review.googlesource.com/c/go/+/566615
Auto-Submit: Ian Lance Taylor &lt;iant@google.com&gt;
Reviewed-by: Ian Lance Taylor &lt;iant@google.com&gt;
LUCI-TryBot-Result: Go LUCI &lt;golang-scoped@luci-project-accounts.iam.gserviceaccount.com&gt;
Reviewed-by: Tobias Klauser &lt;tobias.klauser@gmail.com&gt;
Reviewed-by: Emmanuel Odeke &lt;emmanuel@orijtech.com&gt;
Reviewed-by: Carlos Amedee &lt;carlos@golang.org&gt;
</content>
</entry>
<entry>
<title>internal/syscall/unix: add PidFDSendSignal for Linux</title>
<updated>2023-11-21T22:23:07Z</updated>
<author>
<name>Kir Kolyshkin</name>
<email>kolyshkin@gmail.com</email>
</author>
<published>2023-09-13T07:58:20Z</published>
<link rel='alternate' type='text/html' href='http://git.kilabit.info/go/commit/?id=ff05cdbd2bdc28ab545a5964f7f772e2ea4c5fd1'/>
<id>urn:sha1:ff05cdbd2bdc28ab545a5964f7f772e2ea4c5fd1</id>
<content type='text'>
CL 520266 added pidfd_send_signal linux syscall numbers to the
syscall package for the sake of a unit test.

As pidfd_send_signal will be used from the os package, let's revert the
changes to syscall package, add the pidfd_send_signal syscall numbers
and the implementation to internal/syscall/unix, and change the above
test to use it.

Updates #51246.
For #62654.

Change-Id: I862174c3c1a64baf1080792bdb3a1c1d1b417bb4
Reviewed-on: https://go-review.googlesource.com/c/go/+/528436
Run-TryBot: Kirill Kolyshkin &lt;kolyshkin@gmail.com&gt;
Reviewed-by: Cherry Mui &lt;cherryyz@google.com&gt;
Reviewed-by: Michael Knyszek &lt;mknyszek@google.com&gt;
LUCI-TryBot-Result: Go LUCI &lt;golang-scoped@luci-project-accounts.iam.gserviceaccount.com&gt;
TryBot-Result: Gopher Robot &lt;gobot@golang.org&gt;
Reviewed-by: Michael Pratt &lt;mpratt@google.com&gt;
</content>
</entry>
<entry>
<title>syscall: check SyscallIsNotSupported in TestPidFDWithUserNS</title>
<updated>2023-11-21T21:40:03Z</updated>
<author>
<name>Michael Pratt</name>
<email>mpratt@google.com</email>
</author>
<published>2023-11-21T20:37:49Z</published>
<link rel='alternate' type='text/html' href='http://git.kilabit.info/go/commit/?id=4a2408289c0a714fa57fa5921cf5dba518149637'/>
<id>urn:sha1:4a2408289c0a714fa57fa5921cf5dba518149637</id>
<content type='text'>
For #51246.

Change-Id: Ief2e2e14f039123a6580cb60be7ee74f4a20a649
Reviewed-on: https://go-review.googlesource.com/c/go/+/544318
TryBot-Result: Gopher Robot &lt;gobot@golang.org&gt;
Auto-Submit: Michael Pratt &lt;mpratt@google.com&gt;
Reviewed-by: Bryan Mills &lt;bcmills@google.com&gt;
Run-TryBot: Michael Pratt &lt;mpratt@google.com&gt;
LUCI-TryBot-Result: Go LUCI &lt;golang-scoped@luci-project-accounts.iam.gserviceaccount.com&gt;
</content>
</entry>
<entry>
<title>syscall: fix getting pidfd when using CLONE_NEWUSER</title>
<updated>2023-11-21T20:13:01Z</updated>
<author>
<name>Kir Kolyshkin</name>
<email>kolyshkin@gmail.com</email>
</author>
<published>2023-11-16T08:42:04Z</published>
<link rel='alternate' type='text/html' href='http://git.kilabit.info/go/commit/?id=f7b2779086683bf00570427ce08bebfb54c53b76'/>
<id>urn:sha1:f7b2779086683bf00570427ce08bebfb54c53b76</id>
<content type='text'>
While working on CL 528798, I found out that sys.PidFD field (added
in CL 520266) is not filled in when CLONE_NEWUSER is used.

This happens because the code assumed that the parent and the child
run in the same memory space. This assumption is right only when
CLONE_VM is used for clone syscall, and the code only sets CLONE_VM
when CLONE_NEWUSER is not used.

Fix this, and add a test case (which fails before the fix).

Updates #51246.

Change-Id: I805203c1369cadd63d769568b132a9ffd92cc184
Reviewed-on: https://go-review.googlesource.com/c/go/+/542698
LUCI-TryBot-Result: Go LUCI &lt;golang-scoped@luci-project-accounts.iam.gserviceaccount.com&gt;
Reviewed-by: Michael Pratt &lt;mpratt@google.com&gt;
Reviewed-by: Michael Knyszek &lt;mknyszek@google.com&gt;
Auto-Submit: Michael Pratt &lt;mpratt@google.com&gt;
</content>
</entry>
<entry>
<title>all: clean unnecessary casts for test files</title>
<updated>2023-09-22T16:22:42Z</updated>
<author>
<name>Jes Cok</name>
<email>xigua67damn@gmail.com</email>
</author>
<published>2023-09-19T10:36:19Z</published>
<link rel='alternate' type='text/html' href='http://git.kilabit.info/go/commit/?id=9b883484a8c1c0fb556ac0d04cf24e54dff7eb47'/>
<id>urn:sha1:9b883484a8c1c0fb556ac0d04cf24e54dff7eb47</id>
<content type='text'>
This is a follow up of CL 528696.

Change-Id: I5b71eabedb12567c4b1b36f7182a3d2b0ed662a5
GitHub-Last-Rev: acaf3ac11c38042ad27b99e1c70a3c9f1a554a15
GitHub-Pull-Request: golang/go#62713
Reviewed-on: https://go-review.googlesource.com/c/go/+/529197
Reviewed-by: Ian Lance Taylor &lt;iant@google.com&gt;
Auto-Submit: Ian Lance Taylor &lt;iant@google.com&gt;
Reviewed-by: Matthew Dempsky &lt;mdempsky@google.com&gt;
LUCI-TryBot-Result: Go LUCI &lt;golang-scoped@luci-project-accounts.iam.gserviceaccount.com&gt;
</content>
</entry>
</feed>
