mirror of
https://github.com/netbirdio/gvisor.git
synced 2026-05-22 17:12:49 -07:00
Fix panic if FIOASYNC callback is registered and triggered without target
PiperOrigin-RevId: 215674589 Change-Id: I4f8871b64c570dc6da448d2fe351cec8a406efeb
This commit is contained in:
@@ -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 ||
|
||||
|
||||
Reference in New Issue
Block a user