All of lore.kernel.org
 help / color / mirror / Atom feed
From: Sasha Levin <sashal@kernel.org>
To: stable@vger.kernel.org
Cc: Sasha Levin <sashal@kernel.org>,
	Daniel Pereira <danielmaraboo@gmail.com>
Subject: Re: [PATCH 6.1.y] Bluetooth: ISO: ensure no dangling hcon references in iso_conn
Date: Sun, 30 Aug 2026 21:39:20 -0400	[thread overview]
Message-ID: <20260830195900.0015-1-sashal@kernel.org> (raw)
In-Reply-To: <20260830045801.212389-1-danielmaraboo@gmail.com>

> commit aa9f7cb2bd3a2be998ceb739fc9a2f986eba43eb upstream.
>
> After iso_conn_del(), ISO sockets should not dereference the hcon any
> more. Currently, clearing iso_conn::hcon relies on iso_conn_del()
> releasing the last reference to the iso_conn.

Thanks, but this doesn't do anything on 6.1.y. iso_conn isn't
kref-refcounted there yet - dc26097bdb86 came later - so iso_conn_del()
kfree()s conn two statements after your `conn->hcon = NULL`, and
nothing can observe the store.

-- 
Thanks,
Sasha

      reply	other threads:[~2026-08-31  1:39 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-08-30  4:58 [PATCH 6.1.y] Bluetooth: ISO: ensure no dangling hcon references in iso_conn Daniel Pereira
2026-08-31  1:39 ` Sasha Levin [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=20260830195900.0015-1-sashal@kernel.org \
    --to=sashal@kernel.org \
    --cc=danielmaraboo@gmail.com \
    --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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.