Received: by 2002:a25:ab43:0:0:0:0:0 with SMTP id u61csp5349940ybi; Tue, 4 Jun 2019 05:27:33 -0700 (PDT) X-Google-Smtp-Source: APXvYqxOnLFftHKdWpifFoxyorb8jPn1MY5yM9/UmpmZnrd66eYRFkS4nsRujlbF5zbYhx9/474X X-Received: by 2002:a17:90a:a608:: with SMTP id c8mr35378541pjq.37.1559651253053; Tue, 04 Jun 2019 05:27:33 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1559651253; cv=none; d=google.com; s=arc-20160816; b=IR26b17ArQZLAF4kKiabjzSqItTaMqI3SDVF3Sfl52EjMBdXuBIeqU5d09YToRj/mR /hIzEGkvEDzqoQe6QDnvlBrJ5PnHqdizfR7jCszHzU7xKy2USut7TocNTG0i/F8FmrLp 9tBUuVHu9fGepQ0dOhukWwxxLRaM68Kn0VpOzHZyoxAHEGXmf2hXDQnwQyfZCQ//gOHv 2M6TmgboFRiX3DJSo9zTKGV5RWYeVVzXq20Mj8PyzDtFmXZRpbC4NWf0nfCaQFy9FEZb 4B7vlJ6TIBTk2F8sE2YHTdbrYAcf6n7ZrT+vrWhzGsT7sd46W+hCqOp3M/SBK3QgwkC9 Oxgg== 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:mime-version :user-agent:references:in-reply-to:date:cc:to:from:subject :message-id; bh=15ZSGMfDjhlCxFv/nkr/wRoULB8S7iSpjU2TkUXLkqM=; b=Wc9S1bPzIlGSly4pxF34DchIB/ykkWHZOBKSkxGbFx2Sf6WhCdgAJStlNj+PktYQ2M gy9laT52KY5IObxdVfsRq8AHo1eVI91E/tVChflW9CkAAWnTF/0ur/bnG8PZwfnXySjN wwSN8ZvOON3voH3uAntlMQ76EtLCXCHBIQiHQCr83bgHNCX4MYcc4rLkYehFyUdkb6/v BvAW1oY/sE8oDNmgfw/H1VnIR697XOiBtILMhevgW7bHnG0nAdfzybbFzq8mVjAYKUjy 32sK5s3Vb/l4g6Hd00Sr8dFaPnnUgxzl86e+NEcFsqrsroO2pKypp8lqkvqNGTHv/WBb BEHQ== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id u143si26203817pfc.203.2019.06.04.05.26.54; Tue, 04 Jun 2019 05:27:33 -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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727560AbfFDM0o (ORCPT + 99 others); Tue, 4 Jun 2019 08:26:44 -0400 Received: from relay7-d.mail.gandi.net ([217.70.183.200]:47429 "EHLO relay7-d.mail.gandi.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726994AbfFDM0o (ORCPT ); Tue, 4 Jun 2019 08:26:44 -0400 X-Originating-IP: 83.155.44.161 Received: from classic (mon69-7-83-155-44-161.fbx.proxad.net [83.155.44.161]) (Authenticated sender: hadess@hadess.net) by relay7-d.mail.gandi.net (Postfix) with ESMTPSA id 768CF20006; Tue, 4 Jun 2019 12:26:40 +0000 (UTC) Message-ID: Subject: Re: [RFC] Bluetooth: Check key sizes only when Secure Simple Pairing is enabled From: Bastien Nocera To: Vasily Khoruzhick , Marcel Holtmann Cc: "open list:BLUETOOTH DRIVERS" Date: Tue, 04 Jun 2019 14:26:39 +0200 In-Reply-To: References: <20190522070540.48895-1-marcel@holtmann.org> Content-Type: text/plain; charset="UTF-8" User-Agent: Evolution 3.32.2 (3.32.2-1.fc30) MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Sender: linux-bluetooth-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-bluetooth@vger.kernel.org On Thu, 2019-05-23 at 07:53 -0700, Vasily Khoruzhick wrote: > On Wed, May 22, 2019 at 12:05 AM Marcel Holtmann > wrote: > > The encryption is only mandatory to be enforced when both sides are > > using > > Secure Simple Pairing and this means the key size check makes only > > sense > > in that case. > > > > On legacy Bluetooth 2.0 and earlier devices like mice the > > encryption was > > optional and thus causing an issue if the key size check is not > > bound to > > using Secure Simple Pairing. > > > > Fixes: d5bb334a8e17 ("Bluetooth: Align minimum encryption key size > > for LE and BR/EDR connections") > > Signed-off-by: Marcel Holtmann > > Cc: stable@vger.kernel.org > > Tested-by: Vasily Khoruzhick I've asked for this patch to be included in the current Fedora release: https://lists.fedoraproject.org/archives/list/kernel@lists.fedoraproject.org/thread/YE5OGFZRDJL2TFJK3RWU7AAWV3PFRMNB/ Hopefully, that means that it gets a bit more testing and gets merged upstream. Cheers