Received: by 2002:a5d:925a:0:0:0:0:0 with SMTP id e26csp1739106iol; Fri, 10 Jun 2022 13:57:43 -0700 (PDT) X-Google-Smtp-Source: ABdhPJy53eNC/+dczKBwpt0DpG0YzT0sqlPNwmSrGp9QO+nQrAtxwHDTJAvxxKACTAQ1xQ7yg2QR X-Received: by 2002:a65:6d08:0:b0:3c6:8a08:3b9f with SMTP id bf8-20020a656d08000000b003c68a083b9fmr41613295pgb.147.1654894662923; Fri, 10 Jun 2022 13:57:42 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1654894662; cv=none; d=google.com; s=arc-20160816; b=D2gcs3yba/ehWJwqa8RxujBBSDjeJORmjQEP+D1ynPdGlqy5nU+vSAH/dX9XxkwiQy GIU44LXSJY4H3RIHJ1sndmYib40S7p5bgL2yzHYX6t8XnuFP3uepVjwJEaXVkLBpEsAC HyVG1dpiNijCDu/PIxWOw46ixSkEHoHahC4ucazKHLp02Khi2DwehvkamIPLDyewPcvA 6iDB3O0CCUwc/zVwUd1hfGChPChfh22BYwceO6OIPThhxAwxpDY8YM4Ar00NT9bgcwIl kVMXlcRj7BJ23B9Q+oa4Uo4n3vQbFfgo+bTp7TQR7Bx+p73scKVlDmmrKwj1IRZ2gzo3 /5yA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=wDRce3AGrqfAbEy6z7LsvAHDJeb4VDZDD+z9sMl+S8w=; b=ZCZMQZPAgsZmn50Ds+DAYNapKmy4qVSpC+kcNQJfmJHFeJ5rNbbqtK+a43cazEN4AJ DogF801xuKsydA9jXcgUHpawtr07H6DyHe00AyoOf4PQ7fmXQjFNsytMi28NJF8TOWp6 e67CxUMRgVzwceJ6UK6MfGOeWtV+LL+cpFpseM3nTrJA6rq7m22Q7JJgCd2JvHNRtnf1 +Ik+a3b2N9q4ejIur6PwxQAGonxIe2s4jHsUBf16HxaVmMV5ai0M1aB1z8ERQRNWxOv1 ISISfTY1Ngk1xyS4r0jvDOa5Hix1QGe6sW6W9ybk2aaYlmOva0166K/Ck6x9MAkBwLVE BWcw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=m+ShoRiC; spf=pass (google.com: domain of linux-bluetooth-owner@vger.kernel.org designates 2620:137:e000::1:20 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 out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id k13-20020a056a00134d00b0051c44065606si14370723pfu.357.2022.06.10.13.57.04; Fri, 10 Jun 2022 13:57:42 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-bluetooth-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=m+ShoRiC; spf=pass (google.com: domain of linux-bluetooth-owner@vger.kernel.org designates 2620:137:e000::1:20 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 S1347062AbiFJUkF (ORCPT + 99 others); Fri, 10 Jun 2022 16:40:05 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56518 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S241580AbiFJUkE (ORCPT ); Fri, 10 Jun 2022 16:40:04 -0400 Received: from mail-yw1-x112a.google.com (mail-yw1-x112a.google.com [IPv6:2607:f8b0:4864:20::112a]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D8F41176084 for ; Fri, 10 Jun 2022 13:40:03 -0700 (PDT) Received: by mail-yw1-x112a.google.com with SMTP id 00721157ae682-31336535373so3510357b3.2 for ; Fri, 10 Jun 2022 13:40:03 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=mime-version:references:in-reply-to:from:date:message-id:subject:to; bh=wDRce3AGrqfAbEy6z7LsvAHDJeb4VDZDD+z9sMl+S8w=; b=m+ShoRiCUwvEwhdVU4wv327nA2yt44jI0NN5VDou4sNHW4CrgHyc2Ztlo3TN5bx9PN mK3Cp3AK1yQ8mltkXweNfh/EhAv3rLBKSeh+rHLm4EcW+7yPMT6XI15aqmzfx2Xvh6So MVqKmhkt9j05dY52/t/3T0vYtLptTfW/BPh/W/wtGx7z2ziPO0yocPg/yaxGFQ1KP0/g jg6cwKQ2ca8LK+yxtw0+YCxnFdv4BJX9GU+rho+YomRDPRDNAXTlpmJ5jKFEE1bAjmOH NhMd6Gtk5r4EgkLBFXnK+8S3Q+R9hMg7y94GAL/tkkpfjC6T1rR40zD6oYn5XprEmUNL OEHg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to; bh=wDRce3AGrqfAbEy6z7LsvAHDJeb4VDZDD+z9sMl+S8w=; b=n2ev4r3K3bVivEmXtYRsRsbsgRJhsAQOR8oAvNzAxosBtAvPrd7W3S2zJBH8ymRHEG RIikGwpatq4GQlvG1YqQ7TTaJsH8wUKnnW/tNyDL+4rrgdgSDF1pK3fqAd9jVvTbQR9+ 7DDtBzhloshx/kKJKUL/sGvetiuTD2ekES/QHw7wl0bpuvsNRfYidc/iVzSMBGFScz/Z h3K2+bEvlWVC4wzsGS5rfmWF0/vxNTzyyuk6aJqtSFcOsGGC6O9cU80dNf3JjhJ7egAb sizENpzs6naM87Uhh1etjcc8Z8zWU2i5jnO9DO5dHpR++94T27I1NJaAEWp6iibwjwLs Kl/Q== X-Gm-Message-State: AOAM532FDD7aLwL8KE6dt8o5fF7b3qXORiaGyzQBDpCuC/NzDpdPXB0a tBtwdooBCioZLayFInTTLTHdx+g0sT5LQmHsJH6sgljO X-Received: by 2002:a81:be05:0:b0:2e5:6c26:59fb with SMTP id i5-20020a81be05000000b002e56c2659fbmr51767136ywn.94.1654893602955; Fri, 10 Jun 2022 13:40:02 -0700 (PDT) MIME-Version: 1.0 References: <20220603223225.20296-1-puffy.taco@gmail.com> In-Reply-To: From: Mike Brudevold Date: Fri, 10 Jun 2022 15:39:52 -0500 Message-ID: Subject: Re: [PATCH 0/3] LE OOB pairing support To: linux-bluetooth Content-Type: text/plain; charset="UTF-8" X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM, RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-bluetooth@vger.kernel.org Found the issue. On Fri, Jun 10, 2022 at 12:52 PM Mike Brudevold wrote: > > More testing below. > > On Fri, Jun 3, 2022 at 5:32 PM Michael Brudevold wrote: > > > > From: Michael Brudevold > > > > This patch series implements userspace support for LE OOB pairing. It was > > tested against an nRF52 dev kit with Nordic's NFC pairing example. Support is > > only for reading a tag; generating and sending back OOB information was not > > implemented. > > Further testing indicates that the OOB pairing data was not being used > (beyond BD addr). I tried corrupting the relevant fields and it still > successfully paired. The bluetooth capture in Wireshark shows an SMP > Pairing Request going out with the OOB data flags set to zero (OOB > auth not present). This is a 5.13 kernel from Ubuntu 20.04, so I'll > check that it isn't a kernel version issue, but a coworker tested on > an Ubuntu 22.04 instance and had a similar high level experience. I'm > still digging into where/how the OOB flag gets set for this request. Looks like the issue is that I need to update the adapter code to put the rand/conf values into the appropriate hash256/rand256 for LE SC (was only written to use hash192/rand192). With this change, I can corrupt these values and pairing becomes unsuccessful. I'll get this updated and send new patches. > > > > > Overall, LE EIR data is not dissimilar to BREDR, but the OOB blob starts off > > slightly differently necessitating a different code path before reaching the > > EIR parser. > > > > Michael Brudevold (3): > > eir: parse data types for LE OOB pairing > > Accept LE formatted EIR data with neard plugin > > neard: Update D-Bus path and interface > > > > plugins/neard.c | 64 +++++++++++++++++++++++++++++++++++++++++++------ > > src/adapter.c | 3 ++- > > src/adapter.h | 2 +- > > src/eir.c | 21 ++++++++++++++++ > > src/eir.h | 4 ++++ > > 5 files changed, 85 insertions(+), 9 deletions(-) > > > > -- > > 2.25.1 > >