Re: [PATCH] f2fs: require CAP_SYS_ADMIN for fallocate on pinned files

From: Hungyu Lin

Date: Fri Nov 20 2026 - 04:42:36 EST


On Wed, Nov 11, 2026 at 1:42 AM Chao Yu <chao@xxxxxxxxxx> wrote:
> Or maybe we can call f2fs_secure_erase() on the blkaddr range after
> preallocation and before return from fallocate().

Thanks. If the erase runs after preallocation, could a concurrent read
see the old data before the erase finishes, since reads don't take the
inode lock? Or should the blocks be zeroed before they are allocated?
I can send a v2 either way.

Thanks,
Hungyu