Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp1357236pxj; Fri, 4 Jun 2021 12:14:51 -0700 (PDT) X-Google-Smtp-Source: ABdhPJym2QwqxTeHfmxJNkydd/NMH53IhY0Rws8thkUT37g+Q8OHt7xJdDKVpGQCR/zPUcE/x569 X-Received: by 2002:a05:6402:b76:: with SMTP id cb22mr6431859edb.112.1622834091170; Fri, 04 Jun 2021 12:14:51 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1622834091; cv=none; d=google.com; s=arc-20160816; b=aGc/zU7IREbhI9o3T/GnXXn35XZdaN87fe7sJFP9hz5GvLWLgQGnBcYTn3eSwcQNJX FmjHE5+3buppBlgKmChw0LNx7VYEl82mRCs8efZIJi3DuKoYdw7BpUKAZd85XaI4uorH cwvq3sh7lbyXU0iAzZzF54wICGia3D+mQJrUNLRfi5je+FBSbkfNEUMuc5TdshufoER2 ZiJtDyaJsH5ZVj5Ka7721LpEb40e4i9tbtsMI88YyG2j9k3vfyCiIGBs3kcMxp+YNNfI 4x0lxY2M/vBFcIHhIpFNuIKg/f1TyIKYLbzORWYeCM/USx49AxEzCay50vPAroqYl5IJ ut+w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-language:content-transfer-encoding :mime-version:user-agent:date:message-id:organization:subject:from :to:reply-to:dkim-signature; bh=XOkaV3Qaw4EYN+kfoiLYvyq3LsuSf+AMK0UsYBAjq3E=; b=eWODthL7eITKWTpcSQX82jhRYiWehmE+Fcp9arbblZK1NhabJ2nLoRCjPMdnMzTczm TYhu/Z/QWCJyQC2YmLeFHFWX8mVEy0V+Gnql/+WA9EBQkrUu8RCoaJ7V9Ucs8bvAl/qR IxjEJO4H6qN85tWxfRWNiPtrEufZyoo2qEyjH0+fpl8mUHz6ho9Ohb8fEwZ1uiub8S7j SrI9AHqV/lo+j7iPt+e2LEkRz9GOCE57EGFZOAhXOkdu1pElaq3jQTp+ea4ivtRkdHI3 VMegsNBGm9YuLAL3mzsa3zkei0lhGTtHvwtN9kOP38z/V0qa4mVAayYEyMeHVv9KLbX7 qLIw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@systech.com header.s=key header.b=XwvbSaCP; spf=pass (google.com: domain of linux-bluetooth-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-bluetooth-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id v28si5526116ejk.538.2021.06.04.12.14.13; Fri, 04 Jun 2021 12:14:51 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-bluetooth-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@systech.com header.s=key header.b=XwvbSaCP; spf=pass (google.com: domain of linux-bluetooth-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-bluetooth-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229810AbhFDTO2 (ORCPT + 99 others); Fri, 4 Jun 2021 15:14:28 -0400 Received: from rcloudmail.hostconnection.net ([38.96.19.98]:6319 "EHLO rcloudmail.hostconnection.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229501AbhFDTO1 (ORCPT ); Fri, 4 Jun 2021 15:14:27 -0400 X-Greylist: delayed 301 seconds by postgrey-1.27 at vger.kernel.org; Fri, 04 Jun 2021 15:14:27 EDT X-SmarterMail-Authenticated-As: jay.foster@systech.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=systech.com; s=key; h=Content-Language:Content-Transfer-Encoding:Content-Type :MIME-Version:User-Agent:Date:Message-ID:Organization:Subject :From:To:Reply-To:Received; bh=XOkaV3Qaw4EYN+kfoiLYvyq3LsuSf+AMK0UsYBAjq3E=; b=XwvbSaCPFYKvWu1UC7NCsjH/kL0bb0DEv8g1OWCur8RE0A5ktFM/u1zYJDzsVoeQn ACHDCVESlcs2R4YOf2gaK8HX+ucd0iTrMPsT4ZHiC4cOaDMhQzHFkjLrENjUmbO8a swFzBKxTxe1KzD3FoabyZSWC7/e38xsI4wy4BlHUI= Received: from [172.16.4.182] (wsip-70-167-11-34.sd.sd.cox.net [70.167.11.34]) by rcloudmail.hostconnection.net with SMTP (version=Tls12 cipher=Aes256 bits=256); Fri, 4 Jun 2021 12:07:02 -0700 Reply-To: jay@systech.com To: linux-bluetooth@vger.kernel.org From: Jay Foster Subject: Bluez Socket File Descriptor Leak Organization: Systech Corporation Message-ID: <749228e2-4d49-83ef-06f0-2db0532beb93@systech.com> Date: Fri, 4 Jun 2021 12:06:48 -0700 User-Agent: Mozilla/5.0 (Windows NT 6.3; Win64; x64; rv:78.0) Gecko/20100101 Thunderbird/78.11.0 MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit Content-Language: en-US X-Exim-Id: 749228e2-4d49-83ef-06f0-2db0532beb93 Precedence: bulk List-ID: X-Mailing-List: linux-bluetooth@vger.kernel.org I am experiencing an odd problem with PAN networking.  I have PAN networking setup in NAP role.  Another machine makes a BNEP connection and performs network activity, then disconnects the BNEP connection.  This repeats periodically.  This works just fine, except after a while, the BNEP connection fails with the following in the log. May  4 13:08:02 (none) daemon.debug bluetoothd[1373]: profiles/network/server.c:confirm_event() BNEP: incoming connect from B8:27:EB:E5:35:9B May  4 13:08:03 (none) daemon.err bluetoothd[1373]: Can't add bnep0 to the bridge br1: Too many open files(24) ls /proc/`pidof bluetoothd`/fd shows about 1000 open file descriptors (sockets mostly).  This looks like some kind of resource (file descriptor) leak. Has anyone experienced this before?  I don't know if it is in the bluetoothd application or one if the libraries (glib2, dbus) it links with.  Happens with bluez 5.19 and 5.52. Jay