Starting mcstransd: [....] Starting periodic command scheduler: cron[?25l[?1c7[ ok 8[?25h[?0c. [ 10.813864] random: sshd: uninitialized urandom read (32 bytes read) [....] Starting file context maintaining daemon: restorecond[?25l[?1c7[ ok 8[?25h[?0c. [....] Starting OpenBSD Secure Shell server: sshd[?25l[?1c7[ ok 8[?25h[?0c. [ 11.363101] random: crng init done Debian GNU/Linux 7 syzkaller ttyS0 Warning: Permanently added '10.128.0.123' (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 executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program 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: [ 33.826415] ================================================================== [ 33.827873] BUG: KASAN: use-after-free in disk_unblock_events+0x51/0x60 [ 33.829056] Read of size 8 at addr ffff8801c5b7e2e0 by task blkid/2796 [ 33.830017] [ 33.830290] CPU: 0 PID: 2796 Comm: blkid Not tainted 4.9.128+ #45 [ 33.831140] ffff8801cab3f6f8 ffffffff81af2469 ffffea000716de00 ffff8801c5b7e2e0 [ 33.832452] 0000000000000000 ffff8801c5b7e2e0 0000000000000000 ffff8801cab3f730 [ 33.833745] ffffffff814e13cb ffff8801c5b7e2e0 0000000000000008 0000000000000000 [ 33.835148] Call Trace: [ 33.835536] [] dump_stack+0xc1/0x128 [ 33.836291] [] print_address_description+0x6c/0x234 [ 33.837442] [] kasan_report.cold.6+0x242/0x2fe [ 33.838492] [] ? disk_unblock_events+0x51/0x60 [ 33.839373] [] __asan_report_load8_noabort+0x14/0x20 [ 33.840298] [] disk_unblock_events+0x51/0x60 [ 33.841220] [] __blkdev_get+0x6b6/0xd60 [ 33.842019] [] ? __blkdev_put+0x840/0x840 [ 33.842855] [] ? fsnotify+0x114/0x1100 [ 33.843791] [] blkdev_get+0x2da/0x920 [ 33.844768] [] ? debug_lockdep_rcu_enabled+0x77/0x90 [ 33.845709] [] ? bd_may_claim+0xd0/0xd0 [ 33.847363] [] ? bd_acquire+0x27/0x250 [ 33.852879] [] ? bd_acquire+0x88/0x250 [ 33.858419] [] ? _raw_spin_unlock+0x2c/0x50 [ 33.864377] [] blkdev_open+0x1a5/0x250 [ 33.869910] [] do_dentry_open+0x3ef/0xc90 executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program [ 33.875691] [] ? blkdev_get_by_dev+0x70/0x70 [ 33.881730] [] vfs_open+0x11c/0x210 [ 33.886989] [] ? may_open.isra.20+0x14f/0x2a0 [ 33.893116] [] path_openat+0x542/0x2790 [ 33.898718] [] ? path_mountpoint+0x6c0/0x6c0 [ 33.904878] [] ? trace_hardirqs_on+0x10/0x10 [ 33.910920] [] ? new_slab+0x22e/0x3d0 [ 33.916350] [] ? expand_files.part.3+0x3a9/0x6d0 executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program [ 33.922738] [] do_filp_open+0x197/0x270 [ 33.928447] [] ? may_open_dev+0xe0/0xe0 [ 33.934155] [] ? _raw_spin_unlock+0x2c/0x50 [ 33.940103] [] ? __alloc_fd+0x1d7/0x4a0 [ 33.945704] [] do_sys_open+0x30d/0x5c0 [ 33.951217] [] ? filp_open+0x70/0x70 [ 33.956689] [] ? up_read+0x1a/0x40 [ 33.961862] [] SyS_open+0x2d/0x40 [ 33.966946] [] ? do_sys_open+0x5c0/0x5c0 executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program [ 33.972638] [] do_syscall_64+0x19f/0x480 [ 33.978400] [] entry_SYSCALL_64_after_swapgs+0x5d/0xdb [ 33.985324] [ 33.986933] Allocated by task 2785: [ 33.990542] save_stack_trace+0x16/0x20 [ 33.994495] kasan_kmalloc.part.1+0x62/0xf0 [ 33.998799] kasan_kmalloc+0xaf/0xc0 [ 34.002497] kmem_cache_alloc_trace+0x117/0x2e0 [ 34.007145] alloc_disk_node+0x54/0x3a0 [ 34.011111] alloc_disk+0x18/0x20 [ 34.014546] loop_add+0x33b/0x770 [ 34.017989] loop_probe+0x14f/0x180 [ 34.021596] 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 executing program executing program executing program executing program executing program executing program [ 34.025294] get_gendisk+0x39/0x2d0 [ 34.028898] __blkdev_get+0x351/0xd60 [ 34.032673] blkdev_get+0x488/0x920 [ 34.036282] blkdev_open+0x1a5/0x250 [ 34.039979] do_dentry_open+0x3ef/0xc90 [ 34.043934] vfs_open+0x11c/0x210 [ 34.047363] path_openat+0x542/0x2790 [ 34.051138] do_filp_open+0x197/0x270 [ 34.054912] do_sys_open+0x30d/0x5c0 [ 34.058603] compat_SyS_open+0x2a/0x40 [ 34.062466] do_fast_syscall_32+0x2f1/0x860 [ 34.067117] entry_SYSENTER_compat+0x90/0xa2 [ 34.071499] [ 34.073103] Freed by task 2796: executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program [ 34.076365] save_stack_trace+0x16/0x20 [ 34.080329] kasan_slab_free+0xac/0x190 [ 34.084472] kfree+0xfb/0x310 [ 34.087562] disk_release+0x259/0x330 [ 34.091345] device_release+0x7e/0x220 [ 34.095383] kobject_put+0x148/0x250 [ 34.099082] put_disk+0x23/0x30 [ 34.102345] __blkdev_get+0x616/0xd60 [ 34.106134] blkdev_get+0x2da/0x920 [ 34.109741] blkdev_open+0x1a5/0x250 [ 34.113433] do_dentry_open+0x3ef/0xc90 [ 34.117386] vfs_open+0x11c/0x210 [ 34.120822] 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 executing program executing program [ 34.124601] do_filp_open+0x197/0x270 [ 34.128376] do_sys_open+0x30d/0x5c0 [ 34.132064] SyS_open+0x2d/0x40 [ 34.135326] do_syscall_64+0x19f/0x480 [ 34.139206] entry_SYSCALL_64_after_swapgs+0x5d/0xdb [ 34.144285] [ 34.145894] The buggy address belongs to the object at ffff8801c5b7dd80 [ 34.145894] which belongs to the cache kmalloc-2048 of size 2048 [ 34.159050] The buggy address is located 1376 bytes inside of [ 34.159050] 2048-byte region [ffff8801c5b7dd80, ffff8801c5b7e580) [ 34.171091] The buggy address belongs to the page: executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program [ 34.176013] page:ffffea000716de00 count:1 mapcount:0 mapping: (null) index:0x0 compound_mapcount: 0 [ 34.186226] flags: 0x4000000000004080(slab|head) [ 34.190967] page dumped because: kasan: bad access detected [ 34.196667] [ 34.198297] Memory state around the buggy address: [ 34.203213] ffff8801c5b7e180: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 34.210561] ffff8801c5b7e200: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 34.217905] >ffff8801c5b7e280: 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 [ 34.225258] ^ [ 34.231759] ffff8801c5b7e300: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 34.239110] ffff8801c5b7e380: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 34.246554] ================================================================== [ 34.253894] Disabling lock debugging due to kernel taint [ 34.266455] Kernel panic - not syncing: panic_on_warn set ... [ 34.266455] [ 34.273848] CPU: 1 PID: 2796 Comm: blkid Tainted: G B 4.9.128+ #45 [ 34.281382] ffff8801cab3f658 ffffffff81af2469 ffffffff82c34968 00000000ffffffff [ 34.289443] 0000000000000000 0000000000000001 0000000000000000 ffff8801cab3f718 [ 34.297508] ffffffff813df985 0000000041b58ab3 ffffffff82c2896b ffffffff813df7c6 [ 34.305585] Call Trace: [ 34.308175] [] dump_stack+0xc1/0x128 [ 34.314018] [] panic+0x1bf/0x39f [ 34.319024] [] ? add_taint.cold.6+0x16/0x16 [ 34.324995] [] ? ___preempt_schedule+0x16/0x18 [ 34.331228] [] kasan_end_report+0x47/0x4f [ 34.337022] [] kasan_report.cold.6+0x76/0x2fe [ 34.343161] [] ? disk_unblock_events+0x51/0x60 [ 34.349391] [] __asan_report_load8_noabort+0x14/0x20 [ 34.356141] [] disk_unblock_events+0x51/0x60 [ 34.362193] [] __blkdev_get+0x6b6/0xd60 [ 34.367814] [] ? __blkdev_put+0x840/0x840 [ 34.373605] [] ? fsnotify+0x114/0x1100 [ 34.379135] [] blkdev_get+0x2da/0x920 [ 34.384578] [] ? debug_lockdep_rcu_enabled+0x77/0x90 [ 34.391330] [] ? bd_may_claim+0xd0/0xd0 [ 34.396977] [] ? bd_acquire+0x27/0x250 [ 34.402507] [] ? bd_acquire+0x88/0x250 [ 34.408044] [] ? _raw_spin_unlock+0x2c/0x50 [ 34.414015] [] blkdev_open+0x1a5/0x250 [ 34.419548] [] do_dentry_open+0x3ef/0xc90 [ 34.425341] [] ? blkdev_get_by_dev+0x70/0x70 [ 34.431410] [] vfs_open+0x11c/0x210 [ 34.436696] [] ? may_open.isra.20+0x14f/0x2a0 [ 34.442836] [] path_openat+0x542/0x2790 [ 34.448459] [] ? path_mountpoint+0x6c0/0x6c0 [ 34.454527] [] ? trace_hardirqs_on+0x10/0x10 [ 34.460588] [] ? new_slab+0x22e/0x3d0 [ 34.466038] [] ? expand_files.part.3+0x3a9/0x6d0 [ 34.472450] [] do_filp_open+0x197/0x270 [ 34.478072] [] ? may_open_dev+0xe0/0xe0 [ 34.483786] [] ? _raw_spin_unlock+0x2c/0x50 [ 34.489755] [] ? __alloc_fd+0x1d7/0x4a0 [ 34.495382] [] do_sys_open+0x30d/0x5c0 [ 34.500916] [] ? filp_open+0x70/0x70 [ 34.506560] [] ? up_read+0x1a/0x40 [ 34.511753] [] SyS_open+0x2d/0x40 [ 34.516857] [] ? do_sys_open+0x5c0/0x5c0 [ 34.522571] [] do_syscall_64+0x19f/0x480 [ 34.528294] [] entry_SYSCALL_64_after_swapgs+0x5d/0xdb [ 34.535564] Kernel Offset: disabled [ 34.539188] Rebooting in 86400 seconds..