[0/2] nilfs2: fix UBSAN shift-out-of-bounds warnings on mount time

Message ID 20221027044306.42774-1-konishi.ryusuke@gmail.com
Headers
Series nilfs2: fix UBSAN shift-out-of-bounds warnings on mount time |

Message

Ryusuke Konishi Oct. 27, 2022, 4:43 a.m. UTC
  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(-)