[ 37.102314] audit: type=1800 audit(1555650460.494:33): pid=6873 uid=0 auid=4294967295 ses=4294967295 subj=system_u:system_r:kernel_t:s0 op="collect_data" cause="failed(directio)" comm="startpar" name="rc.local" dev="sda1" ino=2465 res=0 [ 37.124381] audit: type=1800 audit(1555650460.494:34): pid=6873 uid=0 auid=4294967295 ses=4294967295 subj=system_u:system_r:kernel_t:s0 op="collect_data" cause="failed(directio)" comm="startpar" name="rmnologin" dev="sda1" ino=2456 res=0 Debian GNU/Linux 7 syzkaller ttyS0 syzkaller login: [ 42.333595] random: sshd: uninitialized urandom read (32 bytes read) [ 42.667826] audit: type=1400 audit(1555650466.054:35): avc: denied { map } for pid=7045 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 [ 42.709774] random: sshd: uninitialized urandom read (32 bytes read) [ 43.308558] random: sshd: uninitialized urandom read (32 bytes read) [ 392.056244] random: sshd: uninitialized urandom read (32 bytes read) Warning: Permanently added '10.128.0.127' (ECDSA) to the list of known hosts. [ 397.682142] 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 [ 397.811572] audit: type=1400 audit(1555650821.204:36): avc: denied { map } for pid=7057 comm="syz-executor410" path="/root/syz-executor410505929" dev="sda1" ino=1426 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 [ 397.936436] ================================================================== [ 397.944320] BUG: KASAN: use-after-free in disk_unblock_events+0x55/0x60 [ 397.944331] Read of size 8 at addr ffff88809a85d808 by task syz-executor410/7069 [ 397.958797] [ 397.958819] CPU: 1 PID: 7069 Comm: syz-executor410 Not tainted 4.14.112 #2 [ 397.958822] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 397.958834] Call Trace: [ 397.958916] dump_stack+0x138/0x19c executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program [ 397.967570] ? disk_unblock_events+0x55/0x60 [ 397.967607] print_address_description.cold+0x7c/0x1dc [ 397.967616] ? disk_unblock_events+0x55/0x60 [ 397.983280] kasan_report.cold+0xaf/0x2b5 [ 397.983291] __asan_report_load8_noabort+0x14/0x20 [ 397.983299] disk_unblock_events+0x55/0x60 [ 397.983319] __blkdev_get+0x7d8/0x1120 [ 397.983328] ? __blkdev_put+0x7f0/0x7f0 [ 397.993073] ? bd_acquire+0x178/0x2c0 [ 397.993114] ? find_held_lock+0x35/0x130 [ 397.993123] blkdev_get+0xa8/0x8e0 [ 398.001682] ? bd_may_claim+0xd0/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 [ 398.001706] ? _raw_spin_unlock+0x2d/0x50 [ 398.001714] blkdev_open+0x1d1/0x260 [ 398.042513] ? security_file_open+0x8f/0x1a0 [ 398.046936] do_dentry_open+0x73e/0xeb0 [ 398.051169] ? bd_acquire+0x2c0/0x2c0 [ 398.054968] vfs_open+0x105/0x230 [ 398.058424] path_openat+0x8bd/0x3f70 [ 398.062212] ? entry_SYSCALL_64_after_hwframe+0x42/0xb7 [ 398.067700] ? trace_hardirqs_on+0x10/0x10 [ 398.071929] ? path_lookupat.isra.0+0x7b0/0x7b0 [ 398.076623] ? __lock_is_held+0xb6/0x140 [ 398.080676] ? save_trace+0x290/0x290 executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program [ 398.084520] ? __alloc_fd+0x1d4/0x4a0 [ 398.088353] do_filp_open+0x18e/0x250 [ 398.092148] ? __alloc_fd+0x1d4/0x4a0 [ 398.096113] ? may_open_dev+0xe0/0xe0 [ 398.099906] ? _raw_spin_unlock+0x2d/0x50 [ 398.104156] ? __alloc_fd+0x1d4/0x4a0 [ 398.107946] do_sys_open+0x2c5/0x430 [ 398.111783] ? filp_open+0x70/0x70 [ 398.115313] ? up_read+0x1a/0x40 [ 398.118709] SyS_openat+0x30/0x40 [ 398.122396] ? SyS_open+0x40/0x40 [ 398.125860] do_syscall_64+0x1eb/0x630 [ 398.129907] ? trace_hardirqs_off_thunk+0x1a/0x1c executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program [ 398.134748] entry_SYSCALL_64_after_hwframe+0x42/0xb7 [ 398.140202] RIP: 0033:0x441259 [ 398.143427] RSP: 002b:00007ffd0635fb78 EFLAGS: 00000246 ORIG_RAX: 0000000000000101 [ 398.151344] RAX: ffffffffffffffda RBX: 0000000000000000 RCX: 0000000000441259 [ 398.158607] RDX: 0000000000000000 RSI: 0000000020000280 RDI: ffffffffffffff9c [ 398.165866] RBP: 00000000006cb018 R08: 0000000000000004 R09: 00000000004002c8 [ 398.173252] R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000401fd0 executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program [ 398.180642] R13: 0000000000402060 R14: 0000000000000000 R15: 0000000000000000 [ 398.187916] [ 398.189591] Allocated by task 1: [ 398.193212] save_stack_trace+0x16/0x20 [ 398.197181] save_stack+0x45/0xd0 [ 398.200897] kasan_kmalloc+0xce/0xf0 [ 398.204770] kmem_cache_alloc_node_trace+0x153/0x770 [ 398.209981] alloc_disk_node+0x64/0x3e0 [ 398.213957] alloc_disk+0x1b/0x20 [ 398.217432] md_alloc+0x219/0x840 [ 398.221005] md_probe+0x31/0x40 [ 398.224396] kobj_lookup+0x221/0x410 [ 398.228110] get_gendisk+0x3b/0x240 [ 398.231993] __blkdev_get+0x3b1/0x1120 executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program [ 398.235990] blkdev_get+0xa8/0x8e0 [ 398.239531] blkdev_open+0x1d1/0x260 [ 398.243255] do_dentry_open+0x73e/0xeb0 [ 398.247367] vfs_open+0x105/0x230 [ 398.250920] path_openat+0x8bd/0x3f70 [ 398.254935] do_filp_open+0x18e/0x250 [ 398.259051] do_sys_open+0x2c5/0x430 [ 398.262764] SyS_open+0x2d/0x40 [ 398.266089] md_run_setup+0x7a/0xad [ 398.269714] prepare_namespace+0x4a/0x21d [ 398.273861] kernel_init_freeable+0x51a/0x538 [ 398.278356] kernel_init+0x12/0x162 [ 398.282118] ret_from_fork+0x3a/0x50 [ 398.285833] executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program [ 398.287473] Freed by task 7069: [ 398.290786] save_stack_trace+0x16/0x20 [ 398.294777] save_stack+0x45/0xd0 [ 398.298248] kasan_slab_free+0x75/0xc0 [ 398.302156] kfree+0xcc/0x270 [ 398.305280] disk_release+0x24b/0x2d0 [ 398.309105] device_release+0xfa/0x1b0 [ 398.313014] kobject_put.cold+0x26f/0x2ff [ 398.317195] put_disk+0x23/0x30 [ 398.320499] __blkdev_get+0x73e/0x1120 [ 398.324405] blkdev_get+0xa8/0x8e0 [ 398.327965] blkdev_open+0x1d1/0x260 [ 398.331698] do_dentry_open+0x73e/0xeb0 executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program [ 398.335691] vfs_open+0x105/0x230 [ 398.339162] path_openat+0x8bd/0x3f70 [ 398.342980] do_filp_open+0x18e/0x250 [ 398.346799] do_sys_open+0x2c5/0x430 [ 398.350531] SyS_openat+0x30/0x40 [ 398.353999] do_syscall_64+0x1eb/0x630 [ 398.357912] entry_SYSCALL_64_after_hwframe+0x42/0xb7 [ 398.363110] [ 398.364745] The buggy address belongs to the object at ffff88809a85d280 [ 398.364745] which belongs to the cache kmalloc-2048 of size 2048 [ 398.377682] The buggy address is located 1416 bytes inside of executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program [ 398.377682] 2048-byte region [ffff88809a85d280, ffff88809a85da80) [ 398.389739] The buggy address belongs to the page: [ 398.394686] page:ffffea00026a1700 count:1 mapcount:0 mapping:ffff88809a85c180 index:0x0 compound_mapcount: 0 [ 398.404682] flags: 0x1fffc0000008100(slab|head) [ 398.409361] raw: 01fffc0000008100 ffff88809a85c180 0000000000000000 0000000100000003 [ 398.417429] raw: ffffea00026a14a0 ffffea00024f25a0 ffff8880aa800c40 0000000000000000 [ 398.425321] page dumped because: kasan: bad access detected [ 398.431036] [ 398.432676] 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 [ 398.437694] ffff88809a85d700: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 398.445071] ffff88809a85d780: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 398.452440] >ffff88809a85d800: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 398.459834] ^ [ 398.463469] ffff88809a85d880: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 398.470840] ffff88809a85d900: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 398.478228] ================================================================== executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program [ 398.485592] Disabling lock debugging due to kernel taint [ 398.492931] Kernel panic - not syncing: panic_on_warn set ... [ 398.492931] [ 398.500315] CPU: 1 PID: 7069 Comm: syz-executor410 Tainted: G B 4.14.112 #2 [ 398.508544] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 398.517922] Call Trace: [ 398.520517] dump_stack+0x138/0x19c [ 398.524153] ? disk_unblock_events+0x55/0x60 [ 398.528566] panic+0x1f2/0x438 [ 398.531764] ? add_taint.cold+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 [ 398.535746] ? ___preempt_schedule+0x16/0x18 [ 398.540162] kasan_end_report+0x47/0x4f [ 398.544142] kasan_report.cold+0x136/0x2b5 [ 398.548384] __asan_report_load8_noabort+0x14/0x20 [ 398.553325] disk_unblock_events+0x55/0x60 [ 398.557564] __blkdev_get+0x7d8/0x1120 [ 398.561459] ? __blkdev_put+0x7f0/0x7f0 [ 398.565436] ? bd_acquire+0x178/0x2c0 [ 398.569244] ? find_held_lock+0x35/0x130 [ 398.573308] blkdev_get+0xa8/0x8e0 [ 398.576853] ? bd_may_claim+0xd0/0xd0 [ 398.580663] ? _raw_spin_unlock+0x2d/0x50 [ 398.584825] blkdev_open+0x1d1/0x260 executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program [ 398.588569] ? security_file_open+0x8f/0x1a0 [ 398.592981] do_dentry_open+0x73e/0xeb0 [ 398.597071] ? bd_acquire+0x2c0/0x2c0 [ 398.600892] vfs_open+0x105/0x230 [ 398.604369] path_openat+0x8bd/0x3f70 [ 398.608187] ? entry_SYSCALL_64_after_hwframe+0x42/0xb7 [ 398.613572] ? trace_hardirqs_on+0x10/0x10 [ 398.617828] ? path_lookupat.isra.0+0x7b0/0x7b0 [ 398.622511] ? __lock_is_held+0xb6/0x140 [ 398.626586] ? save_trace+0x290/0x290 [ 398.630403] ? __alloc_fd+0x1d4/0x4a0 [ 398.634256] do_filp_open+0x18e/0x250 executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program [ 398.638077] ? __alloc_fd+0x1d4/0x4a0 [ 398.641896] ? may_open_dev+0xe0/0xe0 [ 398.645724] ? _raw_spin_unlock+0x2d/0x50 [ 398.649892] ? __alloc_fd+0x1d4/0x4a0 [ 398.653802] do_sys_open+0x2c5/0x430 [ 398.657529] ? filp_open+0x70/0x70 [ 398.661093] ? up_read+0x1a/0x40 [ 398.664493] SyS_openat+0x30/0x40 [ 398.667965] ? SyS_open+0x40/0x40 [ 398.671442] do_syscall_64+0x1eb/0x630 [ 398.675345] ? trace_hardirqs_off_thunk+0x1a/0x1c [ 398.680210] entry_SYSCALL_64_after_hwframe+0x42/0xb7 [ 398.685417] RIP: 0033:0x441259 executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program [ 398.688618] RSP: 002b:00007ffd0635fb78 EFLAGS: 00000246 ORIG_RAX: 0000000000000101 [ 398.696338] RAX: ffffffffffffffda RBX: 0000000000000000 RCX: 0000000000441259 [ 398.703626] RDX: 0000000000000000 RSI: 0000000020000280 RDI: ffffffffffffff9c [ 398.710914] RBP: 00000000006cb018 R08: 0000000000000004 R09: 00000000004002c8 [ 398.718204] R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000401fd0 [ 398.725517] R13: 0000000000402060 R14: 0000000000000000 R15: 0000000000000000 [ 398.733784] Kernel Offset: disabled [ 398.737421] Rebooting in 86400 seconds..