aboutsummaryrefslogtreecommitdiffstats
path: root/lib/linear_ranges.c
diff options
context:
space:
mode:
authorAndreas Gruenbacher <[email protected]>2020-04-20 13:51:47 +0000
committerTrond Myklebust <[email protected]>2020-04-20 13:58:59 +0000
commit7648f939cb919b9d15c21fff8cd9eba908d595dc (patch)
treea1196b12fb041ebbd52c97123087e617b33a6a70 /lib/linear_ranges.c
parentNFS/pnfs: Fix a credential use-after-free issue in pnfs_roc() (diff)
downloadkernel-7648f939cb919b9d15c21fff8cd9eba908d595dc.tar.gz
kernel-7648f939cb919b9d15c21fff8cd9eba908d595dc.zip
nfs: Fix potential posix_acl refcnt leak in nfs3_set_acl
nfs3_set_acl keeps track of the acl it allocated locally to determine if an acl needs to be released at the end. This results in a memory leak when the function allocates an acl as well as a default acl. Fix by releasing acls that differ from the acl originally passed into nfs3_set_acl. Fixes: b7fa0554cf1b ("[PATCH] NFS: Add support for NFSv3 ACLs") Reported-by: Xiyu Yang <[email protected]> Signed-off-by: Andreas Gruenbacher <[email protected]> Signed-off-by: Trond Myklebust <[email protected]>
Diffstat (limited to 'lib/linear_ranges.c')
0 files changed, 0 insertions, 0 deletions