summaryrefslogtreecommitdiff
path: root/net
diff options
context:
space:
mode:
authorFedor Pchelkin <pchelkin@ispras.ru>2023-07-25 14:59:30 +0300
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2023-08-30 17:10:57 +0300
commitd9aac9cdd6e2b4cf21dc91ad0803a7df2b177bac (patch)
tree102cdbe958766c5cae2605c9607fda5001093fae /net
parent4a289d123f62f7fdf33e7ce02c4c4c0d3b708a2b (diff)
downloadlinux-d9aac9cdd6e2b4cf21dc91ad0803a7df2b177bac.tar.xz
NFSv4: fix out path in __nfs4_get_acl_uncached
[ Upstream commit f4e89f1a6dab4c063fc1e823cc9dddc408ff40cf ] Another highly rare error case when a page allocating loop (inside __nfs4_get_acl_uncached, this time) is not properly unwound on error. Since pages array is allocated being uninitialized, need to free only lower array indices. NULL checks were useful before commit 62a1573fcf84 ("NFSv4 fix acl retrieval over krb5i/krb5p mounts") when the array had been initialized to zero on stack. Found by Linux Verification Center (linuxtesting.org). Fixes: 62a1573fcf84 ("NFSv4 fix acl retrieval over krb5i/krb5p mounts") Signed-off-by: Fedor Pchelkin <pchelkin@ispras.ru> Reviewed-by: Benjamin Coddington <bcodding@redhat.com> Signed-off-by: Trond Myklebust <trond.myklebust@hammerspace.com> Signed-off-by: Sasha Levin <sashal@kernel.org>
Diffstat (limited to 'net')
0 files changed, 0 insertions, 0 deletions