[LTP] ioctl10: fix the sscanf() call to handle 64-bit inode on 32-bit arch
linuxtestproject.agent@gmail.com
linuxtestproject.agent@gmail.com
Fri Jun 26 21:49:49 CEST 2026
Hi Jeff,
On Fri, 26 Jun 2026, Jeff Layton wrote:
> ioctl10: fix the sscanf() call to handle 64-bit inode on 32-bit arch
Verdict - Reviewed
Pre-existing issue (not introduced by this patch):
> SAFE_CLOSE(fd);
SAFE_CLOSE(fd) inside verify_ioctl() closes the fd opened in setup()
and sets it to -1. When run with -i N (multiple iterations),
subsequent iterations pass fd=-1 to ioctl(), causing EBADF. The fd
should only be closed in cleanup().
---
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