Warning: Permanently added '10.128.0.138' (ECDSA) to the list of known hosts. executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program [ 46.841924] ================================================================== [ 46.843172] BUG: KASAN: use-after-free in disk_unblock_events+0x51/0x60 [ 46.844170] Read of size 8 at addr ffff8801cdf5d1e0 by task syz-executor154/2117 [ 46.845194] [ 46.845433] CPU: 0 PID: 2117 Comm: syz-executor154 Not tainted 4.9.141+ #23 [ 46.846518] ffff8801d70276e8 ffffffff81b42e79 ffffea000737d600 ffff8801cdf5d1e0 [ 46.847817] 0000000000000000 ffff8801cdf5d1e0 0000000000000000 ffff8801d7027720 [ 46.849034] ffffffff815009b8 ffff8801cdf5d1e0 0000000000000008 0000000000000000 [ 46.850220] Call Trace: [ 46.850597] [] dump_stack+0xc1/0x128 [ 46.851319] [] print_address_description+0x6c/0x234 [ 46.852206] [] kasan_report.cold.6+0x242/0x2fe [ 46.853052] [] ? disk_unblock_events+0x51/0x60 [ 46.853907] [] __asan_report_load8_noabort+0x14/0x20 [ 46.854839] [] disk_unblock_events+0x51/0x60 [ 46.855821] [] __blkdev_get+0x6b6/0xd60 [ 46.856576] [] ? __blkdev_put+0x840/0x840 [ 46.857373] [] ? fsnotify+0x114/0x1100 [ 46.858275] [] blkdev_get+0x2da/0x920 [ 46.859073] [] ? debug_lockdep_rcu_enabled+0x77/0x90 [ 46.860011] [] ? bd_may_claim+0xd0/0xd0 [ 46.860816] [] ? bd_acquire+0x27/0x250 [ 46.861566] [] ? bd_acquire+0x88/0x250 [ 46.864312] [] ? _raw_spin_unlock+0x2c/0x50 [ 46.870272] [] blkdev_open+0x1a5/0x250 [ 46.875809] [] do_dentry_open+0x3ef/0xc90 [ 46.881746] [] ? blkdev_get_by_dev+0x70/0x70 [ 46.887989] [] vfs_open+0x11c/0x210 [ 46.893361] [] ? may_open.isra.20+0x14f/0x2a0 [ 46.899509] [] path_openat+0x542/0x2790 [ 46.905126] [] ? path_mountpoint+0x6c0/0x6c0 [ 46.911173] [] ? trace_hardirqs_on+0x10/0x10 [ 46.917945] [] ? expand_files.part.3+0x3a9/0x6d0 [ 46.924349] [] do_filp_open+0x197/0x270 [ 46.930034] [] ? may_open_dev+0xe0/0xe0 [ 46.935709] [] ? _raw_spin_unlock+0x2c/0x50 executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program [ 46.941768] [] ? __alloc_fd+0x1d7/0x4a0 [ 46.947451] [] do_sys_open+0x30d/0x5c0 [ 46.952985] [] ? filp_open+0x70/0x70 [ 46.958628] [] ? up_read+0x1a/0x40 [ 46.963871] [] ? loop_probe+0x180/0x180 [ 46.969609] [] compat_SyS_open+0x2a/0x40 [ 46.975317] [] ? compat_SyS_getdents64+0x280/0x280 [ 46.981936] [] do_fast_syscall_32+0x2f1/0xa10 executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program [ 46.988125] [] ? trace_hardirqs_off_thunk+0x1a/0x1c [ 46.994792] [] entry_SYSENTER_compat+0x90/0xa2 [ 47.001011] [ 47.002699] Allocated by task 2117: [ 47.006331] save_stack_trace+0x16/0x20 [ 47.010291] kasan_kmalloc.part.1+0x62/0xf0 [ 47.014600] kasan_kmalloc+0xaf/0xc0 [ 47.018312] kmem_cache_alloc_trace+0x117/0x2e0 [ 47.022974] alloc_disk_node+0x54/0x3a0 [ 47.027687] alloc_disk+0x18/0x20 [ 47.031176] loop_add+0x368/0x7a0 [ 47.034623] loop_probe+0x14f/0x180 [ 47.038241] kobj_lookup+0x223/0x410 executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program [ 47.041938] get_gendisk+0x39/0x2d0 [ 47.045630] __blkdev_get+0x351/0xd60 [ 47.049718] blkdev_get+0x2da/0x920 [ 47.053488] blkdev_open+0x1a5/0x250 [ 47.057232] do_dentry_open+0x3ef/0xc90 [ 47.061235] vfs_open+0x11c/0x210 [ 47.064741] path_openat+0x542/0x2790 [ 47.068690] do_filp_open+0x197/0x270 [ 47.072547] do_sys_open+0x30d/0x5c0 [ 47.076315] compat_SyS_open+0x2a/0x40 [ 47.080191] do_fast_syscall_32+0x2f1/0xa10 [ 47.085285] entry_SYSENTER_compat+0x90/0xa2 [ 47.089775] executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program [ 47.091379] Freed by task 2117: [ 47.094650] save_stack_trace+0x16/0x20 [ 47.098603] kasan_slab_free+0xac/0x190 [ 47.102630] kfree+0xfb/0x310 [ 47.105775] disk_release+0x259/0x330 [ 47.109564] device_release+0x7e/0x220 [ 47.113443] kobject_put+0x148/0x250 [ 47.117198] put_disk+0x23/0x30 [ 47.120523] __blkdev_get+0x616/0xd60 [ 47.124352] blkdev_get+0x2da/0x920 [ 47.128029] blkdev_open+0x1a5/0x250 [ 47.131744] do_dentry_open+0x3ef/0xc90 [ 47.135699] vfs_open+0x11c/0x210 [ 47.139139] path_openat+0x542/0x2790 executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program [ 47.142924] do_filp_open+0x197/0x270 [ 47.146706] do_sys_open+0x30d/0x5c0 [ 47.150406] compat_SyS_open+0x2a/0x40 [ 47.154324] do_fast_syscall_32+0x2f1/0xa10 [ 47.158640] entry_SYSENTER_compat+0x90/0xa2 [ 47.163089] [ 47.164716] The buggy address belongs to the object at ffff8801cdf5cc80 [ 47.164716] which belongs to the cache kmalloc-2048 of size 2048 [ 47.177585] The buggy address is located 1376 bytes inside of [ 47.177585] 2048-byte region [ffff8801cdf5cc80, ffff8801cdf5d480) executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program [ 47.189732] The buggy address belongs to the page: [ 47.194698] page:ffffea000737d600 count:1 mapcount:0 mapping: (null) index:0x0 compound_mapcount: 0 [ 47.205203] flags: 0x4000000000004080(slab|head) [ 47.209938] page dumped because: kasan: bad access detected [ 47.215740] [ 47.217348] Memory state around the buggy address: [ 47.222283] ffff8801cdf5d080: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 47.229696] ffff8801cdf5d100: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program [ 47.237046] >ffff8801cdf5d180: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 47.244431] ^ [ 47.250973] ffff8801cdf5d200: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 47.258347] ffff8801cdf5d280: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 47.265772] ================================================================== [ 47.273131] Disabling lock debugging due to kernel taint [ 47.282337] Kernel panic - not syncing: panic_on_warn set ... [ 47.282337] executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program [ 47.289828] CPU: 0 PID: 2117 Comm: syz-executor154 Tainted: G B 4.9.141+ #23 [ 47.298367] ffff8801d7027648 ffffffff81b42e79 ffffffff82e37630 00000000ffffffff [ 47.306440] 0000000000000000 0000000000000000 0000000000000000 ffff8801d7027708 [ 47.314566] ffffffff813f7125 0000000041b58ab3 ffffffff82e2b62b ffffffff813f6f66 [ 47.322604] Call Trace: [ 47.325180] [] dump_stack+0xc1/0x128 [ 47.330551] [] panic+0x1bf/0x39f [ 47.335622] [] ? add_taint.cold.5+0x16/0x16 [ 47.341755] [] ? ___preempt_schedule+0x16/0x18 [ 47.347995] [] kasan_end_report+0x47/0x4f [ 47.353803] [] kasan_report.cold.6+0x76/0x2fe [ 47.360056] [] ? disk_unblock_events+0x51/0x60 [ 47.366281] [] __asan_report_load8_noabort+0x14/0x20 [ 47.373087] [] disk_unblock_events+0x51/0x60 [ 47.379190] [] __blkdev_get+0x6b6/0xd60 [ 47.384872] [] ? __blkdev_put+0x840/0x840 [ 47.390715] [] ? fsnotify+0x114/0x1100 [ 47.396258] [] blkdev_get+0x2da/0x920 [ 47.401710] [] ? debug_lockdep_rcu_enabled+0x77/0x90 [ 47.408570] [] ? bd_may_claim+0xd0/0xd0 [ 47.414186] [] ? bd_acquire+0x27/0x250 [ 47.419713] [] ? bd_acquire+0x88/0x250 [ 47.425239] [] ? _raw_spin_unlock+0x2c/0x50 [ 47.431204] [] blkdev_open+0x1a5/0x250 [ 47.436743] [] do_dentry_open+0x3ef/0xc90 [ 47.442551] [] ? blkdev_get_by_dev+0x70/0x70 [ 47.448602] [] vfs_open+0x11c/0x210 [ 47.453897] [] ? may_open.isra.20+0x14f/0x2a0 [ 47.460053] [] path_openat+0x542/0x2790 [ 47.465680] [] ? path_mountpoint+0x6c0/0x6c0 [ 47.471744] [] ? trace_hardirqs_on+0x10/0x10 [ 47.477878] [] ? expand_files.part.3+0x3a9/0x6d0 [ 47.484400] [] do_filp_open+0x197/0x270 [ 47.490139] [] ? may_open_dev+0xe0/0xe0 [ 47.495753] [] ? _raw_spin_unlock+0x2c/0x50 [ 47.501881] [] ? __alloc_fd+0x1d7/0x4a0 [ 47.507570] [] do_sys_open+0x30d/0x5c0 [ 47.513122] [] ? filp_open+0x70/0x70 [ 47.518484] [] ? up_read+0x1a/0x40 [ 47.523838] [] ? loop_probe+0x180/0x180 [ 47.529573] [] compat_SyS_open+0x2a/0x40 [ 47.535364] [] ? compat_SyS_getdents64+0x280/0x280 [ 47.542003] [] do_fast_syscall_32+0x2f1/0xa10 [ 47.548156] [] ? trace_hardirqs_off_thunk+0x1a/0x1c [ 47.554864] [] entry_SYSENTER_compat+0x90/0xa2 [ 47.561431] Kernel Offset: disabled [ 47.565062] Rebooting in 86400 seconds..