summaryrefslogtreecommitdiffstats
path: root/lib/halfmd4.c
diff options
context:
space:
mode:
authorEric Biggers <ebiggers@google.com>2017-02-01 21:07:11 -0500
committerTheodore Ts'o <tytso@mit.edu>2017-02-01 21:07:11 -0500
commitdd01b690f8f4b1e414f89e5a9a5326bf720d6652 (patch)
tree9a6e1087c7d858d0a747956bfca32292413a11fd /lib/halfmd4.c
parentdbfcef6b0f4012c57bc0b6e0e660d5ed12a5eaed (diff)
downloadlinux-dd01b690f8f4b1e414f89e5a9a5326bf720d6652.tar.gz
linux-dd01b690f8f4b1e414f89e5a9a5326bf720d6652.tar.bz2
linux-dd01b690f8f4b1e414f89e5a9a5326bf720d6652.zip
ext4: fix use-after-iput when fscrypt contexts are inconsistent
In the case where the child's encryption context was inconsistent with its parent directory, we were using inode->i_sb and inode->i_ino after the inode had already been iput(). Fix this by doing the iput() in the correct places. Note: only ext4 had this bug, not f2fs and ubifs. Fixes: d9cdc9033181 ("ext4 crypto: enforce context consistency") Cc: stable@vger.kernel.org Signed-off-by: Eric Biggers <ebiggers@google.com> Signed-off-by: Theodore Ts'o <tytso@mit.edu>
Diffstat (limited to 'lib/halfmd4.c')
0 files changed, 0 insertions, 0 deletions