From: Hillf Danton <hdanton@sina.com>
To: syzbot <syzbot+8e6fc64255334ccf3ab3@syzkaller.appspotmail.com>
Cc: linux-kernel@vger.kernel.org, syzkaller-bugs@googlegroups.com
Subject: Re: [syzbot] [dm?] KASAN: slab-use-after-free Read in snapshot_ctr
Date: Sun, 25 Oct 2026 09:01:24 +0800 [thread overview]
Message-ID: <20261025010125.1085-1-hdanton@sina.com> (raw)
In-Reply-To: <6adcd395.998fdb85.f0000.0011.GAE@google.com>
> Date: Sat, 24 Oct 2026 08:49:41 -0700 [thread overview]
> Hello,
>
> syzbot found the following issue on:
>
> HEAD commit: f47d223627f8 Merge tag 'vfs-7.4-rc1.sync_close' of git://g..
> git tree: upstream
> console output: https://syzkaller.appspot.com/x/log.txt?x=127202a5580000
> kernel config: https://syzkaller.appspot.com/x/.config?x=97e47414c855a3d8
> dashboard link: https://syzkaller.appspot.com/bug?extid=8e6fc64255334ccf3ab3
> compiler: Debian clang version 22.1.8 (1~deb13u4), Debian LLD 22.1.8
> syz repro: https://syzkaller.appspot.com/x/repro.syz?x=16a47f71580000
> C reproducer: https://syzkaller.appspot.com/x/repro.c?x=13edba35580000
#syz test: upstream f47d223627f8
--- x/drivers/md/dm-table.c
+++ y/drivers/md/dm-table.c
@@ -400,8 +400,8 @@ int dm_get_device(struct dm_target *ti,
if (r)
return r;
}
- refcount_inc(&dd->count);
out:
+ refcount_inc(&dd->count);
*result = dd->dm_dev;
return 0;
}
--- x/drivers/md/dm-snap.c
+++ y/drivers/md/dm-snap.c
@@ -1390,6 +1390,7 @@ static int snapshot_ctr(struct dm_target
if (r)
goto bad_read_metadata;
+ dm_put_device(ti, s->cow);
return 0;
bad_read_metadata:
--
next prev parent reply other threads:[~2026-10-25 1:01 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-10-24 15:49 syzbot
2026-10-25 1:01 ` Hillf Danton [this message]
2026-10-25 1:20 ` syzbot
2026-10-25 10:53 ` Hillf Danton
2026-10-25 11:19 ` 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=20261025010125.1085-1-hdanton@sina.com \
--to=hdanton@sina.com \
--cc=linux-kernel@vger.kernel.org \
--cc=syzbot+8e6fc64255334ccf3ab3@syzkaller.appspotmail.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®