[....] 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: [ 33.429030] random: sshd: uninitialized urandom read (32 bytes read) [ 33.703439] audit: type=1400 audit(1541058064.147:6): avc: denied { map } for pid=1771 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 [ 33.745898] random: sshd: uninitialized urandom read (32 bytes read) [ 34.203901] random: sshd: uninitialized urandom read (32 bytes read) [ 61.025336] random: sshd: uninitialized urandom read (32 bytes read) Warning: Permanently added '10.128.0.16' (ECDSA) to the list of known hosts. [ 66.703233] random: sshd: uninitialized urandom read (32 bytes read) executing program executing program executing program executing program executing program executing program [ 66.793451] audit: type=1400 audit(1541058097.237:7): avc: denied { map } for pid=1801 comm="syz-executor428" path="/root/syz-executor428220924" 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 executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program [ 76.384499] ================================================================== [ 76.391999] BUG: KASAN: use-after-free in disk_unblock_events+0x4b/0x50 [ 76.398730] Read of size 8 at addr ffff8801c9281ee8 by task blkid/2809 [ 76.405405] [ 76.407019] CPU: 1 PID: 2809 Comm: blkid Not tainted 4.14.78+ #26 [ 76.413235] Call Trace: [ 76.415836] dump_stack+0xb9/0x11b [ 76.419370] print_address_description+0x60/0x22b [ 76.424202] kasan_report.cold.6+0x11b/0x2dd [ 76.428589] ? 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 [ 76.432982] disk_unblock_events+0x4b/0x50 [ 76.437190] __blkdev_get+0x68f/0xe50 [ 76.440987] ? trace_hardirqs_on+0x10/0x10 [ 76.445203] ? __blkdev_put+0x6e0/0x6e0 [ 76.449155] ? check_preemption_disabled+0x34/0x160 [ 76.454145] ? fsnotify+0x639/0x12d0 [ 76.457843] blkdev_get+0x97/0x8c0 [ 76.461357] ? bd_may_claim+0xe0/0xe0 [ 76.465128] ? bd_acquire+0x171/0x2c0 [ 76.468903] ? lock_downgrade+0x560/0x560 [ 76.473023] ? lock_acquire+0x10f/0x380 [ 76.476973] ? bd_acquire+0x21/0x2c0 [ 76.480769] blkdev_open+0x1bd/0x240 [ 76.484459] ? security_file_open+0x88/0x190 [ 76.488841] do_dentry_open+0x426/0xda0 [ 76.492786] ? bd_acquire+0x2c0/0x2c0 [ 76.496568] vfs_open+0x11c/0x210 [ 76.499998] path_openat+0x4eb/0x23a0 [ 76.503778] ? path_mountpoint+0x9a0/0x9a0 [ 76.507989] ? kasan_kmalloc.part.1+0x4f/0xd0 [ 76.512475] ? trace_hardirqs_on+0x10/0x10 [ 76.516686] ? __sched_text_start+0x8/0x8 [ 76.520816] ? ___preempt_schedule+0x16/0x18 [ 76.525208] do_filp_open+0x197/0x270 [ 76.528995] ? may_open_dev+0xd0/0xd0 [ 76.532792] ? _raw_spin_unlock+0x29/0x40 [ 76.536917] do_sys_open+0x2ef/0x580 [ 76.540612] ? filp_open+0x60/0x60 [ 76.544125] ? up_read+0x17/0x30 [ 76.547464] ? __do_page_fault+0x64c/0xb60 [ 76.551689] ? do_syscall_64+0x43/0x4b0 [ 76.555649] ? do_sys_open+0x580/0x580 [ 76.559537] do_syscall_64+0x19b/0x4b0 [ 76.563402] entry_SYSCALL_64_after_hwframe+0x42/0xb7 [ 76.568564] RIP: 0033:0x7f6beeed5120 [ 76.572251] RSP: 002b:00007ffed75626c8 EFLAGS: 00000246 ORIG_RAX: 0000000000000002 [ 76.579930] RAX: ffffffffffffffda RBX: 0000000000000000 RCX: 00007f6beeed5120 [ 76.587202] RDX: 00007ffed7564f45 RSI: 0000000000000000 RDI: 00007ffed7564f45 [ 76.594446] RBP: 0000000000000000 R08: 0000000000000078 R09: 0000000000000000 [ 76.601690] R10: 0000000000000000 R11: 0000000000000246 R12: 000000000160d030 [ 76.608933] R13: 0000000000000000 R14: 0000000000000000 R15: 0000000000000005 [ 76.616189] [ 76.617791] Allocated by task 2790: [ 76.621391] kasan_kmalloc.part.1+0x4f/0xd0 [ 76.625689] kmem_cache_alloc_trace+0x138/0x300 [ 76.630331] alloc_disk_node+0x5f/0x3b0 [ 76.634278] loop_add+0x3e9/0x840 [ 76.637703] loop_control_ioctl+0x12e/0x310 [ 76.642001] do_vfs_ioctl+0x1a0/0x1030 [ 76.645861] SyS_ioctl+0x7e/0xb0 [ 76.649207] do_syscall_64+0x19b/0x4b0 [ 76.653077] entry_SYSCALL_64_after_hwframe+0x42/0xb7 [ 76.658240] [ 76.659843] Freed by task 2809: [ 76.663099] kasan_slab_free+0xac/0x190 [ 76.667050] kfree+0xf5/0x310 [ 76.670132] device_release+0xf4/0x1a0 [ 76.673995] kobject_put+0x146/0x200 [ 76.677682] put_disk+0x1f/0x30 [ 76.680933] __blkdev_get+0x5fa/0xe50 [ 76.684704] blkdev_get+0x97/0x8c0 [ 76.688218] blkdev_open+0x1bd/0x240 [ 76.691903] do_dentry_open+0x426/0xda0 [ 76.695851] vfs_open+0x11c/0x210 [ 76.699275] path_openat+0x4eb/0x23a0 [ 76.703050] do_filp_open+0x197/0x270 [ 76.706821] do_sys_open+0x2ef/0x580 [ 76.710511] do_syscall_64+0x19b/0x4b0 [ 76.714371] entry_SYSCALL_64_after_hwframe+0x42/0xb7 [ 76.719528] [ 76.721132] The buggy address belongs to the object at ffff8801c9281980 [ 76.721132] which belongs to the cache kmalloc-2048 of size 2048 [ 76.733932] The buggy address is located 1384 bytes inside of [ 76.733932] 2048-byte region [ffff8801c9281980, ffff8801c9282180) [ 76.745952] The buggy address belongs to the page: [ 76.750853] page:ffffea000724a000 count:1 mapcount:0 mapping: (null) index:0x0 compound_mapcount: 0 [ 76.760790] flags: 0x4000000000008100(slab|head) [ 76.765518] raw: 4000000000008100 0000000000000000 0000000000000000 00000001800f000f [ 76.773371] raw: ffffea0007246e00 0000000400000004 ffff8801da802800 0000000000000000 [ 76.781222] page dumped because: kasan: bad access detected [ 76.786904] [ 76.788503] Memory state around the buggy address: [ 76.793403] ffff8801c9281d80: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 76.800733] ffff8801c9281e00: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 76.808062] >ffff8801c9281e80: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 76.815465] ^ [ 76.822197] ffff8801c9281f00: 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 [ 76.829530] ffff8801c9281f80: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 76.836858] ================================================================== [ 76.844189] Disabling lock debugging due to kernel taint [ 76.855711] Kernel panic - not syncing: panic_on_warn set ... [ 76.855711] [ 76.863207] CPU: 0 PID: 2809 Comm: blkid Tainted: G B 4.14.78+ #26 [ 76.870735] Call Trace: [ 76.873306] dump_stack+0xb9/0x11b [ 76.876826] panic+0x1bf/0x3a4 [ 76.880001] ? add_taint.cold.4+0x16/0x16 executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program [ 76.884127] ? ___preempt_schedule+0x16/0x18 [ 76.888515] kasan_end_report+0x43/0x49 [ 76.892469] kasan_report.cold.6+0x77/0x2dd [ 76.896773] ? disk_unblock_events+0x4b/0x50 [ 76.901157] disk_unblock_events+0x4b/0x50 [ 76.905366] __blkdev_get+0x68f/0xe50 [ 76.909143] ? trace_hardirqs_on+0x10/0x10 [ 76.913357] ? __blkdev_put+0x6e0/0x6e0 [ 76.917309] ? check_preemption_disabled+0x34/0x160 [ 76.922301] ? fsnotify+0x639/0x12d0 [ 76.925995] blkdev_get+0x97/0x8c0 [ 76.929678] ? bd_may_claim+0xe0/0xe0 executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program [ 76.933460] ? bd_acquire+0x171/0x2c0 [ 76.937323] ? lock_downgrade+0x560/0x560 [ 76.941451] ? lock_acquire+0x10f/0x380 [ 76.945406] ? bd_acquire+0x21/0x2c0 [ 76.949102] blkdev_open+0x1bd/0x240 [ 76.952792] ? security_file_open+0x88/0x190 [ 76.957179] do_dentry_open+0x426/0xda0 [ 76.961134] ? bd_acquire+0x2c0/0x2c0 [ 76.964914] vfs_open+0x11c/0x210 [ 76.968347] path_openat+0x4eb/0x23a0 [ 76.972131] ? path_mountpoint+0x9a0/0x9a0 [ 76.976344] ? kasan_kmalloc.part.1+0x4f/0xd0 [ 76.980876] ? trace_hardirqs_on+0x10/0x10 executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program [ 76.985100] ? __sched_text_start+0x8/0x8 [ 76.989330] ? ___preempt_schedule+0x16/0x18 [ 76.993719] do_filp_open+0x197/0x270 [ 76.997566] ? may_open_dev+0xd0/0xd0 [ 77.001363] ? _raw_spin_unlock+0x29/0x40 [ 77.005493] do_sys_open+0x2ef/0x580 [ 77.009189] ? filp_open+0x60/0x60 [ 77.012712] ? up_read+0x17/0x30 [ 77.016061] ? __do_page_fault+0x64c/0xb60 [ 77.020323] ? do_syscall_64+0x43/0x4b0 [ 77.024281] ? do_sys_open+0x580/0x580 [ 77.028148] do_syscall_64+0x19b/0x4b0 [ 77.032017] entry_SYSCALL_64_after_hwframe+0x42/0xb7 executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program [ 77.037182] RIP: 0033:0x7f6beeed5120 [ 77.040867] RSP: 002b:00007ffed75626c8 EFLAGS: 00000246 ORIG_RAX: 0000000000000002 [ 77.048548] RAX: ffffffffffffffda RBX: 0000000000000000 RCX: 00007f6beeed5120 [ 77.055920] RDX: 00007ffed7564f45 RSI: 0000000000000000 RDI: 00007ffed7564f45 [ 77.063165] RBP: 0000000000000000 R08: 0000000000000078 R09: 0000000000000000 [ 77.070409] R10: 0000000000000000 R11: 0000000000000246 R12: 000000000160d030 [ 77.077655] R13: 0000000000000000 R14: 0000000000000000 R15: 0000000000000005 [ 77.085186] Kernel Offset: 0x8a00000 from 0xffffffff81000000 (relocation range: 0xffffffff80000000-0xffffffffbfffffff) [ 77.096042] Rebooting in 86400 seconds..