From: syzbot <syzbot+f88e7f8eca12247510dc@syzkaller.appspotmail.com>
To: clm@fb.com, dsterba@suse.com, josef@toxicpanda.com,
linux-btrfs@vger.kernel.org, linux-kernel@vger.kernel.org,
syzkaller-bugs@googlegroups.com
Subject: [syzbot] [btrfs?] kernel BUG in can_finish_ordered_extent
Date: Sun, 25 Aug 2024 05:03:25 -0700 [thread overview]
Message-ID: <000000000000aa486f062080cb5d@google.com> (raw)
Hello,
syzbot found the following issue on:
HEAD commit: c79c85875f1a Add linux-next specific files for 20240823
git tree: linux-next
console output: https://syzkaller.appspot.com/x/log.txt?x=177d1305980000
kernel config: https://syzkaller.appspot.com/x/.config?x=23bc95d9a9b56fa4
dashboard link: https://syzkaller.appspot.com/bug?extid=f88e7f8eca12247510dc
compiler: Debian clang version 15.0.6, GNU ld (GNU Binutils for Debian) 2.40
Unfortunately, I don't have any reproducer for this issue yet.
Downloadable assets:
disk image: https://storage.googleapis.com/syzbot-assets/8bbbc2af33d9/disk-c79c8587.raw.xz
vmlinux: https://storage.googleapis.com/syzbot-assets/e25f34cd29db/vmlinux-c79c8587.xz
kernel image: https://storage.googleapis.com/syzbot-assets/1c0f92a7043e/bzImage-c79c8587.xz
IMPORTANT: if you fix the issue, please add the following tag to the commit:
Reported-by: syzbot+f88e7f8eca12247510dc@syzkaller.appspotmail.com
assertion failed: folio->mapping, in fs/btrfs/ordered-data.c:344
------------[ cut here ]------------
kernel BUG at fs/btrfs/ordered-data.c:344!
Oops: invalid opcode: 0000 [#1] PREEMPT SMP KASAN PTI
CPU: 0 UID: 0 PID: 6196 Comm: syz.0.165 Not tainted 6.11.0-rc4-next-20240823-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 08/06/2024
RIP: 0010:can_finish_ordered_extent+0x754/0x9e0 fs/btrfs/ordered-data.c:344
Code: e9 67 fe ff ff e8 ec 0c db fd 48 c7 c7 40 b1 4c 8c 48 c7 c6 a0 b7 4c 8c 48 c7 c2 00 b1 4c 8c b9 58 01 00 00 e8 2d 4b 03 08 90 <0f> 0b e8 c5 0c db fd 48 c7 c7 40 b1 4c 8c 48 c7 c6 c0 b7 4c 8c 48
RSP: 0018:ffffc900044de910 EFLAGS: 00010046
RAX: 0000000000000040 RBX: dffffc0000000000 RCX: 41dea3a3101c9000
RDX: ffffc90015fb6000 RSI: 0000000000012a7e RDI: 0000000000012a7f
RBP: ffffea00016e4118 R08: ffffffff817452ac R09: 1ffff1101720519a
R10: dffffc0000000000 R11: ffffed101720519b R12: ffff88805e540000
R13: 0000000000000000 R14: ffff88805e540000 R15: ffffea00016e4100
FS: 00007f3e249ff6c0(0000) GS:ffff8880b9000000(0000) knlGS:0000000000000000
CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 000055edd8a65b40 CR3: 000000002044e000 CR4: 00000000003506f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
<TASK>
btrfs_finish_ordered_extent+0x140/0x480 fs/btrfs/ordered-data.c:410
end_bbio_data_write+0x4bd/0x750 fs/btrfs/extent_io.c:476
__btrfs_bio_end_io fs/btrfs/bio.c:116 [inline]
btrfs_orig_bbio_end_io+0x3ba/0x470 fs/btrfs/bio.c:162
btrfs_submit_chunk fs/btrfs/bio.c:756 [inline]
btrfs_submit_bio+0x11fc/0x1940 fs/btrfs/bio.c:775
submit_one_bio+0x115/0x1c0 fs/btrfs/extent_io.c:120
submit_extent_folio+0xad3/0xe90
submit_one_sector fs/btrfs/extent_io.c:1315 [inline]
__extent_writepage_io+0x84e/0xc90 fs/btrfs/extent_io.c:1391
__extent_writepage fs/btrfs/extent_io.c:1457 [inline]
extent_write_cache_pages fs/btrfs/extent_io.c:2125 [inline]
btrfs_writepages+0x1132/0x22a0 fs/btrfs/extent_io.c:2251
do_writepages+0x35d/0x870 mm/page-writeback.c:2683
filemap_fdatawrite_wbc+0x125/0x180 mm/filemap.c:398
__filemap_fdatawrite_range mm/filemap.c:431 [inline]
filemap_fdatawrite_range+0x11a/0x180 mm/filemap.c:449
btrfs_fdatawrite_range fs/btrfs/file.c:3778 [inline]
start_ordered_ops fs/btrfs/file.c:1546 [inline]
btrfs_sync_file+0x31d/0x10f0 fs/btrfs/file.c:1623
generic_write_sync include/linux/fs.h:2850 [inline]
btrfs_do_write_iter+0x5e2/0x760 fs/btrfs/file.c:1498
do_iter_readv_writev+0x609/0x890
vfs_writev+0x37c/0xbb0 fs/read_write.c:971
do_pwritev fs/read_write.c:1072 [inline]
__do_sys_pwritev2 fs/read_write.c:1131 [inline]
__se_sys_pwritev2+0x1ca/0x2d0 fs/read_write.c:1122
do_syscall_x64 arch/x86/entry/common.c:52 [inline]
do_syscall_64+0xf3/0x230 arch/x86/entry/common.c:83
entry_SYSCALL_64_after_hwframe+0x77/0x7f
RIP: 0033:0x7f3e24f79e79
Code: ff ff c3 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 40 00 48 89 f8 48 89 f7 48 89 d6 48 89 ca 4d 89 c2 4d 89 c8 4c 8b 4c 24 08 0f 05 <48> 3d 01 f0 ff ff 73 01 c3 48 c7 c1 a8 ff ff ff f7 d8 64 89 01 48
RSP: 002b:00007f3e249ff038 EFLAGS: 00000246 ORIG_RAX: 0000000000000148
RAX: ffffffffffffffda RBX: 00007f3e25115f80 RCX: 00007f3e24f79e79
RDX: 0000000000000001 RSI: 0000000020000100 RDI: 0000000000000006
RBP: 00007f3e24fe793e R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000005412 R11: 0000000000000246 R12: 0000000000000000
R13: 0000000000000000 R14: 00007f3e25115f80 R15: 00007ffda8678c38
</TASK>
Modules linked in:
---[ end trace 0000000000000000 ]---
RIP: 0010:can_finish_ordered_extent+0x754/0x9e0 fs/btrfs/ordered-data.c:344
Code: e9 67 fe ff ff e8 ec 0c db fd 48 c7 c7 40 b1 4c 8c 48 c7 c6 a0 b7 4c 8c 48 c7 c2 00 b1 4c 8c b9 58 01 00 00 e8 2d 4b 03 08 90 <0f> 0b e8 c5 0c db fd 48 c7 c7 40 b1 4c 8c 48 c7 c6 c0 b7 4c 8c 48
RSP: 0018:ffffc900044de910 EFLAGS: 00010046
RAX: 0000000000000040 RBX: dffffc0000000000 RCX: 41dea3a3101c9000
RDX: ffffc90015fb6000 RSI: 0000000000012a7e RDI: 0000000000012a7f
RBP: ffffea00016e4118 R08: ffffffff817452ac R09: 1ffff1101720519a
R10: dffffc0000000000 R11: ffffed101720519b R12: ffff88805e540000
R13: 0000000000000000 R14: ffff88805e540000 R15: ffffea00016e4100
FS: 00007f3e249ff6c0(0000) GS:ffff8880b9000000(0000) knlGS:0000000000000000
CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 000055edd8a65b40 CR3: 000000002044e000 CR4: 00000000003506f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
---
This report is generated by a bot. It may contain errors.
See https://goo.gl/tpsmEJ for more information about syzbot.
syzbot engineers can be reached at syzkaller@googlegroups.com.
syzbot will keep track of this issue. See:
https://goo.gl/tpsmEJ#status for how to communicate with syzbot.
If the report is already addressed, let syzbot know by replying with:
#syz fix: exact-commit-title
If you want to overwrite report's subsystems, reply with:
#syz set subsystems: new-subsystem
(See the list of subsystem names on the web dashboard)
If the report is a duplicate of another one, reply with:
#syz dup: exact-subject-of-another-report
If you want to undo deduplication, reply with:
#syz undup
next reply other threads:[~2024-08-25 12:03 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-08-25 12:03 syzbot [this message]
2024-08-26 15:17 ` [syzbot] [btrfs?] kernel BUG in can_finish_ordered_extent 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=000000000000aa486f062080cb5d@google.com \
--to=syzbot+f88e7f8eca12247510dc@syzkaller.appspotmail.com \
--cc=clm@fb.com \
--cc=dsterba@suse.com \
--cc=josef@toxicpanda.com \
--cc=linux-btrfs@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.