REISERFS (device loop6): using ordered data mode reiserfs: using flush barriers 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:3291 Read of size 8 at addr ffff880183317638 by task syz-executor6/22457 CPU: 0 PID: 22457 Comm: syz-executor6 Not tainted 4.18.0+ #207 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/0x30d mm/kasan/report.c:412 __asan_report_load8_noabort+0x14/0x20 mm/kasan/report.c:433 __lock_acquire+0x3829/0x5020 kernel/locking/lockdep.c:3291 lock_acquire+0x1e4/0x4f0 kernel/locking/lockdep.c:3901 __mutex_lock_common kernel/locking/mutex.c:925 [inline] __mutex_lock+0x171/0x1700 kernel/locking/mutex.c:1073 mutex_lock_nested+0x16/0x20 kernel/locking/mutex.c:1088 blkdev_get+0x5f2/0xb50 fs/block_dev.c:1623 blkdev_get_by_dev+0x3f/0x80 fs/block_dev.c:1739 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:1177 get_super_block+0x34/0x40 fs/reiserfs/super.c:2605 mount_fs+0xae/0x328 fs/super.c:1280 vfs_kern_mount.part.33+0xdc/0x4e0 fs/namespace.c:987 vfs_kern_mount fs/namespace.c:977 [inline] do_new_mount fs/namespace.c:2483 [inline] do_mount+0x581/0x30e0 fs/namespace.c:2813 ksys_mount+0x12d/0x140 fs/namespace.c:3029 __do_sys_mount fs/namespace.c:3043 [inline] __se_sys_mount fs/namespace.c:3040 [inline] __x64_sys_mount+0xbe/0x150 fs/namespace.c:3040 do_syscall_64+0x1b9/0x820 arch/x86/entry/common.c:290 REISERFS (device loop1): found reiserfs format "3.5" with non-standard journal 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:00007efc1555da88 EFLAGS: 00000206 ORIG_RAX: 00000000000000a5 RAX: ffffffffffffffda RBX: 00007efc1555db30 RCX: 0000000000459aba RDX: 00007efc1555dad0 RSI: 0000000020000040 RDI: 00007efc1555daf0 RBP: 0000000020000040 R08: 00007efc1555db30 R09: 00007efc1555dad0 R10: 0000000000000000 R11: 0000000000000206 R12: 0000000000000003 R13: 0000000000000000 R14: 00000000004c9d14 R15: 0000000000000000 Allocated by task 22457: 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 REISERFS (device loop1): using ordered data mode kasan_slab_alloc+0x12/0x20 mm/kasan/kasan.c:490 kmem_cache_alloc+0x12e/0x710 mm/slab.c:3554 bdev_alloc_inode+0x1b/0x40 fs/block_dev.c:730 alloc_inode+0x63/0x190 fs/inode.c:210 iget5_locked+0x12e/0x1d0 fs/inode.c:1123 bdget+0xb7/0x5e0 fs/block_dev.c:871 blkdev_get_by_dev+0x24/0x80 fs/block_dev.c:1735 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:1177 get_super_block+0x34/0x40 fs/reiserfs/super.c:2605 mount_fs+0xae/0x328 fs/super.c:1280 vfs_kern_mount.part.33+0xdc/0x4e0 fs/namespace.c:987 vfs_kern_mount fs/namespace.c:977 [inline] do_new_mount fs/namespace.c:2483 [inline] do_mount+0x581/0x30e0 fs/namespace.c:2813 ksys_mount+0x12d/0x140 fs/namespace.c:3029 __do_sys_mount fs/namespace.c:3043 [inline] __se_sys_mount fs/namespace.c:3040 [inline] __x64_sys_mount+0xbe/0x150 fs/namespace.c:3040 do_syscall_64+0x1b9/0x820 arch/x86/entry/common.c:290 reiserfs: using flush barriers entry_SYSCALL_64_after_hwframe+0x49/0xbe Freed by task 22475: 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/0x280 mm/slab.c:3756 bdev_i_callback+0x20/0x30 fs/block_dev.c:741 __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+0xf78/0x27c0 kernel/rcu/tree.c:2864 __do_softirq+0x2eb/0xa74 kernel/softirq.c:292 The buggy address belongs to the object at ffff8801833175c0 which belongs to the cache bdev_cache(97:syz6) of size 1344 The buggy address is located 120 bytes inside of 1344-byte region [ffff8801833175c0, ffff880183317b00) The buggy address belongs to the page: page:ffffea00060cc5c0 count:1 mapcount:0 mapping:ffff8801ac2be080 index:0xffff880183317ffe flags: 0x2fffc0000000100(slab) raw: 02fffc0000000100 ffffea000731fcc8 ffffea0007311d88 ffff8801ac2be080 raw: ffff880183317ffe ffff880183317000 0000000100000002 ffff8801ccfa8740 page dumped because: kasan: bad access detected page->mem_cgroup:ffff8801ccfa8740 Memory state around the buggy address: ffff880183317500: fb fb fb fb fb fb fb fb fc fc fc fc fc fc fc fc ffff880183317580: fc fc fc fc fc fc fc fc fb fb fb fb fb fb fb fb >ffff880183317600: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ^ ffff880183317680: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ffff880183317700: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ==================================================================