--- zzzz-none-000/linux-4.9.276/fs/squashfs/namei.c 2021-07-20 14:21:16.000000000 +0000 +++ falcon-5530-750/linux-4.9.276/fs/squashfs/namei.c 2023-04-05 08:19:02.000000000 +0000 @@ -103,7 +103,7 @@ break; - size = le32_to_cpu(index->size) + 1; + size = squash_le32_to_cpu(index->size) + 1; if (size > SQUASHFS_NAME_LEN) break; @@ -117,8 +117,8 @@ if (strcmp(index->name, str) > 0) break; - length = le32_to_cpu(index->index); - *next_block = le32_to_cpu(index->start_block) + + length = squash_le32_to_cpu(index->index); + *next_block = squash_le32_to_cpu(index->start_block) + msblk->directory_table; } @@ -179,7 +179,7 @@ length += sizeof(dirh); - dir_count = le32_to_cpu(dirh.count) + 1; + dir_count = squash_le32_to_cpu(dirh.count) + 1; if (dir_count > SQUASHFS_DIR_COUNT) goto data_error; @@ -193,7 +193,7 @@ if (err < 0) goto read_failure; - size = le16_to_cpu(dire->size) + 1; + size = squash_le16_to_cpu(dire->size) + 1; /* size should never be larger than SQUASHFS_NAME_LEN */ if (size > SQUASHFS_NAME_LEN) @@ -212,10 +212,10 @@ if (len == size && !strncmp(name, dire->name, len)) { unsigned int blk, off, ino_num; long long ino; - blk = le32_to_cpu(dirh.start_block); - off = le16_to_cpu(dire->offset); - ino_num = le32_to_cpu(dirh.inode_number) + - (short) le16_to_cpu(dire->inode_number); + blk = squash_le32_to_cpu(dirh.start_block); + off = squash_le16_to_cpu(dire->offset); + ino_num = squash_le32_to_cpu(dirh.inode_number) + + (short) squash_le16_to_cpu(dire->inode_number); ino = SQUASHFS_MKINODE(blk, off); TRACE("calling squashfs_iget for directory "