Warning: Permanently added '10.128.1.10' (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 [ 39.950644] audit: type=1400 audit(1599706308.470:8): avc: denied { execmem } for pid=6374 comm="syz-executor216" scontext=system_u:system_r:kernel_t:s0 tcontext=system_u:system_r:kernel_t:s0 tclass=process permissive=1 [ 39.997393] ================================================================== [ 40.004828] BUG: KASAN: use-after-free in __list_add_valid+0x93/0xa0 [ 40.011294] Read of size 8 at addr ffff88808e94ab18 by task syz-executor216/6395 [ 40.018797] [ 40.020400] CPU: 0 PID: 6395 Comm: syz-executor216 Not tainted 4.14.197-syzkaller #0 [ 40.028252] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 40.037606] Call Trace: [ 40.040177] dump_stack+0x1b2/0x283 [ 40.043828] print_address_description.cold+0x54/0x1d3 [ 40.049079] kasan_report_error.cold+0x8a/0x194 [ 40.053725] ? __list_add_valid+0x93/0xa0 [ 40.057846] __asan_report_load8_noabort+0x68/0x70 [ 40.062751] ? __list_add_valid+0x93/0xa0 [ 40.066962] __list_add_valid+0x93/0xa0 [ 40.070925] rdma_listen+0x656/0x9b0 [ 40.074618] ucma_listen+0x10b/0x170 [ 40.078313] ? ucma_bind_ip+0x150/0x150 [ 40.082266] ? _copy_from_user+0x96/0x100 [ 40.086394] ? ucma_bind_ip+0x150/0x150 [ 40.090344] ucma_write+0x206/0x2c0 [ 40.093947] ? ucma_set_ib_path+0x510/0x510 [ 40.098241] ? __switch_to_xtra+0x93/0x12f0 [ 40.102537] ? finish_task_switch+0x178/0x610 [ 40.107006] __vfs_write+0xe4/0x630 [ 40.110611] ? ucma_set_ib_path+0x510/0x510 [ 40.114911] ? kernel_read+0x110/0x110 [ 40.118809] ? avc_policy_seqno+0x5/0x10 [ 40.122850] ? selinux_file_permission+0x7e/0x530 [ 40.127673] ? security_file_permission+0x82/0x1e0 [ 40.132575] ? rw_verify_area+0xe1/0x2a0 [ 40.136608] vfs_write+0x17f/0x4d0 [ 40.140122] SyS_write+0xf2/0x210 [ 40.143896] ? SyS_read+0x210/0x210 [ 40.147503] ? do_syscall_64+0x4c/0x640 [ 40.151449] ? SyS_read+0x210/0x210 [ 40.155049] do_syscall_64+0x1d5/0x640 [ 40.159035] entry_SYSCALL_64_after_hwframe+0x46/0xbb [ 40.164212] RIP: 0033:0x4414b9 [ 40.167373] RSP: 002b:00007ffc69055448 EFLAGS: 00000246 ORIG_RAX: 0000000000000001 [ 40.175066] RAX: ffffffffffffffda RBX: 0000000000000000 RCX: 00000000004414b9 [ 40.182310] RDX: 0000000000000010 RSI: 0000000020000140 RDI: 0000000000000003 [ 40.189827] RBP: 0000000000009c4a R08: 00000000004002c8 R09: 00000000004002c8 [ 40.197084] R10: 00000000004002c8 R11: 0000000000000246 R12: 0000000000402260 [ 40.204331] R13: 00000000004022f0 R14: 0000000000000000 R15: 0000000000000000 [ 40.211582] [ 40.213198] Allocated by task 6375: [ 40.216803] kasan_kmalloc+0xeb/0x160 [ 40.220575] kmem_cache_alloc_trace+0x131/0x3d0 [ 40.225217] rdma_create_id+0x57/0x4c0 [ 40.229089] ucma_create_id+0x18b/0x500 [ 40.233035] ucma_write+0x206/0x2c0 [ 40.236635] __vfs_write+0xe4/0x630 [ 40.240231] vfs_write+0x17f/0x4d0 [ 40.243764] SyS_write+0xf2/0x210 [ 40.247206] do_syscall_64+0x1d5/0x640 [ 40.251065] entry_SYSCALL_64_after_hwframe+0x46/0xbb [ 40.256223] [ 40.257925] Freed by task 6375: [ 40.261204] kasan_slab_free+0xc3/0x1a0 [ 40.265152] kfree+0xc9/0x250 [ 40.268232] ucma_close+0x11a/0x340 [ 40.271831] __fput+0x25f/0x7a0 [ 40.275082] task_work_run+0x11f/0x190 [ 40.278941] do_exit+0xa08/0x27f0 [ 40.282367] do_group_exit+0x100/0x2e0 [ 40.286244] SyS_exit_group+0x19/0x20 [ 40.290018] do_syscall_64+0x1d5/0x640 [ 40.293876] entry_SYSCALL_64_after_hwframe+0x46/0xbb [ 40.299122] [ 40.300724] The buggy address belongs to the object at ffff88808e94a940 [ 40.300724] which belongs to the cache kmalloc-1024 of size 1024 [ 40.313525] The buggy address is located 472 bytes inside of [ 40.313525] 1024-byte region [ffff88808e94a940, ffff88808e94ad40) [ 40.325542] The buggy address belongs to the page: [ 40.330447] page:ffffea00023a5280 count:1 mapcount:0 mapping:ffff88808e94a040 index:0x0 compound_mapcount: 0 [ 40.340387] flags: 0xfffe0000008100(slab|head) [ 40.344942] raw: 00fffe0000008100 ffff88808e94a040 0000000000000000 0000000100000007 [ 40.352798] raw: ffffea00023dd920 ffffea00029009a0 ffff88812fe50ac0 0000000000000000 [ 40.360655] page dumped because: kasan: bad access detected [ 40.366347] [ 40.367963] Memory state around the buggy address: [ 40.372875] ffff88808e94aa00: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 40.380214] ffff88808e94aa80: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 40.387550] >ffff88808e94ab00: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 40.394885] ^ [ 40.399005] ffff88808e94ab80: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 40.406385] ffff88808e94ac00: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 40.413765] ================================================================== [ 40.421136] Disabling lock debugging due to kernel taint [ 40.427389] Kernel panic - not syncing: panic_on_warn set ... [ 40.427389] [ 40.434778] CPU: 0 PID: 6395 Comm: syz-executor216 Tainted: G B 4.14.197-syzkaller #0 [ 40.443864] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 40.453198] Call Trace: [ 40.455793] dump_stack+0x1b2/0x283 [ 40.459400] panic+0x1f9/0x42d [ 40.462566] ? add_taint.cold+0x16/0x16 [ 40.466513] ? ___preempt_schedule+0x16/0x18 [ 40.470901] kasan_end_report+0x43/0x49 [ 40.474852] kasan_report_error.cold+0xa7/0x194 [ 40.479493] ? __list_add_valid+0x93/0xa0 [ 40.483615] __asan_report_load8_noabort+0x68/0x70 [ 40.488552] ? __list_add_valid+0x93/0xa0 [ 40.492676] __list_add_valid+0x93/0xa0 [ 40.496629] rdma_listen+0x656/0x9b0 [ 40.500317] ucma_listen+0x10b/0x170 [ 40.504004] ? ucma_bind_ip+0x150/0x150 [ 40.508046] ? _copy_from_user+0x96/0x100 [ 40.512169] ? ucma_bind_ip+0x150/0x150 [ 40.516116] ucma_write+0x206/0x2c0 [ 40.519726] ? ucma_set_ib_path+0x510/0x510 [ 40.524021] ? __switch_to_xtra+0x93/0x12f0 [ 40.528338] ? finish_task_switch+0x178/0x610 [ 40.532805] __vfs_write+0xe4/0x630 [ 40.536406] ? ucma_set_ib_path+0x510/0x510 [ 40.540701] ? kernel_read+0x110/0x110 [ 40.544575] ? avc_policy_seqno+0x5/0x10 [ 40.548608] ? selinux_file_permission+0x7e/0x530 [ 40.553424] ? security_file_permission+0x82/0x1e0 [ 40.558326] ? rw_verify_area+0xe1/0x2a0 [ 40.562360] vfs_write+0x17f/0x4d0 [ 40.565960] SyS_write+0xf2/0x210 [ 40.569386] ? SyS_read+0x210/0x210 [ 40.572990] ? do_syscall_64+0x4c/0x640 [ 40.576938] ? SyS_read+0x210/0x210 [ 40.580538] do_syscall_64+0x1d5/0x640 [ 40.584421] entry_SYSCALL_64_after_hwframe+0x46/0xbb [ 40.589583] RIP: 0033:0x4414b9 [ 40.592747] RSP: 002b:00007ffc69055448 EFLAGS: 00000246 ORIG_RAX: 0000000000000001 [ 40.600433] RAX: ffffffffffffffda RBX: 0000000000000000 RCX: 00000000004414b9 [ 40.607780] RDX: 0000000000000010 RSI: 0000000020000140 RDI: 0000000000000003 [ 40.615023] RBP: 0000000000009c4a R08: 00000000004002c8 R09: 00000000004002c8 [ 40.622265] R10: 00000000004002c8 R11: 0000000000000246 R12: 0000000000402260 [ 40.629509] R13: 00000000004022f0 R14: 0000000000000000 R15: 0000000000000000 [ 40.637931] Kernel Offset: disabled [ 40.641550] Rebooting in 86400 seconds..