From: Edward Adam Davis <eadavis@qq.com>
To: syzbot+33f23b49ac24f986c9e8@syzkaller.appspotmail.com
Cc: linux-kernel@vger.kernel.org, syzkaller-bugs@googlegroups.com
Subject: Re: [syzbot] [btrfs?] KASAN: slab-out-of-bounds Read in getname_kernel (2)
Date: Tue, 16 Jan 2024 07:58:47 +0800 [thread overview]
Message-ID: <tencent_6C6006C093630366C97083A2C44897777705@qq.com> (raw)
In-Reply-To: <000000000000d1a1d1060cc9c5e7@google.com>
please test slab-out-of-bounds Read in getname_kernel
#syz test https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git 3bd7d7488169
diff --git a/fs/btrfs/dev-replace.c b/fs/btrfs/dev-replace.c
index 1502d664c892..7a1d3c7a895b 100644
--- a/fs/btrfs/dev-replace.c
+++ b/fs/btrfs/dev-replace.c
@@ -741,6 +741,7 @@ int btrfs_dev_replace_by_ioctl(struct btrfs_fs_info *fs_info,
if ((args->start.srcdevid == 0 && args->start.srcdev_name[0] == '\0') ||
args->start.tgtdev_name[0] == '\0')
return -EINVAL;
+ args->start.tgtdev_name[BTRFS_PATH_NAME_MAX] = '\0';
ret = btrfs_dev_replace_start(fs_info, args->start.tgtdev_name,
args->start.srcdevid,
next prev parent reply other threads:[~2024-01-15 23:58 UTC|newest]
Thread overview: 29+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-12-18 14:43 syzbot
2023-12-19 2:44 ` Edward Adam Davis
2023-12-19 2:50 ` syzbot
2023-12-19 3:06 ` Edward Adam Davis
2023-12-19 3:25 ` syzbot
2023-12-19 4:05 ` Edward Adam Davis
2023-12-19 4:38 ` syzbot
2023-12-19 4:59 ` Edward Adam Davis
2023-12-19 7:38 ` syzbot
2023-12-19 8:23 ` Edward Adam Davis
2023-12-19 8:35 ` syzbot
2023-12-19 8:27 ` Edward Adam Davis
2023-12-19 8:46 ` syzbot
2023-12-19 9:26 ` Edward Adam Davis
2023-12-19 9:39 ` syzbot
2023-12-19 9:46 ` Edward Adam Davis
2023-12-19 10:04 ` syzbot
2023-12-19 10:19 ` [PATCH] btrfs: fix oob Read in getname_kernel Edward Adam Davis
2024-01-10 15:55 ` David Sterba
2024-01-15 19:08 ` David Sterba
2024-01-16 1:09 ` [syzbot] [btrfs?] KASAN: slab-out-of-bounds Read in getname_kernel (2) Edward Adam Davis
2024-01-17 20:08 ` David Sterba
2024-01-31 18:43 ` David Sterba
2024-01-15 23:32 ` Edward Adam Davis
2024-01-15 23:47 ` syzbot
2024-01-15 23:58 ` Edward Adam Davis [this message]
2024-01-16 0:15 ` syzbot
2024-01-16 0:46 ` Edward Adam Davis
2024-01-16 1:06 ` 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=tencent_6C6006C093630366C97083A2C44897777705@qq.com \
--to=eadavis@qq.com \
--cc=linux-kernel@vger.kernel.org \
--cc=syzbot+33f23b49ac24f986c9e8@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®