[?25l[?1c7[ ok 8[?25h[?0c. [....] Starting periodic command scheduler: cron[?25l[?1c7[ ok 8[?25h[?0c. Starting mcstransd: [....] Starting file context maintaining daemon: restorecond[?25l[?1c7[ ok 8[?25h[?0c. [....] Starting OpenBSD Secure Shell server: sshd[ 9.861067] random: sshd: uninitialized urandom read (32 bytes read) [?25l[?1c7[ ok 8[?25h[?0c. Debian GNU/Linux 7 syzkaller ttyS0 syzkaller login: [ 30.903900] random: crng init done Warning: Permanently added '10.128.10.35' (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 executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program [ 51.654189] ================================================================== [ 51.661621] BUG: KASAN: use-after-free in disk_unblock_events+0x51/0x60 [ 51.668369] Read of size 8 at addr ffff8801c9489ee0 by task blkid/2893 [ 51.675032] [ 51.676660] CPU: 1 PID: 2893 Comm: blkid Not tainted 4.9.135+ #113 [ 51.682973] ffff8801c95af6f8 ffffffff81b36bf9 ffffea0007252200 ffff8801c9489ee0 [ 51.691046] 0000000000000000 ffff8801c9489ee0 0000000000000000 ffff8801c95af730 [ 51.699132] ffffffff815009ad ffff8801c9489ee0 0000000000000008 0000000000000000 [ 51.707223] Call Trace: [ 51.709825] [] dump_stack+0xc1/0x128 [ 51.715191] [] print_address_description+0x6c/0x234 [ 51.721854] [] kasan_report.cold.6+0x242/0x2fe [ 51.728082] [] ? disk_unblock_events+0x51/0x60 [ 51.734544] [] __asan_report_load8_noabort+0x14/0x20 [ 51.741297] [] disk_unblock_events+0x51/0x60 [ 51.747354] [] __blkdev_get+0x6b6/0xd60 [ 51.752975] [] ? __blkdev_put+0x840/0x840 [ 51.758786] [] ? fsnotify+0x114/0x1100 [ 51.764329] [] blkdev_get+0x2da/0x920 [ 51.769777] [] ? debug_lockdep_rcu_enabled+0x77/0x90 [ 51.776531] [] ? bd_may_claim+0xd0/0xd0 [ 51.782150] [] ? bd_acquire+0x27/0x250 [ 51.787685] [] ? bd_acquire+0x88/0x250 [ 51.793224] [] ? _raw_spin_unlock+0x2c/0x50 [ 51.799195] [] blkdev_open+0x1a5/0x250 [ 51.804730] [] do_dentry_open+0x3ef/0xc90 [ 51.810528] [] ? blkdev_get_by_dev+0x70/0x70 [ 51.816585] [] vfs_open+0x11c/0x210 [ 51.821860] [] ? may_open.isra.20+0x14f/0x2a0 [ 51.828004] [] path_openat+0x542/0x2790 [ 51.833640] [] ? path_mountpoint+0x6c0/0x6c0 [ 51.839701] [] ? trace_hardirqs_on+0x10/0x10 [ 51.846106] [] ? expand_files.part.3+0x3a9/0x6d0 [ 51.852509] [] do_filp_open+0x197/0x270 [ 51.858129] [] ? may_open_dev+0xe0/0xe0 [ 51.863752] [] ? _raw_spin_unlock+0x2c/0x50 [ 51.869722] [] ? __alloc_fd+0x1d7/0x4a0 [ 51.875346] [] do_sys_open+0x30d/0x5c0 [ 51.880883] [] ? filp_open+0x70/0x70 [ 51.886248] [] ? up_read+0x1a/0x40 [ 51.891441] [] SyS_open+0x2d/0x40 [ 51.896546] [] ? do_sys_open+0x5c0/0x5c0 [ 51.902259] [] do_syscall_64+0x19f/0x550 [ 51.907965] [] entry_SYSCALL_64_after_swapgs+0x5d/0xdb [ 51.914883] [ 51.916507] Allocated by task 2888: [ 51.920137] save_stack_trace+0x16/0x20 [ 51.924110] kasan_kmalloc.part.1+0x62/0xf0 [ 51.928426] kasan_kmalloc+0xaf/0xc0 [ 51.932139] kmem_cache_alloc_trace+0x117/0x2e0 [ 51.936819] alloc_disk_node+0x54/0x3a0 [ 51.940793] alloc_disk+0x18/0x20 [ 51.944249] loop_add+0x368/0x7a0 [ 51.947696] loop_probe+0x14f/0x180 [ 51.951332] kobj_lookup+0x223/0x410 [ 51.955054] get_gendisk+0x39/0x2d0 [ 51.958681] __blkdev_get+0x351/0xd60 [ 51.962478] blkdev_get+0x488/0x920 [ 51.966099] blkdev_open+0x1a5/0x250 [ 51.969820] do_dentry_open+0x3ef/0xc90 [ 51.973828] vfs_open+0x11c/0x210 [ 51.977280] path_openat+0x542/0x2790 [ 51.981078] do_filp_open+0x197/0x270 [ 51.984875] do_sys_open+0x30d/0x5c0 [ 51.988586] SyS_open+0x2d/0x40 [ 51.991861] do_syscall_64+0x19f/0x550 [ 51.995746] entry_SYSCALL_64_after_swapgs+0x5d/0xdb [ 52.000840] [ 52.002466] Freed by task 2893: [ 52.005742] save_stack_trace+0x16/0x20 [ 52.009713] kasan_slab_free+0xac/0x190 [ 52.013688] kfree+0xfb/0x310 [ 52.016794] disk_release+0x259/0x330 [ 52.020601] device_release+0x7e/0x220 [ 52.024483] kobject_put+0x148/0x250 [ 52.028195] put_disk+0x23/0x30 [ 52.031472] __blkdev_get+0x616/0xd60 [ 52.035272] blkdev_get+0x2da/0x920 [ 52.038893] blkdev_open+0x1a5/0x250 [ 52.042603] do_dentry_open+0x3ef/0xc90 [ 52.046576] vfs_open+0x11c/0x210 [ 52.050039] path_openat+0x542/0x2790 [ 52.053836] do_filp_open+0x197/0x270 [ 52.057634] do_sys_open+0x30d/0x5c0 [ 52.061350] SyS_open+0x2d/0x40 [ 52.064628] do_syscall_64+0x19f/0x550 [ 52.068514] entry_SYSCALL_64_after_swapgs+0x5d/0xdb [ 52.073607] [ 52.075233] The buggy address belongs to the object at ffff8801c9489980 [ 52.075233] which belongs to the cache kmalloc-2048 of size 2048 [ 52.088059] The buggy address is located 1376 bytes inside of [ 52.088059] 2048-byte region [ffff8801c9489980, ffff8801c948a180) [ 52.100099] The buggy address belongs to the page: [ 52.105036] page:ffffea0007252200 count:1 mapcount:0 mapping: (null) index:0xffff8801c948f700 compound_mapcount: 0 [ 52.116575] flags: 0x4000000000004080(slab|head) [ 52.121323] page dumped because: kasan: bad access detected [ 52.127036] [ 52.128658] Memory state around the buggy address: [ 52.133586] ffff8801c9489d80: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 52.140940] ffff8801c9489e00: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 52.148297] >ffff8801c9489e80: 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 executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program [ 52.155647] ^ [ 52.162134] ffff8801c9489f00: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 52.169491] ffff8801c9489f80: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 52.176840] ================================================================== [ 52.184188] Disabling lock debugging due to kernel taint executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program [ 52.210997] Kernel panic - not syncing: panic_on_warn set ... [ 52.210997] [ 52.218410] CPU: 1 PID: 2893 Comm: blkid Tainted: G B 4.9.135+ #113 [ 52.225939] ffff8801c95af658 ffffffff81b36bf9 ffffffff82e366e0 00000000ffffffff [ 52.234045] 0000000000000000 0000000000000001 0000000000000000 ffff8801c95af718 [ 52.242141] ffffffff813f6aa5 0000000041b58ab3 ffffffff82e2a6e3 ffffffff813f68e6 [ 52.250212] Call Trace: [ 52.252797] [] dump_stack+0xc1/0x128 executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program [ 52.258167] [] panic+0x1bf/0x39f [ 52.263183] [] ? add_taint.cold.6+0x16/0x16 [ 52.269152] [] ? ___preempt_schedule+0x16/0x18 [ 52.275385] [] kasan_end_report+0x47/0x4f [ 52.281178] [] kasan_report.cold.6+0x76/0x2fe [ 52.287322] [] ? disk_unblock_events+0x51/0x60 [ 52.293552] [] __asan_report_load8_noabort+0x14/0x20 [ 52.300307] [] disk_unblock_events+0x51/0x60 executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program [ 52.306368] [] __blkdev_get+0x6b6/0xd60 [ 52.311988] [] ? __blkdev_put+0x840/0x840 [ 52.317799] [] ? fsnotify+0x114/0x1100 [ 52.323347] [] blkdev_get+0x2da/0x920 [ 52.328800] [] ? debug_lockdep_rcu_enabled+0x77/0x90 [ 52.335556] [] ? bd_may_claim+0xd0/0xd0 [ 52.341178] [] ? bd_acquire+0x27/0x250 [ 52.346712] [] ? bd_acquire+0x88/0x250 [ 52.352252] [] ? _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 executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program [ 52.358226] [] blkdev_open+0x1a5/0x250 [ 52.363766] [] do_dentry_open+0x3ef/0xc90 [ 52.369561] [] ? blkdev_get_by_dev+0x70/0x70 [ 52.375620] [] vfs_open+0x11c/0x210 [ 52.380897] [] ? may_open.isra.20+0x14f/0x2a0 [ 52.387047] [] path_openat+0x542/0x2790 [ 52.392661] [] ? path_mountpoint+0x6c0/0x6c0 [ 52.398713] [] ? trace_hardirqs_on+0x10/0x10 [ 52.404776] [] ? 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 executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program [ 52.411192] [] do_filp_open+0x197/0x270 [ 52.416822] [] ? may_open_dev+0xe0/0xe0 [ 52.422453] [] ? _raw_spin_unlock+0x2c/0x50 [ 52.428424] [] ? __alloc_fd+0x1d7/0x4a0 [ 52.434052] [] do_sys_open+0x30d/0x5c0 [ 52.439592] [] ? filp_open+0x70/0x70 [ 52.444952] [] ? up_read+0x1a/0x40 [ 52.450142] [] SyS_open+0x2d/0x40 [ 52.455245] [] ? 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 [ 52.460958] [] do_syscall_64+0x19f/0x550 [ 52.466671] [] entry_SYSCALL_64_after_swapgs+0x5d/0xdb [ 52.473905] Kernel Offset: disabled [ 52.477524] Rebooting in 86400 seconds..