From: Edward Adam Davis <eadavis@qq.com>
To: syzbot+9f6d080dece587cfdd4c@syzkaller.appspotmail.com
Cc: linux-kernel@vger.kernel.org, syzkaller-bugs@googlegroups.com
Subject: Re: [syzbot] [xfs?] KASAN: slab-out-of-bounds Read in xlog_cksum
Date: Wed, 5 Mar 2025 20:08:18 +0800 [thread overview]
Message-ID: <tencent_7BFC4CBAA7D1C6F652C1C660898EEEF5EE06@qq.com> (raw)
In-Reply-To: <67c72724.050a0220.38b91b.0244.GAE@google.com>
#syz test
diff --git a/fs/xfs/xfs_log.c b/fs/xfs/xfs_log.c
index f8851ff835de..6b7eee3c9f7f 100644
--- a/fs/xfs/xfs_log.c
+++ b/fs/xfs/xfs_log.c
@@ -1583,6 +1583,7 @@ xlog_cksum(
int xheads;
xheads = DIV_ROUND_UP(size, XLOG_HEADER_CYCLE_SIZE);
+ printk("xheads: %d, size: %d, %s\n", xheads, size, __func__);
for (i = 1; i < xheads; i++) {
crc = crc32c(crc, &xhdr[i].hic_xheader,
diff --git a/fs/xfs/xfs_log_recover.c b/fs/xfs/xfs_log_recover.c
index b3c27dbccce8..257abbe9c3fa 100644
--- a/fs/xfs/xfs_log_recover.c
+++ b/fs/xfs/xfs_log_recover.c
@@ -2969,6 +2969,7 @@ xlog_valid_rec_header(
* and h_len must not be greater than LR buffer size.
*/
hlen = be32_to_cpu(rhead->h_len);
+ printk("hlen: %d, bufsize: %d, %s\n", hlen, bufsize, __func__);
if (XFS_IS_CORRUPT(log->l_mp, hlen <= 0 || hlen > bufsize))
return -EFSCORRUPTED;
next prev parent reply other threads:[~2025-03-05 12:14 UTC|newest]
Thread overview: 22+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-03-04 16:15 syzbot
2025-03-05 1:53 ` Edward Adam Davis
2025-03-05 2:14 ` syzbot
2025-03-05 3:20 ` Eric Biggers
2025-03-05 12:08 ` Edward Adam Davis [this message]
2025-03-05 12:28 ` syzbot
2025-03-13 4:06 ` Julian Sun
2025-03-13 4:06 ` syzbot
2025-03-13 4:12 ` Julian Sun
2025-03-13 4:29 ` syzbot
2025-11-12 1:09 ` Forwarded: test fix syzbot
2025-11-12 16:38 ` syzbot
2025-11-12 17:27 ` syzbot
2025-11-13 3:49 ` syzbot
2025-11-19 1:45 ` syzbot
2025-11-24 0:39 ` syzbot
[not found] <aRPePxH1_OtOKcM3@rpthibeault-XPS-13-9305>
2025-11-12 1:39 ` [syzbot] [xfs?] KASAN: slab-out-of-bounds Read in xlog_cksum syzbot
[not found] <aRS3-Fgb94VD7Msl@rpthibeault-XPS-13-9305>
2025-11-12 17:16 ` syzbot
[not found] <aRTDbeqyL7YhIyKf@rpthibeault-XPS-13-9305>
2025-11-12 18:13 ` syzbot
[not found] <aRVVLrFguzGI0Kbq@rpthibeault-XPS-13-9305>
2025-11-13 4:20 ` syzbot
[not found] <aR0hHnmp2lT9dDxq@rpthibeault-XPS-13-9305>
2025-11-19 2:09 ` syzbot
[not found] <aSOpTDNf0Zn3FpSl@rpthibeault-XPS-13-9305>
2025-11-24 1:21 ` 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_7BFC4CBAA7D1C6F652C1C660898EEEF5EE06@qq.com \
--to=eadavis@qq.com \
--cc=linux-kernel@vger.kernel.org \
--cc=syzbot+9f6d080dece587cfdd4c@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®