Received: from eggs.gnu.org ([2001:4830:134:3::10]:55473) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZksHW-0000RV-PO for qemu-devel@nongnu.org; Sat, 10 Oct 2015 07:25:43 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZksHT-00084E-A1 for qemu-devel@nongnu.org; Sat, 10 Oct 2015 07:25:42 -0400 Received: from indium.canonical.com ([91.189.90.7]:34995) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZksHR-00082o-Pl for qemu-devel@nongnu.org; Sat, 10 Oct 2015 07:25:39 -0400 Received: from loganberry.canonical.com ([91.189.90.37]) by indium.canonical.com with esmtp (Exim 4.76 #1 (Debian)) id 1ZksHQ-0006b3-Op for ; Sat, 10 Oct 2015 11:25:36 +0000 Received: from loganberry.canonical.com (localhost [127.0.0.1]) by loganberry.canonical.com (Postfix) with ESMTP id A32E22E8085 for ; Sat, 10 Oct 2015 11:25:36 +0000 (UTC) MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Date: Sat, 10 Oct 2015 11:16:53 -0000 From: Mark Pizzolato Sender: bounces@canonical.com References: <20151009114853.30686.38761.malonedeb@soybean.canonical.com> Message-Id: <20151010111653.26700.67451.malone@gac.canonical.com> Errors-To: bounces@canonical.com Subject: [Qemu-devel] [Bug 1504513] Re: Socket leak on each call to qemu_socket() Reply-To: Bug 1504513 <1504513@bugs.launchpad.net> List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org I'm not sure that my original report was distributed to the folks who need to see this. My primary email address has a DKIM policy (DMARC) which says that all messages from my address are signed. I received various DMARC reports which said that the bug report sent as "From: me@mydomain.com" were rejected. The bug report messages were reasonably sent with an SMTP envelope from of qemu-devel- bounces+liq3ea=3D163.com@nongnu.org and a "Sender: qemu-devel- bounces+liq3ea=3D163.com@nongnu.org". Hmm... Maybe 163.com is rewriting message headers. In any case, the message would have passed the DMARC check if my email address was in a "Reply-To: me@mydomain.com" header (there was no Reply-To: header), and the "From:" header was a @nongnu.org address. I have changed my account to use my users.sourceforge.com forwarding address and I'm now generating this comment so that hopefully, the whole message will be widely distributed with a from address which doesn't have the same DMARC policy. -- = You received this bug notification because you are a member of qemu- devel-ml, which is subscribed to QEMU. https://bugs.launchpad.net/bugs/1504513 Title: Socket leak on each call to qemu_socket() Status in QEMU: New Bug description: On any host platform where SOCK_CLOEXEC is defined (Linux at least), a socket is leaked on each call to qemu_socket() AND the socket returned hasn't been created with the desired SOCK_CLOEXEC attribute. The qemu_socket routine is: Line 272 of util/osdep.c: /* * Opens a socket with FD_CLOEXEC set */ int qemu_socket(int domain, int type, int protocol) { int ret; #ifdef SOCK_CLOEXEC ret =3D socket(domain, type | SOCK_CLOEXEC, protocol); if (ret !=3D -1 || errno !=3D EINVAL) { return ret; } #endif ret =3D socket(domain, type, protocol); if (ret >=3D 0) { qemu_set_cloexec(ret); } return ret; } To manage notifications about this bug go to: https://bugs.launchpad.net/qemu/+bug/1504513/+subscriptions