Commit 9918e5a29e for golang

commit 9918e5a29e5bdd6452bf2c97a526b7870d27f11a
Author: Tobias Klauser <tklauser@distanz.ch>
Date:   Wed Dec 2 11:10:39 2026 +0100

    os: ignore EINTR in (*Root).Lstat and (*Root).Stat

    The fstatat syscall called through lstatatWithName may return EINTR.
    Ignore and retry like in other places calling fstatat already do.

    Change-Id: I5624ecf31ec007790eb453bdf00cf86255114cf6
    Reviewed-on: https://go-review.googlesource.com/c/go/+/869181
    LUCI-TryBot-Result: golang-scoped@luci-project-accounts.iam.gserviceaccount.com <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
    Auto-Submit: Damien Neil <dneil@google.com>
    Auto-Submit: Tobias Klauser <tobias.klauser@gmail.com>
    Reviewed-by: Damien Neil <dneil@google.com>
    Reviewed-by: David Chase <drchase@google.com>

diff --git a/src/os/root_unix.go b/src/os/root_unix.go
index 52b4730450..17f073136c 100644
--- a/src/os/root_unix.go
+++ b/src/os/root_unix.go
@@ -265,7 +265,10 @@ func lstatat(parent int, name string) (FileInfo, error) {

 func lstatatWithName(parent int, origName, name string) (FileInfo, error) {
 	var fs fileStat
-	if err := unix.Fstatat(parent, name, &fs.sys, unix.AT_SYMLINK_NOFOLLOW); err != nil {
+	err := ignoringEINTR(func() error {
+		return unix.Fstatat(parent, name, &fs.sys, unix.AT_SYMLINK_NOFOLLOW)
+	})
+	if err != nil {
 		return nil, err
 	}
 	fillFileStatFromSys(&fs, origName)