diff options
| author | Darrick J. Wong <[email protected]> | 2022-11-10 20:16:34 +0000 |
|---|---|---|
| committer | Theodore Ts'o <[email protected]> | 2022-12-09 02:49:24 +0000 |
| commit | a7e9d977e031fceefe1e7cd69ebd7202d5758b56 (patch) | |
| tree | 0bb1c6961ea66042b751bc4b4b765edf6779825e /fs/jbd2/commit.c | |
| parent | ext4: dont return EINVAL from GETFSUUID when reporting UUID length (diff) | |
| download | kernel-a7e9d977e031fceefe1e7cd69ebd7202d5758b56.tar.gz kernel-a7e9d977e031fceefe1e7cd69ebd7202d5758b56.zip | |
ext4: don't fail GETFSUUID when the caller provides a long buffer
If userspace provides a longer UUID buffer than is required, we
shouldn't fail the call with EINVAL -- rather, we can fill the caller's
buffer with the bytes we /can/ fill, and update the length field to
reflect what we copied. This doesn't break the UAPI since we're
enabling a case that currently fails, and so far Ted hasn't released a
version of e2fsprogs that uses the new ext4 ioctl.
Signed-off-by: Darrick J. Wong <[email protected]>
Reviewed-by: Catherine Hoang <[email protected]>
Link: https://lore.kernel.org/r/166811139478.327006.13879198441587445544.stgit@magnolia
Signed-off-by: Theodore Ts'o <[email protected]>
Cc: [email protected]
Diffstat (limited to 'fs/jbd2/commit.c')
0 files changed, 0 insertions, 0 deletions
