[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <20200113193454.GC76141@mit.edu>
Date: Mon, 13 Jan 2020 14:34:54 -0500
From: "Theodore Y. Ts'o" <tytso@....edu>
To: Eric Biggers <ebiggers@...nel.org>
Cc: linux-ext4@...r.kernel.org, linux-fscrypt@...r.kernel.org
Subject: Re: [PATCH] ext4: only use fscrypt_zeroout_range() on regular files
On Thu, Dec 26, 2019 at 10:10:22AM -0600, Eric Biggers wrote:
> From: Eric Biggers <ebiggers@...gle.com>
>
> fscrypt_zeroout_range() is only for encrypted regular files, not for
> encrypted directories or symlinks.
>
> Fortunately, currently it seems it's never called on non-regular files.
> But to be safe ext4 should explicitly check S_ISREG() before calling it.
>
> Signed-off-by: Eric Biggers <ebiggers@...gle.com>
Thanks, applied.
- Ted
Powered by blists - more mailing lists