[?25l[?1c7[ ok 8[?25h[?0c. Starting mcstransd: [....] Starting periodic command scheduler: cron[?25l[?1c7[ ok 8[?25h[?0c. [....] Starting file context maintaining daemon: restorecond[?25l[?1c7[ ok 8[?25h[?0c. [....] Starting OpenBSD Secure Shell server: sshd[ 9.782186] random: sshd: uninitialized urandom read (32 bytes read) [?25l[?1c7[ ok 8[?25h[?0c. Debian GNU/Linux 7 syzkaller ttyS0 syzkaller login: [ 15.744025] random: crng init done Warning: Permanently added '10.128.0.5' (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 executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program [ 30.744034] ================================================================== [ 30.751440] BUG: KASAN: use-after-free in disk_unblock_events+0x51/0x60 [ 30.758174] Read of size 8 at addr ffff8801d6f5c960 by task blkid/5041 [ 30.764807] [ 30.766426] CPU: 1 PID: 5041 Comm: blkid Not tainted 4.9.126+ #38 [ 30.772646] ffff8801d33ff6f8 ffffffff81af1049 ffffea00075bd600 ffff8801d6f5c960 [ 30.780709] 0000000000000000 ffff8801d6f5c960 0000000000000000 ffff8801d33ff730 executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program [ 30.788721] ffffffff814e136d ffff8801d6f5c960 0000000000000008 0000000000000000 [ 30.796866] Call Trace: [ 30.799450] [] dump_stack+0xc1/0x128 [ 30.804824] [] print_address_description+0x6c/0x234 [ 30.811467] [] kasan_report.cold.6+0x242/0x2fe [ 30.817741] [] ? disk_unblock_events+0x51/0x60 [ 30.823957] [] __asan_report_load8_noabort+0x14/0x20 [ 30.830686] [] disk_unblock_events+0x51/0x60 [ 30.836788] [] __blkdev_get+0x6b6/0xd60 executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program [ 30.842395] [] ? __blkdev_put+0x840/0x840 [ 30.848166] [] ? fsnotify+0x114/0x1100 [ 30.853676] [] blkdev_get+0x2da/0x920 [ 30.859105] [] ? debug_lockdep_rcu_enabled+0x77/0x90 [ 30.865839] [] ? bd_may_claim+0xd0/0xd0 [ 30.871446] [] ? bd_acquire+0x27/0x250 [ 30.876965] [] ? bd_acquire+0x88/0x250 [ 30.882484] [] ? _raw_spin_unlock+0x2c/0x50 [ 30.888494] [] blkdev_open+0x1a5/0x250 executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program [ 30.894013] [] do_dentry_open+0x3ef/0xc90 [ 30.899814] [] ? blkdev_get_by_dev+0x70/0x70 [ 30.905853] [] vfs_open+0x11c/0x210 [ 30.911216] [] ? may_open.isra.20+0x14f/0x2a0 [ 30.917335] [] path_openat+0x542/0x2790 [ 30.923005] [] ? path_mountpoint+0x6c0/0x6c0 [ 30.929045] [] ? trace_hardirqs_on+0x10/0x10 [ 30.935241] [] ? 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 [ 30.941629] [] do_filp_open+0x197/0x270 [ 30.947233] [] ? may_open_dev+0xe0/0xe0 [ 30.952842] [] ? _raw_spin_unlock+0x2c/0x50 [ 30.958897] [] ? __alloc_fd+0x1d7/0x4a0 [ 30.964505] [] do_sys_open+0x30d/0x5c0 [ 30.970021] [] ? filp_open+0x70/0x70 [ 30.975367] [] ? up_read+0x1a/0x40 [ 30.980533] [] SyS_open+0x2d/0x40 [ 30.985610] [] ? 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 [ 30.991319] [] do_syscall_64+0x19f/0x480 [ 30.997117] [] entry_SYSCALL_64_after_swapgs+0x5d/0xdb [ 31.004017] [ 31.005619] Allocated by task 5022: [ 31.009237] save_stack_trace+0x16/0x20 [ 31.013187] kasan_kmalloc.part.1+0x62/0xf0 [ 31.017511] kasan_kmalloc+0xaf/0xc0 [ 31.021204] kmem_cache_alloc_trace+0x117/0x2e0 [ 31.025863] alloc_disk_node+0x54/0x3a0 [ 31.029827] alloc_disk+0x18/0x20 [ 31.033299] loop_add+0x33b/0x770 [ 31.036725] loop_probe+0x14f/0x180 [ 31.040338] 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 [ 31.044038] get_gendisk+0x39/0x2d0 [ 31.047747] __blkdev_get+0x351/0xd60 [ 31.051586] blkdev_get+0x488/0x920 [ 31.055195] blkdev_open+0x1a5/0x250 [ 31.059006] do_dentry_open+0x3ef/0xc90 [ 31.062959] vfs_open+0x11c/0x210 [ 31.066501] path_openat+0x542/0x2790 [ 31.070290] do_filp_open+0x197/0x270 [ 31.074080] do_sys_open+0x30d/0x5c0 [ 31.077772] SyS_open+0x2d/0x40 [ 31.081023] do_syscall_64+0x19f/0x480 [ 31.084885] entry_SYSCALL_64_after_swapgs+0x5d/0xdb [ 31.089958] [ 31.091558] Freed by task 5041: executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program [ 31.094812] save_stack_trace+0x16/0x20 [ 31.098766] kasan_slab_free+0xac/0x190 [ 31.102737] kfree+0xfb/0x310 [ 31.105847] disk_release+0x259/0x330 [ 31.109723] device_release+0x7e/0x220 [ 31.113587] kobject_put+0x148/0x250 [ 31.117275] put_disk+0x23/0x30 [ 31.120525] __blkdev_get+0x616/0xd60 [ 31.124297] blkdev_get+0x2da/0x920 [ 31.127900] blkdev_open+0x1a5/0x250 [ 31.131590] do_dentry_open+0x3ef/0xc90 [ 31.135542] vfs_open+0x11c/0x210 [ 31.138973] 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 executing program executing program [ 31.142754] do_filp_open+0x197/0x270 [ 31.146529] do_sys_open+0x30d/0x5c0 [ 31.150215] SyS_open+0x2d/0x40 [ 31.153478] do_syscall_64+0x19f/0x480 [ 31.157358] entry_SYSCALL_64_after_swapgs+0x5d/0xdb [ 31.162436] [ 31.164040] The buggy address belongs to the object at ffff8801d6f5c400 [ 31.164040] which belongs to the cache kmalloc-2048 of size 2048 [ 31.176999] The buggy address is located 1376 bytes inside of [ 31.176999] 2048-byte region [ffff8801d6f5c400, ffff8801d6f5cc00) [ 31.189089] 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 executing program executing program executing program executing program executing program executing program [ 31.194000] page:ffffea00075bd600 count:1 mapcount:0 mapping: (null) index:0x0 compound_mapcount: 0 [ 31.204190] flags: 0x4000000000004080(slab|head) [ 31.208918] page dumped because: kasan: bad access detected [ 31.214599] [ 31.216195] Memory state around the buggy address: [ 31.221101] ffff8801d6f5c800: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 31.228433] ffff8801d6f5c880: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 31.236071] >ffff8801d6f5c900: 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 [ 31.243518] ^ [ 31.249985] ffff8801d6f5c980: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 31.257417] ffff8801d6f5ca00: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 31.264808] ================================================================== [ 31.272251] Disabling lock debugging due to kernel taint [ 31.283380] Kernel panic - not syncing: panic_on_warn set ... [ 31.283380] [ 31.290731] CPU: 1 PID: 5041 Comm: blkid Tainted: G B 4.9.126+ #38 [ 31.298148] ffff8801d33ff658 ffffffff81af1049 ffffffff82c346e0 00000000ffffffff [ 31.306225] 0000000000000000 0000000000000001 0000000000000000 ffff8801d33ff718 [ 31.314278] ffffffff813df5e5 0000000041b58ab3 ffffffff82c286e3 ffffffff813df426 [ 31.322397] Call Trace: [ 31.324966] [] dump_stack+0xc1/0x128 [ 31.330306] [] panic+0x1bf/0x39f [ 31.335391] [] ? add_taint.cold.6+0x16/0x16 [ 31.341339] [] ? ___preempt_schedule+0x16/0x18 [ 31.347551] [] kasan_end_report+0x47/0x4f [ 31.353327] [] kasan_report.cold.6+0x76/0x2fe [ 31.359455] [] ? disk_unblock_events+0x51/0x60 [ 31.365662] [] __asan_report_load8_noabort+0x14/0x20 [ 31.372428] [] disk_unblock_events+0x51/0x60 [ 31.378469] [] __blkdev_get+0x6b6/0xd60 [ 31.384070] [] ? __blkdev_put+0x840/0x840 [ 31.389843] [] ? fsnotify+0x114/0x1100 [ 31.395358] [] blkdev_get+0x2da/0x920 [ 31.400788] [] ? debug_lockdep_rcu_enabled+0x77/0x90 [ 31.407521] [] ? bd_may_claim+0xd0/0xd0 [ 31.413117] [] ? bd_acquire+0x27/0x250 [ 31.418728] [] ? bd_acquire+0x88/0x250 [ 31.424241] [] ? _raw_spin_unlock+0x2c/0x50 [ 31.430246] [] blkdev_open+0x1a5/0x250 [ 31.435763] [] do_dentry_open+0x3ef/0xc90 [ 31.441532] [] ? blkdev_get_by_dev+0x70/0x70 [ 31.447568] [] vfs_open+0x11c/0x210 [ 31.452823] [] ? may_open.isra.20+0x14f/0x2a0 [ 31.458943] [] path_openat+0x542/0x2790 [ 31.464539] [] ? path_mountpoint+0x6c0/0x6c0 [ 31.470575] [] ? trace_hardirqs_on+0x10/0x10 [ 31.476608] [] ? expand_files.part.3+0x3a9/0x6d0 [ 31.483004] [] do_filp_open+0x197/0x270 [ 31.488603] [] ? may_open_dev+0xe0/0xe0 [ 31.494203] [] ? _raw_spin_unlock+0x2c/0x50 [ 31.500149] [] ? __alloc_fd+0x1d7/0x4a0 [ 31.505759] [] do_sys_open+0x30d/0x5c0 [ 31.511374] [] ? filp_open+0x70/0x70 [ 31.516719] [] ? up_read+0x1a/0x40 [ 31.521884] [] SyS_open+0x2d/0x40 [ 31.527037] [] ? do_sys_open+0x5c0/0x5c0 [ 31.532727] [] do_syscall_64+0x19f/0x480 [ 31.538472] [] entry_SYSCALL_64_after_swapgs+0x5d/0xdb [ 31.545643] Dumping ftrace buffer: [ 31.549208] (ftrace buffer empty) [ 31.552897] Kernel Offset: disabled [ 31.556499] Rebooting in 86400 seconds..