Received: by 2002:a25:ad19:0:0:0:0:0 with SMTP id y25csp4529107ybi; Sat, 6 Jul 2019 07:05:59 -0700 (PDT) X-Google-Smtp-Source: APXvYqxfD+qgUFXpwlcC2Al4OQ0nBZu6m36toOA9t4R3+39FlTkVwwizDHA3ZE5xrW7IIIqgn6rL X-Received: by 2002:a65:664d:: with SMTP id z13mr2058288pgv.99.1562421959365; Sat, 06 Jul 2019 07:05:59 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1562421959; cv=none; d=google.com; s=arc-20160816; b=q1byNhw7rUbaqxhiWrdQRjiPOjkQKL7XVCWt/ybccOby3jfDuAxtAsJAWgjILl2ZAA NN5dKgCEeqw/OnF/74It3jTSQNcjvdp+cSP8KwXT4Fl44aAtPRvLEaIx6jctLbhYHNpU T7biqO3TKmDRuC5U8umb15qw9EbUgG77PxnSDGwmvcnVwTJSe3xJw41rWbN7pm7CT/Oy RVowTUufjU1GcwxUlPNx2LzKVwKZdJutittQHSldDPIYmahfF6PSuJWcI9EYl+cZWrRy bM16gHVWqKCHzxnqbyz6eZwM4Hg4c+Uz4OfwRGbNPcxAu0HaSJ+vAJEZTV8YvyCc8bwU rXsw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:to:references:message-id :content-transfer-encoding:cc:date:in-reply-to:from:subject :mime-version; bh=B73jNYZ4GcMZJu9In72xAyf5bwxeQvYLTE4k93kP4Tk=; b=bGYD8KqPFn7aklROQaMdOIYIOBfU+H3dTmlSLVLspBZYeTyEc6YYFVN0nAcRQ9Kq69 zhratmIJ90QJp326ei1wsA4WR2/o+vaEapO6h4O+I4rXtBljMhveF5AGXIUfH7eYFpAy ZwlA8HOf9P6doZZ5Dgc3ijHtQ0SrgwoSjcxv5rYQbvOgmVLEYfkLre0VxoU9gLdCqxv1 kDKgJlm8YL/EoVWMbedPjg/rb22NeC8FCbbiNCJyYvS2s5xg7odcp6JXTJPTuXI1hQUB Tkz7vbWQ3YUE7pFeHs/XgCwEHOgsyibo9UfNju5l4oVETXVB049vNwYqepl1yOQLMbIy q+Wg== 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 p3si10982827pjr.18.2019.07.06.07.05.44; Sat, 06 Jul 2019 07:05:59 -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 S1726549AbfGFN6G (ORCPT + 99 others); Sat, 6 Jul 2019 09:58:06 -0400 Received: from coyote.holtmann.net ([212.227.132.17]:47969 "EHLO mail.holtmann.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726177AbfGFN6F (ORCPT ); Sat, 6 Jul 2019 09:58:05 -0400 Received: from [192.168.0.171] (188.146.228.97.nat.umts.dynamic.t-mobile.pl [188.146.228.97]) by mail.holtmann.org (Postfix) with ESMTPSA id 1B1FCCF12E; Sat, 6 Jul 2019 16:06:36 +0200 (CEST) Content-Type: text/plain; charset=us-ascii Mime-Version: 1.0 (Mac OS X Mail 12.4 \(3445.104.11\)) Subject: Re: [PATCH] Bluetooth: SMP: Workaround Microsoft Surface Precision Mouse bug From: Marcel Holtmann In-Reply-To: <20190618224747.446-1-szymon.janc@codecoup.pl> Date: Sat, 6 Jul 2019 15:58:03 +0200 Cc: linux-bluetooth@vger.kernel.org, Maarten Fonville , stable@vger.kernel.org Content-Transfer-Encoding: 7bit Message-Id: <47663D4D-8800-4A7A-87A6-4708651C40EC@holtmann.org> References: <20190618224747.446-1-szymon.janc@codecoup.pl> To: Szymon Janc X-Mailer: Apple Mail (2.3445.104.11) Sender: linux-bluetooth-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-bluetooth@vger.kernel.org Hi Szymon, > Microsoft Surface Precision Mouse provides bogus identity address when > pairing. It connects with Static Random address but provides Public > Address in SMP Identity Address Information PDU. Address has same > value but type is different. Workaround this by dropping IRK if ID > address discrepancy is detected. > >> HCI Event: LE Meta Event (0x3e) plen 19 > LE Connection Complete (0x01) > Status: Success (0x00) > Handle: 75 > Role: Master (0x00) > Peer address type: Random (0x01) > Peer address: E0:52:33:93:3B:21 (Static) > Connection interval: 50.00 msec (0x0028) > Connection latency: 0 (0x0000) > Supervision timeout: 420 msec (0x002a) > Master clock accuracy: 0x00 > > .... > >> ACL Data RX: Handle 75 flags 0x02 dlen 12 > SMP: Identity Address Information (0x09) len 7 > Address type: Public (0x00) > Address: E0:52:33:93:3B:21 > > Signed-off-by: Szymon Janc > Tested-by: Maarten Fonville > Bugzilla: https://bugzilla.kernel.org/show_bug.cgi?id=199461 > Cc: stable@vger.kernel.org > --- > net/bluetooth/smp.c | 14 ++++++++++++++ > 1 file changed, 14 insertions(+) patch has been applied to bluetooth-next tree. Regards Marcel