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 Warning: Permanently added '10.128.10.25' (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 executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program 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: [ 25.710703] ================================================================== [ 25.718253] BUG: KASAN: use-after-free in __list_add_valid+0xc6/0xd0 [ 25.724742] Read of size 8 at addr ffff8801d7ba9cd8 by task syzkaller817651/5232 [ 25.732265] [ 25.733885] CPU: 1 PID: 5232 Comm: syzkaller817651 Not tainted 4.16.0-rc7+ #374 [ 25.741323] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 25.750667] Call Trace: [ 25.753239] dump_stack+0x194/0x24d [ 25.756857] ? arch_local_irq_restore+0x53/0x53 [ 25.761517] ? show_regs_print_info+0x18/0x18 [ 25.766000] ? __list_add_valid+0xc6/0xd0 [ 25.770127] print_address_description+0x73/0x250 [ 25.774947] ? __list_add_valid+0xc6/0xd0 [ 25.779071] kasan_report+0x23c/0x360 [ 25.782849] __asan_report_load8_noabort+0x14/0x20 [ 25.787757] __list_add_valid+0xc6/0xd0 [ 25.791709] rdma_listen+0x581/0x8e0 [ 25.795410] ? rdma_resolve_addr+0x26c0/0x26c0 [ 25.799980] ucma_listen+0x172/0x1f0 [ 25.803681] ? ucma_accept+0x970/0x970 [ 25.807560] ? kasan_check_write+0x14/0x20 [ 25.811784] ? _copy_from_user+0x99/0x110 [ 25.815910] ucma_write+0x2d6/0x3d0 [ 25.819513] ? ucma_accept+0x970/0x970 [ 25.823380] ? ucma_close_id+0x60/0x60 [ 25.827244] ? handle_mm_fault+0x35b/0xb10 [ 25.831461] ? ucma_close_id+0x60/0x60 [ 25.835325] __vfs_write+0xef/0x970 [ 25.838932] ? kernel_read+0x120/0x120 [ 25.842797] ? __do_page_fault+0x58e/0xbe0 [ 25.847010] ? lock_downgrade+0x980/0x980 [ 25.851140] ? schedule+0xf5/0x430 [ 25.854654] ? __schedule+0x1ec0/0x1ec0 [ 25.858605] ? security_file_permission+0x89/0x1e0 [ 25.863516] ? rw_verify_area+0xe5/0x2b0 [ 25.867553] ? __fdget_raw+0x20/0x20 [ 25.871248] vfs_write+0x189/0x510 [ 25.874766] SyS_write+0xef/0x220 [ 25.878197] ? exit_to_usermode_loop+0x198/0x2f0 [ 25.882931] ? SyS_read+0x220/0x220 [ 25.886536] ? do_syscall_64+0xb7/0x940 [ 25.890490] ? SyS_read+0x220/0x220 [ 25.894093] do_syscall_64+0x281/0x940 [ 25.897964] ? vmalloc_sync_all+0x30/0x30 [ 25.902089] ? trace_hardirqs_on_thunk+0x1a/0x1c [ 25.907347] ? syscall_return_slowpath+0x550/0x550 [ 25.912270] ? syscall_return_slowpath+0x2ac/0x550 [ 25.917187] ? prepare_exit_to_usermode+0x350/0x350 [ 25.922188] ? entry_SYSCALL_64_after_hwframe+0x52/0xb7 [ 25.927534] ? trace_hardirqs_off_thunk+0x1a/0x1c [ 25.932362] entry_SYSCALL_64_after_hwframe+0x42/0xb7 [ 25.937535] RIP: 0033:0x4415e9 [ 25.940706] RSP: 002b:00007fffa7eaaf98 EFLAGS: 00000207 ORIG_RAX: 0000000000000001 [ 25.948401] RAX: ffffffffffffffda RBX: 0000000000000000 RCX: 00000000004415e9 [ 25.955652] RDX: 00000000fffffd4e RSI: 00000000200008c0 RDI: 0000000000000003 [ 25.962899] RBP: 0000000000000000 R08: 00000000a7eab118 R09: 00000000a7eab118 [ 25.970160] R10: 00000000a7eab118 R11: 0000000000000207 R12: 0000000000006463 [ 25.977411] R13: 00000000006cd448 R14: 0000000000000000 R15: 0000000000000000 [ 25.984666] [ 25.986271] Allocated by task 5230: [ 25.989883] save_stack+0x43/0xd0 [ 25.993313] kasan_kmalloc+0xad/0xe0 [ 25.997002] kmem_cache_alloc_trace+0x136/0x740 [ 26.001653] rdma_create_id+0xd0/0x630 [ 26.005518] ucma_create_id+0x35f/0x920 [ 26.009468] ucma_write+0x2d6/0x3d0 [ 26.013077] __vfs_write+0xef/0x970 [ 26.016791] vfs_write+0x189/0x510 [ 26.020308] SyS_write+0xef/0x220 [ 26.023739] do_syscall_64+0x281/0x940 [ 26.027604] entry_SYSCALL_64_after_hwframe+0x42/0xb7 [ 26.032768] [ 26.035034] Freed by task 5230: [ 26.038299] save_stack+0x43/0xd0 [ 26.041735] __kasan_slab_free+0x11a/0x170 [ 26.045952] kasan_slab_free+0xe/0x10 [ 26.049724] kfree+0xd9/0x260 [ 26.052806] rdma_destroy_id+0x821/0xda0 [ 26.056841] ucma_close+0x100/0x2f0 [ 26.060443] __fput+0x327/0x7e0 [ 26.063697] ____fput+0x15/0x20 [ 26.066952] task_work_run+0x199/0x270 [ 26.070814] do_exit+0x9bb/0x1ad0 [ 26.074247] do_group_exit+0x149/0x400 [ 26.078114] SyS_exit_group+0x1d/0x20 [ 26.081888] do_syscall_64+0x281/0x940 [ 26.085751] entry_SYSCALL_64_after_hwframe+0x42/0xb7 [ 26.090912] [ 26.092514] The buggy address belongs to the object at ffff8801d7ba9b00 [ 26.092514] which belongs to the cache kmalloc-1024 of size 1024 [ 26.105321] The buggy address is located 472 bytes inside of [ 26.105321] 1024-byte region [ffff8801d7ba9b00, ffff8801d7ba9f00) [ 26.117259] The buggy address belongs to the page: [ 26.122168] page:ffffea00075eea00 count:1 mapcount:0 mapping:ffff8801d7ba8000 index:0x0 compound_mapcount: 0 [ 26.132121] flags: 0x2fffc0000008100(slab|head) [ 26.136772] raw: 02fffc0000008100 ffff8801d7ba8000 0000000000000000 0000000100000007 [ 26.144628] raw: ffffea0006b2af20 ffffea00075f6520 ffff8801dac00ac0 0000000000000000 [ 26.152485] page dumped because: kasan: bad access detected [ 26.158170] [ 26.159770] Memory state around the buggy address: [ 26.164673] ffff8801d7ba9b80: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 26.172011] ffff8801d7ba9c00: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 26.179348] >ffff8801d7ba9c80: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 26.186682] ^ [ 26.192892] ffff8801d7ba9d00: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 26.200232] ffff8801d7ba9d80: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 26.207567] ================================================================== [ 26.214900] Disabling lock debugging due to kernel taint [ 26.220596] Kernel panic - not syncing: panic_on_warn set ... [ 26.220596] [ 26.227957] CPU: 1 PID: 5232 Comm: syzkaller817651 Tainted: G B 4.16.0-rc7+ #374 [ 26.236679] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 26.246016] Call Trace: [ 26.248593] dump_stack+0x194/0x24d [ 26.252197] ? arch_local_irq_restore+0x53/0x53 [ 26.256841] ? trace_hardirqs_on_thunk+0x1a/0x1c [ 26.261571] ? vsnprintf+0x1ed/0x1900 [ 26.265347] ? __list_add_valid+0x60/0xd0 [ 26.269471] panic+0x1e4/0x41c [ 26.272640] ? refcount_error_report+0x214/0x214 [ 26.277369] ? add_taint+0x1c/0x50 [ 26.280881] ? add_taint+0x1c/0x50 [ 26.284395] ? __list_add_valid+0xc6/0xd0 [ 26.288519] kasan_end_report+0x50/0x50 [ 26.292468] kasan_report+0x149/0x360 [ 26.296248] __asan_report_load8_noabort+0x14/0x20 [ 26.301161] __list_add_valid+0xc6/0xd0 [ 26.305113] rdma_listen+0x581/0x8e0 [ 26.308800] ? rdma_resolve_addr+0x26c0/0x26c0 [ 26.313359] ucma_listen+0x172/0x1f0 [ 26.317051] ? ucma_accept+0x970/0x970 [ 26.320928] ? kasan_check_write+0x14/0x20 [ 26.325156] ? _copy_from_user+0x99/0x110 [ 26.329283] ucma_write+0x2d6/0x3d0 [ 26.332884] ? ucma_accept+0x970/0x970 [ 26.336747] ? ucma_close_id+0x60/0x60 [ 26.340610] ? handle_mm_fault+0x35b/0xb10 [ 26.344823] ? ucma_close_id+0x60/0x60 [ 26.348685] __vfs_write+0xef/0x970 [ 26.352302] ? kernel_read+0x120/0x120 [ 26.356164] ? __do_page_fault+0x58e/0xbe0 [ 26.360373] ? lock_downgrade+0x980/0x980 [ 26.364494] ? schedule+0xf5/0x430 [ 26.368010] ? __schedule+0x1ec0/0x1ec0 [ 26.371964] ? security_file_permission+0x89/0x1e0 [ 26.376870] ? rw_verify_area+0xe5/0x2b0 [ 26.380908] ? __fdget_raw+0x20/0x20 [ 26.384599] vfs_write+0x189/0x510 [ 26.388113] SyS_write+0xef/0x220 [ 26.391540] ? exit_to_usermode_loop+0x198/0x2f0 [ 26.396285] ? SyS_read+0x220/0x220 [ 26.399887] ? do_syscall_64+0xb7/0x940 [ 26.403837] ? SyS_read+0x220/0x220 [ 26.407438] do_syscall_64+0x281/0x940 [ 26.411299] ? vmalloc_sync_all+0x30/0x30 [ 26.416203] ? trace_hardirqs_on_thunk+0x1a/0x1c [ 26.420933] ? syscall_return_slowpath+0x550/0x550 [ 26.425838] ? syscall_return_slowpath+0x2ac/0x550 [ 26.430745] ? prepare_exit_to_usermode+0x350/0x350 [ 26.435747] ? entry_SYSCALL_64_after_hwframe+0x52/0xb7 [ 26.441090] ? trace_hardirqs_off_thunk+0x1a/0x1c [ 26.445909] entry_SYSCALL_64_after_hwframe+0x42/0xb7 [ 26.451073] RIP: 0033:0x4415e9 [ 26.454237] RSP: 002b:00007fffa7eaaf98 EFLAGS: 00000207 ORIG_RAX: 0000000000000001 [ 26.461918] RAX: ffffffffffffffda RBX: 0000000000000000 RCX: 00000000004415e9 [ 26.469164] RDX: 00000000fffffd4e RSI: 00000000200008c0 RDI: 0000000000000003 [ 26.476414] RBP: 0000000000000000 R08: 00000000a7eab118 R09: 00000000a7eab118 [ 26.483661] R10: 00000000a7eab118 R11: 0000000000000207 R12: 0000000000006463 [ 26.490906] R13: 00000000006cd448 R14: 0000000000000000 R15: 0000000000000000 [ 26.498659] Dumping ftrace buffer: [ 26.502194] (ftrace buffer empty) [ 26.505879] Kernel Offset: disabled [ 26.509484] Rebooting in 86400 seconds..