<feed xmlns='http://www.w3.org/2005/Atom'>
<title>go/src/os/root_openat.go, branch fix-runtime-test-GOMAXPROCS</title>
<subtitle>Fork of Go programming language with my patches.</subtitle>
<id>http://git.kilabit.info/go/atom?h=fix-runtime-test-GOMAXPROCS</id>
<link rel='self' href='http://git.kilabit.info/go/atom?h=fix-runtime-test-GOMAXPROCS'/>
<link rel='alternate' type='text/html' href='http://git.kilabit.info/go/'/>
<updated>2025-07-18T21:43:56Z</updated>
<entry>
<title>os: revert the use of AddCleanup to close files and roots</title>
<updated>2025-07-18T21:43:56Z</updated>
<author>
<name>Carlos Amedee</name>
<email>carlos@golang.org</email>
</author>
<published>2025-07-16T19:05:48Z</published>
<link rel='alternate' type='text/html' href='http://git.kilabit.info/go/commit/?id=0451816430486a25966dd76aa92735ac0588b8e5'/>
<id>urn:sha1:0451816430486a25966dd76aa92735ac0588b8e5</id>
<content type='text'>
This reverts commit fdaac84480b02e600660d0ca7c15339138807107.

Updates #70907
Updates #74574
Updates #74642

Reason for revert: Issue #74574

Change-Id: I7b55b85736e4210d9b6f3fd7a24050ac7bdefef9
Reviewed-on: https://go-review.googlesource.com/c/go/+/688435
LUCI-TryBot-Result: Go LUCI &lt;golang-scoped@luci-project-accounts.iam.gserviceaccount.com&gt;
Reviewed-by: Michael Knyszek &lt;mknyszek@google.com&gt;
</content>
</entry>
<entry>
<title>os: add Root.MkdirAll</title>
<updated>2025-05-21T17:14:43Z</updated>
<author>
<name>Damien Neil</name>
<email>dneil@google.com</email>
</author>
<published>2025-05-19T20:09:06Z</published>
<link rel='alternate' type='text/html' href='http://git.kilabit.info/go/commit/?id=e59e128f90aa2453d8881a622524df90feb9d22f'/>
<id>urn:sha1:e59e128f90aa2453d8881a622524df90feb9d22f</id>
<content type='text'>
For #67002

Change-Id: Idd74b5b59e787e89bdfad82171b6a7719465f501
Reviewed-on: https://go-review.googlesource.com/c/go/+/674116
Reviewed-by: Alan Donovan &lt;adonovan@google.com&gt;
Auto-Submit: Damien Neil &lt;dneil@google.com&gt;
LUCI-TryBot-Result: Go LUCI &lt;golang-scoped@luci-project-accounts.iam.gserviceaccount.com&gt;
</content>
</entry>
<entry>
<title>os: add Root.RemoveAll</title>
<updated>2025-05-21T16:30:51Z</updated>
<author>
<name>Damien Neil</name>
<email>dneil@google.com</email>
</author>
<published>2025-03-28T23:40:34Z</published>
<link rel='alternate' type='text/html' href='http://git.kilabit.info/go/commit/?id=896097000912761dbd31cead2bec99f17534f521'/>
<id>urn:sha1:896097000912761dbd31cead2bec99f17534f521</id>
<content type='text'>
For #67002

Change-Id: If59dab4fd934a115d8ff383826525330de750b54
Reviewed-on: https://go-review.googlesource.com/c/go/+/661595
Reviewed-by: Alan Donovan &lt;adonovan@google.com&gt;
LUCI-TryBot-Result: Go LUCI &lt;golang-scoped@luci-project-accounts.iam.gserviceaccount.com&gt;
Auto-Submit: Damien Neil &lt;dneil@google.com&gt;
</content>
</entry>
<entry>
<title>os: avoid escape from Root via paths ending in ../</title>
<updated>2025-05-06T18:33:18Z</updated>
<author>
<name>Damien Neil</name>
<email>dneil@google.com</email>
</author>
<published>2025-04-16T18:01:19Z</published>
<link rel='alternate' type='text/html' href='http://git.kilabit.info/go/commit/?id=92e23b683f01fe581a0e14b5658f0c59d9ce0d38'/>
<id>urn:sha1:92e23b683f01fe581a0e14b5658f0c59d9ce0d38</id>
<content type='text'>
The doInRoot function operates on a path split into components.
The final path component retained any trailing path separator
characters, to permit operations in a Root to retain the
trailing-separator behavior of non-Root operations. However,
doInRoot failed to take trailing separators into account
when checking for .. path components.

This could permit opening the parent directory of the Root
with a path ending in "../".

Change the split path to never include path separators in
components, and handle trailing separators independently
of the split path.

Thanks to Dan Sebastian Thrane of SDU eScience Center for
reporting this issue.

Fixes #73555
Fixes CVE-2025-22873

Change-Id: I9a33a145c22f5eb1dd4e4cafae5fcc61a8d4f0d4
Reviewed-on: https://go-internal-review.googlesource.com/c/go/+/2160
Reviewed-by: Neal Patel &lt;nealpatel@google.com&gt;
Reviewed-by: Roland Shoemaker &lt;bracewell@google.com&gt;
Reviewed-on: https://go-review.googlesource.com/c/go/+/670036
LUCI-TryBot-Result: Go LUCI &lt;golang-scoped@luci-project-accounts.iam.gserviceaccount.com&gt;
Reviewed-by: Carlos Amedee &lt;carlos@golang.org&gt;
</content>
</entry>
<entry>
<title>os: avoid panic in Root when symlink references the root</title>
<updated>2025-03-28T05:25:37Z</updated>
<author>
<name>Damien Neil</name>
<email>dneil@google.com</email>
</author>
<published>2025-03-27T23:22:38Z</published>
<link rel='alternate' type='text/html' href='http://git.kilabit.info/go/commit/?id=cfc784a152ebbc4fc0b8bf13c02e0f6eb9c980bd'/>
<id>urn:sha1:cfc784a152ebbc4fc0b8bf13c02e0f6eb9c980bd</id>
<content type='text'>
We would panic when opening a symlink ending in ..,
where the symlink references the root itself.

