[LTP] inode01: Use uint64_t to prevent inode truncation on 32-bit
linuxtestproject.agent@gmail.com
linuxtestproject.agent@gmail.com
Fri Aug 7 13:04:12 CEST 2026
Hi Wake,
On Fri, 07 Aug 2026, Wake Liu wrote:
> inode01: Use uint64_t to prevent inode truncation on 32-bit
> struct inode_info {
> - ino_t ino;
> + uint64_t ino;
> char path[PATH_MAX];
> };
>
> static void record_inode(struct inode_info *inodes, unsigned int idx,
> const char *path, ino_t ino)
Could the record_inode() parameter also be changed to uint64_t? Every inode
collected by verify_tree() passes through this parameter, so on the 32-bit
ABI described in the commit message the value is still truncated before it
is assigned to the new uint64_t field.
Verdict - Needs revision
---
Note:
The agent can sometimes produce false positives although often its
findings are genuine. If you find issues with the review, please
comment this email or ignore the suggestions.
Regards,
LTP AI Reviewer
More information about the ltp
mailing list