[PATCH 4.14 14/32] nilfs2: fix possible out-of-bounds segment allocation in resize ioctl