Received: from eggs.gnu.org ([2001:4830:134:3::10]:55537) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bDwD9-0005C5-9I for qemu-devel@nongnu.org; Fri, 17 Jun 2016 12:01:38 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bDwD4-000300-98 for qemu-devel@nongnu.org; Fri, 17 Jun 2016 12:01:35 -0400 Received: from indium.canonical.com ([91.189.90.7]:41020) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bDwD4-0002zk-3C for qemu-devel@nongnu.org; Fri, 17 Jun 2016 12:01:30 -0400 Received: from loganberry.canonical.com ([91.189.90.37]) by indium.canonical.com with esmtp (Exim 4.76 #1 (Debian)) id 1bDwD3-00071u-1R for ; Fri, 17 Jun 2016 16:01:29 +0000 Received: from loganberry.canonical.com (localhost [127.0.0.1]) by loganberry.canonical.com (Postfix) with ESMTP id 09A3A2E80CC for ; Fri, 17 Jun 2016 16:01:29 +0000 (UTC) MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Date: Fri, 17 Jun 2016 15:52:57 -0000 From: Peter Maydell Reply-To: Bug 1075339 <1075339@bugs.launchpad.net> Sender: bounces@canonical.com References: <20121105220950.30141.69845.malonedeb@gac.canonical.com> Message-Id: <20160617155257.24975.20560.malone@gac.canonical.com> Errors-To: bounces@canonical.com Subject: [Qemu-devel] [Bug 1075339] Re: linux-user emulation of setsockopt ignores optlen List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org We fixed our setsockopt emulation to correctly convert timeval parameters for SO_RCVTIMEO and SO_SNDTIMEO back in 2013. ** Changed in: qemu Status: New =3D> Fix Released -- = You received this bug notification because you are a member of qemu- devel-ml, which is subscribed to QEMU. https://bugs.launchpad.net/bugs/1075339 Title: linux-user emulation of setsockopt ignores optlen Status in QEMU: Fix Released Bug description: setsockopt always treats the argument as a 4-byte int. This breaks timeout options (for which it's an 8- or 16-byte timeval structure, depending on word size) and possibly other socket options. int is probably a safe default, but options whose values are other types need special-case conversion code. To manage notifications about this bug go to: https://bugs.launchpad.net/qemu/+bug/1075339/+subscriptions