From 6eebaea94936ffefd3603ff16ad2225856313fa3 Mon Sep 17 00:00:00 2001 From: Dean Deng Date: Mon, 23 Mar 2020 14:32:05 -0700 Subject: Correctly release taskPathOperation for accessAt. PiperOrigin-RevId: 302518924 --- pkg/sentry/syscalls/linux/vfs2/stat.go | 1 + 1 file changed, 1 insertion(+) (limited to 'pkg/sentry') diff --git a/pkg/sentry/syscalls/linux/vfs2/stat.go b/pkg/sentry/syscalls/linux/vfs2/stat.go index 97eaedd66..068243132 100644 --- a/pkg/sentry/syscalls/linux/vfs2/stat.go +++ b/pkg/sentry/syscalls/linux/vfs2/stat.go @@ -272,6 +272,7 @@ func accessAt(t *kernel.Task, dirfd int32, pathAddr usermem.Addr, mode uint) err if err != nil { return err } + defer tpop.Release() // access(2) and faccessat(2) check permissions using real // UID/GID, not effective UID/GID. -- cgit v1.2.3