[ OK ] Started Permit User Sessions. [ OK ] Started System Logging Service. [ OK ] Started getty on tty2-tty6 if dbus and logind are not available. [ OK ] Started OpenBSD Secure Shell server. [ OK ] Listening on Load/Save RF Kill Switch Status /dev/rfkill Watch. [ OK ] Started Getty on tty6. [ OK ] Started Getty on tty5. [ OK ] Started Getty on tty4. [ OK ] Started Getty on tty3. [ OK ] Started Getty on tty1. [ OK ] Started Getty on tty2. [ 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... Starting Load/Save RF Kill Switch Status... [ OK ] Started Update UTMP about System Runlevel Changes. [ OK ] Started Load/Save RF Kill Switch Status. Debian GNU/Linux 9 syzkaller ttyS0 Warning: Permanently added '10.128.0.243' (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 syzkaller login: [ 26.904422] ================================================================== [ 26.911857] BUG: KASAN: use-after-free in __list_add_valid+0x93/0xa0 [ 26.918330] Read of size 8 at addr ffff88809b7bc1d8 by task syz-executor380/8018 [ 26.925873] [ 26.927479] CPU: 0 PID: 8018 Comm: syz-executor380 Not tainted 4.14.285-syzkaller #0 [ 26.935335] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 26.944678] Call Trace: [ 26.947268] dump_stack+0x1b2/0x281 [ 26.950897] print_address_description.cold+0x54/0x1d3 [ 26.956208] kasan_report_error.cold+0x8a/0x191 [ 26.960874] ? __list_add_valid+0x93/0xa0 [ 26.965020] __asan_report_load8_noabort+0x68/0x70 [ 26.969941] ? __list_add_valid+0x93/0xa0 [ 26.974065] __list_add_valid+0x93/0xa0 [ 26.978017] rdma_listen+0x656/0x9b0 [ 26.981709] ucma_listen+0x10b/0x170 [ 26.985420] ? ucma_bind_ip+0x150/0x150 [ 26.989406] ? _copy_from_user+0x96/0x100 [ 26.993543] ? ucma_bind_ip+0x150/0x150 [ 26.997500] ucma_write+0x206/0x2c0 [ 27.001127] ? ucma_set_ib_path+0x510/0x510 [ 27.005521] ? _raw_spin_unlock_irq+0x24/0x80 [ 27.010088] __vfs_write+0xe4/0x630 [ 27.013702] ? ucma_set_ib_path+0x510/0x510 [ 27.018004] ? finish_task_switch+0x14d/0x610 [ 27.022476] ? switch_mm_irqs_off+0x601/0xeb0 [ 27.026951] ? kernel_read+0x110/0x110 [ 27.030824] ? common_file_perm+0x3ee/0x580 [ 27.035124] ? __fsnotify_inode_delete+0x20/0x20 [ 27.039970] ? security_file_permission+0x82/0x1e0 [ 27.044903] ? rw_verify_area+0xe1/0x2a0 [ 27.048950] vfs_write+0x17f/0x4d0 [ 27.052471] SyS_write+0xf2/0x210 [ 27.055909] ? SyS_read+0x210/0x210 [ 27.059511] ? SyS_read+0x210/0x210 [ 27.063117] do_syscall_64+0x1d5/0x640 [ 27.066982] entry_SYSCALL_64_after_hwframe+0x46/0xbb [ 27.072158] RIP: 0033:0x7f5ae6ef9ec9 [ 27.075843] RSP: 002b:00007fffbfbad9f8 EFLAGS: 00000246 ORIG_RAX: 0000000000000001 [ 27.083528] RAX: ffffffffffffffda RBX: 0000000000006927 RCX: 00007f5ae6ef9ec9 [ 27.090781] RDX: 0000000000000010 RSI: 0000000020000180 RDI: 0000000000000003 [ 27.098024] RBP: 0000000000000000 R08: 00007fffbfbadb98 R09: 00007fffbfbadb98 [ 27.105271] R10: 00007fffbfbadb98 R11: 0000000000000246 R12: 00007fffbfbada0c [ 27.112517] R13: 431bde82d7b634db R14: 0000000000000000 R15: 0000000000000000 [ 27.119777] [ 27.121378] Allocated by task 7998: [ 27.124985] kasan_kmalloc+0xeb/0x160 [ 27.128848] kmem_cache_alloc_trace+0x131/0x3d0 [ 27.133494] rdma_create_id+0x57/0x4c0 [ 27.137372] ucma_create_id+0x18b/0x500 [ 27.141318] ucma_write+0x206/0x2c0 [ 27.144921] __vfs_write+0xe4/0x630 [ 27.148525] vfs_write+0x17f/0x4d0 [ 27.152049] SyS_write+0xf2/0x210 [ 27.155476] do_syscall_64+0x1d5/0x640 [ 27.159339] entry_SYSCALL_64_after_hwframe+0x46/0xbb [ 27.164500] [ 27.166111] Freed by task 7998: [ 27.169368] kasan_slab_free+0xc3/0x1a0 [ 27.173316] kfree+0xc9/0x250 [ 27.176414] ucma_close+0x11a/0x340 [ 27.180018] __fput+0x25f/0x7a0 [ 27.183271] task_work_run+0x11f/0x190 [ 27.187134] do_exit+0xa44/0x2850 [ 27.190559] do_group_exit+0x100/0x2e0 [ 27.194422] SyS_exit_group+0x19/0x20 [ 27.198207] do_syscall_64+0x1d5/0x640 [ 27.202080] entry_SYSCALL_64_after_hwframe+0x46/0xbb [ 27.207241] [ 27.208844] The buggy address belongs to the object at ffff88809b7bc000 [ 27.208844] which belongs to the cache kmalloc-1024 of size 1024 [ 27.221649] The buggy address is located 472 bytes inside of [ 27.221649] 1024-byte region [ffff88809b7bc000, ffff88809b7bc400) [ 27.233582] The buggy address belongs to the page: [ 27.238492] page:ffffea00026def00 count:1 mapcount:0 mapping:ffff88809b7bc000 index:0xffff88809b7bc900 compound_mapcount: 0 [ 27.249747] flags: 0xfff00000008100(slab|head) [ 27.254307] raw: 00fff00000008100 ffff88809b7bc000 ffff88809b7bc900 0000000100000004 [ 27.262249] raw: ffffea00026c6720 ffffea00026ea4a0 ffff88813fe74ac0 0000000000000000 [ 27.270187] page dumped because: kasan: bad access detected [ 27.275890] [ 27.277488] Memory state around the buggy address: [ 27.282388] ffff88809b7bc080: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 27.289722] ffff88809b7bc100: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 27.297055] >ffff88809b7bc180: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 27.304403] ^ [ 27.310778] ffff88809b7bc200: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 27.318120] ffff88809b7bc280: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 27.325463] ================================================================== [ 27.332810] Disabling lock debugging due to kernel taint [ 27.340123] Kernel panic - not syncing: panic_on_warn set ... [ 27.340123] [ 27.347496] CPU: 0 PID: 8018 Comm: syz-executor380 Tainted: G B 4.14.285-syzkaller #0 [ 27.356596] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 27.365939] Call Trace: [ 27.368775] dump_stack+0x1b2/0x281 [ 27.372383] panic+0x1f9/0x42d [ 27.375555] ? add_taint.cold+0x16/0x16 [ 27.379617] ? ___preempt_schedule+0x16/0x18 [ 27.384010] kasan_end_report+0x43/0x49 [ 27.387964] kasan_report_error.cold+0xa7/0x191 [ 27.392612] ? __list_add_valid+0x93/0xa0 [ 27.396786] __asan_report_load8_noabort+0x68/0x70 [ 27.401694] ? __list_add_valid+0x93/0xa0 [ 27.405818] __list_add_valid+0x93/0xa0 [ 27.409854] rdma_listen+0x656/0x9b0 [ 27.413575] ucma_listen+0x10b/0x170 [ 27.417264] ? ucma_bind_ip+0x150/0x150 [ 27.421211] ? _copy_from_user+0x96/0x100 [ 27.425340] ? ucma_bind_ip+0x150/0x150 [ 27.429294] ucma_write+0x206/0x2c0 [ 27.432892] ? ucma_set_ib_path+0x510/0x510 [ 27.437188] ? _raw_spin_unlock_irq+0x24/0x80 [ 27.441661] __vfs_write+0xe4/0x630 [ 27.445265] ? ucma_set_ib_path+0x510/0x510 [ 27.449622] ? finish_task_switch+0x14d/0x610 [ 27.454089] ? switch_mm_irqs_off+0x601/0xeb0 [ 27.458645] ? kernel_read+0x110/0x110 [ 27.462508] ? common_file_perm+0x3ee/0x580 [ 27.466813] ? __fsnotify_inode_delete+0x20/0x20 [ 27.471564] ? security_file_permission+0x82/0x1e0 [ 27.476472] ? rw_verify_area+0xe1/0x2a0 [ 27.480506] vfs_write+0x17f/0x4d0 [ 27.484027] SyS_write+0xf2/0x210 [ 27.487457] ? SyS_read+0x210/0x210 [ 27.491058] ? SyS_read+0x210/0x210 [ 27.494660] do_syscall_64+0x1d5/0x640 [ 27.498538] entry_SYSCALL_64_after_hwframe+0x46/0xbb [ 27.503737] RIP: 0033:0x7f5ae6ef9ec9 [ 27.507425] RSP: 002b:00007fffbfbad9f8 EFLAGS: 00000246 ORIG_RAX: 0000000000000001 [ 27.515110] RAX: ffffffffffffffda RBX: 0000000000006927 RCX: 00007f5ae6ef9ec9 [ 27.522356] RDX: 0000000000000010 RSI: 0000000020000180 RDI: 0000000000000003 [ 27.529640] RBP: 0000000000000000 R08: 00007fffbfbadb98 R09: 00007fffbfbadb98 [ 27.536885] R10: 00007fffbfbadb98 R11: 0000000000000246 R12: 00007fffbfbada0c [ 27.544128] R13: 431bde82d7b634db R14: 0000000000000000 R15: 0000000000000000 [ 27.551599] Kernel Offset: disabled [ 27.555236] Rebooting in 86400 seconds..