[ OK ] Started Getty on tty2. [ OK ] Reached target Login Prompts. [ OK ] Started OpenBSD Secure Shell server. [ OK ] Listening on Load/Save RF Kill Switch Status /dev/rfkill Watch. [ 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.235' (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 syzkaller login: [ 29.343435] ================================================================== [ 29.350884] BUG: KASAN: use-after-free in __list_add_valid+0x93/0xa0 [ 29.357406] Read of size 8 at addr ffff8880b2945898 by task syz-executor164/8161 [ 29.364912] [ 29.366526] CPU: 1 PID: 8161 Comm: syz-executor164 Not tainted 4.14.218-syzkaller #0 [ 29.374415] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 29.383748] Call Trace: [ 29.386321] dump_stack+0x1b2/0x281 [ 29.389933] print_address_description.cold+0x54/0x1d3 [ 29.395185] kasan_report_error.cold+0x8a/0x191 [ 29.399831] ? __list_add_valid+0x93/0xa0 [ 29.403956] __asan_report_load8_noabort+0x68/0x70 [ 29.408862] ? __list_add_valid+0x93/0xa0 [ 29.412985] __list_add_valid+0x93/0xa0 [ 29.417065] rdma_listen+0x656/0x9b0 [ 29.420756] ucma_listen+0x10b/0x170 [ 29.424455] ? ucma_bind_ip+0x150/0x150 [ 29.428408] ? _copy_from_user+0x96/0x100 [ 29.432535] ? ucma_bind_ip+0x150/0x150 [ 29.436492] ucma_write+0x206/0x2c0 [ 29.440135] ? ucma_set_ib_path+0x510/0x510 [ 29.444432] ? __switch_to_xtra+0x93/0x12f0 [ 29.448729] ? finish_task_switch+0x178/0x610 [ 29.453200] __vfs_write+0xe4/0x630 [ 29.456802] ? ucma_set_ib_path+0x510/0x510 [ 29.461097] ? lock_downgrade+0x740/0x740 [ 29.465218] ? kernel_read+0x110/0x110 [ 29.469082] ? common_file_perm+0x3ee/0x580 [ 29.473376] ? _raw_spin_unlock_irq+0x5a/0x80 [ 29.477853] ? security_file_permission+0x82/0x1e0 [ 29.482767] ? rw_verify_area+0xe1/0x2a0 [ 29.486809] vfs_write+0x17f/0x4d0 [ 29.490327] SyS_write+0xf2/0x210 [ 29.493756] ? SyS_read+0x210/0x210 [ 29.497359] ? do_syscall_64+0x4c/0x640 [ 29.501305] ? SyS_read+0x210/0x210 [ 29.504907] do_syscall_64+0x1d5/0x640 [ 29.508773] entry_SYSCALL_64_after_hwframe+0x46/0xbb [ 29.513936] RIP: 0033:0x43fd39 [ 29.517098] RSP: 002b:00007ffcad55a078 EFLAGS: 00000246 ORIG_RAX: 0000000000000001 [ 29.524779] RAX: ffffffffffffffda RBX: 00000000000072a9 RCX: 000000000043fd39 [ 29.532022] RDX: 0000000000000010 RSI: 00000000200001c0 RDI: 0000000000000003 [ 29.539281] RBP: 0000000000000000 R08: 00007ffcad55a218 R09: 00007ffcad55a218 [ 29.546533] R10: 00007ffcad55a218 R11: 0000000000000246 R12: 00007ffcad55a08c [ 29.553779] R13: 431bde82d7b634db R14: 00000000004ae018 R15: 0000000000400488 [ 29.561035] [ 29.562646] Allocated by task 8095: [ 29.566262] kasan_kmalloc+0xeb/0x160 [ 29.570038] kmem_cache_alloc_trace+0x131/0x3d0 [ 29.574688] rdma_create_id+0x57/0x4c0 [ 29.578548] ucma_create_id+0x18b/0x500 [ 29.582492] ucma_write+0x206/0x2c0 [ 29.586092] __vfs_write+0xe4/0x630 [ 29.589693] vfs_write+0x17f/0x4d0 [ 29.593205] SyS_write+0xf2/0x210 [ 29.596632] do_syscall_64+0x1d5/0x640 [ 29.600499] entry_SYSCALL_64_after_hwframe+0x46/0xbb [ 29.605659] [ 29.607264] Freed by task 8095: [ 29.610517] kasan_slab_free+0xc3/0x1a0 [ 29.614465] kfree+0xc9/0x250 [ 29.617547] ucma_close+0x11a/0x340 [ 29.621146] __fput+0x25f/0x7a0 [ 29.624402] task_work_run+0x11f/0x190 [ 29.628264] do_exit+0xa44/0x2850 [ 29.631691] do_group_exit+0x100/0x2e0 [ 29.635551] SyS_exit_group+0x19/0x20 [ 29.639341] do_syscall_64+0x1d5/0x640 [ 29.643217] entry_SYSCALL_64_after_hwframe+0x46/0xbb [ 29.648376] [ 29.649980] The buggy address belongs to the object at ffff8880b29456c0 [ 29.649980] which belongs to the cache kmalloc-1024 of size 1024 [ 29.662883] The buggy address is located 472 bytes inside of [ 29.662883] 1024-byte region [ffff8880b29456c0, ffff8880b2945ac0) [ 29.674815] The buggy address belongs to the page: [ 29.679721] page:ffffea0002ca5100 count:1 mapcount:0 mapping:ffff8880b2944040 index:0x0 compound_mapcount: 0 [ 29.689666] flags: 0xfff00000008100(slab|head) [ 29.694233] raw: 00fff00000008100 ffff8880b2944040 0000000000000000 0000000100000007 [ 29.702088] raw: ffffea000255f420 ffffea0002c40420 ffff88813fe80ac0 0000000000000000 [ 29.709940] page dumped because: kasan: bad access detected [ 29.715621] [ 29.717223] Memory state around the buggy address: [ 29.722125] ffff8880b2945780: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 29.729457] ffff8880b2945800: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 29.736803] >ffff8880b2945880: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 29.744139] ^ [ 29.748259] ffff8880b2945900: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 29.755591] ffff8880b2945980: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 29.762921] ================================================================== [ 29.770251] Disabling lock debugging due to kernel taint [ 29.775739] Kernel panic - not syncing: panic_on_warn set ... [ 29.775739] [ 29.783097] CPU: 1 PID: 8161 Comm: syz-executor164 Tainted: G B 4.14.218-syzkaller #0 [ 29.792182] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 29.801519] Call Trace: [ 29.804135] dump_stack+0x1b2/0x281 [ 29.807772] panic+0x1f9/0x42d [ 29.810940] ? add_taint.cold+0x16/0x16 [ 29.814894] ? ___preempt_schedule+0x16/0x18 [ 29.819280] kasan_end_report+0x43/0x49 [ 29.823230] kasan_report_error.cold+0xa7/0x191 [ 29.827872] ? __list_add_valid+0x93/0xa0 [ 29.831994] __asan_report_load8_noabort+0x68/0x70 [ 29.836896] ? __list_add_valid+0x93/0xa0 [ 29.841017] __list_add_valid+0x93/0xa0 [ 29.845025] rdma_listen+0x656/0x9b0 [ 29.848715] ucma_listen+0x10b/0x170 [ 29.852401] ? ucma_bind_ip+0x150/0x150 [ 29.856348] ? _copy_from_user+0x96/0x100 [ 29.860466] ? ucma_bind_ip+0x150/0x150 [ 29.864411] ucma_write+0x206/0x2c0 [ 29.868013] ? ucma_set_ib_path+0x510/0x510 [ 29.872308] ? __switch_to_xtra+0x93/0x12f0 [ 29.876607] ? finish_task_switch+0x178/0x610 [ 29.881080] __vfs_write+0xe4/0x630 [ 29.884678] ? ucma_set_ib_path+0x510/0x510 [ 29.888972] ? lock_downgrade+0x740/0x740 [ 29.893094] ? kernel_read+0x110/0x110 [ 29.896955] ? common_file_perm+0x3ee/0x580 [ 29.901248] ? _raw_spin_unlock_irq+0x5a/0x80 [ 29.905718] ? security_file_permission+0x82/0x1e0 [ 29.910627] ? rw_verify_area+0xe1/0x2a0 [ 29.914660] vfs_write+0x17f/0x4d0 [ 29.918174] SyS_write+0xf2/0x210 [ 29.921600] ? SyS_read+0x210/0x210 [ 29.925199] ? do_syscall_64+0x4c/0x640 [ 29.929145] ? SyS_read+0x210/0x210 [ 29.932766] do_syscall_64+0x1d5/0x640 [ 29.936632] entry_SYSCALL_64_after_hwframe+0x46/0xbb [ 29.941796] RIP: 0033:0x43fd39 [ 29.944957] RSP: 002b:00007ffcad55a078 EFLAGS: 00000246 ORIG_RAX: 0000000000000001 [ 29.952636] RAX: ffffffffffffffda RBX: 00000000000072a9 RCX: 000000000043fd39 [ 29.959878] RDX: 0000000000000010 RSI: 00000000200001c0 RDI: 0000000000000003 [ 29.967170] RBP: 0000000000000000 R08: 00007ffcad55a218 R09: 00007ffcad55a218 [ 29.974415] R10: 00007ffcad55a218 R11: 0000000000000246 R12: 00007ffcad55a08c [ 29.981674] R13: 431bde82d7b634db R14: 00000000004ae018 R15: 0000000000400488 [ 29.989497] Kernel Offset: disabled [ 29.993111] Rebooting in 86400 seconds..