summaryrefslogtreecommitdiffhomepage
path: root/pkg/sentry
diff options
context:
space:
mode:
Diffstat (limited to 'pkg/sentry')
-rw-r--r--pkg/sentry/kernel/fasync/fasync.go5
1 files changed, 5 insertions, 0 deletions
diff --git a/pkg/sentry/kernel/fasync/fasync.go b/pkg/sentry/kernel/fasync/fasync.go
index 7d01abe90..f77339cae 100644
--- a/pkg/sentry/kernel/fasync/fasync.go
+++ b/pkg/sentry/kernel/fasync/fasync.go
@@ -60,6 +60,11 @@ func (a *FileAsync) Callback(e *waiter.Entry) {
if tg != nil {
t = tg.Leader()
}
+ if t == nil {
+ // No recipient has been registered.
+ a.mu.Unlock()
+ return
+ }
c := t.Credentials()
// Logic from sigio_perm in fs/fcntl.c.
if a.requester.EffectiveKUID == 0 ||