[ OK ] Started OpenBSD Secure Shell server. [ OK ] Listening on Load/Save RF Kill Switch Status /dev/rfkill Watch. [ OK ] Started Serial Getty on ttyS0. [ OK ] Reached target Login Prompts. [ OK ] Reached target Multi-User System. [ OK ] Reached target Graphical Interface. Starting Update UTMP about System Runlevel Changes... [ OK ] Started Update UTMP about System Runlevel Changes. Starting Load/Save RF Kill Switch Status... [ OK ] Started Load/Save RF Kill Switch Status. Debian GNU/Linux 9 syzkaller ttyS0 Warning: Permanently added '10.128.0.35' (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 syzkaller login: [ 28.324103] ================================================================== [ 28.331556] BUG: KASAN: use-after-free in __list_add_valid+0x93/0xa0 [ 28.338021] Read of size 8 at addr ffff8880b3960218 by task syz-executor352/8045 [ 28.345525] [ 28.347146] CPU: 0 PID: 8045 Comm: syz-executor352 Not tainted 4.14.284-syzkaller #0 [ 28.355016] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 28.364351] Call Trace: [ 28.366935] dump_stack+0x1b2/0x281 [ 28.370544] print_address_description.cold+0x54/0x1d3 [ 28.375897] kasan_report_error.cold+0x8a/0x191 [ 28.380542] ? __list_add_valid+0x93/0xa0 [ 28.384667] __asan_report_load8_noabort+0x68/0x70 [ 28.389580] ? __list_add_valid+0x93/0xa0 [ 28.393716] __list_add_valid+0x93/0xa0 [ 28.397681] rdma_listen+0x656/0x9b0 [ 28.401370] ucma_listen+0x10b/0x170 [ 28.405079] ? ucma_bind_ip+0x150/0x150 [ 28.409031] ? _copy_from_user+0x96/0x100 [ 28.413169] ? ucma_bind_ip+0x150/0x150 [ 28.417130] ucma_write+0x206/0x2c0 [ 28.420729] ? ucma_set_ib_path+0x510/0x510 [ 28.425040] __vfs_write+0xe4/0x630 [ 28.428687] ? ucma_set_ib_path+0x510/0x510 [ 28.433001] ? __handle_mm_fault+0x80f/0x4620 [ 28.437490] ? kernel_read+0x110/0x110 [ 28.441359] ? common_file_perm+0x3ee/0x580 [ 28.445666] ? __fsnotify_inode_delete+0x20/0x20 [ 28.450404] ? __fsnotify_update_child_dentry_flags.part.0+0x2e0/0x2e0 [ 28.457050] ? security_file_permission+0x82/0x1e0 [ 28.461958] ? rw_verify_area+0xe1/0x2a0 [ 28.465999] vfs_write+0x17f/0x4d0 [ 28.469520] SyS_write+0xf2/0x210 [ 28.472950] ? SyS_read+0x210/0x210 [ 28.476556] ? __do_page_fault+0x159/0xad0 [ 28.480766] ? do_syscall_64+0x4c/0x640 [ 28.484716] ? SyS_read+0x210/0x210 [ 28.488331] do_syscall_64+0x1d5/0x640 [ 28.492213] entry_SYSCALL_64_after_hwframe+0x46/0xbb [ 28.497380] RIP: 0033:0x7f6c4fcc8ec9 [ 28.501067] RSP: 002b:00007ffd58cd3848 EFLAGS: 00000246 ORIG_RAX: 0000000000000001 [ 28.508768] RAX: ffffffffffffffda RBX: 0000000000006eab RCX: 00007f6c4fcc8ec9 [ 28.516012] RDX: 0000000000000010 RSI: 0000000020000240 RDI: 0000000000000003 [ 28.523258] RBP: 0000000000000000 R08: 00007ffd58cd39e8 R09: 00007ffd58cd39e8 [ 28.530507] R10: 00007ffd58cd39e8 R11: 0000000000000246 R12: 00007ffd58cd385c [ 28.537778] R13: 431bde82d7b634db R14: 0000000000000000 R15: 0000000000000000 [ 28.545032] [ 28.546640] Allocated by task 7975: [ 28.550252] kasan_kmalloc+0xeb/0x160 [ 28.554036] kmem_cache_alloc_trace+0x131/0x3d0 [ 28.558699] rdma_create_id+0x57/0x4c0 [ 28.562567] ucma_create_id+0x18b/0x500 [ 28.566519] ucma_write+0x206/0x2c0 [ 28.570120] __vfs_write+0xe4/0x630 [ 28.573720] vfs_write+0x17f/0x4d0 [ 28.577233] SyS_write+0xf2/0x210 [ 28.580661] do_syscall_64+0x1d5/0x640 [ 28.584623] entry_SYSCALL_64_after_hwframe+0x46/0xbb [ 28.589783] [ 28.591383] Freed by task 7975: [ 28.594637] kasan_slab_free+0xc3/0x1a0 [ 28.598589] kfree+0xc9/0x250 [ 28.601669] ucma_close+0x11a/0x340 [ 28.605313] __fput+0x25f/0x7a0 [ 28.608573] task_work_run+0x11f/0x190 [ 28.612433] do_exit+0xa44/0x2850 [ 28.615887] do_group_exit+0x100/0x2e0 [ 28.619747] SyS_exit_group+0x19/0x20 [ 28.623525] do_syscall_64+0x1d5/0x640 [ 28.627389] entry_SYSCALL_64_after_hwframe+0x46/0xbb [ 28.632563] [ 28.634165] The buggy address belongs to the object at ffff8880b3960040 [ 28.634165] which belongs to the cache kmalloc-1024 of size 1024 [ 28.646981] The buggy address is located 472 bytes inside of [ 28.646981] 1024-byte region [ffff8880b3960040, ffff8880b3960440) [ 28.658925] The buggy address belongs to the page: [ 28.663835] page:ffffea0002ce5800 count:1 mapcount:0 mapping:ffff8880b3960040 index:0x0 compound_mapcount: 0 [ 28.673777] flags: 0xfff00000008100(slab|head) [ 28.678331] raw: 00fff00000008100 ffff8880b3960040 0000000000000000 0000000100000007 [ 28.686294] raw: ffffea0002cf9620 ffffea0002cc40a0 ffff88813fe74ac0 0000000000000000 [ 28.694148] page dumped because: kasan: bad access detected [ 28.699845] [ 28.701453] Memory state around the buggy address: [ 28.706468] ffff8880b3960100: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 28.713810] ffff8880b3960180: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 28.721161] >ffff8880b3960200: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 28.728500] ^ [ 28.732715] ffff8880b3960280: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 28.740065] ffff8880b3960300: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 28.747543] ================================================================== [ 28.754877] Disabling lock debugging due to kernel taint [ 28.760722] Kernel panic - not syncing: panic_on_warn set ... [ 28.760722] [ 28.768075] CPU: 0 PID: 8045 Comm: syz-executor352 Tainted: G B 4.14.284-syzkaller #0 [ 28.777247] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 28.786589] Call Trace: [ 28.789169] dump_stack+0x1b2/0x281 [ 28.792791] panic+0x1f9/0x42d [ 28.795959] ? add_taint.cold+0x16/0x16 [ 28.799907] ? ___preempt_schedule+0x16/0x18 [ 28.804290] kasan_end_report+0x43/0x49 [ 28.808240] kasan_report_error.cold+0xa7/0x191 [ 28.812882] ? __list_add_valid+0x93/0xa0 [ 28.817091] __asan_report_load8_noabort+0x68/0x70 [ 28.821997] ? __list_add_valid+0x93/0xa0 [ 28.826151] __list_add_valid+0x93/0xa0 [ 28.830099] rdma_listen+0x656/0x9b0 [ 28.833786] ucma_listen+0x10b/0x170 [ 28.837473] ? ucma_bind_ip+0x150/0x150 [ 28.841418] ? _copy_from_user+0x96/0x100 [ 28.845550] ? ucma_bind_ip+0x150/0x150 [ 28.849497] ucma_write+0x206/0x2c0 [ 28.853187] ? ucma_set_ib_path+0x510/0x510 [ 28.857482] __vfs_write+0xe4/0x630 [ 28.861098] ? ucma_set_ib_path+0x510/0x510 [ 28.865407] ? __handle_mm_fault+0x80f/0x4620 [ 28.869901] ? kernel_read+0x110/0x110 [ 28.873777] ? common_file_perm+0x3ee/0x580 [ 28.878071] ? __fsnotify_inode_delete+0x20/0x20 [ 28.882800] ? __fsnotify_update_child_dentry_flags.part.0+0x2e0/0x2e0 [ 28.889459] ? security_file_permission+0x82/0x1e0 [ 28.894366] ? rw_verify_area+0xe1/0x2a0 [ 28.898417] vfs_write+0x17f/0x4d0 [ 28.901940] SyS_write+0xf2/0x210 [ 28.905369] ? SyS_read+0x210/0x210 [ 28.908987] ? __do_page_fault+0x159/0xad0 [ 28.913199] ? do_syscall_64+0x4c/0x640 [ 28.917149] ? SyS_read+0x210/0x210 [ 28.920768] do_syscall_64+0x1d5/0x640 [ 28.924634] entry_SYSCALL_64_after_hwframe+0x46/0xbb [ 28.929800] RIP: 0033:0x7f6c4fcc8ec9 [ 28.933483] RSP: 002b:00007ffd58cd3848 EFLAGS: 00000246 ORIG_RAX: 0000000000000001 [ 28.941187] RAX: ffffffffffffffda RBX: 0000000000006eab RCX: 00007f6c4fcc8ec9 [ 28.948433] RDX: 0000000000000010 RSI: 0000000020000240 RDI: 0000000000000003 [ 28.955684] RBP: 0000000000000000 R08: 00007ffd58cd39e8 R09: 00007ffd58cd39e8 [ 28.962951] R10: 00007ffd58cd39e8 R11: 0000000000000246 R12: 00007ffd58cd385c [ 28.970196] R13: 431bde82d7b634db R14: 0000000000000000 R15: 0000000000000000 [ 28.977629] Kernel Offset: disabled [ 28.981235] Rebooting in 86400 seconds..