BTRFS error (device loop1): open_ctree failed BTRFS info (device loop1): disk space caching is enabled BTRFS info (device loop1): has skinny extents BTRFS info (device loop1): flagging fs with big metadata feature ================================================================== BUG: KASAN: use-after-free in btrfs_printk+0x3e6/0x468 fs/btrfs/super.c:215 Read of size 8 at addr ffff88808ad92220 by task systemd-udevd/6527 CPU: 1 PID: 6527 Comm: systemd-udevd Not tainted 4.19.147-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 Call Trace: __dump_stack lib/dump_stack.c:77 [inline] dump_stack+0x22c/0x33e lib/dump_stack.c:118 print_address_description.cold+0x56/0x25c mm/kasan/report.c:256 kasan_report_error.cold+0x66/0xb9 mm/kasan/report.c:354 kasan_report mm/kasan/report.c:412 [inline] __asan_report_load8_noabort+0x88/0x90 mm/kasan/report.c:433 btrfs_printk+0x3e6/0x468 fs/btrfs/super.c:215 device_list_add+0xa10/0x1200 fs/btrfs/volumes.c:859 btrfs_scan_one_device+0x33f/0xd70 fs/btrfs/volumes.c:1272 btrfs_control_ioctl+0x16b/0x2a0 fs/btrfs/super.c:2274 vfs_ioctl fs/ioctl.c:46 [inline] file_ioctl fs/ioctl.c:501 [inline] do_vfs_ioctl+0xcdb/0x12e0 fs/ioctl.c:688 ksys_ioctl+0x9b/0xc0 fs/ioctl.c:705 __do_sys_ioctl fs/ioctl.c:712 [inline] __se_sys_ioctl fs/ioctl.c:710 [inline] __x64_sys_ioctl+0x6f/0xb0 fs/ioctl.c:710 do_syscall_64+0xf9/0x670 arch/x86/entry/common.c:293 entry_SYSCALL_64_after_hwframe+0x49/0xbe RIP: 0033:0x7fedffe56017 Code: 00 00 00 48 8b 05 81 7e 2b 00 64 c7 00 26 00 00 00 48 c7 c0 ff ff ff ff c3 66 2e 0f 1f 84 00 00 00 00 00 b8 10 00 00 00 0f 05 <48> 3d 01 f0 ff ff 73 01 c3 48 8b 0d 51 7e 2b 00 f7 d8 64 89 01 48 RSP: 002b:00007fffc5e19998 EFLAGS: 00000246 ORIG_RAX: 0000000000000010 RAX: ffffffffffffffda RBX: 0000000000000000 RCX: 00007fedffe56017 RDX: 00007fffc5e199b0 RSI: 0000000090009427 RDI: 000000000000000f RBP: 00007fffc5e199b0 R08: 0000000000000000 R09: 0000000000000150 R10: 0000000000000001 R11: 0000000000000246 R12: 000000000000000f R13: 0000000000000000 R14: 0000560d1730d2c0 R15: 0000560d1730a910 Allocated by task 18056: __do_kmalloc_node mm/slab.c:3689 [inline] __kmalloc_node+0x4c/0x70 mm/slab.c:3696 kmalloc_node include/linux/slab.h:557 [inline] kvmalloc_node+0xb4/0xf0 mm/util.c:423 kvmalloc include/linux/mm.h:577 [inline] kvzalloc include/linux/mm.h:585 [inline] btrfs_mount_root+0x13f/0x1830 fs/btrfs/super.c:1556 mount_fs+0xa3/0x318 fs/super.c:1261 vfs_kern_mount.part.0+0x68/0x470 fs/namespace.c:961 vfs_kern_mount+0x3c/0x60 fs/namespace.c:951 btrfs_mount+0x23a/0xa93 fs/btrfs/super.c:1681 mount_fs+0xa3/0x318 fs/super.c:1261 vfs_kern_mount.part.0+0x68/0x470 fs/namespace.c:961 vfs_kern_mount fs/namespace.c:951 [inline] do_new_mount fs/namespace.c:2469 [inline] do_mount+0x51c/0x2f10 fs/namespace.c:2799 ksys_mount+0xcf/0x130 fs/namespace.c:3015 __do_sys_mount fs/namespace.c:3029 [inline] __se_sys_mount fs/namespace.c:3026 [inline] __x64_sys_mount+0xba/0x150 fs/namespace.c:3026 do_syscall_64+0xf9/0x670 arch/x86/entry/common.c:293 entry_SYSCALL_64_after_hwframe+0x49/0xbe Freed by task 18056: __cache_free mm/slab.c:3503 [inline] kfree+0xcc/0x250 mm/slab.c:3822 kvfree+0x59/0x60 mm/util.c:452 deactivate_locked_super+0x8c/0x100 fs/super.c:329 btrfs_mount_root+0x10a0/0x1830 fs/btrfs/super.c:1623 mount_fs+0xa3/0x318 fs/super.c:1261 vfs_kern_mount.part.0+0x68/0x470 fs/namespace.c:961 vfs_kern_mount+0x3c/0x60 fs/namespace.c:951 btrfs_mount+0x23a/0xa93 fs/btrfs/super.c:1681 mount_fs+0xa3/0x318 fs/super.c:1261 vfs_kern_mount.part.0+0x68/0x470 fs/namespace.c:961 vfs_kern_mount fs/namespace.c:951 [inline] do_new_mount fs/namespace.c:2469 [inline] do_mount+0x51c/0x2f10 fs/namespace.c:2799 ksys_mount+0xcf/0x130 fs/namespace.c:3015 __do_sys_mount fs/namespace.c:3029 [inline] __se_sys_mount fs/namespace.c:3026 [inline] __x64_sys_mount+0xba/0x150 fs/namespace.c:3026 do_syscall_64+0xf9/0x670 arch/x86/entry/common.c:293 entry_SYSCALL_64_after_hwframe+0x49/0xbe The buggy address belongs to the object at ffff88808ad91c00 which belongs to the cache kmalloc-16384 of size 16384 The buggy address is located 1568 bytes inside of 16384-byte region [ffff88808ad91c00, ffff88808ad95c00) The buggy address belongs to the page: page:ffffea00022b6400 count:1 mapcount:0 mapping:ffff88812c3f5200 index:0x0 compound_mapcount: 0 flags: 0xfffe0000008100(slab|head) raw: 00fffe0000008100 ffffea000212ac08 ffffea000209b208 ffff88812c3f5200 raw: 0000000000000000 ffff88808ad91c00 0000000100000001 0000000000000000 page dumped because: kasan: bad access detected Memory state around the buggy address: ffff88808ad92100: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ffff88808ad92180: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb >ffff88808ad92200: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ^ ffff88808ad92280: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ffff88808ad92300: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ==================================================================