[ OK ] Started Getty on tty2. [ OK ] Started Serial Getty on ttyS0. [ OK ] Started Getty on tty1. [ 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.1.86' (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 syzkaller login: [ 27.569018] ================================================================== [ 27.579297] BUG: KASAN: use-after-free in __list_add_valid+0x93/0xa0 [ 27.585796] Read of size 8 at addr ffff8880b359b418 by task syz-executor308/8058 [ 27.593585] [ 27.595208] CPU: 0 PID: 8058 Comm: syz-executor308 Not tainted 4.14.290-syzkaller #0 [ 27.603200] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 07/22/2022 [ 27.612822] Call Trace: [ 27.615392] dump_stack+0x1b2/0x281 executing program [ 27.619013] print_address_description.cold+0x54/0x1d3 [ 27.624295] kasan_report_error.cold+0x8a/0x191 [ 27.629153] ? __list_add_valid+0x93/0xa0 [ 27.633390] __asan_report_load8_noabort+0x68/0x70 [ 27.638565] ? __list_add_valid+0x93/0xa0 [ 27.642809] __list_add_valid+0x93/0xa0 [ 27.647066] rdma_listen+0x656/0x9b0 [ 27.650801] ucma_listen+0x10b/0x170 [ 27.654611] ? ucma_bind_ip+0x150/0x150 [ 27.658579] ? _copy_from_user+0x96/0x100 [ 27.662731] ? ucma_bind_ip+0x150/0x150 executing program executing program [ 27.666700] ucma_write+0x206/0x2c0 [ 27.670313] ? ucma_set_ib_path+0x510/0x510 [ 27.674623] __vfs_write+0xe4/0x630 [ 27.678359] ? ucma_set_ib_path+0x510/0x510 [ 27.682712] ? kernel_read+0x110/0x110 [ 27.686607] ? common_file_perm+0x3ee/0x580 [ 27.690929] ? security_file_permission+0x82/0x1e0 [ 27.695952] ? rw_verify_area+0xe1/0x2a0 [ 27.700103] vfs_write+0x17f/0x4d0 [ 27.703793] SyS_write+0xf2/0x210 [ 27.707267] ? SyS_read+0x210/0x210 [ 27.710886] ? do_syscall_64+0x4c/0x640 [ 27.714858] ? SyS_read+0x210/0x210 executing program executing program executing program [ 27.719777] do_syscall_64+0x1d5/0x640 [ 27.723664] entry_SYSCALL_64_after_hwframe+0x46/0xbb [ 27.728850] RIP: 0033:0x7f6e25d41ae9 [ 27.732544] RSP: 002b:00007f6e25cd2308 EFLAGS: 00000246 ORIG_RAX: 0000000000000001 [ 27.740258] RAX: ffffffffffffffda RBX: 00007f6e25dc9418 RCX: 00007f6e25d41ae9 [ 27.747800] RDX: 0000000000000010 RSI: 0000000020000140 RDI: 0000000000000003 [ 27.755452] RBP: 00007f6e25dc9410 R08: 00007f6e25cd2700 R09: 0000000000000000 executing program executing program executing program [ 27.763974] R10: 00007f6e25cd2700 R11: 0000000000000246 R12: 00007f6e25dc941c [ 27.771593] R13: 00007f6e25d97074 R14: 006d635f616d6472 R15: 0000000000022000 [ 27.778851] [ 27.780467] Allocated by task 8023: [ 27.784095] kasan_kmalloc+0xeb/0x160 [ 27.787895] kmem_cache_alloc_trace+0x131/0x3d0 [ 27.792642] rdma_create_id+0x57/0x4c0 [ 27.796523] ucma_create_id+0x18b/0x500 [ 27.800490] ucma_write+0x206/0x2c0 [ 27.804116] __vfs_write+0xe4/0x630 [ 27.807737] vfs_write+0x17f/0x4d0 [ 27.811265] SyS_write+0xf2/0x210 [ 27.814805] do_syscall_64+0x1d5/0x640 executing program executing program executing program executing program [ 27.818788] entry_SYSCALL_64_after_hwframe+0x46/0xbb [ 27.823967] [ 27.825703] Freed by task 8046: [ 27.828969] kasan_slab_free+0xc3/0x1a0 [ 27.833113] kfree+0xc9/0x250 [ 27.836374] ucma_close+0x11a/0x340 [ 27.840210] __fput+0x25f/0x7a0 [ 27.843489] task_work_run+0x11f/0x190 [ 27.847389] do_exit+0xa44/0x2850 [ 27.850985] do_group_exit+0x100/0x2e0 [ 27.855126] get_signal+0x38d/0x1ca0 [ 27.858842] do_signal+0x7c/0x1550 [ 27.862475] exit_to_usermode_loop+0x160/0x200 executing program executing program executing program executing program [ 27.867051] do_syscall_64+0x4a3/0x640 [ 27.871031] entry_SYSCALL_64_after_hwframe+0x46/0xbb [ 27.876364] [ 27.877986] The buggy address belongs to the object at ffff8880b359b240 [ 27.877986] which belongs to the cache kmalloc-1024 of size 1024 [ 27.890921] The buggy address is located 472 bytes inside of [ 27.890921] 1024-byte region [ffff8880b359b240, ffff8880b359b640) [ 27.902875] The buggy address belongs to the page: [ 27.907803] page:ffffea0002cd6680 count:1 mapcount:0 mapping:ffff8880b359a040 index:0x0 compound_mapcount: 0 executing program executing program executing program executing program [ 27.917882] flags: 0xfff00000008100(slab|head) [ 27.922453] raw: 00fff00000008100 ffff8880b359a040 0000000000000000 0000000100000007 [ 27.930334] raw: ffffea0002567b20 ffffea0002d22820 ffff88813fe74ac0 0000000000000000 [ 27.938333] page dumped because: kasan: bad access detected [ 27.944038] [ 27.945660] Memory state around the buggy address: [ 27.950579] ffff8880b359b300: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 27.957929] ffff8880b359b380: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb executing program executing program executing program executing program executing program executing program executing program executing program [ 27.965422] >ffff8880b359b400: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 27.972859] ^ [ 27.977013] ffff8880b359b480: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 27.984385] ffff8880b359b500: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 27.991994] ================================================================== [ 27.999369] Disabling lock debugging due to kernel taint executing program executing program [ 28.027638] Kernel panic - not syncing: panic_on_warn set ... [ 28.027638] [ 28.035139] CPU: 0 PID: 8058 Comm: syz-executor308 Tainted: G B 4.14.290-syzkaller #0 [ 28.044224] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 07/22/2022 [ 28.053601] Call Trace: [ 28.056177] dump_stack+0x1b2/0x281 [ 28.059800] panic+0x1f9/0x42d [ 28.062993] ? add_taint.cold+0x16/0x16 [ 28.067068] ? ___preempt_schedule+0x16/0x18 [ 28.071476] kasan_end_report+0x43/0x49 executing program executing program [ 28.075564] kasan_report_error.cold+0xa7/0x191 [ 28.080506] ? __list_add_valid+0x93/0xa0 [ 28.084648] __asan_report_load8_noabort+0x68/0x70 [ 28.089565] ? __list_add_valid+0x93/0xa0 [ 28.093709] __list_add_valid+0x93/0xa0 [ 28.097677] rdma_listen+0x656/0x9b0 [ 28.101394] ucma_listen+0x10b/0x170 [ 28.105105] ? ucma_bind_ip+0x150/0x150 [ 28.109090] ? _copy_from_user+0x96/0x100 [ 28.113240] ? ucma_bind_ip+0x150/0x150 [ 28.117220] ucma_write+0x206/0x2c0 [ 28.120839] ? ucma_set_ib_path+0x510/0x510 executing program executing program executing program [ 28.125160] __vfs_write+0xe4/0x630 [ 28.128869] ? ucma_set_ib_path+0x510/0x510 [ 28.133193] ? kernel_read+0x110/0x110 [ 28.137195] ? common_file_perm+0x3ee/0x580 [ 28.141504] ? security_file_permission+0x82/0x1e0 [ 28.146469] ? rw_verify_area+0xe1/0x2a0 [ 28.150531] vfs_write+0x17f/0x4d0 [ 28.154058] SyS_write+0xf2/0x210 [ 28.157502] ? SyS_read+0x210/0x210 [ 28.161288] ? do_syscall_64+0x4c/0x640 [ 28.165282] ? SyS_read+0x210/0x210 [ 28.168892] do_syscall_64+0x1d5/0x640 [ 28.172789] entry_SYSCALL_64_after_hwframe+0x46/0xbb executing program executing program executing program [ 28.177974] RIP: 0033:0x7f6e25d41ae9 [ 28.181668] RSP: 002b:00007f6e25cd2308 EFLAGS: 00000246 ORIG_RAX: 0000000000000001 [ 28.189374] RAX: ffffffffffffffda RBX: 00007f6e25dc9418 RCX: 00007f6e25d41ae9 [ 28.196628] RDX: 0000000000000010 RSI: 0000000020000140 RDI: 0000000000000003 [ 28.203885] RBP: 00007f6e25dc9410 R08: 00007f6e25cd2700 R09: 0000000000000000 [ 28.211150] R10: 00007f6e25cd2700 R11: 0000000000000246 R12: 00007f6e25dc941c [ 28.218420] R13: 00007f6e25d97074 R14: 006d635f616d6472 R15: 0000000000022000 [ 28.226034] Kernel Offset: disabled [ 28.229732] Rebooting in 86400 seconds..