--- zzzz-none-000/linux-4.9.218/fs/squashfs/export.c 2020-04-02 15:20:41.000000000 +0000 +++ seale-7590ac-750/linux-4.9.218/fs/squashfs/export.c 2022-11-30 09:46:20.000000000 +0000 @@ -54,7 +54,7 @@ struct squashfs_sb_info *msblk = sb->s_fs_info; int blk = SQUASHFS_LOOKUP_BLOCK(ino_num - 1); int offset = SQUASHFS_LOOKUP_BLOCK_OFFSET(ino_num - 1); - u64 start = le64_to_cpu(msblk->inode_lookup_table[blk]); + u64 start = squash_le64_to_cpu(msblk->inode_lookup_table[blk]); __le64 ino; int err; @@ -65,9 +65,9 @@ return err; TRACE("squashfs_inode_lookup, inode = 0x%llx\n", - (u64) le64_to_cpu(ino)); + (u64) squash_le64_to_cpu(ino)); - return le64_to_cpu(ino); + return squash_le64_to_cpu(ino); } @@ -147,7 +147,7 @@ * table[0] points to the first inode lookup table metadata block, * this should be less than lookup_table_start */ - if (!IS_ERR(table) && le64_to_cpu(table[0]) >= lookup_table_start) { + if (!IS_ERR(table) && squash_le64_to_cpu(table[0]) >= lookup_table_start) { kfree(table); return ERR_PTR(-EINVAL); }