[ 35.477200] audit: type=1800 audit(1549125735.051:27): pid=7519 uid=0 auid=4294967295 ses=4294967295 subj==unconfined op=collect_data cause=failed(directio) comm="startpar" name="restorecond" dev="sda1" ino=2436 res=0 [ 35.509339] audit: type=1800 audit(1549125735.051:28): pid=7519 uid=0 auid=4294967295 ses=4294967295 subj==unconfined op=collect_data cause=failed(directio) comm="startpar" name="ssh" dev="sda1" ino=2417 res=0 [....] Starting periodic command scheduler: cron[?25l[?1c7[ ok 8[?25h[?0c. [....] Starting OpenBSD Secure Shell server: sshd[?25l[?1c7[ ok 8[?25h[?0c. [ 36.363593] audit: type=1800 audit(1549125736.001:29): pid=7519 uid=0 auid=4294967295 ses=4294967295 subj==unconfined op=collect_data cause=failed(directio) comm="startpar" name="rc.local" dev="sda1" ino=2432 res=0 [ 36.382955] audit: type=1800 audit(1549125736.001:30): pid=7519 uid=0 auid=4294967295 ses=4294967295 subj==unconfined op=collect_data cause=failed(directio) comm="startpar" name="rmnologin" dev="sda1" ino=2423 res=0 Debian GNU/Linux 7 syzkaller ttyS0 Warning: Permanently added '10.128.0.107' (ECDSA) to the list of known hosts. executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program syzkaller login: [ 46.419130] ================================================================== [ 46.426691] BUG: KASAN: use-after-free in __list_add_valid+0x9a/0xa0 [ 46.433161] Read of size 8 at addr ffff888098f4b5e0 by task syz-executor649/8056 [ 46.440687] [ 46.442334] CPU: 0 PID: 8056 Comm: syz-executor649 Not tainted 5.0.0-rc4+ #56 [ 46.449612] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 46.458951] Call Trace: [ 46.461520] dump_stack+0x172/0x1f0 [ 46.465146] ? __list_add_valid+0x9a/0xa0 [ 46.469305] print_address_description.cold+0x7c/0x20d [ 46.474562] ? __list_add_valid+0x9a/0xa0 [ 46.478695] ? __list_add_valid+0x9a/0xa0 [ 46.482822] kasan_report.cold+0x1b/0x40 [ 46.486882] ? __list_add_valid+0x9a/0xa0 [ 46.491028] __asan_report_load8_noabort+0x14/0x20 [ 46.495957] __list_add_valid+0x9a/0xa0 [ 46.499914] rdma_listen+0x63b/0x8e0 [ 46.503662] ucma_listen+0x14d/0x1c0 [ 46.507355] ? ucma_notify+0x190/0x190 [ 46.511228] ? __sanitizer_cov_trace_const_cmp8+0x18/0x20 [ 46.516744] ? _copy_from_user+0xdd/0x150 [ 46.520887] ucma_write+0x2da/0x3c0 [ 46.524495] ? ucma_notify+0x190/0x190 [ 46.528363] ? ucma_open+0x290/0x290 [ 46.532060] ? do_wp_page+0x2f5/0x11d0 [ 46.535934] __vfs_write+0x116/0x8e0 [ 46.539635] ? ucma_open+0x290/0x290 [ 46.543328] ? kernel_read+0x120/0x120 [ 46.547198] ? debug_lockdep_rcu_enabled+0x71/0xa0 [ 46.552106] ? common_file_perm+0x1d6/0x6f0 [ 46.556406] ? apparmor_file_permission+0x25/0x30 [ 46.561244] ? __sanitizer_cov_trace_const_cmp4+0x16/0x20 [ 46.566781] ? security_file_permission+0x94/0x320 [ 46.571701] ? rw_verify_area+0x118/0x360 [ 46.575836] vfs_write+0x20c/0x580 [ 46.579373] ksys_write+0xea/0x1f0 [ 46.582933] ? __ia32_sys_read+0xb0/0xb0 [ 46.586975] ? do_syscall_64+0x26/0x610 [ 46.590932] ? entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 46.596273] ? do_syscall_64+0x26/0x610 [ 46.600244] __x64_sys_write+0x73/0xb0 [ 46.604125] do_syscall_64+0x103/0x610 [ 46.607992] entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 46.613159] RIP: 0033:0x440f59 [ 46.616331] Code: e8 cc ab 02 00 48 83 c4 18 c3 0f 1f 80 00 00 00 00 48 89 f8 48 89 f7 48 89 d6 48 89 ca 4d 89 c2 4d 89 c8 4c 8b 4c 24 08 0f 05 <48> 3d 01 f0 ff ff 0f 83 bb 0a fc ff c3 66 2e 0f 1f 84 00 00 00 00 [ 46.635236] RSP: 002b:00007ffeb4d50768 EFLAGS: 00000246 ORIG_RAX: 0000000000000001 [ 46.642918] RAX: ffffffffffffffda RBX: 0000000000000003 RCX: 0000000000440f59 [ 46.650189] RDX: 0000000000000010 RSI: 0000000020000240 RDI: 0000000000000003 [ 46.657463] RBP: 000000000000b53f R08: 00000000004002c8 R09: 00000000004002c8 [ 46.664711] R10: 00000000004002c8 R11: 0000000000000246 R12: 0000000000401ea0 [ 46.671956] R13: 0000000000401f30 R14: 0000000000000000 R15: 0000000000000000 [ 46.679205] [ 46.680808] Allocated by task 7674: [ 46.684418] save_stack+0x45/0xd0 [ 46.687880] __kasan_kmalloc.constprop.0+0xcf/0xe0 [ 46.692818] kasan_kmalloc+0x9/0x10 [ 46.696434] kmem_cache_alloc_trace+0x151/0x760 [ 46.701084] __rdma_create_id+0x5f/0x4e0 [ 46.705127] ucma_create_id+0x1de/0x640 [ 46.709096] ucma_write+0x2da/0x3c0 [ 46.712702] __vfs_write+0x116/0x8e0 [ 46.716389] vfs_write+0x20c/0x580 [ 46.719907] ksys_write+0xea/0x1f0 [ 46.723434] __x64_sys_write+0x73/0xb0 [ 46.727299] do_syscall_64+0x103/0x610 [ 46.731161] entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 46.736349] [ 46.737969] Freed by task 7674: [ 46.741238] save_stack+0x45/0xd0 [ 46.744669] __kasan_slab_free+0x102/0x150 [ 46.748881] kasan_slab_free+0xe/0x10 [ 46.752680] kfree+0xcf/0x230 [ 46.755766] rdma_destroy_id+0x723/0xab0 [ 46.759809] ucma_close+0x115/0x320 [ 46.763418] __fput+0x2df/0x8d0 [ 46.766674] ____fput+0x16/0x20 [ 46.769936] task_work_run+0x14a/0x1c0 [ 46.773806] exit_to_usermode_loop+0x273/0x2c0 [ 46.778371] do_syscall_64+0x52d/0x610 [ 46.782253] entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 46.787417] [ 46.789049] The buggy address belongs to the object at ffff888098f4b400 [ 46.789049] which belongs to the cache kmalloc-2k of size 2048 [ 46.801696] The buggy address is located 480 bytes inside of [ 46.801696] 2048-byte region [ffff888098f4b400, ffff888098f4bc00) [ 46.813628] The buggy address belongs to the page: [ 46.818538] page:ffffea000263d280 count:1 mapcount:0 mapping:ffff88812c3f0c40 index:0x0 compound_mapcount: 0 [ 46.828485] flags: 0x1fffc0000010200(slab|head) [ 46.833162] raw: 01fffc0000010200 ffffea00021ded08 ffffea0002493108 ffff88812c3f0c40 [ 46.841036] raw: 0000000000000000 ffff888098f4a300 0000000100000003 0000000000000000 [ 46.848915] page dumped because: kasan: bad access detected [ 46.854598] [ 46.856196] Memory state around the buggy address: [ 46.861108] ffff888098f4b480: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 46.868440] ffff888098f4b500: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 46.875792] >ffff888098f4b580: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 46.883138] ^ [ 46.889620] ffff888098f4b600: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 46.896952] ffff888098f4b680: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 46.904279] ================================================================== [ 46.911613] Disabling lock debugging due to kernel taint [ 46.917494] Kernel panic - not syncing: panic_on_warn set ... [ 46.923399] CPU: 0 PID: 8056 Comm: syz-executor649 Tainted: G B 5.0.0-rc4+ #56 [ 46.932030] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 46.941360] Call Trace: [ 46.943941] dump_stack+0x172/0x1f0 [ 46.947548] panic+0x2cb/0x65c [ 46.950720] ? __warn_printk+0xf3/0xf3 [ 46.954621] ? __list_add_valid+0x9a/0xa0 [ 46.958767] ? preempt_schedule+0x4b/0x60 [ 46.962928] ? ___preempt_schedule+0x16/0x18 [ 46.967314] ? trace_hardirqs_on+0x5e/0x230 [ 46.971626] ? __list_add_valid+0x9a/0xa0 [ 46.975750] end_report+0x47/0x4f [ 46.979179] ? __list_add_valid+0x9a/0xa0 [ 46.983415] kasan_report.cold+0xe/0x40 [ 46.987369] ? __list_add_valid+0x9a/0xa0 [ 46.991495] __asan_report_load8_noabort+0x14/0x20 [ 46.996415] __list_add_valid+0x9a/0xa0 [ 47.000367] rdma_listen+0x63b/0x8e0 [ 47.004076] ucma_listen+0x14d/0x1c0 [ 47.007766] ? ucma_notify+0x190/0x190 [ 47.011629] ? __sanitizer_cov_trace_const_cmp8+0x18/0x20 [ 47.017142] ? _copy_from_user+0xdd/0x150 [ 47.021264] ucma_write+0x2da/0x3c0 [ 47.025027] ? ucma_notify+0x190/0x190 [ 47.028922] ? ucma_open+0x290/0x290 [ 47.032635] ? do_wp_page+0x2f5/0x11d0 [ 47.036507] __vfs_write+0x116/0x8e0 [ 47.040199] ? ucma_open+0x290/0x290 [ 47.043889] ? kernel_read+0x120/0x120 [ 47.047750] ? debug_lockdep_rcu_enabled+0x71/0xa0 [ 47.052655] ? common_file_perm+0x1d6/0x6f0 [ 47.057174] ? apparmor_file_permission+0x25/0x30 [ 47.062016] ? __sanitizer_cov_trace_const_cmp4+0x16/0x20 [ 47.067530] ? security_file_permission+0x94/0x320 [ 47.072437] ? rw_verify_area+0x118/0x360 [ 47.076561] vfs_write+0x20c/0x580 [ 47.080088] ksys_write+0xea/0x1f0 [ 47.083605] ? __ia32_sys_read+0xb0/0xb0 [ 47.087674] ? do_syscall_64+0x26/0x610 [ 47.091661] ? entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 47.096998] ? do_syscall_64+0x26/0x610 [ 47.100950] __x64_sys_write+0x73/0xb0 [ 47.104815] do_syscall_64+0x103/0x610 [ 47.108699] entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 47.113871] RIP: 0033:0x440f59 [ 47.117045] Code: e8 cc ab 02 00 48 83 c4 18 c3 0f 1f 80 00 00 00 00 48 89 f8 48 89 f7 48 89 d6 48 89 ca 4d 89 c2 4d 89 c8 4c 8b 4c 24 08 0f 05 <48> 3d 01 f0 ff ff 0f 83 bb 0a fc ff c3 66 2e 0f 1f 84 00 00 00 00 [ 47.135941] RSP: 002b:00007ffeb4d50768 EFLAGS: 00000246 ORIG_RAX: 0000000000000001 [ 47.143784] RAX: ffffffffffffffda RBX: 0000000000000003 RCX: 0000000000440f59 [ 47.151038] RDX: 0000000000000010 RSI: 0000000020000240 RDI: 0000000000000003 [ 47.158303] RBP: 000000000000b53f R08: 00000000004002c8 R09: 00000000004002c8 [ 47.165551] R10: 00000000004002c8 R11: 0000000000000246 R12: 0000000000401ea0 [ 47.172813] R13: 0000000000401f30 R14: 0000000000000000 R15: 0000000000000000 [ 47.180936] Kernel Offset: disabled [ 47.184553] Rebooting in 86400 seconds..