INIT: Entering runlevel: 2 [info] Using makefile-style concurrent boot in runlevel 2. [....] Starting enhanced syslogd: rsyslogd[?25l[?1c7[ ok 8[?25h[?0c. [....] Starting periodic command scheduler: cron[?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: [ 22.475590] sshd (4427) used greatest stack depth: 16888 bytes left Warning: Permanently added '10.128.0.38' (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 executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program [ 29.153265] ================================================================== [ 29.160721] BUG: KASAN: use-after-free in __list_add_valid+0xc6/0xd0 [ 29.167186] Read of size 8 at addr ffff8801d8efbcd8 by task syzkaller067874/4969 [ 29.174688] [ 29.176291] CPU: 1 PID: 4969 Comm: syzkaller067874 Not tainted 4.16.0-rc7+ #9 [ 29.183534] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 29.192860] Call Trace: [ 29.195427] dump_stack+0x194/0x24d [ 29.199029] ? arch_local_irq_restore+0x53/0x53 [ 29.203671] ? show_regs_print_info+0x18/0x18 [ 29.208145] ? __list_add_valid+0xc6/0xd0 [ 29.212268] print_address_description+0x73/0x250 [ 29.217084] ? __list_add_valid+0xc6/0xd0 [ 29.221205] kasan_report+0x23c/0x360 [ 29.224984] __asan_report_load8_noabort+0x14/0x20 [ 29.229886] __list_add_valid+0xc6/0xd0 [ 29.233834] rdma_listen+0x581/0x8e0 [ 29.237518] ? rdma_resolve_addr+0x26c0/0x26c0 [ 29.242075] ucma_listen+0x172/0x1f0 [ 29.245760] ? ucma_accept+0x970/0x970 [ 29.249619] ? kasan_check_write+0x14/0x20 [ 29.253827] ? _copy_from_user+0x99/0x110 [ 29.257947] ucma_write+0x2d6/0x3d0 [ 29.261546] ? ucma_accept+0x970/0x970 [ 29.265407] ? ucma_close_id+0x60/0x60 [ 29.269266] ? handle_mm_fault+0x35b/0xb10 [ 29.273474] ? ucma_close_id+0x60/0x60 [ 29.277340] __vfs_write+0xef/0x970 [ 29.280947] ? kernel_read+0x120/0x120 [ 29.284819] ? __do_page_fault+0x58e/0xbe0 [ 29.289030] ? lock_downgrade+0x980/0x980 [ 29.293151] ? schedule+0xf5/0x430 [ 29.296662] ? __schedule+0x1ec0/0x1ec0 [ 29.300608] ? security_file_permission+0x89/0x1e0 [ 29.305508] ? rw_verify_area+0xe5/0x2b0 [ 29.309539] ? __fdget_raw+0x20/0x20 [ 29.313225] vfs_write+0x189/0x510 [ 29.316738] SyS_write+0xef/0x220 [ 29.320162] ? exit_to_usermode_loop+0x198/0x2f0 [ 29.324891] ? SyS_read+0x220/0x220 [ 29.328489] ? do_syscall_64+0xb7/0x940 [ 29.332437] ? SyS_read+0x220/0x220 [ 29.336036] do_syscall_64+0x281/0x940 [ 29.339896] ? vmalloc_sync_all+0x30/0x30 [ 29.344027] ? trace_hardirqs_on_thunk+0x1a/0x1c [ 29.348754] ? syscall_return_slowpath+0x550/0x550 [ 29.353659] ? syscall_return_slowpath+0x2ac/0x550 [ 29.358559] ? prepare_exit_to_usermode+0x350/0x350 [ 29.363547] ? entry_SYSCALL_64_after_hwframe+0x52/0xb7 [ 29.368888] ? trace_hardirqs_off_thunk+0x1a/0x1c [ 29.373709] entry_SYSCALL_64_after_hwframe+0x42/0xb7 [ 29.378869] RIP: 0033:0x4415e9 [ 29.382033] RSP: 002b:00007ffd17733498 EFLAGS: 00000207 ORIG_RAX: 0000000000000001 [ 29.389713] RAX: ffffffffffffffda RBX: 0000000000000000 RCX: 00000000004415e9 [ 29.396953] RDX: 00000000fffffd4e RSI: 00000000200008c0 RDI: 0000000000000003 [ 29.404196] RBP: 0000000000000000 R08: 0000000017733618 R09: 0000000017733618 [ 29.411438] R10: 0000000017733618 R11: 0000000000000207 R12: 00000000000071dc [ 29.418679] R13: 00000000006cd448 R14: 0000000000000000 R15: 0000000000000000 [ 29.425925] [ 29.427527] Allocated by task 4689: [ 29.431130] save_stack+0x43/0xd0 [ 29.434556] kasan_kmalloc+0xad/0xe0 [ 29.438245] kmem_cache_alloc_trace+0x136/0x740 [ 29.442888] rdma_create_id+0xd0/0x630 [ 29.446749] ucma_create_id+0x35f/0x920 [ 29.450696] ucma_write+0x2d6/0x3d0 [ 29.454294] __vfs_write+0xef/0x970 [ 29.457893] vfs_write+0x189/0x510 [ 29.461403] SyS_write+0xef/0x220 [ 29.464830] do_syscall_64+0x281/0x940 [ 29.468690] entry_SYSCALL_64_after_hwframe+0x42/0xb7 [ 29.473850] [ 29.475460] Freed by task 4689: [ 29.478711] save_stack+0x43/0xd0 [ 29.482135] __kasan_slab_free+0x11a/0x170 [ 29.486343] kasan_slab_free+0xe/0x10 [ 29.490117] kfree+0xd9/0x260 [ 29.493195] rdma_destroy_id+0x821/0xda0 [ 29.497226] ucma_close+0x100/0x2f0 [ 29.500823] __fput+0x327/0x7e0 [ 29.504071] ____fput+0x15/0x20 [ 29.507323] task_work_run+0x199/0x270 [ 29.511185] do_exit+0x9bb/0x1ad0 [ 29.514608] do_group_exit+0x149/0x400 [ 29.518466] SyS_exit_group+0x1d/0x20 [ 29.522236] do_syscall_64+0x281/0x940 [ 29.526097] entry_SYSCALL_64_after_hwframe+0x42/0xb7 [ 29.531256] [ 29.532859] The buggy address belongs to the object at ffff8801d8efbb00 [ 29.532859] which belongs to the cache kmalloc-1024 of size 1024 [ 29.545659] The buggy address is located 472 bytes inside of [ 29.545659] 1024-byte region [ffff8801d8efbb00, ffff8801d8efbf00) [ 29.557589] The buggy address belongs to the page: [ 29.562489] page:ffffea000763be80 count:1 mapcount:0 mapping:ffff8801d8efa000 index:0x0 compound_mapcount: 0 [ 29.572428] flags: 0x2fffc0000008100(slab|head) [ 29.577070] raw: 02fffc0000008100 ffff8801d8efa000 0000000000000000 0000000100000007 [ 29.584925] raw: ffffea00076456a0 ffffea000763aba0 ffff8801dac00ac0 0000000000000000 [ 29.592780] page dumped because: kasan: bad access detected [ 29.598456] [ 29.600058] Memory state around the buggy address: [ 29.604955] ffff8801d8efbb80: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 29.612285] ffff8801d8efbc00: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 29.619614] >ffff8801d8efbc80: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 29.626945] ^ [ 29.633150] ffff8801d8efbd00: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 29.640478] ffff8801d8efbd80: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 29.647806] ================================================================== [ 29.655132] Disabling lock debugging due to kernel taint [ 29.660657] Kernel panic - not syncing: panic_on_warn set ... [ 29.660657] [ 29.667996] CPU: 1 PID: 4969 Comm: syzkaller067874 Tainted: G B 4.16.0-rc7+ #9 [ 29.676538] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 29.685863] Call Trace: [ 29.688429] dump_stack+0x194/0x24d [ 29.692028] ? arch_local_irq_restore+0x53/0x53 [ 29.696668] ? trace_hardirqs_on_thunk+0x1a/0x1c [ 29.701395] ? vsnprintf+0x1ed/0x1900 [ 29.705168] ? __list_add_valid+0x60/0xd0 [ 29.709286] panic+0x1e4/0x41c [ 29.712449] ? refcount_error_report+0x214/0x214 [ 29.717174] ? add_taint+0x1c/0x50 [ 29.720683] ? add_taint+0x1c/0x50 [ 29.724191] ? __list_add_valid+0xc6/0xd0 [ 29.728312] kasan_end_report+0x50/0x50 [ 29.732257] kasan_report+0x149/0x360 [ 29.736026] __asan_report_load8_noabort+0x14/0x20 [ 29.740925] __list_add_valid+0xc6/0xd0 [ 29.744870] rdma_listen+0x581/0x8e0 [ 29.748555] ? rdma_resolve_addr+0x26c0/0x26c0 [ 29.753110] ucma_listen+0x172/0x1f0 [ 29.756795] ? ucma_accept+0x970/0x970 [ 29.760653] ? kasan_check_write+0x14/0x20 [ 29.764860] ? _copy_from_user+0x99/0x110 [ 29.768979] ucma_write+0x2d6/0x3d0 [ 29.772578] ? ucma_accept+0x970/0x970 [ 29.776437] ? ucma_close_id+0x60/0x60 [ 29.780293] ? handle_mm_fault+0x35b/0xb10 [ 29.784497] ? ucma_close_id+0x60/0x60 [ 29.788357] __vfs_write+0xef/0x970 [ 29.791955] ? kernel_read+0x120/0x120 [ 29.795811] ? __do_page_fault+0x58e/0xbe0 [ 29.800017] ? lock_downgrade+0x980/0x980 [ 29.804133] ? schedule+0xf5/0x430 [ 29.807642] ? __schedule+0x1ec0/0x1ec0 [ 29.811587] ? security_file_permission+0x89/0x1e0 [ 29.816486] ? rw_verify_area+0xe5/0x2b0 [ 29.820520] ? __fdget_raw+0x20/0x20 [ 29.824204] vfs_write+0x189/0x510 [ 29.827714] SyS_write+0xef/0x220 [ 29.831136] ? exit_to_usermode_loop+0x198/0x2f0 [ 29.835862] ? SyS_read+0x220/0x220 [ 29.839457] ? do_syscall_64+0xb7/0x940 [ 29.843409] ? SyS_read+0x220/0x220 [ 29.847006] do_syscall_64+0x281/0x940 [ 29.850864] ? vmalloc_sync_all+0x30/0x30 [ 29.854980] ? trace_hardirqs_on_thunk+0x1a/0x1c [ 29.859705] ? syscall_return_slowpath+0x550/0x550 [ 29.864603] ? syscall_return_slowpath+0x2ac/0x550 [ 29.869501] ? prepare_exit_to_usermode+0x350/0x350 [ 29.874485] ? entry_SYSCALL_64_after_hwframe+0x52/0xb7 [ 29.879821] ? trace_hardirqs_off_thunk+0x1a/0x1c [ 29.884633] entry_SYSCALL_64_after_hwframe+0x42/0xb7 [ 29.889794] RIP: 0033:0x4415e9 [ 29.892955] RSP: 002b:00007ffd17733498 EFLAGS: 00000207 ORIG_RAX: 0000000000000001 [ 29.900635] RAX: ffffffffffffffda RBX: 0000000000000000 RCX: 00000000004415e9 [ 29.907876] RDX: 00000000fffffd4e RSI: 00000000200008c0 RDI: 0000000000000003 [ 29.915118] RBP: 0000000000000000 R08: 0000000017733618 R09: 0000000017733618 [ 29.922358] R10: 0000000017733618 R11: 0000000000000207 R12: 00000000000071dc [ 29.929597] R13: 00000000006cd448 R14: 0000000000000000 R15: 0000000000000000 [ 29.937219] Dumping ftrace buffer: [ 29.940731] (ftrace buffer empty) [ 29.944412] Kernel Offset: disabled [ 29.948011] Rebooting in 86400 seconds..