Skip to content
Draft
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -363,6 +363,16 @@ func (u *Userfaultfd) faultPage(
return nil
}

if errors.Is(copyErr, unix.ESRCH) {
// The faulting thread/process no longer exists — it exited or was killed
// while the page fetch was in flight. This is expected during sandbox
// teardown; treat it as benign.
span.SetAttributes(attribute.Bool("uffd.process_exited", true))
u.logger.Debug(ctx, "UFFD serve copy error: process no longer exists", zap.Error(copyErr))

return nil
}

if copyErr != nil {
var signalErr error
if onFailure != nil {
Expand Down
Loading