BTRFS: device fsid d4515e72-4b5f-44ec-805d-b3edf811e7f1 devid 1 transid 8 /dev/loop2 scanned by syz-executor.2 (7200) BTRFS info (device loop2): using xxhash64 (xxhash64-generic) checksum algorithm BTRFS info (device loop2): using free space tree BTRFS info (device loop2): enabling ssd optimizations BTRFS info (device loop2): auto enabling async discard ------------[ cut here ]------------ WARNING: CPU: 0 PID: 7200 at fs/read_write.c:414 __kernel_read+0x787/0x8a0 Modules linked in: CPU: 0 PID: 7200 Comm: syz-executor.2 Not tainted 6.3.0-rc2-syzkaller-00047-g6015b1aca1a2 #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 03/02/2023 RIP: 0010:__kernel_read+0x787/0x8a0 fs/read_write.c:414 Code: 25 28 00 00 00 48 3b 84 24 40 01 00 00 0f 85 29 01 00 00 4c 89 f0 48 8d 65 d8 5b 41 5c 41 5d 41 5e 41 5f 5d c3 e8 e9 6c 9b ff <0f> 0b 49 c7 c6 ea ff ff ff eb 9d e8 d9 6c 9b ff 49 bd 00 00 00 00 RSP: 0018:ffffc9000340f820 EFLAGS: 00010287 RAX: ffffffff81ef0037 RBX: 00000000c848801c RCX: 0000000000040000 RDX: ffffc9000570a000 RSI: 00000000000025d0 RDI: 00000000000025d1 RBP: ffffc9000340f9b0 R08: ffffffff81eefa28 R09: ffffc9000340f910 R10: 0000000000000000 R11: dffffc0000000001 R12: 1ffff92000681f1c R13: dffffc0000000000 R14: ffffc9000340f8e0 R15: 1ffff92000681f10 FS: 00007f46f5f38700(0000) GS:ffff8880b9800000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 0000001b32623000 CR3: 000000002e5a7000 CR4: 00000000003506f0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: build_merkle_tree fs/verity/enable.c:112 [inline] enable_verity+0xa7e/0x1ea0 fs/verity/enable.c:251 fsverity_ioctl_enable+0x430/0x5d0 fs/verity/enable.c:369 btrfs_ioctl+0xb41/0xd40 fs/btrfs/ioctl.c:4671 vfs_ioctl fs/ioctl.c:51 [inline] __do_sys_ioctl fs/ioctl.c:870 [inline] __se_sys_ioctl+0xf1/0x160 fs/ioctl.c:856 do_syscall_x64 arch/x86/entry/common.c:50 [inline] do_syscall_64+0x41/0xc0 arch/x86/entry/common.c:80 entry_SYSCALL_64_after_hwframe+0x63/0xcd RIP: 0033:0x7f46f528c0f9 Code: 28 00 00 00 75 05 48 83 c4 28 c3 e8 f1 19 00 00 90 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 b8 ff ff ff f7 d8 64 89 01 48 RSP: 002b:00007f46f5f38168 EFLAGS: 00000246 ORIG_RAX: 0000000000000010 RAX: ffffffffffffffda RBX: 00007f46f53abf80 RCX: 00007f46f528c0f9 RDX: 00000000200003c0 RSI: 0000000040806685 RDI: 0000000000000005 RBP: 00007f46f52e7b39 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 00007ffc35eb2f3f R14: 00007f46f5f38300 R15: 0000000000022000