[PATCH 0/2] nilfs2: fix UBSAN shift-out-of-bounds warnings on mount time
From: Ryusuke Konishi
Date: Thu Oct 27 2022 - 00:43:20 EST
Hi Andrew,
please apply the following bug fixes to -mm tree:
Ryusuke Konishi (2):
nilfs2: fix shift-out-of-bounds/overflow in nilfs_sb2_bad_offset()
nilfs2: fix shift-out-of-bounds due to too large exponent of block
size
The first patch fixes a reported bug by syzbot, and the second one
fixes the remaining bug of the same kind. Although they are triggered
by the same super block data anomaly, I divided it into the above two
because the details of the issues and how to fix it are different.
Both are required to eliminate the shift-out-of-bounds issues on mount time.
Thanks,
Ryusuke Konishi
fs/nilfs2/the_nilfs.c | 73 ++++++++++++++++++++++++++++++++++++++-----
1 file changed, 65 insertions(+), 8 deletions(-)
--
2.34.1