[....] Starting OpenBSD Secure Shell server: sshd[ 11.657178] random: sshd: uninitialized urandom read (32 bytes read) [?25l[?1c7[ ok 8[?25h[?0c. Debian GNU/Linux 7 syzkaller ttyS0 syzkaller login: [ 19.746256] random: sshd: uninitialized urandom read (32 bytes read) [ 20.257557] audit: type=1400 audit(1537488109.679:6): avc: denied { map } for pid=1758 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 [ 20.304329] random: sshd: uninitialized urandom read (32 bytes read) [ 20.802340] random: sshd: uninitialized urandom read (32 bytes read) [ 20.960706] random: sshd: uninitialized urandom read (32 bytes read) Warning: Permanently added '10.128.0.21' (ECDSA) to the list of known hosts. [ 26.548954] 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 [ 26.641989] audit: type=1400 audit(1537488116.069:7): avc: denied { map } for pid=1776 comm="syz-executor236" path="/root/syz-executor236178480" 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 [ 30.578289] ================================================================== [ 30.586120] BUG: KASAN: use-after-free in disk_unblock_events+0x4b/0x50 [ 30.593025] Read of size 8 at addr ffff8801cf637c68 by task blkid/2215 [ 30.600012] [ 30.601637] CPU: 1 PID: 2215 Comm: blkid Not tainted 4.14.71+ #8 [ 30.607769] Call Trace: [ 30.610352] dump_stack+0xb9/0x11b [ 30.613952] print_address_description+0x60/0x22b [ 30.619170] kasan_report.cold.6+0x11b/0x2dd [ 30.623708] ? 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 [ 30.628530] disk_unblock_events+0x4b/0x50 [ 30.632760] __blkdev_get+0x68f/0xe50 [ 30.636647] ? trace_hardirqs_on+0x10/0x10 [ 30.641346] ? __blkdev_put+0x6e0/0x6e0 [ 30.645482] ? check_preemption_disabled+0x34/0x160 [ 30.650609] ? fsnotify+0x639/0x12d0 [ 30.654330] blkdev_get+0x97/0x8c0 [ 30.658312] ? bd_may_claim+0xe0/0xe0 [ 30.662109] ? bd_acquire+0x171/0x2c0 [ 30.666006] ? lock_downgrade+0x560/0x560 [ 30.670156] ? lock_acquire+0x10f/0x380 [ 30.674363] ? bd_acquire+0x21/0x2c0 [ 30.678417] blkdev_open+0x1bd/0x240 [ 30.682260] ? security_file_open+0x88/0x190 [ 30.686672] do_dentry_open+0x426/0xda0 [ 30.690767] ? bd_acquire+0x2c0/0x2c0 [ 30.694570] vfs_open+0x11c/0x210 [ 30.698174] path_openat+0x4eb/0x23a0 [ 30.702292] ? path_mountpoint+0x9a0/0x9a0 [ 30.706643] ? kasan_kmalloc.part.1+0x4f/0xd0 [ 30.711277] ? trace_hardirqs_on+0x10/0x10 [ 30.715660] do_filp_open+0x197/0x270 [ 30.719456] ? may_open_dev+0xd0/0xd0 [ 30.723584] ? _raw_spin_unlock+0x29/0x40 [ 30.727739] do_sys_open+0x2ef/0x580 [ 30.731669] ? filp_open+0x60/0x60 [ 30.735204] ? up_read+0x17/0x30 [ 30.738676] ? __do_page_fault+0x64c/0xb60 [ 30.743041] ? do_syscall_64+0x43/0x4b0 [ 30.747009] ? do_sys_open+0x580/0x580 [ 30.751010] do_syscall_64+0x19b/0x4b0 [ 30.755152] entry_SYSCALL_64_after_hwframe+0x42/0xb7 [ 30.760337] RIP: 0033:0x7f432c610120 [ 30.764349] RSP: 002b:00007ffe9df691e8 EFLAGS: 00000246 ORIG_RAX: 0000000000000002 [ 30.772280] RAX: ffffffffffffffda RBX: 0000000000000000 RCX: 00007f432c610120 [ 30.779537] RDX: 00007ffe9df69f45 RSI: 0000000000000000 RDI: 00007ffe9df69f45 [ 30.786804] RBP: 0000000000000000 R08: 0000000000000078 R09: 0000000000000000 [ 30.794056] R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000d74030 [ 30.801571] R13: 0000000000000000 R14: 0000000000000000 R15: 0000000000000005 [ 30.808838] [ 30.810446] Allocated by task 2212: [ 30.814053] kasan_kmalloc.part.1+0x4f/0xd0 [ 30.818353] kmem_cache_alloc_trace+0x138/0x300 [ 30.823001] alloc_disk_node+0x5f/0x3b0 [ 30.826956] loop_add+0x3e9/0x840 [ 30.830388] loop_probe+0x14f/0x180 [ 30.833999] kobj_lookup+0x230/0x420 [ 30.837693] get_gendisk+0x32/0x230 [ 30.841302] blkdev_get+0x13b/0x8c0 [ 30.844909] blkdev_open+0x1bd/0x240 [ 30.848602] do_dentry_open+0x426/0xda0 [ 30.852549] vfs_open+0x11c/0x210 [ 30.855982] path_openat+0x4eb/0x23a0 [ 30.859762] do_filp_open+0x197/0x270 [ 30.863604] do_sys_open+0x2ef/0x580 [ 30.867364] do_syscall_64+0x19b/0x4b0 [ 30.871239] entry_SYSCALL_64_after_hwframe+0x42/0xb7 [ 30.876401] [ 30.878005] Freed by task 2215: [ 30.881263] kasan_slab_free+0xac/0x190 [ 30.885220] kfree+0xf5/0x310 [ 30.888311] device_release+0xf4/0x1a0 [ 30.892178] kobject_put+0x146/0x200 [ 30.895871] put_disk+0x1f/0x30 [ 30.899129] __blkdev_get+0x5fa/0xe50 [ 30.902903] blkdev_get+0x97/0x8c0 [ 30.906424] blkdev_open+0x1bd/0x240 [ 30.910174] do_dentry_open+0x426/0xda0 [ 30.914133] vfs_open+0x11c/0x210 [ 30.917566] path_openat+0x4eb/0x23a0 [ 30.921354] do_filp_open+0x197/0x270 [ 30.925132] do_sys_open+0x2ef/0x580 [ 30.928824] do_syscall_64+0x19b/0x4b0 [ 30.932690] entry_SYSCALL_64_after_hwframe+0x42/0xb7 [ 30.937906] [ 30.939521] The buggy address belongs to the object at ffff8801cf637700 [ 30.939521] which belongs to the cache kmalloc-2048 of size 2048 [ 30.952682] The buggy address is located 1384 bytes inside of [ 30.952682] 2048-byte region [ffff8801cf637700, ffff8801cf637f00) [ 30.964716] The buggy address belongs to the page: [ 30.969640] page:ffffea00073d8c00 count:1 mapcount:0 mapping: (null) index:0x0 compound_mapcount: 0 [ 30.979597] flags: 0x4000000000008100(slab|head) [ 30.984338] raw: 4000000000008100 0000000000000000 0000000000000000 00000001000f000f [ 30.992200] raw: dead000000000100 dead000000000200 ffff8801da802800 0000000000000000 [ 31.000078] page dumped because: kasan: bad access detected [ 31.005836] [ 31.007454] Memory state around the buggy address: [ 31.012366] ffff8801cf637b00: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 31.019710] ffff8801cf637b80: 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 [ 31.027055] >ffff8801cf637c00: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 31.034616] ^ [ 31.041536] ffff8801cf637c80: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 31.048890] ffff8801cf637d00: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 31.056246] ================================================================== [ 31.063594] Disabling lock debugging due to kernel taint [ 31.073979] Kernel panic - not syncing: panic_on_warn set ... executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program 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.073979] [ 31.081715] CPU: 1 PID: 2215 Comm: blkid Tainted: G B 4.14.71+ #8 [ 31.089067] Call Trace: [ 31.091740] dump_stack+0xb9/0x11b [ 31.095562] panic+0x1bf/0x3a4 [ 31.098845] ? add_taint.cold.4+0x16/0x16 [ 31.103102] ? ___preempt_schedule+0x16/0x18 [ 31.107774] kasan_end_report+0x43/0x49 [ 31.111740] kasan_report.cold.6+0x77/0x2dd [ 31.116055] ? disk_unblock_events+0x4b/0x50 [ 31.120483] disk_unblock_events+0x4b/0x50 [ 31.124833] __blkdev_get+0x68f/0xe50 [ 31.128624] ? trace_hardirqs_on+0x10/0x10 [ 31.132860] ? __blkdev_put+0x6e0/0x6e0 [ 31.136824] ? check_preemption_disabled+0x34/0x160 [ 31.142270] ? fsnotify+0x639/0x12d0 [ 31.146115] blkdev_get+0x97/0x8c0 [ 31.149648] ? bd_may_claim+0xe0/0xe0 [ 31.153844] ? bd_acquire+0x171/0x2c0 [ 31.157641] ? lock_downgrade+0x560/0x560 [ 31.161877] ? lock_acquire+0x10f/0x380 [ 31.166071] ? bd_acquire+0x21/0x2c0 [ 31.170261] blkdev_open+0x1bd/0x240 [ 31.174141] ? security_file_open+0x88/0x190 [ 31.178788] do_dentry_open+0x426/0xda0 [ 31.182763] ? bd_acquire+0x2c0/0x2c0 [ 31.186984] vfs_open+0x11c/0x210 [ 31.190778] path_openat+0x4eb/0x23a0 [ 31.194675] ? path_mountpoint+0x9a0/0x9a0 [ 31.198907] ? kasan_kmalloc.part.1+0x4f/0xd0 [ 31.203559] ? trace_hardirqs_on+0x10/0x10 [ 31.207883] do_filp_open+0x197/0x270 [ 31.211683] ? may_open_dev+0xd0/0xd0 [ 31.215626] ? _raw_spin_unlock+0x29/0x40 [ 31.220086] do_sys_open+0x2ef/0x580 [ 31.223969] ? filp_open+0x60/0x60 [ 31.227598] ? up_read+0x17/0x30 executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program 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.230963] ? __do_page_fault+0x64c/0xb60 [ 31.235577] ? do_syscall_64+0x43/0x4b0 [ 31.239669] ? do_sys_open+0x580/0x580 [ 31.244052] do_syscall_64+0x19b/0x4b0 [ 31.247941] entry_SYSCALL_64_after_hwframe+0x42/0xb7 [ 31.253392] RIP: 0033:0x7f432c610120 [ 31.257266] RSP: 002b:00007ffe9df691e8 EFLAGS: 00000246 ORIG_RAX: 0000000000000002 [ 31.265149] RAX: ffffffffffffffda RBX: 0000000000000000 RCX: 00007f432c610120 [ 31.272550] RDX: 00007ffe9df69f45 RSI: 0000000000000000 RDI: 00007ffe9df69f45 [ 31.279955] RBP: 0000000000000000 R08: 0000000000000078 R09: 0000000000000000 [ 31.287245] R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000d74030 [ 31.294508] R13: 0000000000000000 R14: 0000000000000000 R15: 0000000000000005 [ 31.302574] Kernel Offset: 0x1f000000 from 0xffffffff81000000 (relocation range: 0xffffffff80000000-0xffffffffbfffffff) [ 31.313822] Rebooting in 86400 seconds..