Re: [PATCH v2 0/4] f2fs: require write permission for ioctls that change per-file state
From: Hungyu Lin
Date: Fri Dec 04 2026 - 04:26:12 EST
On Thu, Nov 12, 2026 at 1:42 PM Hungyu Lin <dennylin0707@xxxxxxxxx> wrote:
> F2FS_IOC_SET_PIN_FILE, F2FS_IOC_RELEASE_COMPRESS_BLOCKS,
> F2FS_IOC_RESERVE_COMPRESS_BLOCKS and F2FS_IOC_IO_PRIO change the state
> of the inode behind the file descriptor without checking who the
> caller is, so any user who can open a file read-only can change that
> state. Each patch requires write permission on the inode in one of
> these ioctls.
Chao, gentle ping. v2 uses the inode_permission(..., MAY_WRITE) check
you suggested on v1 and splits the fix into one patch per ioctl. Could
you take a look?
Thanks,
Hungyu