9pnet_virtio: no channels available for device (null) REISERFS (device loop2): found reiserfs format "3.5" with non-standard journal REISERFS (device loop2): 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 ffff880187678678 by task syz-executor2/11905 CPU: 0 PID: 11905 Comm: syz-executor2 Not tainted 4.18.0+ #194 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: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: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:00007f8b6ba5ca88 EFLAGS: 00000206 ORIG_RAX: 00000000000000a5 RAX: ffffffffffffffda RBX: 00007f8b6ba5cb30 RCX: 0000000000459aba RDX: 00007f8b6ba5cad0 RSI: 0000000020000040 RDI: 00007f8b6ba5caf0 RBP: 0000000020000040 R08: 00007f8b6ba5cb30 R09: 00007f8b6ba5cad0 R10: 0000000000000000 R11: 0000000000000206 R12: 0000000000000003 R13: 0000000000000000 R14: 00000000004c9d14 R15: 0000000000000000 Allocated by task 11905: 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: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: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 4473: 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: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+0xf98/0x2860 kernel/rcu/tree.c:2864 __do_softirq+0x2eb/0xb1e kernel/softirq.c:292 The buggy address belongs to the object at ffff880187678600 which belongs to the cache bdev_cache(81:syz2) of size 1344 The buggy address is located 120 bytes inside of 1344-byte region [ffff880187678600, ffff880187678b40) The buggy address belongs to the page: page:ffffea00061d9e00 count:1 mapcount:0 mapping:ffff8801d875f500 index:0xffff880187678ffe flags: 0x2fffc0000000100(slab) raw: 02fffc0000000100 ffff8801b1963b48 ffff8801b1963b48 ffff8801d875f500 raw: ffff880187678ffe ffff880187678040 0000000100000002 ffff8801d52d8480 page dumped because: kasan: bad access detected page->mem_cgroup:ffff8801d52d8480 Memory state around the buggy address: ffff880187678500: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc ffff880187678580: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc >ffff880187678600: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ^ ffff880187678680: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ffff880187678700: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ==================================================================