[?25l[?1c7[ ok 8[?25h[?0c. [....] Starting periodic command scheduler: cron[?25l[?1c7[ ok 8[?25h[?0c. Starting mcstransd: [ 9.896341] 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. Debian GNU/Linux 7 syzkaller ttyS0 syzkaller login: [ 25.945953] random: crng init done Warning: Permanently added '10.128.10.46' (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 [ 37.721400] ================================================================== [ 37.728792] BUG: KASAN: use-after-free in disk_unblock_events+0x51/0x60 [ 37.735795] Read of size 8 at addr ffff8801cb0a40e0 by task blkid/2600 [ 37.742511] [ 37.744125] CPU: 1 PID: 2600 Comm: blkid Not tainted 4.9.135+ #15 [ 37.750433] ffff8801cacd76f8 ffffffff81b36bf9 ffffea00072c2800 ffff8801cb0a40e0 [ 37.758549] 0000000000000000 ffff8801cb0a40e0 0000000000000000 ffff8801cacd7730 [ 37.766933] ffffffff815009ad ffff8801cb0a40e0 0000000000000008 0000000000000000 [ 37.774915] Call Trace: [ 37.777479] [] dump_stack+0xc1/0x128 [ 37.782823] [] print_address_description+0x6c/0x234 [ 37.789542] [] kasan_report.cold.6+0x242/0x2fe [ 37.795821] [] ? disk_unblock_events+0x51/0x60 [ 37.802035] [] __asan_report_load8_noabort+0x14/0x20 [ 37.808773] [] disk_unblock_events+0x51/0x60 [ 37.814874] [] __blkdev_get+0x6b6/0xd60 [ 37.820528] [] ? __blkdev_put+0x840/0x840 [ 37.826306] [] ? fsnotify+0x114/0x1100 [ 37.831920] [] blkdev_get+0x2da/0x920 [ 37.837581] [] ? debug_lockdep_rcu_enabled+0x77/0x90 [ 37.844605] [] ? bd_may_claim+0xd0/0xd0 [ 37.850308] [] ? bd_acquire+0x27/0x250 [ 37.855822] [] ? bd_acquire+0x88/0x250 [ 37.861451] [] ? _raw_spin_unlock+0x2c/0x50 [ 37.867399] [] blkdev_open+0x1a5/0x250 [ 37.872913] [] do_dentry_open+0x3ef/0xc90 [ 37.878692] [] ? blkdev_get_by_dev+0x70/0x70 [ 37.884871] [] vfs_open+0x11c/0x210 [ 37.890127] [] ? may_open.isra.20+0x14f/0x2a0 [ 37.896254] [] path_openat+0x542/0x2790 [ 37.901858] [] ? path_mountpoint+0x6c0/0x6c0 [ 37.907898] [] ? trace_hardirqs_on+0x10/0x10 [ 37.914001] [] ? expand_files.part.3+0x3a9/0x6d0 [ 37.920402] [] do_filp_open+0x197/0x270 [ 37.926005] [] ? may_open_dev+0xe0/0xe0 [ 37.931612] [] ? _raw_spin_unlock+0x2c/0x50 [ 37.937560] [] ? __alloc_fd+0x1d7/0x4a0 [ 37.943169] [] do_sys_open+0x30d/0x5c0 [ 37.948791] [] ? filp_open+0x70/0x70 [ 37.954132] [] ? up_read+0x1a/0x40 [ 37.959297] [] SyS_open+0x2d/0x40 [ 37.964377] [] ? do_sys_open+0x5c0/0x5c0 [ 37.970210] [] do_syscall_64+0x19f/0x550 [ 37.975994] [] entry_SYSCALL_64_after_swapgs+0x5d/0xdb [ 37.982943] [ 37.984555] Allocated by task 2591: [ 37.988170] save_stack_trace+0x16/0x20 [ 37.992123] kasan_kmalloc.part.1+0x62/0xf0 [ 37.996690] kasan_kmalloc+0xaf/0xc0 [ 38.000394] kmem_cache_alloc_trace+0x117/0x2e0 [ 38.005050] alloc_disk_node+0x54/0x3a0 [ 38.009001] alloc_disk+0x18/0x20 [ 38.012522] loop_add+0x368/0x7a0 [ 38.015954] loop_probe+0x14f/0x180 [ 38.019563] kobj_lookup+0x223/0x410 [ 38.023260] get_gendisk+0x39/0x2d0 [ 38.026864] __blkdev_get+0x351/0xd60 [ 38.030637] blkdev_get+0x488/0x920 [ 38.034238] blkdev_open+0x1a5/0x250 [ 38.037926] do_dentry_open+0x3ef/0xc90 [ 38.041880] vfs_open+0x11c/0x210 [ 38.045312] path_openat+0x542/0x2790 [ 38.049161] do_filp_open+0x197/0x270 [ 38.052946] do_sys_open+0x30d/0x5c0 [ 38.056645] compat_SyS_open+0x2a/0x40 [ 38.060519] do_fast_syscall_32+0x2f1/0xa10 [ 38.064881] entry_SYSENTER_compat+0x90/0xa2 [ 38.069325] [ 38.070933] Freed by task 2600: [ 38.074234] save_stack_trace+0x16/0x20 [ 38.078201] kasan_slab_free+0xac/0x190 [ 38.082156] kfree+0xfb/0x310 [ 38.085241] disk_release+0x259/0x330 [ 38.089284] device_release+0x7e/0x220 [ 38.093160] kobject_put+0x148/0x250 [ 38.096850] put_disk+0x23/0x30 [ 38.100202] __blkdev_get+0x616/0xd60 [ 38.104025] blkdev_get+0x2da/0x920 [ 38.107638] blkdev_open+0x1a5/0x250 [ 38.111329] do_dentry_open+0x3ef/0xc90 [ 38.115283] vfs_open+0x11c/0x210 [ 38.118723] path_openat+0x542/0x2790 [ 38.122505] do_filp_open+0x197/0x270 [ 38.126325] do_sys_open+0x30d/0x5c0 [ 38.130018] SyS_open+0x2d/0x40 [ 38.133276] do_syscall_64+0x19f/0x550 [ 38.137144] entry_SYSCALL_64_after_swapgs+0x5d/0xdb [ 38.142326] [ 38.143931] The buggy address belongs to the object at ffff8801cb0a3b80 [ 38.143931] which belongs to the cache kmalloc-2048 of size 2048 [ 38.156740] The buggy address is located 1376 bytes inside of [ 38.156740] 2048-byte region [ffff8801cb0a3b80, ffff8801cb0a4380) [ 38.168761] The buggy address belongs to the page: [ 38.173666] page:ffffea00072c2800 count:1 mapcount:0 mapping: (null) index:0x0 compound_mapcount: 0 [ 38.183916] flags: 0x4000000000004080(slab|head) [ 38.188642] page dumped because: kasan: bad access detected [ 38.194430] [ 38.196031] Memory state around the buggy address: [ 38.201809] ffff8801cb0a3f80: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 38.209147] ffff8801cb0a4000: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 38.216479] >ffff8801cb0a4080: 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 executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program [ 38.223816] ^ [ 38.230282] ffff8801cb0a4100: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 38.237621] ffff8801cb0a4180: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 38.245054] ================================================================== [ 38.252386] Disabling lock debugging due to kernel taint [ 38.262125] Kernel panic - not syncing: panic_on_warn set ... [ 38.262125] executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program [ 38.269485] CPU: 1 PID: 2600 Comm: blkid Tainted: G B 4.9.135+ #15 [ 38.277077] ffff8801cacd7658 ffffffff81b36bf9 ffffffff82e366e0 00000000ffffffff [ 38.285088] 0000000000000000 0000000000000001 0000000000000000 ffff8801cacd7718 [ 38.293168] ffffffff813f6aa5 0000000041b58ab3 ffffffff82e2a6e3 ffffffff813f68e6 [ 38.301167] Call Trace: [ 38.303739] [] dump_stack+0xc1/0x128 [ 38.309081] [] panic+0x1bf/0x39f [ 38.314073] [] ? add_taint.cold.6+0x16/0x16 executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program [ 38.320019] [] ? ___preempt_schedule+0x16/0x18 [ 38.326236] [] kasan_end_report+0x47/0x4f [ 38.332102] [] kasan_report.cold.6+0x76/0x2fe [ 38.338233] [] ? disk_unblock_events+0x51/0x60 [ 38.344442] [] __asan_report_load8_noabort+0x14/0x20 [ 38.351171] [] disk_unblock_events+0x51/0x60 [ 38.357210] [] __blkdev_get+0x6b6/0xd60 [ 38.362815] [] ? __blkdev_put+0x840/0x840 [ 38.368603] [] ? fsnotify+0x114/0x1100 executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program [ 38.374117] [] blkdev_get+0x2da/0x920 [ 38.379547] [] ? debug_lockdep_rcu_enabled+0x77/0x90 [ 38.386276] [] ? bd_may_claim+0xd0/0xd0 [ 38.391877] [] ? bd_acquire+0x27/0x250 [ 38.397389] [] ? bd_acquire+0x88/0x250 [ 38.402909] [] ? _raw_spin_unlock+0x2c/0x50 [ 38.408900] [] blkdev_open+0x1a5/0x250 [ 38.414427] [] 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 executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program [ 38.421190] [] ? blkdev_get_by_dev+0x70/0x70 [ 38.427333] [] vfs_open+0x11c/0x210 [ 38.432593] [] ? may_open.isra.20+0x14f/0x2a0 [ 38.438719] [] path_openat+0x542/0x2790 [ 38.444319] [] ? path_mountpoint+0x6c0/0x6c0 [ 38.450356] [] ? trace_hardirqs_on+0x10/0x10 [ 38.456471] [] ? expand_files.part.3+0x3a9/0x6d0 [ 38.462865] [] do_filp_open+0x197/0x270 [ 38.468475] [] ? may_open_dev+0xe0/0xe0 executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program [ 38.474080] [] ? _raw_spin_unlock+0x2c/0x50 [ 38.480031] [] ? __alloc_fd+0x1d7/0x4a0 [ 38.485632] [] do_sys_open+0x30d/0x5c0 [ 38.491220] [] ? filp_open+0x70/0x70 [ 38.496569] [] ? up_read+0x1a/0x40 [ 38.501757] [] SyS_open+0x2d/0x40 [ 38.506947] [] ? do_sys_open+0x5c0/0x5c0 [ 38.512639] [] do_syscall_64+0x19f/0x550 [ 38.518324] [] entry_SYSCALL_64_after_swapgs+0x5d/0xdb [ 38.525528] Kernel Offset: disabled [ 38.529138] Rebooting in 86400 seconds..