[ OK ] Reached target Graphical Interface. Starting Update UTMP about System Runlevel Changes... Starting Load/Save RF Kill Switch Status... [ OK ] Started Load/Save RF Kill Switch Status. [ OK ] Started Update UTMP about System Runlevel Changes. Debian GNU/Linux 9 syzkaller ttyS0 Warning: Permanently added '10.128.15.199' (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 syzkaller login: [ 28.950320] ================================================================== [ 28.957854] BUG: KASAN: use-after-free in __list_add_valid+0x93/0xa0 [ 28.964320] Read of size 8 at addr ffff8880b54f2f58 by task syz-executor866/8084 [ 28.971827] [ 28.973430] CPU: 0 PID: 8084 Comm: syz-executor866 Not tainted 4.14.203-syzkaller #0 [ 28.981311] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 28.990663] Call Trace: [ 28.993236] dump_stack+0x1b2/0x283 [ 28.996835] print_address_description.cold+0x54/0x1d3 [ 29.002080] kasan_report_error.cold+0x8a/0x194 [ 29.006807] ? __list_add_valid+0x93/0xa0 [ 29.010925] __asan_report_load8_noabort+0x68/0x70 [ 29.015822] ? __list_add_valid+0x93/0xa0 [ 29.019954] __list_add_valid+0x93/0xa0 [ 29.023916] rdma_listen+0x656/0x9b0 [ 29.027601] ucma_listen+0x10b/0x170 [ 29.031308] ? ucma_bind_ip+0x150/0x150 [ 29.035254] ? _copy_from_user+0x96/0x100 [ 29.039378] ? ucma_bind_ip+0x150/0x150 [ 29.043323] ucma_write+0x206/0x2c0 [ 29.046936] ? ucma_set_ib_path+0x510/0x510 [ 29.051230] __vfs_write+0xe4/0x630 [ 29.054825] ? ucma_set_ib_path+0x510/0x510 [ 29.059118] ? debug_check_no_obj_freed+0x2c0/0x674 [ 29.064109] ? kernel_read+0x110/0x110 [ 29.067970] ? common_file_perm+0x3ee/0x580 [ 29.072286] ? __fsnotify_inode_delete+0x20/0x20 [ 29.077023] ? __fsnotify_update_child_dentry_flags.part.0+0x2e0/0x2e0 [ 29.083662] ? security_file_permission+0x82/0x1e0 [ 29.088568] ? rw_verify_area+0xe1/0x2a0 [ 29.092602] vfs_write+0x17f/0x4d0 [ 29.096113] SyS_write+0xf2/0x210 [ 29.099539] ? SyS_read+0x210/0x210 [ 29.103137] ? do_syscall_64+0x4c/0x640 [ 29.107085] ? SyS_read+0x210/0x210 [ 29.110684] do_syscall_64+0x1d5/0x640 [ 29.114546] entry_SYSCALL_64_after_hwframe+0x46/0xbb [ 29.119709] RIP: 0033:0x441489 [ 29.122872] RSP: 002b:00007ffdbe5a2368 EFLAGS: 00000246 ORIG_RAX: 0000000000000001 [ 29.130554] RAX: ffffffffffffffda RBX: 0000000000000000 RCX: 0000000000441489 [ 29.137798] RDX: 0000000000000010 RSI: 0000000020002b80 RDI: 0000000000000004 [ 29.145128] RBP: 0000000000007120 R08: 00000000004002c8 R09: 00000000004002c8 [ 29.152368] R10: 00000000004002c8 R11: 0000000000000246 R12: 0000000000402230 [ 29.159616] R13: 00000000004022c0 R14: 0000000000000000 R15: 0000000000000000 [ 29.166861] [ 29.168459] Allocated by task 8062: [ 29.172058] kasan_kmalloc+0xeb/0x160 [ 29.175830] kmem_cache_alloc_trace+0x131/0x3d0 [ 29.180471] rdma_create_id+0x57/0x4c0 [ 29.184331] ucma_create_id+0x18b/0x500 [ 29.188298] ucma_write+0x206/0x2c0 [ 29.191899] __vfs_write+0xe4/0x630 [ 29.195516] vfs_write+0x17f/0x4d0 [ 29.199030] SyS_write+0xf2/0x210 [ 29.202453] do_syscall_64+0x1d5/0x640 [ 29.206312] entry_SYSCALL_64_after_hwframe+0x46/0xbb [ 29.211472] [ 29.213073] Freed by task 8062: [ 29.216333] kasan_slab_free+0xc3/0x1a0 [ 29.220279] kfree+0xc9/0x250 [ 29.223355] ucma_close+0x11a/0x340 [ 29.226954] __fput+0x25f/0x7a0 [ 29.230218] task_work_run+0x11f/0x190 [ 29.234089] do_exit+0xa08/0x27f0 [ 29.237511] do_group_exit+0x100/0x2e0 [ 29.241369] SyS_exit_group+0x19/0x20 [ 29.245137] do_syscall_64+0x1d5/0x640 [ 29.248993] entry_SYSCALL_64_after_hwframe+0x46/0xbb [ 29.254171] [ 29.255892] The buggy address belongs to the object at ffff8880b54f2d80 [ 29.255892] which belongs to the cache kmalloc-1024 of size 1024 [ 29.268687] The buggy address is located 472 bytes inside of [ 29.268687] 1024-byte region [ffff8880b54f2d80, ffff8880b54f3180) [ 29.280618] The buggy address belongs to the page: [ 29.285520] page:ffffea0002d53c80 count:1 mapcount:0 mapping:ffff8880b54f2000 index:0x0 compound_mapcount: 0 [ 29.295470] flags: 0xfff00000008100(slab|head) [ 29.300024] raw: 00fff00000008100 ffff8880b54f2000 0000000000000000 0000000100000007 [ 29.307877] raw: ffffea0002d53f20 ffffea0002d5fba0 ffff88813fe80ac0 0000000000000000 [ 29.315724] page dumped because: kasan: bad access detected [ 29.321412] [ 29.323008] Memory state around the buggy address: [ 29.327902] ffff8880b54f2e00: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 29.335229] ffff8880b54f2e80: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 29.342554] >ffff8880b54f2f00: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 29.349879] ^ [ 29.356091] ffff8880b54f2f80: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 29.363424] ffff8880b54f3000: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 29.370767] ================================================================== [ 29.378218] Disabling lock debugging due to kernel taint [ 29.385904] Kernel panic - not syncing: panic_on_warn set ... [ 29.385904] [ 29.393270] CPU: 0 PID: 8084 Comm: syz-executor866 Tainted: G B 4.14.203-syzkaller #0 [ 29.402347] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 29.411689] Call Trace: [ 29.414249] dump_stack+0x1b2/0x283 [ 29.417867] panic+0x1f9/0x42d [ 29.421033] ? add_taint.cold+0x16/0x16 [ 29.424979] ? ___preempt_schedule+0x16/0x18 [ 29.429358] kasan_end_report+0x43/0x49 [ 29.433302] kasan_report_error.cold+0xa7/0x194 [ 29.437956] ? __list_add_valid+0x93/0xa0 [ 29.442073] __asan_report_load8_noabort+0x68/0x70 [ 29.447038] ? __list_add_valid+0x93/0xa0 [ 29.451180] __list_add_valid+0x93/0xa0 [ 29.455143] rdma_listen+0x656/0x9b0 [ 29.458835] ucma_listen+0x10b/0x170 [ 29.462519] ? ucma_bind_ip+0x150/0x150 [ 29.466462] ? _copy_from_user+0x96/0x100 [ 29.470583] ? ucma_bind_ip+0x150/0x150 [ 29.474527] ucma_write+0x206/0x2c0 [ 29.478122] ? ucma_set_ib_path+0x510/0x510 [ 29.482413] __vfs_write+0xe4/0x630 [ 29.486011] ? ucma_set_ib_path+0x510/0x510 [ 29.490301] ? debug_check_no_obj_freed+0x2c0/0x674 [ 29.495303] ? kernel_read+0x110/0x110 [ 29.499159] ? common_file_perm+0x3ee/0x580 [ 29.503447] ? __fsnotify_inode_delete+0x20/0x20 [ 29.508171] ? __fsnotify_update_child_dentry_flags.part.0+0x2e0/0x2e0 [ 29.514813] ? security_file_permission+0x82/0x1e0 [ 29.519729] ? rw_verify_area+0xe1/0x2a0 [ 29.523762] vfs_write+0x17f/0x4d0 [ 29.527270] SyS_write+0xf2/0x210 [ 29.530691] ? SyS_read+0x210/0x210 [ 29.534287] ? do_syscall_64+0x4c/0x640 [ 29.538241] ? SyS_read+0x210/0x210 [ 29.541852] do_syscall_64+0x1d5/0x640 [ 29.545716] entry_SYSCALL_64_after_hwframe+0x46/0xbb [ 29.550881] RIP: 0033:0x441489 [ 29.554043] RSP: 002b:00007ffdbe5a2368 EFLAGS: 00000246 ORIG_RAX: 0000000000000001 [ 29.561722] RAX: ffffffffffffffda RBX: 0000000000000000 RCX: 0000000000441489 [ 29.568965] RDX: 0000000000000010 RSI: 0000000020002b80 RDI: 0000000000000004 [ 29.576212] RBP: 0000000000007120 R08: 00000000004002c8 R09: 00000000004002c8 [ 29.583469] R10: 00000000004002c8 R11: 0000000000000246 R12: 0000000000402230 [ 29.590711] R13: 00000000004022c0 R14: 0000000000000000 R15: 0000000000000000 [ 29.598561] Kernel Offset: disabled [ 29.602167] Rebooting in 86400 seconds..