Skip to content

RFC vfs: artefact(?) in rw_verify_area

Edward Shishkin linux-fsdevel lkml 1 version New

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 RFC Latest0 of 2 patches 0 repliesNew

Patches in v1 No applies recorded yet

None of the 2 patches the cover letter announces are in this archive.

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [patch 0/2][RFC] vfs: artefact(?) in rw_verify_area

Hello everyone.

rw_verify_area() contains a limitation, which means inability to write more then INT_MAX bytes atomically. This tends to be a disadvantage since INT_MAX doesn't look like a huge value nowadays. Moreover, this restriction looks too artificial.

I have increased the limit up to rounded down SSIZE_MAX (patch 2) and got an overflow in the direct-io subsystem. However, after fixing the overflow (patch 1), ext3,4 work fine for me so far.

Any ideas, if there are other subsystems that expose the INT_MAX limitation?

Thanks in advance,

Signature · 3 lines
Edward O. Shishkin
Principal Software Engineer
Red Hat Czech