REISERFS (device loop3): using ordered data mode reiserfs: using flush barriers REISERFS (device loop2): found reiserfs format "3.5" with non-standard journal ================================================================== BUG: KASAN: use-after-free in __mutex_lock_common kernel/locking/mutex.c:938 [inline] BUG: KASAN: use-after-free in __mutex_lock+0x10cc/0x1400 kernel/locking/mutex.c:1103 Read of size 8 at addr ffff8881cffe68b0 by task syz-executor3/4493 CPU: 1 PID: 4493 Comm: syz-executor3 Not tainted 5.6.0-rc2-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 REISERFS (device loop2): using ordered data mode Call Trace: __dump_stack lib/dump_stack.c:77 [inline] dump_stack+0x12f/0x187 lib/dump_stack.c:118 print_address_description.constprop.8+0x3b/0x60 mm/kasan/report.c:374 reiserfs: using flush barriers __kasan_report.cold.11+0x1b/0x32 mm/kasan/report.c:506 kasan_report+0x12/0x20 mm/kasan/common.c:641 __asan_report_load8_noabort+0x14/0x20 mm/kasan/generic_report.c:135 __mutex_lock_common kernel/locking/mutex.c:938 [inline] __mutex_lock+0x10cc/0x1400 kernel/locking/mutex.c:1103 mutex_lock_nested+0x16/0x20 kernel/locking/mutex.c:1118 blkdev_get+0xb2/0x230 fs/block_dev.c:1742 blkdev_get_by_dev+0x31/0x50 fs/block_dev.c:1839 journal_init_dev fs/reiserfs/journal.c:2617 [inline] journal_init+0xa28/0x6730 fs/reiserfs/journal.c:2764 reiserfs_fill_super+0x990/0x27f0 fs/reiserfs/super.c:2032 mount_bdev+0x27b/0x340 fs/super.c:1417 get_super_block+0x10/0x20 fs/reiserfs/super.c:2606 legacy_get_tree+0x103/0x1f0 fs/fs_context.c:622 vfs_get_tree+0x8b/0x2d0 fs/super.c:1547 do_new_mount fs/namespace.c:2822 [inline] do_mount+0x1285/0x1b70 fs/namespace.c:3107 __do_sys_mount fs/namespace.c:3316 [inline] __se_sys_mount fs/namespace.c:3293 [inline] __x64_sys_mount+0x169/0x1c0 fs/namespace.c:3293 do_syscall_64+0xd0/0x600 arch/x86/entry/common.c:294 entry_SYSCALL_64_after_hwframe+0x49/0xbe RIP: 0033:0x4586aa Code: b8 a6 00 00 00 0f 05 48 3d 01 f0 ff ff 0f 83 dd 8f fb ff c3 66 2e 0f 1f 84 00 00 00 00 00 66 90 49 89 ca b8 a5 00 00 00 0f 05 <48> 3d 01 f0 ff ff 0f 83 ba 8f fb ff c3 66 0f 1f 84 00 00 00 00 00 RSP: 002b:00007faff2ba3a88 EFLAGS: 00000246 ORIG_RAX: 00000000000000a5 RAX: ffffffffffffffda RBX: 0000000020000228 RCX: 00000000004586aa RDX: 00007faff2ba3ad0 RSI: 0000000020000100 RDI: 00007faff2ba3af0 RBP: 0000000000000001 R08: 00007faff2ba3b30 R09: 00007faff2ba3ad0 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000003 R13: 0000000000000001 R14: 00000000004d2f98 R15: 0000000000000000 Allocated by task 4493: save_stack+0x21/0x90 mm/kasan/common.c:72 set_track mm/kasan/common.c:80 [inline] __kasan_kmalloc.constprop.7+0xc1/0xd0 mm/kasan/common.c:515 kasan_slab_alloc+0x12/0x20 mm/kasan/common.c:523 slab_post_alloc_hook mm/slab.h:584 [inline] slab_alloc mm/slab.c:3320 [inline] kmem_cache_alloc+0x121/0x740 mm/slab.c:3484 bdev_alloc_inode+0x15/0x30 fs/block_dev.c:772 alloc_inode+0x5f/0x1a0 fs/inode.c:231 iget5_locked+0x103/0x190 fs/inode.c:1147 bdget+0x90/0x4e0 fs/block_dev.c:905 blkdev_get_by_dev+0x1b/0x50 fs/block_dev.c:1835 journal_init_dev fs/reiserfs/journal.c:2617 [inline] journal_init+0xa28/0x6730 fs/reiserfs/journal.c:2764 reiserfs_fill_super+0x990/0x27f0 fs/reiserfs/super.c:2032 mount_bdev+0x27b/0x340 fs/super.c:1417 get_super_block+0x10/0x20 fs/reiserfs/super.c:2606 legacy_get_tree+0x103/0x1f0 fs/fs_context.c:622 vfs_get_tree+0x8b/0x2d0 fs/super.c:1547 do_new_mount fs/namespace.c:2822 [inline] do_mount+0x1285/0x1b70 fs/namespace.c:3107 __do_sys_mount fs/namespace.c:3316 [inline] __se_sys_mount fs/namespace.c:3293 [inline] __x64_sys_mount+0x169/0x1c0 fs/namespace.c:3293 do_syscall_64+0xd0/0x600 arch/x86/entry/common.c:294 entry_SYSCALL_64_after_hwframe+0x49/0xbe Freed by task 6142: save_stack+0x21/0x90 mm/kasan/common.c:72 set_track mm/kasan/common.c:80 [inline] kasan_set_free_info mm/kasan/common.c:337 [inline] __kasan_slab_free+0x11a/0x170 mm/kasan/common.c:476 kasan_slab_free+0xe/0x10 mm/kasan/common.c:485 __cache_free mm/slab.c:3426 [inline] kmem_cache_free+0x86/0x2e0 mm/slab.c:3694 bdev_free_inode+0x17/0x20 fs/block_dev.c:780 i_callback+0x3f/0x70 fs/inode.c:220 rcu_do_batch kernel/rcu/tree.c:2186 [inline] rcu_core+0x59e/0x12c0 kernel/rcu/tree.c:2410 rcu_core_si+0x9/0x10 kernel/rcu/tree.c:2419 __do_softirq+0x248/0x94c kernel/softirq.c:292 The buggy address belongs to the object at ffff8881cffe6840 which belongs to the cache bdev_cache(97:syz3) of size 1352 The buggy address is located 112 bytes inside of 1352-byte region [ffff8881cffe6840, ffff8881cffe6d88) The buggy address belongs to the page: page:ffffea00073ff980 refcount:1 mapcount:0 mapping:ffff8881cbe84380 index:0xffff8881cffe6ffe flags: 0x2fffc0000000200(slab) raw: 02fffc0000000200 ffffea00073f5b48 ffffea00072dcf88 ffff8881cbe84380 raw: ffff8881cffe6ffe ffff8881cffe6240 0000000100000002 0000000000000000 page dumped because: kasan: bad access detected Memory state around the buggy address: ffff8881cffe6780: fb fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc ffff8881cffe6800: fc fc fc fc fc fc fc fc fb fb fb fb fb fb fb fb >ffff8881cffe6880: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ^ ffff8881cffe6900: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ffff8881cffe6980: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ==================================================================