Warning: Permanently added '10.128.0.173' (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 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 syzkaller login: [ 41.121735] ================================================================== [ 41.129147] BUG: KASAN: use-after-free in disk_unblock_events+0x55/0x60 [ 41.135886] Read of size 8 at addr ffff8801d43c5a68 by task blkid/2155 [ 41.142537] [ 41.144159] CPU: 1 PID: 2155 Comm: blkid Not tainted 4.4.171+ #11 [ 41.150376] 0000000000000000 aa093fb0f800c8a9 ffff8800b6647730 ffffffff81aaca21 [ 41.158440] 0000000000000000 ffffea000750f000 ffff8801d43c5a68 0000000000000008 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 [ 41.166507] 0000000000000000 ffff8800b6647768 ffffffff8148fbed 0000000000000000 [ 41.174578] Call Trace: [ 41.177163] [] dump_stack+0xc1/0x120 [ 41.182523] [] print_address_description+0x6f/0x21b [ 41.189192] [] kasan_report.cold+0x8c/0x2be [ 41.195171] [] ? disk_unblock_events+0x55/0x60 [ 41.201419] [] __asan_report_load8_noabort+0x14/0x20 [ 41.208169] [] disk_unblock_events+0x55/0x60 [ 41.214243] [] __blkdev_get+0x70c/0xdf0 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 [ 41.219865] [] ? __blkdev_put+0x840/0x840 [ 41.225659] [] ? trace_hardirqs_on+0x10/0x10 [ 41.231775] [] blkdev_get+0x2e8/0x920 [ 41.237232] [] ? bd_may_claim+0xd0/0xd0 [ 41.242853] [] ? bd_acquire+0x8a/0x370 [ 41.248384] [] ? _raw_spin_unlock+0x2d/0x50 [ 41.254349] [] blkdev_open+0x1aa/0x250 [ 41.259880] [] do_dentry_open+0x38f/0xbd0 [ 41.265675] [] ? __inode_permission2+0x9e/0x250 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 [ 41.271988] [] ? blkdev_get_by_dev+0x80/0x80 [ 41.278373] [] vfs_open+0x10b/0x210 [ 41.283647] [] ? may_open.isra.0+0xe7/0x210 [ 41.289617] [] path_openat+0x136f/0x4470 [ 41.295328] [] ? kasan_kmalloc.part.0+0xc6/0xf0 [ 41.301643] [] ? may_open.isra.0+0x210/0x210 [ 41.307698] [] ? trace_hardirqs_on+0x10/0x10 [ 41.313750] [] do_filp_open+0x1a1/0x270 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 [ 41.319369] [] ? getname_flags+0xcc/0x550 [ 41.325163] [] ? user_path_mountpoint_at+0x50/0x50 [ 41.331744] [] ? __alloc_fd+0x1ea/0x490 [ 41.337366] [] ? _raw_spin_unlock+0x2d/0x50 [ 41.343329] [] do_sys_open+0x2f8/0x600 [ 41.348859] [] ? filp_open+0x70/0x70 [ 41.354225] [] ? retint_user+0x18/0x3c [ 41.359778] [] ? trace_hardirqs_on_caller+0x385/0x5a0 [ 41.366615] [] SyS_open+0x2d/0x40 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 [ 41.371718] [] entry_SYSCALL_64_fastpath+0x1e/0x9a [ 41.378283] [ 41.379901] Allocated by task 2146: [ 41.383510] [] save_stack_trace+0x26/0x50 [ 41.389441] [] kasan_kmalloc.part.0+0x62/0xf0 [ 41.395733] [] kasan_kmalloc+0xb7/0xd0 [ 41.401406] [] kmem_cache_alloc_trace+0x123/0x2d0 [ 41.408554] [] alloc_disk_node+0x50/0x3c0 [ 41.414481] [] alloc_disk+0x1b/0x20 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 [ 41.419883] [] loop_add+0x384/0x7e0 [ 41.425284] [] loop_control_ioctl+0x138/0x320 [ 41.431565] [] compat_SyS_ioctl+0x403/0x2210 [ 41.437754] [] do_fast_syscall_32+0x32d/0xa90 [ 41.444031] [] sysenter_flags_fixed+0xd/0x1a [ 41.450229] [ 41.451849] Freed by task 2155: [ 41.455116] [] save_stack_trace+0x26/0x50 [ 41.461041] [] kasan_slab_free+0xb0/0x190 [ 41.466963] [] kfree+0xf4/0x310 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 [ 41.472012] [] disk_release+0x255/0x330 [ 41.477763] [] device_release+0x7d/0x220 [ 41.483610] [] kobject_put+0x14c/0x260 [ 41.489286] [] put_disk+0x23/0x30 [ 41.494530] [] __blkdev_get+0x66c/0xdf0 [ 41.500288] [] blkdev_get+0x2e8/0x920 [ 41.505872] [] blkdev_open+0x1aa/0x250 [ 41.511533] [] do_dentry_open+0x38f/0xbd0 [ 41.517457] [] vfs_open+0x10b/0x210 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 [ 41.522874] [] path_openat+0x136f/0x4470 [ 41.528712] [] do_filp_open+0x1a1/0x270 [ 41.534466] [] do_sys_open+0x2f8/0x600 [ 41.540138] [] SyS_open+0x2d/0x40 [ 41.545370] [] entry_SYSCALL_64_fastpath+0x1e/0x9a [ 41.552074] [ 41.553692] The buggy address belongs to the object at ffff8801d43c5500 [ 41.553692] which belongs to the cache kmalloc-2048 of size 2048 [ 41.566522] The buggy address is located 1384 bytes inside of executing program executing program [ 41.566522] 2048-byte region [ffff8801d43c5500, ffff8801d43c5d00) [ 41.578562] The buggy address belongs to the page: [ 41.583939] ------------[ cut here ]------------ [ 41.588714] WARNING: CPU: 0 PID: 2474 at lib/list_debug.c:23 __list_add_valid+0x86/0x120() [ 41.597114] list_add corruption. next->prev should be prev (ffff8801db61f238), but was ffffea000750f000. (next=ffff8800b6500088). [ 41.609009] Kernel panic - not syncing: panic_on_warn set ... [ 41.609009] [ 41.616376] CPU: 0 PID: 2474 Comm: syz-executor046 Not tainted 4.4.171+ #11 [ 41.623478] 0000000000000000 7a3544e017e61b1b ffff8801db607938 ffffffff81aaca21 [ 41.631588] ffff8801db607a88 ffffffff82835ee0 ffffffff8292c140 0000000000000017 [ 41.639650] ffffffff81b0a6d6 ffff8801db607a18 ffffffff813a46b2 0000000041b58ab3 [ 41.647737] Call Trace: [ 41.650313] [] dump_stack+0xc1/0x120 [ 41.656421] [] ? __list_add_valid+0x86/0x120 [ 41.662474] [] panic+0x1b9/0x37b [ 41.667493] [] ? add_taint.cold+0x16/0x16 [ 41.673286] [] ? vprintk_emit+0x248/0x820 [ 41.679090] [] ? warn_slowpath_common.cold+0x5/0x20 [ 41.685752] [] warn_slowpath_common.cold+0x20/0x20 [ 41.692330] [] warn_slowpath_fmt+0xbf/0x100 [ 41.698293] [] ? warn_slowpath_common+0x120/0x120 [ 41.704784] [] ? cpuacct_charge+0x19e/0x360 [ 41.710757] [] __list_add_valid+0x86/0x120 [ 41.716650] [] account_entity_enqueue+0x20f/0x370 [ 41.723141] [] enqueue_task_fair+0x1255/0xb6c0 [ 41.729366] [] ? select_task_rq_fair+0x483/0x2e90 [ 41.735859] [] activate_task+0x154/0x280 [ 41.741568] [] ttwu_do_activate.constprop.0+0xbe/0x1e0 [ 41.748497] [] try_to_wake_up+0x6d1/0x1110 [ 41.754407] [] wake_up_process+0x15/0x20 [ 41.760118] [] hrtimer_wakeup+0x48/0x60 [ 41.765735] [] ? clock_was_set_work+0x30/0x30 [ 41.771875] [] __hrtimer_run_queues+0x34e/0xfc0 [ 41.778192] [] ? hrtimer_fixup_init+0x70/0x70 [ 41.784342] [] ? kvm_clock_get_cycles+0x9/0x10 [ 41.790573] [] ? hrtimer_interrupt+0x121/0x450 [ 41.796804] [] hrtimer_interrupt+0x1b6/0x450 [ 41.802863] [] local_apic_timer_interrupt+0x76/0xa0 [ 41.809525] [] smp_apic_timer_interrupt+0x79/0xb0 [ 41.816010] [] apic_timer_interrupt+0x9d/0xb0 [ 41.822140] [] ? lock_acquire+0x19f/0x450 [ 41.828716] [] ? perf_event_exit_task+0x32/0x9b0 [ 41.835119] [] ? perf_event_exit_task+0x32/0x9b0 [ 41.841525] [] mutex_lock_nested+0xc1/0xb80 [ 41.847493] [] ? perf_event_exit_task+0x32/0x9b0 [ 41.853898] [] ? _raw_spin_unlock_irqrestore+0x45/0x70 [ 41.860821] [] ? debug_check_no_obj_freed+0x2b9/0x6e0 [ 41.867665] [] ? mutex_trylock+0x500/0x500 [ 41.873550] [] ? switch_task_namespaces+0x38/0xc0 [ 41.880039] [] perf_event_exit_task+0x32/0x9b0 [ 41.886270] [] ? preempt_count_add+0xc0/0x1d0 [ 41.892417] [] ? fpu__drop+0xd1/0x110 [ 41.897889] [] ? exit_thread+0x132/0x180 [ 41.903598] [] do_exit+0x8fa/0x2a50 [ 41.908876] [] ? wake_up_q+0xbb/0x130 [ 41.914342] [] ? release_task+0x14a0/0x14a0 [ 41.920318] [] ? debug_lockdep_rcu_enabled+0x71/0xa0 [ 41.927070] [] ? recalc_sigpending+0x74/0xa0 [ 41.933125] [] ? dequeue_signal+0xc8/0x550 [ 41.939008] [] ? check_preemption_disabled+0x3c/0x200 [ 41.945855] [] do_group_exit+0x111/0x300 [ 41.951559] [] get_signal+0x517/0x1570 [ 41.957185] [] ? _raw_spin_unlock_irqrestore+0x5a/0x70 [ 41.964133] [] do_signal+0x9c/0x1840 [ 41.969498] [] ? check_preemption_disabled+0x3c/0x200 [ 41.976334] [] ? setup_sigcontext+0x780/0x780 [ 41.982471] [] ? putname+0xdb/0x120 [ 41.987745] [] ? rcu_read_lock_sched_held+0x10b/0x130 [ 41.994578] [] ? kmem_cache_free+0x2c4/0x350 [ 42.000633] [] ? compat_SyS_futex+0x1fb/0x2f0 [ 42.006778] [] ? filp_open+0x70/0x70 [ 42.012138] [] ? exit_to_usermode_loop+0xf2/0x170 [ 42.018623] [] exit_to_usermode_loop+0x127/0x170 [ 42.025022] [] do_fast_syscall_32+0x7a9/0xa90 [ 42.031163] [] sysenter_flags_fixed+0xd/0x1a [ 43.174368] Shutting down cpus with NMI [ 43.178746] Kernel Offset: disabled [ 43.182582] Rebooting in 86400 seconds..