Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp3126701yba; Sat, 18 May 2019 09:48:45 -0700 (PDT) X-Google-Smtp-Source: APXvYqznTkhDCl4BnqhvW/IVknC7ZLU93PDgd5drKwCNv6PwID8tPHMVYiXtuyUd7Loe/a6ovXQr X-Received: by 2002:a17:902:a415:: with SMTP id p21mr51122132plq.286.1558198125172; Sat, 18 May 2019 09:48:45 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1558198125; cv=none; d=google.com; s=arc-20160816; b=p1WoNo3mJRGFCNqnoi6PzZN9PnfrrIfRtGaLH+P6diAN0s9eAChuB90wmKSWLa5mZj m4f5+Z4O9t/5HPXaaUNeTpGU1eOi1qgNZVDTI8SX1qOB/CdnTq7AxnsEVXPCL1YgZAOQ icpSZuo3arK4ofamzSbXkL+IvWHsyb/FmMWov/RFY2qvtqS49zg0mNKhl+/t1rtlAu0S F8Ce+Y/y9rzZIzTEtUpSgD4c4VhgDrTx88GKUMP0Ih5Skx8tgX+UV+OV/W47PWQM+b5z mA77cF2wDk/0Hu2p6KEb0MJBAIOEOi/77c9bIN9XifTRxkq5CIAA7gTpbIiTxdCieSbx 3RLg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:cc:to:subject :message-id:date:from:in-reply-to:references:mime-version :dkim-signature; bh=GYM2jfgjPzMJE25+f2H8sz/7PmpmaKg2pezUUU4R7X4=; b=sgtAttwWLWp+rwdUEKEbFQB33GsJtBWkHlmfbfYJJBd7ZI98VhcAAn0ZQvHbbABhPr xDFJNwICgCBcBB/Tn7ef2gviHi/uSQNIZhbDSOv/CCLBIYe34Q6f0H6vqjz7ZQm/C7v5 AMrBrUAKFIy0Fo9LPcdiSUUFIzmOIy/8PFQ7sBAjdczTDcah3uU/wEkPf7x8j802daRd ZJLpMKpuqNo9o1OusNESS7w1V5obtSGwbSm9fweMolDIDBuzwdUxTvxkYqCVauwIFBfZ w5hqD0noM83xvR/rF3FYcEVFsqO38pekrqReeMvZe5lbhBSzrw27eLxbzfg8KuIvH0wb AJ+A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b="GY2ov/gB"; 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 f6si767548pgg.207.2019.05.18.09.48.16; Sat, 18 May 2019 09:48:45 -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="GY2ov/gB"; 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 S1729324AbfERQac (ORCPT + 99 others); Sat, 18 May 2019 12:30:32 -0400 Received: from mail-ot1-f45.google.com ([209.85.210.45]:38933 "EHLO mail-ot1-f45.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728990AbfERQab (ORCPT ); Sat, 18 May 2019 12:30:31 -0400 Received: by mail-ot1-f45.google.com with SMTP id r7so9444856otn.6 for ; Sat, 18 May 2019 09:30:31 -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:content-transfer-encoding; bh=GYM2jfgjPzMJE25+f2H8sz/7PmpmaKg2pezUUU4R7X4=; b=GY2ov/gBgFacWY50/PbRC1DJVA4jRbI/4Dhw2Xq/3F7IlnrHaEkcz9Keu14RA68CbP NueRIbKBdE304Q/Y5BK9ek48ONaPO1k65/WbRmA5BxJEme8mVEgm2HjGflmUluQcA7no ldQd8/TLP629Ro7JrXSiD9StbpTSyM8gs4P+WVtuZdEMIgV5f7P5q/F1gpX6Jg1tbYD5 XMGijfRnqAcHx3AisgmvdCO0GOg/gAFOt5IrGXktwLFNLz/WjXd7E2j6h2P7MMPcz0PH i8FdUAhFI6uZ9KF7mQZi/3BbJFDtPXG3vcc2+SObbCg4c24vpxQjNzNASxrsVjuWqKYS qijw== 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:content-transfer-encoding; bh=GYM2jfgjPzMJE25+f2H8sz/7PmpmaKg2pezUUU4R7X4=; b=AsHeZmVS0kUyna+eR6xePEa/NhYr+5219hDx7Gazyb5aEMGg+m06I6kr27ohLmJT1K AYc4x8mwTsMJrQjMpFlFfuMf59YPrNpUVgaQ2Xze/owuinulg75r3GA0XfS3m0bq6I6+ vHNJ4qrTtglB3nk6ncl/sxiwUt1i2yXFujt+mns/4eyezdE2TD5NCab7D6ycnrARiI/A bffMBEKCHlaQTDLyNhhylUd90JAEbpjwM/UBDeh9xxYthTi+CSBC/imVFJRiUWsMkoDy UO3Xqj62WbN/GUD7tbjkKL5NBlJ+x58aXj8UdAYSLbP7k1KBYjxVZb4/SOfdMAWytH5w bU8A== X-Gm-Message-State: APjAAAVzRJu8y7CWTygzSIg+hqdQ+D6xi90M3R68wDdfmb/ZFz+qus7R cv8nEUpgNmfn+e0W4vrXPUTFEUOEdmiZjFDvmVU= X-Received: by 2002:a9d:6288:: with SMTP id x8mr10544471otk.79.1558197031064; Sat, 18 May 2019 09:30:31 -0700 (PDT) MIME-Version: 1.0 References: In-Reply-To: From: Luiz Augusto von Dentz Date: Sat, 18 May 2019 19:30:18 +0300 Message-ID: Subject: Re: After kernel update: connect/disconnect forever while attempting to auto-reconnect To: Alexandre Pereira Nunes Cc: "linux-bluetooth@vger.kernel.org" Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Sender: linux-bluetooth-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-bluetooth@vger.kernel.org Hi Alexandre, On Sat, May 18, 2019 at 7:13 PM Alexandre Pereira Nunes wrote: > > I've attached two btmon sessions: one captured from the text mode and > another with -w param. > > Both on 5.1.2 kernel. The problem seems to be here: < ACL Data TX: Handle 512 flags 0x00 dlen 16 #87 [hci0] 9.95= 2984 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: https://git.kernel.org/pub/scm/bluetooth/bluez.git/tree/profiles/input/serv= er.c#n294 Are you seeing any of the following logs on the journal: https://git.kernel.org/pub/scm/bluetooth/bluez.git/tree/profiles/input/serv= er.c#n181 > Em s=C3=A1b, 18 de mai de 2019 =C3=A0s 05:53, Carlos Pita > escreveu: > > > > Hi Luiz, > > > > I've attached the output for a single auto-reconnect/disconnect sequenc= e. > > > > Notice this was using the 4.19.44 kernel, which is the LTS one in Arch > > Linux. As I've pointed out above, the problem seems like a regression, > > since it's happening both in older and latest kernels, but not > > in-between them. > > > > Best regards > > -- > > Carlos --=20 Luiz Augusto von Dentz