Received: from eggs.gnu.org ([208.118.235.92]:34383) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TVUxB-0000Jy-DP for qemu-devel@nongnu.org; Mon, 05 Nov 2012 17:15:34 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1TVUx9-00083Z-Nq for qemu-devel@nongnu.org; Mon, 05 Nov 2012 17:15:33 -0500 Received: from indium.canonical.com ([91.189.90.7]:40841) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TVUx9-00083I-IY for qemu-devel@nongnu.org; Mon, 05 Nov 2012 17:15:31 -0500 Received: from loganberry.canonical.com ([91.189.90.37]) by indium.canonical.com with esmtp (Exim 4.71 #1 (Debian)) id 1TVUx8-0007zv-M7 for ; Mon, 05 Nov 2012 22:15:30 +0000 Received: from loganberry.canonical.com (localhost [127.0.0.1]) by loganberry.canonical.com (Postfix) with ESMTP id 86EBC2E807C for ; Mon, 5 Nov 2012 22:15:30 +0000 (UTC) MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Date: Mon, 05 Nov 2012 22:09:50 -0000 From: Bugdal <1075339@bugs.launchpad.net> Sender: bounces@canonical.com References: <20121105220950.30141.69845.malonedeb@gac.canonical.com> Message-Id: <20121105220950.30141.69845.malonedeb@gac.canonical.com> Errors-To: bounces@canonical.com Subject: [Qemu-devel] [Bug 1075339] [NEW] linux-user emulation of setsockopt ignores optlen Reply-To: Bug 1075339 <1075339@bugs.launchpad.net> List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Public bug reported: 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. ** Affects: qemu Importance: Undecided Status: New -- = 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: New 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