Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp1436777pxb; Thu, 4 Mar 2021 11:12:34 -0800 (PST) X-Google-Smtp-Source: ABdhPJy0ybDzD44EYY1n7+8BQ531ybVgANuKA6KhZ2169R6xP/bj18/5pkm12HJXhugkX3dIrBza X-Received: by 2002:a17:906:39a:: with SMTP id b26mr6095187eja.158.1614885154149; Thu, 04 Mar 2021 11:12:34 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1614885154; cv=none; d=google.com; s=arc-20160816; b=GlM3t1dDCitGw3Gd1WOAnRKDL+37taRPBZHjYzpjy5S6DE3repIswbm7s3IomBMiDp c7HnhhnKAWqgrCVV2Lm8+ZBzxXcJBmCMv9f7JHkwG625CunBKmhtWHzmP8obGyw0pRCf BVb6K/tjml6B6Yb/sBGjxtx94FCDVruY2IhwsbU5AkXfNgB74rYTjPdHUHScKDA7Fp35 JW+hCswtTvwq4oMQEwzIuTIidvswEpQvHjRSr8z6lnXqCeuZbdmuHAnXDiNb3/c4Jn9I htpgnHRzG514mqn1DGbnOIfD3cCIKFOz8eMy6OIhdbv/Vtuc9LPOTRqBVbLHEtvw+9O7 In8g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:cc:to:subject :message-id:date:from:in-reply-to:references:mime-version :dkim-signature; bh=grhB78IL0+DgPEpS6M2BSpCFrfDCXBeoHLIxKvlQunA=; b=MGTr7vuXAZw+s6aeGU9+4PXsJaXaRhErS49KagyRGLZkit0vIqKRPNyIVERjUsjnGt 90NYnTRmd0aZVqZlo4dA5F2HR58PbY1rm2r3BQOkylvvKCpKzJLY1tjg2iZezjV8e4dU q/uMzzk9SflJqr9CRm8/nshU+qB1F3YYdd2DcIZ61w5Sv9CrgSt75ICL0VkH9VNsijp0 1FxIwWzMfXflfoG/8Ub5VOdpVsPgMkRzbtemW/20c9t7frusSSqZQQI1DGMBPvxNBUdZ f8ajKZvnC7LTcAEyBNg8a8oN/9evp5gTjcPaKAbroT8RIJUGPvCN6mTZSJOvwzW1kCCi OnAA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=TLw93h57; spf=pass (google.com: domain of linux-bluetooth-owner@vger.kernel.org designates 23.128.96.18 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. [23.128.96.18]) by mx.google.com with ESMTP id j7si236996edh.201.2021.03.04.11.12.09; Thu, 04 Mar 2021 11:12:34 -0800 (PST) Received-SPF: pass (google.com: domain of linux-bluetooth-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=TLw93h57; spf=pass (google.com: domain of linux-bluetooth-owner@vger.kernel.org designates 23.128.96.18 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 S234675AbhCDSqL (ORCPT + 99 others); Thu, 4 Mar 2021 13:46:11 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33134 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234671AbhCDSpn (ORCPT ); Thu, 4 Mar 2021 13:45:43 -0500 Received: from mail-ot1-x32d.google.com (mail-ot1-x32d.google.com [IPv6:2607:f8b0:4864:20::32d]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 8B5A4C061574 for ; Thu, 4 Mar 2021 10:45:03 -0800 (PST) Received: by mail-ot1-x32d.google.com with SMTP id h22so28266717otr.6 for ; Thu, 04 Mar 2021 10:45:03 -0800 (PST) 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=grhB78IL0+DgPEpS6M2BSpCFrfDCXBeoHLIxKvlQunA=; b=TLw93h57Jj4fH347wpdyIM85M83gIZag4zWFsR+MElQXEdXxgg+NSoss9lgNwl94tg 3rlKx6E+VGGl+wn6KW2sZNgVnjM4Vjtd/xnoxeqWCxstuwWuImVgsH+djLW+9XemxBGe S49i6qx97TIlgqccN93NMsF3wuYFC7fZD4v0zoOfry/xIT1n5P8vy+s1OeMehAh9I5gb ruOXXz10AS2dI6trJXolJotEMqZkp1DQM8JndBovbX+p3szFvvXVOqz0KfR+oLSZSNmZ Gw+gmZDLRt5XA9lp9b9S8lZWM6OkZ7n/MpMQdo4L+bL/aATYb5gefQYr+fsu3l8CjGez 1k9g== 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=grhB78IL0+DgPEpS6M2BSpCFrfDCXBeoHLIxKvlQunA=; b=I73LwBUku7WFQMzOoswXhigw1Yek9zfptuSVVvRuNS8o9atarNENT1ah700QEkbzyM pY9WMS1WcenZagfpLhUA/60CdKuI4QYnMAWNjSxVehNtRV+omwIo249ggDBnnP8MrjZV gNvb4G5vXanVPQtloOuMTKNTYk94XYURGv8Hcj3i+pqqBWe3d4z1VH4EbPAu5oZn7L2q BbhoI9k72m1ww1NUsoNR2o/ePOuj4VEX9nnuyLKHBzYA3nTgGyPTUZLLvuVF9YeydIAl H/OboDR1MwAh2ycGmyUd28RSqt3vW0vtPUJRdApNqII1PX2NnxwCWt7DajQj0GfiKMPC +6+Q== X-Gm-Message-State: AOAM5336Pxy4zlnorh2QN97LIxViPZ3aL7JiP/8L9TSWOq7hh/yN2CJF YSv79djU2tVC2tu6IlTc4xKBHn7TvL0BfmoaVFA= X-Received: by 2002:a9d:69c6:: with SMTP id v6mr4598606oto.371.1614883502914; Thu, 04 Mar 2021 10:45:02 -0800 (PST) MIME-Version: 1.0 References: In-Reply-To: From: Luiz Augusto von Dentz Date: Thu, 4 Mar 2021 10:44:52 -0800 Message-ID: Subject: Re: Bug caused by moving to BlueZ 5.56 (bytes stripped from HoG reports) To: =?UTF-8?Q?Ricardo_Ca=C3=B1uelo?= Cc: "linux-bluetooth@vger.kernel.org" Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Precedence: bulk List-ID: X-Mailing-List: linux-bluetooth@vger.kernel.org Hi Ricardo, On Thu, Mar 4, 2021 at 9:40 AM Ricardo Ca=C3=B1uelo wrote: > > Hi all, > > I discovered this fix https://github.com/bluez/bluez/commit/35a2c50 while > debugging a fwupd plugin for a HoG device that implements its FW upgrade > mechanism using vendor-specific HID reports ( > https://github.com/fwupd/fwupd/blob/master/plugins/pixart-rf/fu-pxi-devic= e.c). > > Initially, the developers were using BlueZ versions prior to 5.56, which = is the > first release that includes that fix, so their code was written with that > behavior in mind. After moving to 5.56 we found out it crashed and we nee= ded to > adapt the code to the proper report format. I think this is the kind of i= ssues > that Dean mentioned here > https://marc.info/?l=3Dlinux-bluetooth&m=3D160590969013204&w=3D2 > > Have there been any more reports like this? Is this expected to have a gr= eater > impact than initially thought? Nope, you are the first one to report a problem with this change, so chances are that what Dean stated probably still holds since the vast majority of devices didn't care about the report ID. So I suppose the following code shall take care of it or does it not? https://github.com/fwupd/fwupd/blob/master/plugins/pixart-rf/fu-pxi-device.= c#L170 --=20 Luiz Augusto von Dentz