Re: [PATCH] Bluetooth: hci_core: Fix inquiry cache timestamps on 64-bit systems

From: patchwork-bot+bluetooth

Date: Tue Sep 22 2026 - 11:16:48 EST


Hello:

This patch was applied to bluetooth/bluetooth-next.git (master)
by Luiz Augusto von Dentz <luiz.von.dentz@xxxxxxxxx>:

On Tue, 22 Sep 2026 10:01:41 +0800 you wrote:
> On 64-bit systems, outgoing BR/EDR connections always fall back to page
> scan repetition mode R2 with no clock offset once the system has been
> up for more than five minutes, even when inquiry found the peer only
> seconds earlier. This lengthens paging and can increase the risk of a
> Page Timeout.
>
> The inquiry cache stores jiffies in __u32 timestamps, but its age
> helpers subtract them from unsigned long jiffies. INITIAL_JIFFIES casts
> -300 * HZ through unsigned int, so jiffies crosses 2^32 five minutes
> after boot on 64-bit systems. Assigning it to __u32 then drops the upper
> 32 bits. In one trace, a 7.6-second-old entry (HZ=1000) was reported as
> 2^32 + 7620 ticks old and rejected by hci_acl_create_conn_sync().
> hci_inquiry() is affected by the same truncation when checking the whole
> cache. 32-bit systems are unaffected because unsigned long is 32 bits
> wide there.
>
> [...]

Here is the summary with links:
- Bluetooth: hci_core: Fix inquiry cache timestamps on 64-bit systems
https://git.kernel.org/bluetooth/bluetooth-next/c/ea983244b99a

You are awesome, thank you!
--
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/patchwork/pwbot.html