mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: syzbot <syzbot+e5e64cdf8e92046dd3e1@syzkaller.appspotmail.com>
To: qianqiang.liu@163.com
Cc: qianqiang.liu@163.com, linux-kernel@vger.kernel.org,
	 syzkaller-bugs@googlegroups.com
Subject: Re: [syzbot] [bluetooth?] KASAN: slab-use-after-free Read in release_sock (2)
Date: Thu, 28 Aug 2025 07:19:04 -0700	[thread overview]
Message-ID: <68b06558.050a0220.3db4df.0022.GAE@google.com> (raw)
In-Reply-To: <aLBlIsFngakFf5vO@Mac.bbrouter>

> #syz test

This crash does not have a reproducer. I cannot test it.

>
> --- a/net/bluetooth/af_bluetooth.c	2025-08-28 22:02:06
> +++ b/net/bluetooth/af_bluetooth.c	2025-08-28 22:13:46
> @@ -292,14 +292,12 @@
>  			 */
>  			goto restart;
>  		}
> -
> -		/* sk is safely in the parent list so reduce reference count */
> -		sock_put(sk);
>
>  		/* FIXME: Is this check still needed */
>  		if (sk->sk_state == BT_CLOSED) {
>  			bt_accept_unlink(sk);
>  			release_sock(sk);
> +			sock_put(sk);
>  			continue;
>  		}
>
> @@ -310,10 +308,12 @@
>  				sock_graft(sk, newsock);
>
>  			release_sock(sk);
> +			sock_put(sk);
>  			return sk;
>  		}
>
>  		release_sock(sk);
> +		sock_put(sk);
>  	}
>
>  	return NULL;
>
> -- 
> Best,
> Qianqiang Liu
>

       reply	other threads:[~2025-08-28 14:19 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <aLBlIsFngakFf5vO@Mac.bbrouter>
2025-08-28 14:19 ` syzbot [this message]
2025-08-27 20:33 syzbot

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=68b06558.050a0220.3db4df.0022.GAE@google.com \
    --to=syzbot+e5e64cdf8e92046dd3e1@syzkaller.appspotmail.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=qianqiang.liu@163.com \
    --cc=syzkaller-bugs@googlegroups.com \
    /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

all inboxes | Powered by JetHome®