Hi folks, Here are some patches after I read recovery code days ago. Due to code coupling from this version, I send them as a patchset. I already ran fstests and no strange out and changelog is in each individual patch. Thanks, Gao Xiang Gao Xiang (2): xfs: avoid LR buffer overrun due to crafted h_{len,size} xfs: clean up calculation of LR header blocks fs/xfs/xfs_log.c | 4 +- fs/xfs/xfs_log_recover.c | 103 +++++++++++++++++++-------------------- 2 files changed, 51 insertions(+), 56 deletions(-) -- 2.18.1