diff options
| author | Ed Swierk | 2014-12-16 21:55:31 +0100 |
|---|---|---|
| committer | Riku Voipio | 2015-01-27 21:33:57 +0100 |
| commit | 9c6bf9c7d71d7da18a024182b69569969449d6f9 (patch) | |
| tree | 328fb981bf2a6730b5630f530b5bde0f8745eb8e /linux-user/mips64 | |
| parent | linux-user: translate resource also for prlimit64 (diff) | |
| download | qemu-9c6bf9c7d71d7da18a024182b69569969449d6f9.tar.gz qemu-9c6bf9c7d71d7da18a024182b69569969449d6f9.tar.xz qemu-9c6bf9c7d71d7da18a024182b69569969449d6f9.zip | |
linux-user: Fix ioctl cmd type mismatch on 64-bit targets
linux-user passes the cmd argument of the ioctl syscall as a signed long,
but compares it to an unsigned int when iterating through the ioctl_entries
list. When the cmd is a large value like 0x80047476 (TARGET_TIOCSWINSZ on
mips64) it gets sign-extended to 0xffffffff80047476, causing the comparison
to fail and resulting in lots of spurious "Unsupported ioctl" errors.
Changing the target_cmd field in the ioctl_entries list to a signed int
causes those values to be sign-extended as well during the comparison.
Signed-off-by: Ed Swierk <eswierk@skyportsystems.com>
Signed-off-by: Riku Voipio <riku.voipio@linaro.org>
Diffstat (limited to 'linux-user/mips64')
0 files changed, 0 insertions, 0 deletions
