[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-devel] [PULL 08/11] linux-user: fixed getsockopt() optlen
From: |
Michael Tokarev |
Subject: |
[Qemu-devel] [PULL 08/11] linux-user: fixed getsockopt() optlen |
Date: |
Thu, 16 Jan 2014 21:35:16 +0400 |
From: Pavel Zbitskiy <address@hidden>
optlen parameter of getsockopt() of type socklen_t* was read into
variable of type socklen_t, that caused zeroing out of upper 4 bytes
when running s390x on top of x86_64. This patch changes optlen type
to abi_ulong.
Signed-off-by: Pavel Zbitskiy <address@hidden>
Signed-off-by: Michael Tokarev <address@hidden>
---
linux-user/syscall.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/linux-user/syscall.c b/linux-user/syscall.c
index 0ac05b8..a9ce6ba 100644
--- a/linux-user/syscall.c
+++ b/linux-user/syscall.c
@@ -2406,7 +2406,7 @@ static abi_long do_socketcall(int num, abi_ulong vptr)
abi_ulong level;
abi_ulong optname;
abi_ulong optval;
- socklen_t optlen;
+ abi_ulong optlen;
if (get_user_ual(sockfd, vptr)
|| get_user_ual(level, vptr + n)
--
1.7.10.4
- [Qemu-devel] [PULL 00/11] Trivial patches for 2014-01-16, Michael Tokarev, 2014/01/16
- [Qemu-devel] [PULL 02/11] Fix typo of tiemr in timer.h, Michael Tokarev, 2014/01/16
- [Qemu-devel] [PULL 07/11] linux-user: fixed s390x clone() argument order, Michael Tokarev, 2014/01/16
- [Qemu-devel] [PULL 03/11] Add bios-256k.bin to BLOBS on Makefile, Michael Tokarev, 2014/01/16
- [Qemu-devel] [PULL 10/11] pc-bios: Remove execute flag from BIOS files, Michael Tokarev, 2014/01/16
- [Qemu-devel] [PULL 04/11] exec: Exclude non portable function for MinGW, Michael Tokarev, 2014/01/16
- [Qemu-devel] [PULL 08/11] linux-user: fixed getsockopt() optlen,
Michael Tokarev <=
- [Qemu-devel] [PULL 11/11] vl: Add a blank space between the variable and '=', Michael Tokarev, 2014/01/16
- [Qemu-devel] [PULL 09/11] linux-user: fixed recvfrom() addrlen, Michael Tokarev, 2014/01/16
- [Qemu-devel] [PULL 01/11] docs: Fix typo in QMP WAKEUP example, Michael Tokarev, 2014/01/16
- [Qemu-devel] [PULL 05/11] virtio-balloon: don't hardcode config size value, Michael Tokarev, 2014/01/16
- [Qemu-devel] [PULL 06/11] ide: cmd_exec_dev_diagnostic() always set error register to 0x01, Michael Tokarev, 2014/01/16
- Re: [Qemu-devel] [Qemu-trivial] [PULL 00/11] Trivial patches for 2014-01-16, Michael Tokarev, 2014/01/25
- Re: [Qemu-devel] [PULL 00/11] Trivial patches for 2014-01-16, Peter Maydell, 2014/01/30