Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp4111088yba; Sun, 19 May 2019 10:57:35 -0700 (PDT) X-Google-Smtp-Source: APXvYqxLTdyHeH1Es/vpqVsICzIOUJ6dA4VhruaVyFTHZDcK8oJkfSyxnwHUY9wv75chJD2bD0tT X-Received: by 2002:a63:6dca:: with SMTP id i193mr68819731pgc.353.1558288655803; Sun, 19 May 2019 10:57:35 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1558288655; cv=none; d=google.com; s=arc-20160816; b=uyp24Q/yRGnsNKAEh1ll6VtoNKvWluwRBY1XfkvIBD5NXR4GEUwsNmgDGQ10pKm8pU dn9+L9JXGnInewGCoLWUy06uAGIIqdnzNQTsAe2+hZagPqZ9P+tTFk+C9XNTcVa5nkaB RjEeXeRfo/H6Nw0KCC5QMsXlxnjd4N07rHxYLBQhhwZ/kbacz2io5xvv6tC0VgtoIY2s w+SwkgrHEkYUfzYpWKQuNRrZv6TPxUHjKtBRtbI6tK5h2Gc0TyQ6yqQ6CobELZfrHCAA I2jjSTLdZ/ZFU9ZejsaYIRgDe3BkzP2k+lEKpGN0Gn0IuGHsCQsPzQdbfHQNODfxhGvX 3Qjg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=4XabjI+dgAkCkGsMLUH06s8zHqHaWwkyxs+sQtXHOfQ=; b=idXRbffNLVIg42aq85QUV9vxtpzGHwaoov3feMrUbmpXz3sefvwcQuxdvu+eTWkugA i8XHJ2d7yAUmQlVqTLOPxmd3wPC5++hmDjD4g8jkFVXQZVmRoafOfMocpQ2Sd7yxH0CD 3EGNLZu6mqIsp8y4sG6l+T9+qlNOWiBh123ahorcjUjYaZNc0YGTP2Wn/ypvC1d/4UEx ld0E0BpHwmZng01B0lLCfbZfsrLyAqE1/XxbA8OcjmmfBVXHnp9XIOjeUD+kZ+Qt1ENN DtGlKOrDRtZ5Fho2uu1vGlKqfohqfzCnxtuc/mhqc+CzInA2IM9+f8WDJhYGrmPCNsZx 1FsA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b="YW2/d+WS"; spf=pass (google.com: best guess record for domain of linux-bluetooth-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-bluetooth-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id e35si15893581plb.261.2019.05.19.10.57.09; Sun, 19 May 2019 10:57:35 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-bluetooth-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b="YW2/d+WS"; spf=pass (google.com: best guess record for domain of linux-bluetooth-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-bluetooth-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727622AbfESR4u (ORCPT + 99 others); Sun, 19 May 2019 13:56:50 -0400 Received: from mail-oi1-f177.google.com ([209.85.167.177]:45607 "EHLO mail-oi1-f177.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727456AbfESR4u (ORCPT ); Sun, 19 May 2019 13:56:50 -0400 Received: by mail-oi1-f177.google.com with SMTP id w144so8373680oie.12 for ; Sun, 19 May 2019 10:56:49 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=4XabjI+dgAkCkGsMLUH06s8zHqHaWwkyxs+sQtXHOfQ=; b=YW2/d+WS/Pqz+G06dpkVVN8o6bSAo+NpqA8CydkUNp1SZy2426Fz6fHqAw9Gc7cKHi 2T1mX7PnQqHjfmbS5FylNtFcZgdq9eXppOUizgM/kJGYalI1QpgoQQdUIE25BPR51+6S z5BPwn1D0m+YMa5XQ3ApnZdjxntZOyDqbWexNL55uYQigjCgJgUIut9VeluDysen8dDD CLz9tv9xWYbwVnkIZaUyJa6pXCHtBI853b/hX/rxdha2jTOWI6hsdPxz2A3OQDtfL7+/ s8yKG9gnIBfh10mbvRtsGC+Yn0Eho8PaKdRte//K78kMu+DuaklgOyY2kz7J1o9EYvSz JK5A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=4XabjI+dgAkCkGsMLUH06s8zHqHaWwkyxs+sQtXHOfQ=; b=F1TUxyyzf7Nbv4ffM43LRvNgDikb2SSix7cfJUhHFjTHSP2jVLbqgCGzcrqpTfd1vp NNOvpgFzSKdYaaWPT/NuydekcmxBvAycd2VCHkLEnwm83F8+lcUEXm7wdV+rHjFzzgog zHrzyBDrFDljmfwSH+11WNOsGUEyqmXVSUrBYO1Y4c8mZg3eMbBFu5NNcyqXJ7OwFXxv xIjYoLdy7Xvjlry3wbiB0kLGUWR/WDvT1Zcn73YWEeaVyIJbRQF9SPJezw6nm/htd0or SLRCcurPI8WgvNc8bPSxYflsQ+RL2+uwwNiO20wMANz1aGunhj+TvT2Z19eOtCLtThnr id3w== X-Gm-Message-State: APjAAAUzegYzchNo/2p5V8xFkFctnQ/G1YQnxPT6QmB8zWk5QIuFLGvs T4i10v9XOl5xDFIectziJ+SfJMwUXL07K+STx5tDRsZ1rkHEVg== X-Received: by 2002:aca:54c7:: with SMTP id i190mr8351918oib.108.1558255198783; Sun, 19 May 2019 01:39:58 -0700 (PDT) MIME-Version: 1.0 References: <0FBE6EB8-B42A-4D24-ACAB-80AB47316B97@gmail.com> In-Reply-To: <0FBE6EB8-B42A-4D24-ACAB-80AB47316B97@gmail.com> From: Luiz Augusto von Dentz Date: Sun, 19 May 2019 11:39:46 +0300 Message-ID: Subject: Re: After kernel update: connect/disconnect forever while attempting to auto-reconnect To: Johan Hedberg Cc: Alexandre Pereira Nunes , "linux-bluetooth@vger.kernel.org" , Marcel Holtmann Content-Type: text/plain; charset="UTF-8" Sender: linux-bluetooth-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-bluetooth@vger.kernel.org Hi Johan, +Marcel On Sat, May 18, 2019 at 9:08 PM Johan Hedberg wrote: > > Hi Luiz, > > On 18 May 2019, at 19.30, Luiz Augusto von Dentz wrote: > > The problem seems to be here: > > > > < ACL Data TX: Handle 512 flags 0x00 dlen 16 #87 [hci0] 9.952984 > > L2CAP: Connection Response (0x03) ident 1 len 8 > > Destination CID: 0 > > Source CID: 65 > > Result: Connection refused - security block (0x0003) > > Status: No further information available (0x0000) > > > > Ruling out encryption since HID don't require it: > > When both devices support SSP, encryption is required for any non-SDP PSM. The kernel enforces this regardless of what kind of options were set for the socket. Perhaps it could be this one: https://git.kernel.org/pub/scm/linux/kernel/git/bluetooth/bluetooth-next.git/commit/net/bluetooth/hci_conn.c?id=d5bb334a8e171b262e48f378bd2096c0ea458265 It looks like the test you mentioned it is just above the check for enc_key_size, though people mentioned it has been working so could it be that SSP is not enabled after all? -- Luiz Augusto von Dentz