loop0: detected capacity change from 0 to 262144 ======================================================= WARNING: The mand mount option has been deprecated and and is ignored by this kernel. Remove the mand option from the mount to silence this warning. ======================================================= BTRFS: device fsid 7e32c2af-f87a-45a1-bcba-64dea7c56a53 devid 1 transid 8 /dev/loop0 (7:0) scanned by syz.0.0 (5320) BTRFS info (device loop0): first mount of filesystem 7e32c2af-f87a-45a1-bcba-64dea7c56a53 BTRFS info (device loop0): using xxhash64 (xxhash64-generic) checksum algorithm BTRFS info (device loop0): enabling ssd optimizations BTRFS info (device loop0): enabling free space tree BTRFS info (device loop0): scrub: started on devid 1 assertion failed: !folio_test_partial_kmap(folio) :: 0, in fs/btrfs/scrub.c:697 ------------[ cut here ]------------ kernel BUG at fs/btrfs/scrub.c:697! Oops: invalid opcode: 0000 [#1] SMP KASAN NOPTI CPU: 0 UID: 0 PID: 5320 Comm: syz.0.0 Not tainted syzkaller #0 PREEMPT(full) Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2~bpo12+1 04/01/2014 RIP: 0010:scrub_stripe_get_kaddr+0x1bb/0x1c0 fs/btrfs/scrub.c:697 Code: 0f 0b e8 d8 dc d8 fd 48 c7 c7 e0 f2 af 8b 48 c7 c6 20 05 b0 8b 31 d2 48 c7 c1 a0 f3 af 8b 41 b8 b9 02 00 00 e8 76 1a 40 fd 90 <0f> 0b 0f 1f 00 90 90 90 90 90 90 90 90 90 90 90 90 90 90 90 90 f3 RSP: 0018:ffffc9000d46f0d0 EFLAGS: 00010246 RAX: 000000000000004f RBX: ffff888041ea0010 RCX: 0d9be792d3a1dd00 RDX: ffffc9000dd2a000 RSI: 000000000001ec92 RDI: 000000000001ec93 RBP: 000000000000000c R08: ffffc9000d46ede7 R09: 1ffff92001a8ddbc R10: dffffc0000000000 R11: fffff52001a8ddbd R12: dffffc0000000000 R13: dffffc0000000000 R14: ffff888041ea0010 R15: 000000000000000c FS: 00007fae749f56c0(0000) GS:ffff88808d301000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00005582955a45f8 CR3: 00000000429ba000 CR4: 0000000000352ef0 Call Trace: scrub_bio_add_sector fs/btrfs/scrub.c:932 [inline] scrub_submit_initial_read+0xf21/0x1120 fs/btrfs/scrub.c:1897 submit_initial_group_read+0x423/0x5b0 fs/btrfs/scrub.c:1952 flush_scrub_stripes+0x18f/0x1150 fs/btrfs/scrub.c:1973 scrub_stripe+0xbea/0x2a30 fs/btrfs/scrub.c:2516 scrub_chunk+0x2a3/0x430 fs/btrfs/scrub.c:2575 scrub_enumerate_chunks+0xa70/0x1350 fs/btrfs/scrub.c:2839 btrfs_scrub_dev+0x6e7/0x10e0 fs/btrfs/scrub.c:3153 btrfs_ioctl_scrub+0x249/0x4b0 fs/btrfs/ioctl.c:3163 vfs_ioctl fs/ioctl.c:51 [inline] __do_sys_ioctl fs/ioctl.c:597 [inline] __se_sys_ioctl+0xfc/0x170 fs/ioctl.c:583 do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline] do_syscall_64+0xfa/0xfa0 arch/x86/entry/syscall_64.c:94 entry_SYSCALL_64_after_hwframe+0x77/0x7f RIP: 0033:0x7fae7858eec9 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:00007fae749f5038 EFLAGS: 00000246 ORIG_RAX: 0000000000000010 RAX: ffffffffffffffda RBX: 00007fae787e5fa0 RCX: 00007fae7858eec9 RDX: 0000200000000000 RSI: 00000000c400941b RDI: 0000000000000004 RBP: 00007fae78611f91 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 00007fae787e6038 R14: 00007fae787e5fa0 R15: 00007ffc3ce26ab8 Modules linked in: ---[ end trace 0000000000000000 ]--- RIP: 0010:scrub_stripe_get_kaddr+0x1bb/0x1c0 fs/btrfs/scrub.c:697 Code: 0f 0b e8 d8 dc d8 fd 48 c7 c7 e0 f2 af 8b 48 c7 c6 20 05 b0 8b 31 d2 48 c7 c1 a0 f3 af 8b 41 b8 b9 02 00 00 e8 76 1a 40 fd 90 <0f> 0b 0f 1f 00 90 90 90 90 90 90 90 90 90 90 90 90 90 90 90 90 f3 RSP: 0018:ffffc9000d46f0d0 EFLAGS: 00010246 RAX: 000000000000004f RBX: ffff888041ea0010 RCX: 0d9be792d3a1dd00 RDX: ffffc9000dd2a000 RSI: 000000000001ec92 RDI: 000000000001ec93 RBP: 000000000000000c R08: ffffc9000d46ede7 R09: 1ffff92001a8ddbc R10: dffffc0000000000 R11: fffff52001a8ddbd R12: dffffc0000000000 R13: dffffc0000000000 R14: ffff888041ea0010 R15: 000000000000000c FS: 00007fae749f56c0(0000) GS:ffff88808d301000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00005625a3c390c8 CR3: 00000000429ba000 CR4: 0000000000352ef0