lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite for Android: free password hash cracker in your pocket
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID:
 <MA0P287MB021769BC136ED0B947683709B867A@MA0P287MB0217.INDP287.PROD.OUTLOOK.COM>
Date: Thu, 4 Jan 2024 07:47:38 +0000
From: Aditya Garg <gargaditya08@...e.com>
To: Johan Hovold <johan@...nel.org>
CC: Sven Peter <sven@...npeter.dev>, Paul Menzel <pmenzel@...gen.mpg.de>,
	Felix Zhang <mrman@...an314.tech>, "linux-bluetooth@...r.kernel.org"
	<linux-bluetooth@...r.kernel.org>, "stable@...r.kernel.org"
	<stable@...r.kernel.org>, Johan Hovold <johan+linaro@...nel.org>, Hector
 Martin <marcan@...can.st>, Bagas Sanjaya <bagasdotme@...il.com>, Alyssa
 Rosenzweig <alyssa@...enzweig.io>, Marcel Holtmann <marcel@...tmann.org>,
	Johan Hedberg <johan.hedberg@...il.com>, Luiz Augusto von Dentz
	<luiz.dentz@...il.com>, Orlando Chamberlain <orlandoch.dev@...il.com>,
	"kekrby@...il.com" <kekrby@...il.com>, "admin@...eit.net" <admin@...eit.net>,
	Janne Grunau <j@...nau.net>, "asahi@...ts.linux.dev" <asahi@...ts.linux.dev>,
	"linux-kernel@...r.kernel.org" <linux-kernel@...r.kernel.org>
Subject: Re: [PATCH v3] Bluetooth: Fix Bluetooth for BCM4377 on T2 Intel
 MacBooks



> On 28-Dec-2023, at 5:41 PM, Johan Hovold <johan@...nel.org> wrote:
> 
> On Thu, Dec 28, 2023 at 10:46:57AM +0100, Sven Peter wrote:
> 
>>>> On Dec 27, 2023, at 11:30, Johan Hovold <johan@...nel.org> wrote:
>> 
>>>> The commit you tracked this down to restored the original semantics for
>>> HCI_QUIRK_USE_BDADDR_PROPERTY, which means that it should only be set
>>> for devices with an invalid address.
>>> 
>>> The Broadcom BCM4377 driver has so far been setting this flag
>>> unconditionally which now potentially results in also valid addresses
>>> being marked as invalid.
>>> 
>>> I've just sent a patch that makes sure to only mark invalid addresses as
>>> invalid:
>>> 
>>> https://lore.kernel.org/lkml/20231227101003.10534-1-johan+linaro@kernel.org/
>>> 
>>> Note however that the flag still needs to be set in case your device
>>> lacks storage for a unique device address so you cannot simply drop it
>>> for some device classes as you do below (unless you are certain that
>>> these devices will always have a valid address).
> 
>> We do know that though.
>> 
>> BCM4377 is present on Apple’s x86 Macs and always has internal storage
>> for the address. If the board comes up without an address there’s nothing
>> much we can do because the address isn’t provided by ACPI or anything
>> else and setting the invalid address quirk for that situation seems appropriate.
>> 
>> BCM4378/4387 is present on Apple’s ARM Macs and never has internal storage.
>> The address is always provided by our bootloader in the device tree.
>> These should always unconditionally set HCI_QUIRK_USE_BDADDR_PROPERTY
>> just like this patch does.
> 
> Ok, good, then this patch and the one I posted are mostly equivalent
> assuming that the BCM4378/4387 return an invalid address during setup.
> 
> This patch may be preferred as it does not need to rely on such
> assumptions, though.
> 
> Johan

So what's the final take on this? Which one is gonna be merged upstream?

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