From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 1E4EEC46467 for ; Wed, 11 Jan 2023 10:52:14 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232763AbjAKKwM (ORCPT ); Wed, 11 Jan 2023 05:52:12 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36248 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235666AbjAKKvs (ORCPT ); Wed, 11 Jan 2023 05:51:48 -0500 Received: from mail-il1-f199.google.com (mail-il1-f199.google.com [209.85.166.199]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B8D6F200E for ; Wed, 11 Jan 2023 02:51:47 -0800 (PST) Received: by mail-il1-f199.google.com with SMTP id z8-20020a056e02088800b0030c247efc7dso10585877ils.15 for ; Wed, 11 Jan 2023 02:51:47 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=to:from:subject:message-id:date:mime-version:x-gm-message-state :from:to:cc:subject:date:message-id:reply-to; bh=PuBRYIvom7mS4Ac9wn0/HMLBW0OGLlFTy8/iEDjPDeE=; b=RIp9Nu98E7jEfu0WWOK8lGsZcV3t1IHaXTymw+FtkZmdGSbz4kFZRzfGL+Ss9jFtSo 9bG2m+turBaQZZUdRQQZyZFrbS1Ax3mZF8A6WIv3FCKjoED7W9ytCda0e07+kRXI9WyO jaJSUajRNxdUHldPGzoKJ2rgRDoyDjcGXh/MfViAxzPEMGxc5VTOblXxcVo3eS8rzBBy d2KX7HG0hDu7zfvG+jw7+InnLbhXP0HfCxu0SqCyYThGZOEL4m53dHbrQMbkvOp7QRAY jBkK0a3MXmo0kanPK5oaS+dM1ZYB7560d5Kxn/BajMS7LYUJksf5nVubyHIg2b7cQdIP udUg== X-Gm-Message-State: AFqh2kqgmJEpVlg7Ia+LVZCDNp5Ik1FzqVFYxmTYvTXwVF53BTqSBB86 pYAPzOectVmIBpwkmxJ+J1QHOGXnriN5sCDLZuGLuNi2hB0/ X-Google-Smtp-Source: AMrXdXtzKG31e4C/I4hJQPawIibiSyzlyVPf32wktwSRxl+wNwgv040Z/cjlhxn49YUEs6IEGiotbx+pAQSM1BEGFeGJQQIVzVmb MIME-Version: 1.0 X-Received: by 2002:a05:6638:292:b0:38a:3cc1:130a with SMTP id c18-20020a056638029200b0038a3cc1130amr5773380jaq.314.1673434307093; Wed, 11 Jan 2023 02:51:47 -0800 (PST) Date: Wed, 11 Jan 2023 02:51:47 -0800 X-Google-Appengine-App-Id: s~syzkaller X-Google-Appengine-App-Id-Alias: syzkaller Message-ID: <0000000000006deae405f1fac97a@google.com> Subject: [syzbot] [btrfs?] kernel BUG in __set_extent_bit From: syzbot To: clm@fb.com, dsterba@suse.com, josef@toxicpanda.com, linux-btrfs@vger.kernel.org, linux-kernel@vger.kernel.org, syzkaller-bugs@googlegroups.com Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-btrfs@vger.kernel.org Hello, syzbot found the following issue on: HEAD commit: 358a161a6a9e Merge branch 'for-next/fixes' into for-kernelci git tree: git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci console output: https://syzkaller.appspot.com/x/log.txt?x=12115e1c480000 kernel config: https://syzkaller.appspot.com/x/.config?x=2573056c6a11f00d dashboard link: https://syzkaller.appspot.com/bug?extid=89700d262ed1fb9f9351 compiler: Debian clang version 13.0.1-++20220126092033+75e33f71c2da-1~exp1~20220126212112.63, GNU ld (GNU Binutils for Debian) 2.35.2 userspace arch: arm64 syz repro: https://syzkaller.appspot.com/x/repro.syz?x=13abc0a6480000 C reproducer: https://syzkaller.appspot.com/x/repro.c?x=1153e53c480000 Downloadable assets: disk image: https://storage.googleapis.com/syzbot-assets/99d14e0f4c19/disk-358a161a.raw.xz vmlinux: https://storage.googleapis.com/syzbot-assets/23275b612976/vmlinux-358a161a.xz kernel image: https://storage.googleapis.com/syzbot-assets/ed79195fac61/Image-358a161a.gz.xz mounted in repro: https://storage.googleapis.com/syzbot-assets/fdb7b054a0c8/mount_0.gz IMPORTANT: if you fix the issue, please add the following tag to the commit: Reported-by: syzbot+89700d262ed1fb9f9351@syzkaller.appspotmail.com __invoke_syscall arch/arm64/kernel/syscall.c:38 [inline] invoke_syscall arch/arm64/kernel/syscall.c:52 [inline] el0_svc_common+0x138/0x220 arch/arm64/kernel/syscall.c:142 do_el0_svc+0x48/0x140 arch/arm64/kernel/syscall.c:197 el0_svc+0x58/0x150 arch/arm64/kernel/entry-common.c:637 el0t_64_sync_handler+0x84/0xf0 arch/arm64/kernel/entry-common.c:655 el0t_64_sync+0x190/0x194 arch/arm64/kernel/entry.S:584 ------------[ cut here ]------------ kernel BUG at fs/btrfs/extent-io-tree.c:379! Internal error: Oops - BUG: 00000000f2000800 [#1] PREEMPT SMP Modules linked in: CPU: 0 PID: 4396 Comm: syz-executor224 Not tainted 6.2.0-rc3-syzkaller-16369-g358a161a6a9e #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 10/26/2022 pstate: 80400005 (Nzcv daif +PAN -UAO -TCO -DIT -SSBS BTYPE=--) pc : set_state_bits fs/btrfs/extent-io-tree.c:379 [inline] pc : __set_extent_bit+0x10c0/0x1174 fs/btrfs/extent-io-tree.c:1042 lr : set_state_bits fs/btrfs/extent-io-tree.c:379 [inline] lr : __set_extent_bit+0x10c0/0x1174 fs/btrfs/extent-io-tree.c:1042 sp : ffff80000feab890 x29: ffff80000feab910 x28: ffff0000cafd9330 x27: ffff0000c9e6e300 x26: 0000000000000800 x25: 0000000000000000 x24: 000000000000ffff x23: 000000000000ffff x22: ffff0000cafd9310 x21: 00000000fffffff4 x20: ffff0000cafd9310 x19: ffff0000c9e6e180 x18: 00000000000000c0 x17: 6e69676e45206574 x16: ffff80000dd86118 x15: ffff0000c4c30000 x14: 0000000000000000 x13: 00000000ffffffff x12: ffff0000c4c30000 x11: ff80800009263dec x10: 0000000000000000 x9 : ffff800009263dec x8 : ffff0000c4c30000 x7 : ffff80000c11ee8c x6 : 0000000000000000 x5 : 00000000ffffffff x4 : 0000000000000a20 x3 : 0000000000000080 x2 : 0000000000000038 x1 : 00000000fffffff4 x0 : 0000000000000000 Call trace: set_state_bits fs/btrfs/extent-io-tree.c:379 [inline] __set_extent_bit+0x10c0/0x1174 fs/btrfs/extent-io-tree.c:1042 set_record_extent_bits+0x74/0xb0 fs/btrfs/extent-io-tree.c:1690 qgroup_reserve_data+0x134/0x374 fs/btrfs/qgroup.c:3758 btrfs_qgroup_reserve_data+0x40/0xd0 fs/btrfs/qgroup.c:3801 btrfs_zero_range+0x638/0x8c0 fs/btrfs/file.c:2997 btrfs_fallocate+0x584/0xdd0 fs/btrfs/file.c:3114 vfs_fallocate+0x328/0x38c fs/open.c:323 ioctl_preallocate+0x16c/0x1bc fs/ioctl.c:290 do_vfs_ioctl+0x123c/0x16a4 fs/ioctl.c:849 __do_sys_ioctl fs/ioctl.c:868 [inline] __se_sys_ioctl fs/ioctl.c:856 [inline] __arm64_sys_ioctl+0x98/0x140 fs/ioctl.c:856 __invoke_syscall arch/arm64/kernel/syscall.c:38 [inline] invoke_syscall arch/arm64/kernel/syscall.c:52 [inline] el0_svc_common+0x138/0x220 arch/arm64/kernel/syscall.c:142 do_el0_svc+0x48/0x140 arch/arm64/kernel/syscall.c:197 el0_svc+0x58/0x150 arch/arm64/kernel/entry-common.c:637 el0t_64_sync_handler+0x84/0xf0 arch/arm64/kernel/entry-common.c:655 el0t_64_sync+0x190/0x194 arch/arm64/kernel/entry.S:584 Code: d4210000 97c12b8e d4210000 97c12b8c (d4210000) ---[ end trace 0000000000000000 ]--- --- 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. syzbot can test patches for this issue, for details see: https://goo.gl/tpsmEJ#testing-patches