From: David Sterba <dsterba@suse.cz>
To: syzbot <syzbot+9992306148b06272f3bb@syzkaller.appspotmail.com>
Cc: clm@fb.com, dsterba@suse.com, josef@toxicpanda.com,
linux-btrfs@vger.kernel.org, linux-fsdevel@vger.kernel.org,
linux-kernel@vger.kernel.org, syzkaller-bugs@googlegroups.com
Subject: Re: [syzbot] [btrfs?] WARNING in emit_fiemap_extent
Date: Wed, 21 Jun 2023 14:33:50 +0200 [thread overview]
Message-ID: <20230621123350.GP16168@twin.jikos.cz> (raw)
In-Reply-To: <00000000000091164305fe966bdd@google.com>
On Tue, Jun 20, 2023 at 02:34:46PM -0700, syzbot wrote:
> Hello,
>
> syzbot found the following issue on:
>
> HEAD commit: 40f71e7cd3c6 Merge tag 'net-6.4-rc7' of git://git.kernel.o..
> git tree: upstream
> console+strace: https://syzkaller.appspot.com/x/log.txt?x=166d2acf280000
> kernel config: https://syzkaller.appspot.com/x/.config?x=7ff8f87c7ab0e04e
> dashboard link: https://syzkaller.appspot.com/bug?extid=9992306148b06272f3bb
> compiler: Debian clang version 15.0.7, GNU ld (GNU Binutils for Debian) 2.35.2
> syz repro: https://syzkaller.appspot.com/x/repro.syz?x=10c65e87280000
> C reproducer: https://syzkaller.appspot.com/x/repro.c?x=1094a78b280000
>
> Downloadable assets:
> disk image: https://storage.googleapis.com/syzbot-assets/2dc89d5fee38/disk-40f71e7c.raw.xz
> vmlinux: https://storage.googleapis.com/syzbot-assets/0ced5a475218/vmlinux-40f71e7c.xz
> kernel image: https://storage.googleapis.com/syzbot-assets/d543a4f69684/bzImage-40f71e7c.xz
> mounted in repro: https://storage.googleapis.com/syzbot-assets/7cde8d2312ae/mount_0.gz
>
> IMPORTANT: if you fix the issue, please add the following tag to the commit:
> Reported-by: syzbot+9992306148b06272f3bb@syzkaller.appspotmail.com
>
> ------------[ cut here ]------------
> WARNING: CPU: 1 PID: 5351 at fs/btrfs/extent_io.c:2824 emit_fiemap_extent+0xee/0x410
2804 static int emit_fiemap_extent(struct fiemap_extent_info *fieinfo,
2805 struct fiemap_cache *cache,
2806 u64 offset, u64 phys, u64 len, u32 flags)
2807 {
2808 int ret = 0;
2809
2810 /* Set at the end of extent_fiemap(). */
2811 ASSERT((flags & FIEMAP_EXTENT_LAST) == 0);
2812
2813 if (!cache->cached)
2814 goto assign;
2815
2816 /*
2817 * Sanity check, extent_fiemap() should have ensured that new
2818 * fiemap extent won't overlap with cached one.
2819 * Not recoverable.
2820 *
2821 * NOTE: Physical address can overlap, due to compression
2822 */
2823 if (cache->offset + cache->len > offset) {
2824 WARN_ON(1);
2825 return -EINVAL;
2826 }
Either we can drop the warning as the error is handled, or there was
another issue that was supposed to be caught earlier.
next prev parent reply other threads:[~2023-06-21 12:40 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-06-20 21:34 syzbot
2023-06-21 12:33 ` David Sterba [this message]
2023-07-29 21:45 ` syzbot
2023-08-02 14:46 ` Aleksandr Nogikh
2024-05-16 15:04 ` David Sterba
2024-05-16 15:08 ` David Sterba
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=20230621123350.GP16168@twin.jikos.cz \
--to=dsterba@suse.cz \
--cc=clm@fb.com \
--cc=dsterba@suse.com \
--cc=josef@toxicpanda.com \
--cc=linux-btrfs@vger.kernel.org \
--cc=linux-fsdevel@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=syzbot+9992306148b06272f3bb@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®