From: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
To: Radek Podgorny <radek@podgorny.cz>
Cc: Luiz Augusto von Dentz <luiz.von.dentz@intel.com>,
Marcel Holtmann <marcel@holtmann.org>,
linux-bluetooth@vger.kernel.org, stable@vger.kernel.org,
Sasha Levin <sashal@kernel.org>
Subject: Re: 7.2.y took the on-air address fix without its companion
Date: Sat, 3 Oct 2026 09:43:13 +0200 [thread overview]
Message-ID: <2026100356-magnitude-esquire-89fc@gregkh> (raw)
In-Reply-To: <179097754519.501890.1801734138080126989@podgorny.cz>
On Fri, Oct 02, 2026 at 11:45:45PM +0200, Radek Podgorny wrote:
> Hi Luiz, Marcel,
>
> 7.2.8 picked up, via AUTOSEL,
>
> a552b4bc058b Bluetooth: put the peer's on-air address on air when we
> cannot resolve (mainline 4914c4998961)
>
> but not the patch that was sent and merged immediately before it:
>
> 14b015afb556 Bluetooth: forget a peer's RPA once it advertises its
> identity address (bluetooth-next only)
There is no such commit id in Linus's tree :(
> They went out as a two-patch series because the second one depends on
> the first, and the commit message now in 7.2.8 says so itself:
>
> Without that, a peer that turns privacy off would be dialled on the
> address it abandoned rather than the one it is answering on.
>
> That is the situation in 7.2.y now, and it is a regression against
> 7.2.6:
>
> - hci_connect_le() substitutes the cached irk->rpa for the identity
> address whenever the IRK has one.
> - __hci_conn_add() in 7.2.8 keeps that RPA when LL Privacy resolution
> is off or the peer is not in the resolving list, which is the change
> a552b4bc058b makes.
> - Nothing in 7.2.8 ever clears irk->rpa. The only writes to it install
> a newer RPA, in hci_find_irk_by_rpa() and hci_add_irk().
>
> So a bonded peer that stops using RPAs and advertises its identity
> address is dialled forever on an address it no longer answers on. In
> 7.2.6 __hci_conn_add() converted the address unconditionally, so the
> same peer was dialled on its identity and the connection succeeded.
>
> 14b015afb556 is the invalidation that closes this: it clears irk->rpa
> in process_adv_report() once the peer is seen advertising its identity
> address. Nine added lines in one file.
>
> Could it go to mainline as a fix during the 7.3 cycle rather than
> waiting for the 7.4 merge window? Once it is upstream it reaches 7.2.y
> by the normal route. I deliberately left a Fixes: tag off it when it
> was posted, so as not to invite a backport while __hci_conn_add() was
> still masking the stale address -- that reasoning does not hold any
> more now that a552b4bc058b is in a released stable kernel. I am glad to
> repost it with Cc: stable@vger.kernel.org if you would rather have it
> that way.
>
> For the stable team: if holding it is not workable, reverting
> a552b4bc058b from 7.2.y restores the 7.2.6 behaviour, at the cost of
> re-exposing the bug that patch fixes. Only 7.2.y is affected; 6.18.54,
> 6.12.111 and 6.6.157 carry neither patch.
I'll wait for this to hit Linus's tree before pulling it into the stable
releases. Please let us know when that happens.
thanks,
greg k-h
prev parent reply other threads:[~2026-10-03 7:43 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-10-02 21:45 7.2.y took the on-air address fix without its companion Radek Podgorny
2026-10-03 7:43 ` Greg Kroah-Hartman [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=2026100356-magnitude-esquire-89fc@gregkh \
--to=gregkh@linuxfoundation.org \
--cc=linux-bluetooth@vger.kernel.org \
--cc=luiz.von.dentz@intel.com \
--cc=marcel@holtmann.org \
--cc=radek@podgorny.cz \
--cc=sashal@kernel.org \
--cc=stable@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox