Home
last modified time | relevance | path

Searched hist:"90 ba983f6889e65a3b506b30dc606aa9d1d46cd2" (Results 1 – 1 of 1) sorted by relevance

/linux/fs/ext4/
H A Dresize.cdiff 90ba983f6889e65a3b506b30dc606aa9d1d46cd2 Tue Mar 12 04:39:59 CET 2013 Theodore Ts'o <tytso@mit.edu> ext4: use atomic64_t for the per-flexbg free_clusters count

A user who was using a 8TB+ file system and with a very large flexbg
size (> 65536) could cause the atomic_t used in the struct flex_groups
to overflow. This was detected by PaX security patchset:

http://forums.grsecurity.net/viewtopic.php?f=3&t=3289&p=12551#p12551

This bug was introduced in commit 9f24e4208f7e, so it's been around
since 2.6.30. :-(

Fix this by using an atomic64_t for struct orlav_stats's
free_clusters.

Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
Reviewed-by: Lukas Czerner <lczerner@redhat.com>
Cc: stable@vger.kernel.org