[....] 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: [ 19.779120] random: sshd: uninitialized urandom read (32 bytes read) [ 20.058415] audit: type=1400 audit(1536747496.302:6): avc: denied { map } for pid=1765 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.102159] random: sshd: uninitialized urandom read (32 bytes read) [ 20.577850] random: sshd: uninitialized urandom read (32 bytes read) [ 43.412257] random: sshd: uninitialized urandom read (32 bytes read) Warning: Permanently added '10.128.15.216' (ECDSA) to the list of known hosts. [ 49.011529] 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 [ 49.100531] audit: type=1400 audit(1536747525.352:7): avc: denied { map } for pid=1795 comm="syz-executor965" path="/root/syz-executor965552990" 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 executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program [ 52.748332] ================================================================== [ 52.755767] BUG: KASAN: use-after-free in disk_unblock_events+0x4b/0x50 [ 52.762524] Read of size 8 at addr ffff8801c9048568 by task blkid/2695 [ 52.769184] [ 52.770811] CPU: 0 PID: 2695 Comm: blkid Not tainted 4.14.69+ #5 [ 52.776960] Call Trace: [ 52.779554] dump_stack+0xb9/0x11b [ 52.783106] print_address_description+0x60/0x22b [ 52.787965] kasan_report.cold.6+0x11b/0x2dd [ 52.792377] ? 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 [ 52.796787] disk_unblock_events+0x4b/0x50 [ 52.801025] __blkdev_get+0x68f/0xe50 [ 52.804828] ? trace_hardirqs_on+0x10/0x10 [ 52.809075] ? __blkdev_put+0x6e0/0x6e0 [ 52.813053] ? check_preemption_disabled+0x34/0x160 [ 52.818071] ? fsnotify+0x639/0x12d0 [ 52.821790] blkdev_get+0x97/0x8c0 [ 52.825338] ? bd_may_claim+0xe0/0xe0 [ 52.829136] ? bd_acquire+0x171/0x2c0 [ 52.833113] ? lock_downgrade+0x560/0x560 [ 52.837263] ? lock_acquire+0x10f/0x380 [ 52.841234] ? bd_acquire+0x21/0x2c0 [ 52.844970] blkdev_open+0x1bd/0x240 [ 52.848692] ? security_file_open+0x88/0x190 [ 52.853107] do_dentry_open+0x426/0xda0 [ 52.857176] ? bd_acquire+0x2c0/0x2c0 [ 52.860994] vfs_open+0x11c/0x210 [ 52.864454] path_openat+0x4eb/0x23a0 [ 52.868262] ? path_mountpoint+0x9a0/0x9a0 [ 52.872501] ? kasan_kmalloc.part.1+0x4f/0xd0 [ 52.877002] ? trace_hardirqs_on+0x10/0x10 [ 52.881262] do_filp_open+0x197/0x270 [ 52.885067] ? may_open_dev+0xd0/0xd0 [ 52.888883] ? _raw_spin_unlock+0x29/0x40 [ 52.893046] do_sys_open+0x2ef/0x580 [ 52.896765] ? filp_open+0x60/0x60 [ 52.900309] ? up_read+0x17/0x30 [ 52.903677] ? __do_page_fault+0x64c/0xb60 [ 52.907925] ? do_syscall_64+0x43/0x4b0 [ 52.911913] ? do_sys_open+0x580/0x580 [ 52.915813] do_syscall_64+0x19b/0x4b0 [ 52.919714] entry_SYSCALL_64_after_hwframe+0x42/0xb7 [ 52.924903] RIP: 0033:0x7f9c2ffc4120 [ 52.928610] RSP: 002b:00007ffcd14f4098 EFLAGS: 00000246 ORIG_RAX: 0000000000000002 [ 52.936323] RAX: ffffffffffffffda RBX: 0000000000000000 RCX: 00007f9c2ffc4120 [ 52.943588] RDX: 00007ffcd14f4f35 RSI: 0000000000000000 RDI: 00007ffcd14f4f35 [ 52.950858] RBP: 0000000000000000 R08: 0000000000000078 R09: 0000000000000000 [ 52.958214] R10: 0000000000000000 R11: 0000000000000246 R12: 0000000002456030 [ 52.965483] R13: 0000000000000000 R14: 0000000000000000 R15: 0000000000000005 [ 52.972764] [ 52.974391] Allocated by task 2676: [ 52.978030] kasan_kmalloc.part.1+0x4f/0xd0 [ 52.982363] kmem_cache_alloc_trace+0x138/0x300 [ 52.987041] alloc_disk_node+0x5f/0x3b0 [ 52.991029] loop_add+0x3e9/0x840 [ 52.994486] loop_probe+0x14f/0x180 [ 52.998113] kobj_lookup+0x230/0x420 [ 53.001829] get_gendisk+0x32/0x230 [ 53.005460] __blkdev_get+0x345/0xe50 [ 53.009260] blkdev_get+0x456/0x8c0 [ 53.012891] blkdev_open+0x1bd/0x240 [ 53.016607] do_dentry_open+0x426/0xda0 [ 53.020581] vfs_open+0x11c/0x210 [ 53.024034] path_openat+0x4eb/0x23a0 [ 53.027838] do_filp_open+0x197/0x270 [ 53.031642] do_sys_open+0x2ef/0x580 [ 53.035360] do_syscall_64+0x19b/0x4b0 [ 53.039255] entry_SYSCALL_64_after_hwframe+0x42/0xb7 [ 53.044438] [ 53.046077] Freed by task 2695: [ 53.049362] kasan_slab_free+0xac/0x190 [ 53.053338] kfree+0xf5/0x310 [ 53.056536] device_release+0xf4/0x1a0 [ 53.060422] kobject_put+0x146/0x200 [ 53.064137] put_disk+0x1f/0x30 [ 53.067415] __blkdev_get+0x5fa/0xe50 [ 53.071220] blkdev_get+0x97/0x8c0 [ 53.074757] blkdev_open+0x1bd/0x240 [ 53.078476] do_dentry_open+0x426/0xda0 [ 53.082454] vfs_open+0x11c/0x210 [ 53.085908] path_openat+0x4eb/0x23a0 [ 53.089716] do_filp_open+0x197/0x270 [ 53.093516] do_sys_open+0x2ef/0x580 [ 53.097233] do_syscall_64+0x19b/0x4b0 [ 53.101124] entry_SYSCALL_64_after_hwframe+0x42/0xb7 [ 53.106301] [ 53.107929] The buggy address belongs to the object at ffff8801c9048000 [ 53.107929] which belongs to the cache kmalloc-2048 of size 2048 [ 53.120768] The buggy address is located 1384 bytes inside of [ 53.120768] 2048-byte region [ffff8801c9048000, ffff8801c9048800) [ 53.132810] The buggy address belongs to the page: [ 53.137737] page:ffffea0007241200 count:1 mapcount:0 mapping: (null) index:0x0 compound_mapcount: 0 [ 53.147713] flags: 0x4000000000008100(slab|head) [ 53.152468] raw: 4000000000008100 0000000000000000 0000000000000000 00000001800f000f [ 53.160354] raw: dead000000000100 dead000000000200 ffff8801da802800 0000000000000000 [ 53.168234] page dumped because: kasan: bad access detected [ 53.173940] [ 53.175569] Memory state around the buggy address: [ 53.180490] ffff8801c9048400: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 53.187843] ffff8801c9048480: 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 [ 53.195197] >ffff8801c9048500: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 53.202544] ^ [ 53.209294] ffff8801c9048580: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 53.216648] ffff8801c9048600: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 53.223997] ================================================================== [ 53.231341] Disabling lock debugging due to kernel taint [ 53.240061] Kernel panic - not syncing: panic_on_warn set ... [ 53.240061] executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program [ 53.247437] CPU: 0 PID: 2695 Comm: blkid Tainted: G B 4.14.69+ #5 [ 53.254784] Call Trace: [ 53.257372] dump_stack+0xb9/0x11b [ 53.260908] panic+0x1bf/0x3a4 [ 53.264094] ? add_taint.cold.4+0x16/0x16 [ 53.268242] ? ___preempt_schedule+0x16/0x18 [ 53.272659] kasan_end_report+0x43/0x49 [ 53.276631] kasan_report.cold.6+0x77/0x2dd [ 53.280957] ? disk_unblock_events+0x4b/0x50 [ 53.285361] disk_unblock_events+0x4b/0x50 [ 53.289595] __blkdev_get+0x68f/0xe50 [ 53.293388] ? trace_hardirqs_on+0x10/0x10 [ 53.297619] ? __blkdev_put+0x6e0/0x6e0 [ 53.301591] ? check_preemption_disabled+0x34/0x160 [ 53.306604] ? fsnotify+0x639/0x12d0 [ 53.310317] blkdev_get+0x97/0x8c0 [ 53.313857] ? bd_may_claim+0xe0/0xe0 [ 53.317651] ? bd_acquire+0x171/0x2c0 [ 53.321445] ? lock_downgrade+0x560/0x560 [ 53.325589] ? lock_acquire+0x10f/0x380 [ 53.329560] ? bd_acquire+0x21/0x2c0 [ 53.333284] blkdev_open+0x1bd/0x240 [ 53.336991] ? security_file_open+0x88/0x190 [ 53.341397] do_dentry_open+0x426/0xda0 [ 53.345363] ? bd_acquire+0x2c0/0x2c0 [ 53.349165] vfs_open+0x11c/0x210 [ 53.352617] path_openat+0x4eb/0x23a0 [ 53.356418] ? path_mountpoint+0x9a0/0x9a0 [ 53.360650] ? kasan_kmalloc.part.1+0x4f/0xd0 [ 53.365146] ? trace_hardirqs_on+0x10/0x10 [ 53.369386] do_filp_open+0x197/0x270 [ 53.373184] ? may_open_dev+0xd0/0xd0 [ 53.376993] ? _raw_spin_unlock+0x29/0x40 [ 53.381147] do_sys_open+0x2ef/0x580 [ 53.384859] ? filp_open+0x60/0x60 [ 53.388393] ? up_read+0x17/0x30 [ 53.391752] ? __do_page_fault+0x64c/0xb60 [ 53.395982] ? do_syscall_64+0x43/0x4b0 executing program executing program executing program executing program executing program executing program executing program executing program [ 53.399959] ? do_sys_open+0x580/0x580 [ 53.403847] do_syscall_64+0x19b/0x4b0 [ 53.407733] entry_SYSCALL_64_after_hwframe+0x42/0xb7 [ 53.412913] RIP: 0033:0x7f9c2ffc4120 [ 53.416626] RSP: 002b:00007ffcd14f4098 EFLAGS: 00000246 ORIG_RAX: 0000000000000002 [ 53.424329] RAX: ffffffffffffffda RBX: 0000000000000000 RCX: 00007f9c2ffc4120 [ 53.431589] RDX: 00007ffcd14f4f35 RSI: 0000000000000000 RDI: 00007ffcd14f4f35 [ 53.438852] RBP: 0000000000000000 R08: 0000000000000078 R09: 0000000000000000 [ 53.446118] R10: 0000000000000000 R11: 0000000000000246 R12: 0000000002456030 [ 53.453381] R13: 0000000000000000 R14: 0000000000000000 R15: 0000000000000005 [ 53.461022] Dumping ftrace buffer: [ 53.464545] (ftrace buffer empty) [ 53.468257] Kernel Offset: 0x5800000 from 0xffffffff81000000 (relocation range: 0xffffffff80000000-0xffffffffbfffffff) [ 53.479076] Rebooting in 86400 seconds..