Skip to content

exfat: set s_maxbytes

David Timber linux-fsdevel 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v0 Latest1 patch 1 replyIn review

Patches in v0 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/1exfat: fix s_maxbytesfs/exfat/exfat_raw.h fs/exfat/file.c fs/exfat/super.c+10 -31 reply

Reviews trailers per patch

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

Read the v0 thread

Cover letter [PATCH v0 0/1] exfat: set s_maxbytes

Possible security impact when a file in an exFAT volume larger than 16TB(MAX_LFS_FILESIZE) is mmap()'d on 32-bit machines due to potential undefined behaviour in filemap. Though the attack surface is quite limited as mmap() is rarely used with exFAT. The comment on the macro definition is pretty much self-explanatory.

The use of unsigned int became apparently evil ever since Linux switched its own loff_t. Integer overflows could go undetected.

David Timber (1):
exfat: fix s_maxbytes

 fs/exfat/exfat_raw.h |  1 +
 fs/exfat/file.c      |  1 +
 fs/exfat/super.c     | 11 ++++++++---
 3 files changed, 10 insertions(+), 3 deletions(-)
Signature · 1 line
2.53.0.1.ga224b40d3f.dirty