Warning: Permanently added '10.128.10.28' (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 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 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 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: [ 44.647642] ================================================================== [ 44.655573] BUG: KASAN: use-after-free in disk_unblock_events+0x55/0x60 [ 44.662332] Read of size 8 at addr ffff8800b7b91668 by task blkid/2308 [ 44.668988] [ 44.670623] CPU: 1 PID: 2308 Comm: blkid Not tainted 4.4.170+ #4 [ 44.676759] 0000000000000000 ae536e2633e258be ffff8801d287f730 ffffffff81aaddc1 [ 44.684827] 0000000000000000 ffffea0002dee400 ffff8800b7b91668 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 [ 44.692900] 0000000000000000 ffff8801d287f768 ffffffff8148fbed 0000000000000000 [ 44.700963] Call Trace: [ 44.703548] [] dump_stack+0xc1/0x120 [ 44.708910] [] print_address_description+0x6f/0x21b [ 44.715573] [] kasan_report.cold+0x8c/0x2be [ 44.721581] [] ? disk_unblock_events+0x55/0x60 [ 44.727833] [] __asan_report_load8_noabort+0x14/0x20 [ 44.734580] [] disk_unblock_events+0x55/0x60 [ 44.740642] [] __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 [ 44.746261] [] ? __blkdev_put+0x840/0x840 [ 44.752058] [] ? trace_hardirqs_on+0x10/0x10 [ 44.758121] [] blkdev_get+0x2e8/0x920 [ 44.763596] [] ? bd_may_claim+0xd0/0xd0 [ 44.769232] [] ? bd_acquire+0x8a/0x370 [ 44.774769] [] ? _raw_spin_unlock+0x2d/0x50 [ 44.780735] [] blkdev_open+0x1aa/0x250 [ 44.786267] [] do_dentry_open+0x38f/0xbd0 [ 44.792064] [] ? __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 [ 44.798377] [] ? blkdev_get_by_dev+0x80/0x80 [ 44.804427] [] vfs_open+0x10b/0x210 [ 44.809704] [] ? may_open.isra.0+0xe7/0x210 [ 44.815704] [] path_openat+0x136f/0x4470 [ 44.821409] [] ? kasan_kmalloc.part.0+0xc6/0xf0 [ 44.827755] [] ? may_open.isra.0+0x210/0x210 [ 44.833809] [] ? trace_hardirqs_on+0x10/0x10 [ 44.839863] [] 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 [ 44.845484] [] ? user_path_mountpoint_at+0x50/0x50 [ 44.852057] [] ? __alloc_fd+0x1ea/0x490 [ 44.857678] [] ? _raw_spin_unlock+0x2d/0x50 [ 44.863646] [] do_sys_open+0x2f8/0x600 [ 44.869175] [] ? filp_open+0x70/0x70 [ 44.874537] [] ? retint_user+0x18/0x3c [ 44.880080] [] ? trace_hardirqs_on_caller+0x385/0x5a0 [ 44.886915] [] SyS_open+0x2d/0x40 [ 44.892012] [] entry_SYSCALL_64_fastpath+0x1e/0x9a 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 [ 44.898578] [ 44.900213] Allocated by task 2278: [ 44.903832] [] save_stack_trace+0x26/0x50 [ 44.909763] [] kasan_kmalloc.part.0+0x62/0xf0 [ 44.916039] [] kasan_kmalloc+0xb7/0xd0 [ 44.921774] [] kmem_cache_alloc_trace+0x123/0x2d0 [ 44.928393] [] alloc_disk_node+0x50/0x3c0 [ 44.934318] [] alloc_disk+0x1b/0x20 [ 44.939724] [] loop_add+0x384/0x7e0 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 [ 44.945133] [] loop_control_ioctl+0x220/0x320 [ 44.951407] [] compat_SyS_ioctl+0x403/0x2210 [ 44.957597] [] do_fast_syscall_32+0x32d/0xa90 [ 44.963887] [] sysenter_flags_fixed+0xd/0x1a [ 44.970071] [ 44.971696] Freed by task 2308: [ 44.974960] [] save_stack_trace+0x26/0x50 [ 44.980888] [] kasan_slab_free+0xb0/0x190 [ 44.986817] [] kfree+0xf4/0x310 [ 44.991874] [] disk_release+0x255/0x330 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 [ 44.997627] [] device_release+0x7d/0x220 [ 45.003467] [] kobject_put+0x14c/0x260 [ 45.009135] [] put_disk+0x23/0x30 [ 45.014362] [] __blkdev_get+0x66c/0xdf0 [ 45.020111] [] blkdev_get+0x2e8/0x920 [ 45.025697] [] blkdev_open+0x1aa/0x250 [ 45.031360] [] do_dentry_open+0x38f/0xbd0 [ 45.037301] [] vfs_open+0x10b/0x210 [ 45.042711] [] path_openat+0x136f/0x4470 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 [ 45.048554] [] do_filp_open+0x1a1/0x270 [ 45.054329] [] do_sys_open+0x2f8/0x600 [ 45.060015] [] SyS_open+0x2d/0x40 [ 45.065283] [] entry_SYSCALL_64_fastpath+0x1e/0x9a [ 45.071996] [ 45.073662] The buggy address belongs to the object at ffff8800b7b91100 [ 45.073662] which belongs to the cache kmalloc-2048 of size 2048 [ 45.086497] The buggy address is located 1384 bytes inside of [ 45.086497] 2048-byte region [ffff8800b7b91100, ffff8800b7b91900) executing program executing program [ 45.098532] The buggy address belongs to the page: [ 45.107357] audit: type=1400 audit(1547480893.066:5): avc: denied { sigchld } for pid=2083 comm="syz-executor858" scontext=system_u:object_r:unlabeled_t:s0 tcontext=unconfined_u:system_r:insmod_t:s0-s0:c0.c1023 tclass=process permissive=1 [ 45.128954] kasan: CONFIG_KASAN_INLINE enabled [ 45.128959] kasan: GPF could be caused by NULL-ptr deref or user memory access [ 45.128959] ------------[ cut here ]------------ [ 45.128977] WARNING: CPU: 0 PID: 2083 at kernel/sched/core.c:7941 __might_sleep+0x138/0x1a0() [ 45.128987] do not call blocking ops when !TASK_RUNNING; state=1 set at [] do_wait+0x265/0xa00 [ 45.128991] Kernel panic - not syncing: panic_on_warn set ... [ 45.128991] [ 46.283284] Shutting down cpus with NMI [ 46.283940] Kernel Offset: disabled [ 46.334512] Rebooting in 86400 seconds..