REISERFS (device loop5): using ordered data mode reiserfs: using flush barriers ================================================================== BUG: KASAN: use-after-free in __lock_acquire+0x3829/0x5020 kernel/locking/lockdep.c:3314 Read of size 8 at addr ffff8801889a88f8 by task syz-executor5/18276 CPU: 0 PID: 18276 Comm: syz-executor5 Not tainted 4.18.0+ #187 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+0x1c9/0x2b4 lib/dump_stack.c:113 print_address_description+0x6c/0x20b mm/kasan/report.c:256 kasan_report_error mm/kasan/report.c:354 [inline] kasan_report.cold.7+0x242/0x2fe mm/kasan/report.c:412 __asan_report_load8_noabort+0x14/0x20 mm/kasan/report.c:433 __lock_acquire+0x3829/0x5020 kernel/locking/lockdep.c:3314 lock_acquire+0x1e4/0x540 kernel/locking/lockdep.c:3924 __mutex_lock_common kernel/locking/mutex.c:757 [inline] __mutex_lock+0x17f/0x18a0 kernel/locking/mutex.c:894 mutex_lock_nested+0x16/0x20 kernel/locking/mutex.c:909 blkdev_get+0x5f2/0xb50 fs/block_dev.c:1621 blkdev_get_by_dev+0x3f/0x80 fs/block_dev.c:1737 journal_init_dev fs/reiserfs/journal.c:2628 [inline] journal_init+0xcad/0x6a20 fs/reiserfs/journal.c:2775 reiserfs_fill_super+0xd74/0x3930 fs/reiserfs/super.c:2034 mount_bdev+0x30c/0x3e0 fs/super.c:1174 get_super_block+0x34/0x40 fs/reiserfs/super.c:2605 mount_fs+0xae/0x328 fs/super.c:1277 vfs_kern_mount.part.34+0xdc/0x4e0 fs/namespace.c:1046 vfs_kern_mount fs/namespace.c:1036 [inline] do_new_mount fs/namespace.c:2542 [inline] do_mount+0x581/0x30e0 fs/namespace.c:2872 ksys_mount+0x12d/0x140 fs/namespace.c:3088 __do_sys_mount fs/namespace.c:3102 [inline] __se_sys_mount fs/namespace.c:3099 [inline] __x64_sys_mount+0xbe/0x150 fs/namespace.c:3099 do_syscall_64+0x1b9/0x820 arch/x86/entry/common.c:290 entry_SYSCALL_64_after_hwframe+0x49/0xbe RIP: 0033:0x459aba Code: b8 a6 00 00 00 0f 05 48 3d 01 f0 ff ff 0f 83 bd 8a 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 9a 8a fb ff c3 66 0f 1f 84 00 00 00 00 00 RSP: 002b:00007f27ba81aa88 EFLAGS: 00000206 ORIG_RAX: 00000000000000a5 RAX: ffffffffffffffda RBX: 00007f27ba81ab30 RCX: 0000000000459aba RDX: 00007f27ba81aad0 RSI: 0000000020000040 RDI: 00007f27ba81aaf0 RBP: 0000000020000040 R08: 00007f27ba81ab30 R09: 00007f27ba81aad0 R10: 0000000000000000 R11: 0000000000000206 R12: 0000000000000003 R13: 0000000000000000 R14: 00000000004c9b59 R15: 0000000000000000 Allocated by task 18276: save_stack+0x43/0xd0 mm/kasan/kasan.c:448 set_track mm/kasan/kasan.c:460 [inline] kasan_kmalloc+0xc4/0xe0 mm/kasan/kasan.c:553 kasan_slab_alloc+0x12/0x20 mm/kasan/kasan.c:490 kmem_cache_alloc+0x12e/0x760 mm/slab.c:3554 bdev_alloc_inode+0x1b/0x40 fs/block_dev.c:728 alloc_inode+0x63/0x190 fs/inode.c:210 new_inode_pseudo+0x71/0x1a0 fs/inode.c:895 new_inode+0x1c/0x40 fs/inode.c:924 iget5_locked+0x126/0x190 fs/inode.c:1097 bdget+0xb7/0x5d0 fs/block_dev.c:869 blkdev_get_by_dev+0x24/0x80 fs/block_dev.c:1733 journal_init_dev fs/reiserfs/journal.c:2628 [inline] journal_init+0xcad/0x6a20 fs/reiserfs/journal.c:2775 reiserfs_fill_super+0xd74/0x3930 fs/reiserfs/super.c:2034 mount_bdev+0x30c/0x3e0 fs/super.c:1174 get_super_block+0x34/0x40 fs/reiserfs/super.c:2605 mount_fs+0xae/0x328 fs/super.c:1277 vfs_kern_mount.part.34+0xdc/0x4e0 fs/namespace.c:1046 vfs_kern_mount fs/namespace.c:1036 [inline] do_new_mount fs/namespace.c:2542 [inline] do_mount+0x581/0x30e0 fs/namespace.c:2872 ksys_mount+0x12d/0x140 fs/namespace.c:3088 __do_sys_mount fs/namespace.c:3102 [inline] __se_sys_mount fs/namespace.c:3099 [inline] __x64_sys_mount+0xbe/0x150 fs/namespace.c:3099 do_syscall_64+0x1b9/0x820 arch/x86/entry/common.c:290 entry_SYSCALL_64_after_hwframe+0x49/0xbe Freed by task 18270: save_stack+0x43/0xd0 mm/kasan/kasan.c:448 set_track mm/kasan/kasan.c:460 [inline] __kasan_slab_free+0x11a/0x170 mm/kasan/kasan.c:521 kasan_slab_free+0xe/0x10 mm/kasan/kasan.c:528 __cache_free mm/slab.c:3498 [inline] kmem_cache_free+0x86/0x2d0 mm/slab.c:3756 bdev_i_callback+0x20/0x30 fs/block_dev.c:739 __rcu_reclaim kernel/rcu/rcu.h:236 [inline] rcu_do_batch kernel/rcu/tree.c:2576 [inline] invoke_rcu_callbacks kernel/rcu/tree.c:2880 [inline] __rcu_process_callbacks kernel/rcu/tree.c:2847 [inline] rcu_process_callbacks+0xf98/0x2860 kernel/rcu/tree.c:2864 __do_softirq+0x2e8/0xb17 kernel/softirq.c:292 The buggy address belongs to the object at ffff8801889a8880 which belongs to the cache bdev_cache(17:syz5) of size 1352 The buggy address is located 120 bytes inside of 1352-byte region [ffff8801889a8880, ffff8801889a8dc8) The buggy address belongs to the page: page:ffffea0006226a00 count:1 mapcount:0 mapping:ffff8801bb2a3780 index:0xffff8801889a8ffe flags: 0x2fffc0000000100(slab) raw: 02fffc0000000100 ffffea0006c1ea08 ffffea0006226488 ffff8801bb2a3780 raw: ffff8801889a8ffe ffff8801889a8280 0000000100000002 ffff8801b8240940 page dumped because: kasan: bad access detected page->mem_cgroup:ffff8801b8240940 Memory state around the buggy address: ffff8801889a8780: fb fb fb fb fb fb fb fb fb fc fc fc fc fc fc fc ffff8801889a8800: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc >ffff8801889a8880: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ^ ffff8801889a8900: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ffff8801889a8980: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ==================================================================