mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Zhao Mengmeng <zhaomzhao@126.com>
To: syzbot+f8c98a50c323635be65d@syzkaller.appspotmail.com
Cc: kent.overstreet@linux.dev, linux-bcachefs@vger.kernel.org,
	linux-kernel@vger.kernel.org, syzkaller-bugs@googlegroups.com
Subject: Re: [syzbot] [bcachefs?] UBSAN: shift-out-of-bounds in bch2_stripe_to_text
Date: Fri, 27 Sep 2024 11:39:31 +0800	[thread overview]
Message-ID: <ff3f13ee-2356-4731-8534-5813800f3757@126.com> (raw)
In-Reply-To: <66f4dcd2.050a0220.211276.003a.GAE@google.com>

[-- Attachment #1: Type: text/plain, Size: 88 bytes --]

#syz test: git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git 1ec6d097897a

[-- Attachment #2: test.patch --]
[-- Type: text/x-patch, Size: 520 bytes --]

diff --git a/fs/bcachefs/ec.c b/fs/bcachefs/ec.c
index 141a4c63142f..2d5cd9d837f2 100644
--- a/fs/bcachefs/ec.c
+++ b/fs/bcachefs/ec.c
@@ -144,7 +144,7 @@ void bch2_stripe_to_text(struct printbuf *out, struct bch_fs *c,
 		   nr_data,
 		   s.nr_redundant);
 	bch2_prt_csum_type(out, s.csum_type);
-	prt_printf(out, " gran %u", 1U << s.csum_granularity_bits);
+	prt_printf(out, " gran 1<<%u", s.csum_granularity_bits);
 
 	for (unsigned i = 0; i < s.nr_blocks; i++) {
 		const struct bch_extent_ptr *ptr = sp->ptrs + i;

  parent reply	other threads:[~2024-09-27  3:55 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-09-26  4:02 syzbot
2024-09-27  2:53 ` Zhao Mengmeng
2024-09-27  3:15   ` syzbot
2024-09-27  3:39 ` Zhao Mengmeng [this message]
2024-09-27  4:00   ` syzbot
2024-09-27  4:43 ` Zhao Mengmeng
2024-09-27  5:04   ` syzbot
2024-10-08  8:12 ` Zhao Mengmeng
2024-10-08  8:29   ` syzbot
2024-10-08  8:14 ` Zhao Mengmeng
2024-10-08  8:50   ` syzbot
2024-10-09  3:27 ` Zhao Mengmeng
2024-10-09  3:50   ` 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=ff3f13ee-2356-4731-8534-5813800f3757@126.com \
    --to=zhaomzhao@126.com \
    --cc=kent.overstreet@linux.dev \
    --cc=linux-bcachefs@vger.kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=syzbot+f8c98a50c323635be65d@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®