aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/tools/perf/scripts/python/export-to-postgresql.py
diff options
context:
space:
mode:
authorLuis Henriques <lhenriques@suse.com>2019-07-23 16:50:20 +0100
committerIlya Dryomov <idryomov@gmail.com>2019-09-16 12:06:23 +0200
commit750670341a24cb714e624e0fd7da30900ad93752 (patch)
tree0fa8e1ebe0b2d0a0a490939a1739b969d9f9f62b /tools/perf/scripts/python/export-to-postgresql.py
parentLinux 5.3 (diff)
downloadwireguard-linux-750670341a24cb714e624e0fd7da30900ad93752.tar.xz
wireguard-linux-750670341a24cb714e624e0fd7da30900ad93752.zip
ceph: fix directories inode i_blkbits initialization
When filling an inode with info from the MDS, i_blkbits is being initialized using fl_stripe_unit, which contains the stripe unit in bytes. Unfortunately, this doesn't make sense for directories as they have fl_stripe_unit set to '0'. This means that i_blkbits will be set to 0xff, causing an UBSAN undefined behaviour in i_blocksize(): UBSAN: Undefined behaviour in ./include/linux/fs.h:731:12 shift exponent 255 is too large for 32-bit type 'int' Fix this by initializing i_blkbits to CEPH_BLOCK_SHIFT if fl_stripe_unit is zero. Signed-off-by: Luis Henriques <lhenriques@suse.com> Reviewed-by: Jeff Layton <jlayton@kernel.org> Signed-off-by: Ilya Dryomov <idryomov@gmail.com>
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions