Whamcloud - gitweb
libsupport: don't try accessing the project quota for 128 byte inodes
authorTheodore Ts'o <tytso@mit.edu>
Tue, 22 Aug 2017 04:54:15 +0000 (00:54 -0400)
committerTheodore Ts'o <tytso@mit.edu>
Tue, 22 Aug 2017 14:35:52 +0000 (10:35 -0400)
commit9e54816b22afcfb5ac597506e8210b42eeac5553
tree0b0ad853b6cace1009a5f754c9ad2bb1c6fa99ac
parent6ac208c2c462dd57d0751b6e58a62d74afc9898c
libsupport: don't try accessing the project quota for 128 byte inodes

If the file system has 128 byte inode, it's not possible to access its
project quota id, since the inode is too small.  So prevent a
potential out-of-bounds read in get_qid().

The problem was found by valgrind and American Fuzzy Lop.

Address-Debian-Bug: #871540

Signed-off-by: Theodore Ts'o <tytso@mit.edu>
lib/support/mkquota.c