Fixes #73081

Change-Id: I7dc3f041ca79df7942feec58c197fde6881ecae5
Reviewed-on: https://go-review.googlesource.com/c/go/+/661416
Reviewed-by: Alan Donovan &lt;adonovan@google.com&gt;
LUCI-TryBot-Result: Go LUCI &lt;golang-scoped@luci-project-accounts.iam.gserviceaccount.com&gt;
</content>
</entry>
<entry>
<title>os: add Root.Link</title>
<updated>2025-03-24T14:53:38Z</updated>
<author>
<name>Damien Neil</name>
<email>dneil@google.com</email>
</author>
<published>2025-03-20T19:41:21Z</published>
<link rel='alternate' type='text/html' href='http://git.kilabit.info/go/commit/?id=d2d1fd68b6299d4645298e6d70fe8e8cfd98001a'/>
<id>urn:sha1:d2d1fd68b6299d4645298e6d70fe8e8cfd98001a</id>
<content type='text'>
For #67002

Change-Id: I223f3f2dbc8b02726f4ce5a017c628c4a20f109a
Reviewed-on: https://go-review.googlesource.com/c/go/+/659757
Reviewed-by: Quim Muntal &lt;quimmuntal@gmail.com&gt;
LUCI-TryBot-Result: Go LUCI &lt;golang-scoped@luci-project-accounts.iam.gserviceaccount.com&gt;
Auto-Submit: Damien Neil &lt;dneil@google.com&gt;
Reviewed-by: Ian Lance Taylor &lt;iant@google.com&gt;
</content>
</entry>
<entry>
<title>os: add Root.Rename</title>
<updated>2025-03-20T22:12:24Z</updated>
<author>
<name>Damien Neil</name>
<email>dneil@google.com</email>
</author>
<published>2025-03-19T18:15:06Z</published>
<link rel='alternate' type='text/html' href='http://git.kilabit.info/go/commit/?id=2ffda87f2dce71024f72ccff32cbfe29ee676bf8'/>
<id>urn:sha1:2ffda87f2dce71024f72ccff32cbfe29ee676bf8</id>
<content type='text'>
For #67002

Change-Id: Ifb1042bc5ceaeea64296763319b24634bbcb0bf0
Reviewed-on: https://go-review.googlesource.com/c/go/+/659416
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;
Auto-Submit: Damien Neil &lt;dneil@google.com&gt;
</content>
</entry>
<entry>
<title>os: add Root.Readlink</title>
<updated>2025-03-19T19:00:51Z</updated>
<author>
<name>Damien Neil</name>
<email>dneil@google.com</email>
</author>
<published>2025-03-18T22:12:31Z</published>
<link rel='alternate' type='text/html' href='http://git.kilabit.info/go/commit/?id=cb0d767a1022ac3e1384761facd949ea00f3a761'/>
<id>urn:sha1:cb0d767a1022ac3e1384761facd949ea00f3a761</id>
<content type='text'>
For #67002

Change-Id: I532a5ffc02c7457796540db54fa2f5ddad86e4b2
Reviewed-on: https://go-review.googlesource.com/c/go/+/658995
Auto-Submit: Damien Neil &lt;dneil@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>os: add Root.Lchown</title>
<updated>2025-03-19T17:48:54Z</updated>
<author>
<name>Damien Neil</name>
<email>dneil@google.com</email>
</author>
<published>2025-02-14T00:38:08Z</published>
<link rel='alternate' type='text/html' href='http://git.kilabit.info/go/commit/?id=1eb1579fba916efd48e81d0f8c9ad548e6c77de0'/>
<id>urn:sha1:1eb1579fba916efd48e81d0f8c9ad548e6c77de0</id>
<content type='text'>
For #67002

Change-Id: I1bbf18838a1dd2281a2b6e56fc8a58ef70007adc
Reviewed-on: https://go-review.googlesource.com/c/go/+/649536
LUCI-TryBot-Result: Go LUCI &lt;golang-scoped@luci-project-accounts.iam.gserviceaccount.com&gt;
Auto-Submit: Damien Neil &lt;dneil@google.com&gt;
Reviewed-by: Ian Lance Taylor &lt;iant@google.com&gt;
</content>
</entry>
<entry>
<title>os: add Root.Chtimes</title>
<updated>2025-03-19T00:32:48Z</updated>
<author>
<name>Damien Neil</name>
<email>dneil@google.com</email>
</author>
<published>2025-02-11T18:47:20Z</published>
<link rel='alternate' type='text/html' href='http://git.kilabit.info/go/commit/?id=21483099632c11743d01ec6f38577f31de26b0d0'/>
<id>urn:sha1:21483099632c11743d01ec6f38577f31de26b0d0</id>
<content type='text'>
For #67002

Change-Id: I9b10ac30f852052c85d6d21eb1752a9de5474346
Reviewed-on: https://go-review.googlesource.com/c/go/+/649515
Auto-Submit: Damien Neil &lt;dneil@google.com&gt;
LUCI-TryBot-Result: Go LUCI &lt;golang-scoped@luci-project-accounts.iam.gserviceaccount.com&gt;
Reviewed-by: Kirill Kolyshkin &lt;kolyshkin@gmail.com&gt;
Reviewed-by: Ian Lance Taylor &lt;iant@google.com&gt;
</content>
</entry>
</feed>
