[ 11.638037] 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: [ 18.435548] random: sshd: uninitialized urandom read (32 bytes read) [ 18.684846] audit: type=1400 audit(1537739251.110:6): avc: denied { map } for pid=1757 comm="bash" path="/bin/bash" dev="sda1" ino=1457 scontext=unconfined_u:system_r:insmod_t:s0-s0:c0.c1023 tcontext=system_u:object_r:file_t:s0 tclass=file permissive=1 [ 18.732175] random: sshd: uninitialized urandom read (32 bytes read) [ 19.204681] random: sshd: uninitialized urandom read (32 bytes read) Warning: Permanently added '10.128.10.35' (ECDSA) to the list of known hosts. [ 24.873685] urandom_read: 1 callbacks suppressed [ 24.873689] random: sshd: uninitialized urandom read (32 bytes read) executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program [ 24.981810] audit: type=1400 audit(1537739257.410:7): avc: denied { map } for pid=1775 comm="syz-executor439" path="/root/syz-executor439184670" dev="sda1" ino=16481 scontext=unconfined_u:system_r:insmod_t:s0-s0:c0.c1023 tcontext=unconfined_u:object_r:user_home_t:s0 tclass=file permissive=1 executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program 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.936812] ================================================================== [ 30.944507] BUG: KASAN: use-after-free in disk_unblock_events+0x4b/0x50 [ 30.951395] Read of size 8 at addr ffff8801cd592fe8 by task blkid/2450 [ 30.958159] [ 30.959778] CPU: 0 PID: 2450 Comm: blkid Not tainted 4.14.71+ #8 [ 30.966185] Call Trace: [ 30.968769] dump_stack+0xb9/0x11b [ 30.972302] print_address_description+0x60/0x22b [ 30.977269] kasan_report.cold.6+0x11b/0x2dd [ 30.981670] ? disk_unblock_events+0x4b/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 [ 30.986070] disk_unblock_events+0x4b/0x50 [ 30.990448] __blkdev_get+0x68f/0xe50 [ 30.994243] ? trace_hardirqs_on+0x10/0x10 [ 30.998467] ? __blkdev_put+0x6e0/0x6e0 [ 31.002769] ? check_preemption_disabled+0x34/0x160 [ 31.008457] ? fsnotify+0x639/0x12d0 [ 31.012337] blkdev_get+0x97/0x8c0 [ 31.015952] ? bd_may_claim+0xe0/0xe0 [ 31.019899] ? bd_acquire+0x171/0x2c0 [ 31.023691] ? lock_downgrade+0x560/0x560 [ 31.027822] ? lock_acquire+0x10f/0x380 [ 31.032042] ? bd_acquire+0x21/0x2c0 executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program 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.036027] blkdev_open+0x1bd/0x240 [ 31.039737] ? security_file_open+0x88/0x190 [ 31.044153] do_dentry_open+0x426/0xda0 [ 31.048128] ? bd_acquire+0x2c0/0x2c0 [ 31.051921] vfs_open+0x11c/0x210 [ 31.055453] path_openat+0x4eb/0x23a0 [ 31.059535] ? path_mountpoint+0x9a0/0x9a0 [ 31.064040] ? kasan_kmalloc.part.1+0x4f/0xd0 [ 31.068538] ? trace_hardirqs_on+0x10/0x10 [ 31.072928] ? new_slab+0x358/0x470 [ 31.076945] ? new_slab+0x25f/0x470 [ 31.080652] do_filp_open+0x197/0x270 executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program 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.084448] ? may_open_dev+0xd0/0xd0 [ 31.088489] ? _raw_spin_unlock+0x29/0x40 [ 31.093066] do_sys_open+0x2ef/0x580 [ 31.096781] ? filp_open+0x60/0x60 [ 31.100318] ? up_read+0x17/0x30 [ 31.103682] ? __do_page_fault+0x64c/0xb60 [ 31.108032] ? do_syscall_64+0x43/0x4b0 [ 31.112224] ? do_sys_open+0x580/0x580 [ 31.116107] do_syscall_64+0x19b/0x4b0 [ 31.120012] entry_SYSCALL_64_after_hwframe+0x42/0xb7 [ 31.125189] RIP: 0033:0x7fcabfecd120 [ 31.129008] RSP: 002b:00007ffca285b2e8 EFLAGS: 00000246 ORIG_RAX: 0000000000000002 executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program 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.137247] RAX: ffffffffffffffda RBX: 0000000000000000 RCX: 00007fcabfecd120 [ 31.145082] RDX: 00007ffca285bf45 RSI: 0000000000000000 RDI: 00007ffca285bf45 [ 31.152706] RBP: 0000000000000000 R08: 0000000000000078 R09: 0000000000000000 [ 31.160097] R10: 0000000000000000 R11: 0000000000000246 R12: 00000000010da030 [ 31.167358] R13: 0000000000000000 R14: 0000000000000000 R15: 0000000000000005 [ 31.174772] [ 31.176390] Allocated by task 2447: [ 31.180028] kasan_kmalloc.part.1+0x4f/0xd0 executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program 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.184461] kmem_cache_alloc_trace+0x138/0x300 [ 31.189212] alloc_disk_node+0x5f/0x3b0 [ 31.193486] loop_add+0x3e9/0x840 [ 31.197049] loop_probe+0x14f/0x180 [ 31.200754] kobj_lookup+0x230/0x420 [ 31.204462] get_gendisk+0x32/0x230 [ 31.208079] blkdev_get+0x13b/0x8c0 [ 31.211688] blkdev_open+0x1bd/0x240 [ 31.215505] do_dentry_open+0x426/0xda0 [ 31.219467] vfs_open+0x11c/0x210 [ 31.223026] path_openat+0x4eb/0x23a0 [ 31.226812] do_filp_open+0x197/0x270 [ 31.230598] do_sys_open+0x2ef/0x580 [ 31.234306] do_syscall_64+0x19b/0x4b0 executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program 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.238320] entry_SYSCALL_64_after_hwframe+0x42/0xb7 [ 31.243624] [ 31.245240] Freed by task 2450: [ 31.248653] kasan_slab_free+0xac/0x190 [ 31.252862] kfree+0xf5/0x310 [ 31.255960] device_release+0xf4/0x1a0 [ 31.260012] kobject_put+0x146/0x200 [ 31.263803] put_disk+0x1f/0x30 [ 31.267157] __blkdev_get+0x5fa/0xe50 [ 31.271090] blkdev_get+0x97/0x8c0 [ 31.275294] blkdev_open+0x1bd/0x240 [ 31.279153] do_dentry_open+0x426/0xda0 [ 31.284224] vfs_open+0x11c/0x210 executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program 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.287964] path_openat+0x4eb/0x23a0 [ 31.291778] do_filp_open+0x197/0x270 [ 31.295563] do_sys_open+0x2ef/0x580 [ 31.299285] do_syscall_64+0x19b/0x4b0 [ 31.303436] entry_SYSCALL_64_after_hwframe+0x42/0xb7 [ 31.308734] [ 31.310354] The buggy address belongs to the object at ffff8801cd592a80 [ 31.310354] which belongs to the cache kmalloc-2048 of size 2048 [ 31.323731] The buggy address is located 1384 bytes inside of [ 31.323731] 2048-byte region [ffff8801cd592a80, ffff8801cd593280) executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program 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.335769] The buggy address belongs to the page: [ 31.340806] page:ffffea0007356400 count:1 mapcount:0 mapping: (null) index:0x0 compound_mapcount: 0 [ 31.350768] flags: 0x4000000000008100(slab|head) [ 31.355723] raw: 4000000000008100 0000000000000000 0000000000000000 00000001000f000f [ 31.363839] raw: dead000000000100 dead000000000200 ffff8801da802800 0000000000000000 [ 31.372005] page dumped because: kasan: bad access detected [ 31.377937] [ 31.379638] Memory state around the buggy address: executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program 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.384716] ffff8801cd592e80: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 31.392147] ffff8801cd592f00: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 31.399752] >ffff8801cd592f80: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 31.407223] ^ [ 31.413962] ffff8801cd593000: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 31.421330] ffff8801cd593080: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 31.428788] ================================================================== executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program 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.436134] Disabling lock debugging due to kernel taint [ 31.443264] Kernel panic - not syncing: panic_on_warn set ... [ 31.443264] [ 31.450827] CPU: 0 PID: 2450 Comm: blkid Tainted: G B 4.14.71+ #8 [ 31.458172] Call Trace: [ 31.460751] dump_stack+0xb9/0x11b [ 31.464477] panic+0x1bf/0x3a4 [ 31.467665] ? add_taint.cold.4+0x16/0x16 [ 31.471801] ? ___preempt_schedule+0x16/0x18 [ 31.476457] kasan_end_report+0x43/0x49 [ 31.480563] kasan_report.cold.6+0x77/0x2dd executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program 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.485266] ? disk_unblock_events+0x4b/0x50 [ 31.489820] disk_unblock_events+0x4b/0x50 [ 31.494045] __blkdev_get+0x68f/0xe50 [ 31.498003] ? trace_hardirqs_on+0x10/0x10 [ 31.502232] ? __blkdev_put+0x6e0/0x6e0 [ 31.506225] ? check_preemption_disabled+0x34/0x160 [ 31.511520] ? fsnotify+0x639/0x12d0 [ 31.515237] blkdev_get+0x97/0x8c0 [ 31.518766] ? bd_may_claim+0xe0/0xe0 [ 31.522694] ? bd_acquire+0x171/0x2c0 [ 31.526483] ? lock_downgrade+0x560/0x560 [ 31.530783] ? lock_acquire+0x10f/0x380 [ 31.534742] ? bd_acquire+0x21/0x2c0 executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program 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.538443] blkdev_open+0x1bd/0x240 [ 31.542144] ? security_file_open+0x88/0x190 [ 31.546627] do_dentry_open+0x426/0xda0 [ 31.550781] ? bd_acquire+0x2c0/0x2c0 [ 31.554577] vfs_open+0x11c/0x210 [ 31.558037] path_openat+0x4eb/0x23a0 [ 31.561836] ? path_mountpoint+0x9a0/0x9a0 [ 31.566137] ? kasan_kmalloc.part.1+0x4f/0xd0 [ 31.570759] ? trace_hardirqs_on+0x10/0x10 [ 31.575003] ? new_slab+0x358/0x470 [ 31.578643] ? new_slab+0x25f/0x470 [ 31.582387] do_filp_open+0x197/0x270 executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program 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.586329] ? may_open_dev+0xd0/0xd0 [ 31.590143] ? _raw_spin_unlock+0x29/0x40 [ 31.594553] do_sys_open+0x2ef/0x580 [ 31.598568] ? filp_open+0x60/0x60 [ 31.602245] ? up_read+0x17/0x30 [ 31.605746] ? __do_page_fault+0x64c/0xb60 [ 31.609993] ? do_syscall_64+0x43/0x4b0 [ 31.613963] ? do_sys_open+0x580/0x580 [ 31.617864] do_syscall_64+0x19b/0x4b0 [ 31.621904] entry_SYSCALL_64_after_hwframe+0x42/0xb7 [ 31.627221] RIP: 0033:0x7fcabfecd120 [ 31.631150] RSP: 002b:00007ffca285b2e8 EFLAGS: 00000246 ORIG_RAX: 0000000000000002 executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program 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.639133] RAX: ffffffffffffffda RBX: 0000000000000000 RCX: 00007fcabfecd120 [ 31.646495] RDX: 00007ffca285bf45 RSI: 0000000000000000 RDI: 00007ffca285bf45 [ 31.653835] RBP: 0000000000000000 R08: 0000000000000078 R09: 0000000000000000 [ 31.661332] R10: 0000000000000000 R11: 0000000000000246 R12: 00000000010da030 [ 31.668596] R13: 0000000000000000 R14: 0000000000000000 R15: 0000000000000005 [ 31.676295] Kernel Offset: 0x2ac00000 from 0xffffffff81000000 (relocation range: 0xffffffff80000000-0xffffffffbfffffff) [ 31.687320] Rebooting in 86400 seconds..