Warning: Permanently added '10.128.0.149' (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 syzkaller login: [ 28.319853] ================================================================== [ 28.327321] BUG: KASAN: use-after-free in __list_add_valid+0x93/0xa0 [ 28.333797] Read of size 8 at addr ffff8880b573c698 by task syz-executor322/7975 [ 28.341312] [ 28.342941] CPU: 1 PID: 7975 Comm: syz-executor322 Not tainted 4.14.285-syzkaller #0 [ 28.350800] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 06/29/2022 [ 28.360231] Call Trace: [ 28.362800] dump_stack+0x1b2/0x281 executing program executing program [ 28.366419] print_address_description.cold+0x54/0x1d3 [ 28.371690] kasan_report_error.cold+0x8a/0x191 [ 28.376350] ? __list_add_valid+0x93/0xa0 [ 28.380486] __asan_report_load8_noabort+0x68/0x70 [ 28.385412] ? __list_add_valid+0x93/0xa0 [ 28.389550] __list_add_valid+0x93/0xa0 [ 28.393524] rdma_listen+0x656/0x9b0 [ 28.397267] ucma_listen+0x10b/0x170 [ 28.400972] ? ucma_bind_ip+0x150/0x150 [ 28.404955] ? _copy_from_user+0x96/0x100 [ 28.409102] ? ucma_bind_ip+0x150/0x150 [ 28.413055] ucma_write+0x206/0x2c0 [ 28.416664] ? ucma_set_ib_path+0x510/0x510 [ 28.420968] __vfs_write+0xe4/0x630 [ 28.424580] ? ucma_set_ib_path+0x510/0x510 [ 28.428882] ? debug_check_no_obj_freed+0x2c0/0x680 [ 28.433887] ? kernel_read+0x110/0x110 [ 28.437770] ? common_file_perm+0x3ee/0x580 [ 28.442082] ? security_file_permission+0x82/0x1e0 [ 28.446996] ? rw_verify_area+0xe1/0x2a0 [ 28.451060] vfs_write+0x17f/0x4d0 [ 28.454584] SyS_write+0xf2/0x210 [ 28.458029] ? SyS_read+0x210/0x210 [ 28.461649] ? __do_page_fault+0x159/0xad0 [ 28.465869] ? do_syscall_64+0x4c/0x640 [ 28.469826] ? SyS_read+0x210/0x210 [ 28.473443] do_syscall_64+0x1d5/0x640 [ 28.477338] entry_SYSCALL_64_after_hwframe+0x46/0xbb [ 28.482530] RIP: 0033:0x7f4aceb06ab9 [ 28.486220] RSP: 002b:00007f4aceab8318 EFLAGS: 00000246 ORIG_RAX: 0000000000000001 [ 28.493923] RAX: ffffffffffffffda RBX: 00007f4aceb8e408 RCX: 00007f4aceb06ab9 [ 28.501180] RDX: 0000000000000010 RSI: 0000000020000080 RDI: 0000000000000003 [ 28.508430] RBP: 00007f4aceb8e400 R08: 00000000fffffa00 R09: 0000000000000000 executing program [ 28.515684] R10: 0000000000000008 R11: 0000000000000246 R12: 006d635f616d6472 [ 28.522937] R13: 00007fffaf006b3f R14: 00007f4aceab8400 R15: 0000000000022000 [ 28.530193] [ 28.531858] Allocated by task 7970: [ 28.535476] kasan_kmalloc+0xeb/0x160 [ 28.539296] kmem_cache_alloc_trace+0x131/0x3d0 [ 28.543964] rdma_create_id+0x57/0x4c0 [ 28.547837] ucma_create_id+0x18b/0x500 [ 28.551790] ucma_write+0x206/0x2c0 [ 28.555496] __vfs_write+0xe4/0x630 [ 28.559206] vfs_write+0x17f/0x4d0 [ 28.562724] SyS_write+0xf2/0x210 [ 28.566159] do_syscall_64+0x1d5/0x640 [ 28.570053] entry_SYSCALL_64_after_hwframe+0x46/0xbb [ 28.575214] [ 28.576836] Freed by task 7991: [ 28.580095] kasan_slab_free+0xc3/0x1a0 [ 28.584046] kfree+0xc9/0x250 [ 28.587152] ucma_close+0x11a/0x340 [ 28.590770] __fput+0x25f/0x7a0 [ 28.594035] task_work_run+0x11f/0x190 [ 28.597902] do_exit+0xa44/0x2850 [ 28.601330] do_group_exit+0x100/0x2e0 [ 28.605198] get_signal+0x38d/0x1ca0 [ 28.608893] do_signal+0x7c/0x1550 [ 28.612507] exit_to_usermode_loop+0x160/0x200 [ 28.617065] do_syscall_64+0x4a3/0x640 [ 28.620932] entry_SYSCALL_64_after_hwframe+0x46/0xbb [ 28.626096] [ 28.627722] The buggy address belongs to the object at ffff8880b573c4c0 [ 28.627722] which belongs to the cache kmalloc-1024 of size 1024 [ 28.640528] The buggy address is located 472 bytes inside of [ 28.640528] 1024-byte region [ffff8880b573c4c0, ffff8880b573c8c0) [ 28.652463] The buggy address belongs to the page: [ 28.657373] page:ffffea0002d5cf00 count:1 mapcount:0 mapping:ffff8880b573c040 index:0x0 compound_mapcount: 0 [ 28.667330] flags: 0xfff00000008100(slab|head) [ 28.671896] raw: 00fff00000008100 ffff8880b573c040 0000000000000000 0000000100000007 [ 28.679754] raw: ffffea00025d7320 ffff88813fe64848 ffff88813fe74ac0 0000000000000000 [ 28.687611] page dumped because: kasan: bad access detected [ 28.693329] [ 28.694941] Memory state around the buggy address: [ 28.699853] ffff8880b573c580: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 28.707209] ffff8880b573c600: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 28.714546] >ffff8880b573c680: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 28.721885] ^ [ 28.726041] ffff8880b573c700: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 28.733458] ffff8880b573c780: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 28.740804] ================================================================== [ 28.748227] Disabling lock debugging due to kernel taint [ 28.754524] Kernel panic - not syncing: panic_on_warn set ... [ 28.754524] [ 28.761893] CPU: 1 PID: 7975 Comm: syz-executor322 Tainted: G B 4.14.285-syzkaller #0 [ 28.770980] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 06/29/2022 [ 28.780328] Call Trace: [ 28.782927] dump_stack+0x1b2/0x281 [ 28.786549] panic+0x1f9/0x42d [ 28.789724] ? add_taint.cold+0x16/0x16 [ 28.793675] ? ___preempt_schedule+0x16/0x18 [ 28.798058] kasan_end_report+0x43/0x49 [ 28.802023] kasan_report_error.cold+0xa7/0x191 [ 28.806670] ? __list_add_valid+0x93/0xa0 [ 28.810793] __asan_report_load8_noabort+0x68/0x70 [ 28.815718] ? __list_add_valid+0x93/0xa0 [ 28.819844] __list_add_valid+0x93/0xa0 [ 28.823794] rdma_listen+0x656/0x9b0 [ 28.827482] ucma_listen+0x10b/0x170 [ 28.831171] ? ucma_bind_ip+0x150/0x150 [ 28.835122] ? _copy_from_user+0x96/0x100 [ 28.839255] ? ucma_bind_ip+0x150/0x150 [ 28.843205] ucma_write+0x206/0x2c0 [ 28.846806] ? ucma_set_ib_path+0x510/0x510 [ 28.851111] __vfs_write+0xe4/0x630 [ 28.854712] ? ucma_set_ib_path+0x510/0x510 [ 28.859094] ? debug_check_no_obj_freed+0x2c0/0x680 [ 28.864105] ? kernel_read+0x110/0x110 [ 28.867971] ? common_file_perm+0x3ee/0x580 [ 28.872270] ? security_file_permission+0x82/0x1e0 [ 28.877186] ? rw_verify_area+0xe1/0x2a0 [ 28.881259] vfs_write+0x17f/0x4d0 [ 28.884782] SyS_write+0xf2/0x210 [ 28.888484] ? SyS_read+0x210/0x210 [ 28.892096] ? __do_page_fault+0x159/0xad0 [ 28.896319] ? do_syscall_64+0x4c/0x640 [ 28.900274] ? SyS_read+0x210/0x210 [ 28.903883] do_syscall_64+0x1d5/0x640 [ 28.907754] entry_SYSCALL_64_after_hwframe+0x46/0xbb [ 28.912926] RIP: 0033:0x7f4aceb06ab9 [ 28.916613] RSP: 002b:00007f4aceab8318 EFLAGS: 00000246 ORIG_RAX: 0000000000000001 [ 28.924296] RAX: ffffffffffffffda RBX: 00007f4aceb8e408 RCX: 00007f4aceb06ab9 [ 28.931546] RDX: 0000000000000010 RSI: 0000000020000080 RDI: 0000000000000003 [ 28.938808] RBP: 00007f4aceb8e400 R08: 00000000fffffa00 R09: 0000000000000000 [ 28.946161] R10: 0000000000000008 R11: 0000000000000246 R12: 006d635f616d6472 [ 28.953415] R13: 00007fffaf006b3f R14: 00007f4aceab8400 R15: 0000000000022000 [ 28.960742] Kernel Offset: disabled [ 28.964353] Rebooting in 86400 seconds..