Re: ioctl10: fix the sscanf() call to handle 64-bit inode on 32-bit arch

[email protected]
Newsgroups gmane.linux.ltp
Message-ID <[email protected]>
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

-- 
Mailing list info: https://lists.linux.it/listinfo/ltp
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.