[ 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.1.27' (ECDSA) to the list of known hosts. syzkaller login: [ 28.742907] IPVS: ftp: loaded support on port[0] = 21 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 executing program executing program executing program executing program executing program executing program executing program executing program [ 29.071697] ================================================================== [ 29.079141] BUG: KASAN: use-after-free in __list_add_valid+0x93/0xa0 [ 29.085617] Read of size 8 at addr ffff88809a40b898 by task syz-executor308/8182 [ 29.093123] [ 29.094731] CPU: 1 PID: 8182 Comm: syz-executor308 Not tainted 4.14.282-syzkaller #0 [ 29.102594] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 29.111930] Call Trace: [ 29.114501] dump_stack+0x1b2/0x281 [ 29.118109] print_address_description.cold+0x54/0x1d3 [ 29.123363] kasan_report_error.cold+0x8a/0x191 [ 29.128008] ? __list_add_valid+0x93/0xa0 [ 29.132150] __asan_report_load8_noabort+0x68/0x70 [ 29.137073] ? __list_add_valid+0x93/0xa0 [ 29.141196] __list_add_valid+0x93/0xa0 [ 29.145166] rdma_listen+0x656/0x9b0 [ 29.148863] ucma_listen+0x10b/0x170 [ 29.152563] ? ucma_bind_ip+0x150/0x150 [ 29.156533] ? _copy_from_user+0x96/0x100 [ 29.160664] ? ucma_bind_ip+0x150/0x150 [ 29.164617] ucma_write+0x206/0x2c0 [ 29.168230] ? ucma_set_ib_path+0x510/0x510 [ 29.172533] ? __switch_to_xtra+0x93/0x12f0 [ 29.176835] ? finish_task_switch+0x178/0x610 [ 29.181313] __vfs_write+0xe4/0x630 [ 29.184935] ? ucma_set_ib_path+0x510/0x510 [ 29.189238] ? lock_downgrade+0x740/0x740 [ 29.193364] ? kernel_read+0x110/0x110 [ 29.197231] ? common_file_perm+0x3ee/0x580 [ 29.201529] ? _raw_spin_unlock_irq+0x5a/0x80 [ 29.206001] ? security_file_permission+0x82/0x1e0 [ 29.210911] ? rw_verify_area+0xe1/0x2a0 [ 29.214957] vfs_write+0x17f/0x4d0 [ 29.218505] SyS_write+0xf2/0x210 [ 29.221948] ? SyS_read+0x210/0x210 [ 29.225553] ? do_syscall_64+0x4c/0x640 [ 29.229505] ? SyS_read+0x210/0x210 [ 29.233109] do_syscall_64+0x1d5/0x640 [ 29.237021] entry_SYSCALL_64_after_hwframe+0x46/0xbb [ 29.242198] RIP: 0033:0x7f6c23ab7e89 [ 29.245893] RSP: 002b:00007ffc78eddf18 EFLAGS: 00000246 ORIG_RAX: 0000000000000001 [ 29.253616] RAX: ffffffffffffffda RBX: 0000000000000003 RCX: 00007f6c23ab7e89 [ 29.260884] RDX: 0000000000000010 RSI: 0000000020000040 RDI: 0000000000000003 [ 29.268136] RBP: 0000000000000000 R08: 0000000000f0b5ff R09: 0000000000f0b5ff [ 29.275385] R10: 0000000000f0b5ff R11: 0000000000000246 R12: 000000000000719f [ 29.282654] R13: 00007ffc78eddf40 R14: 00007ffc78eddf30 R15: 00007ffc78eddf24 [ 29.289934] [ 29.291543] Allocated by task 8114: [ 29.295164] kasan_kmalloc+0xeb/0x160 [ 29.298955] kmem_cache_alloc_trace+0x131/0x3d0 [ 29.303603] rdma_create_id+0x57/0x4c0 [ 29.307473] ucma_create_id+0x18b/0x500 [ 29.311425] ucma_write+0x206/0x2c0 [ 29.315037] __vfs_write+0xe4/0x630 [ 29.318647] vfs_write+0x17f/0x4d0 [ 29.322164] SyS_write+0xf2/0x210 [ 29.325613] do_syscall_64+0x1d5/0x640 [ 29.329487] entry_SYSCALL_64_after_hwframe+0x46/0xbb [ 29.334676] [ 29.336279] Freed by task 8114: [ 29.339537] kasan_slab_free+0xc3/0x1a0 [ 29.343493] kfree+0xc9/0x250 [ 29.346664] ucma_close+0x11a/0x340 [ 29.350285] __fput+0x25f/0x7a0 [ 29.353549] task_work_run+0x11f/0x190 [ 29.357506] exit_to_usermode_loop+0x1ad/0x200 [ 29.362072] do_syscall_64+0x4a3/0x640 [ 29.365963] entry_SYSCALL_64_after_hwframe+0x46/0xbb [ 29.371150] [ 29.372763] The buggy address belongs to the object at ffff88809a40b6c0 [ 29.372763] which belongs to the cache kmalloc-1024 of size 1024 [ 29.385745] The buggy address is located 472 bytes inside of [ 29.385745] 1024-byte region [ffff88809a40b6c0, ffff88809a40bac0) [ 29.397677] The buggy address belongs to the page: [ 29.402593] page:ffffea0002690280 count:1 mapcount:0 mapping:ffff88809a40a040 index:0x0 compound_mapcount: 0 [ 29.412534] flags: 0xfff00000008100(slab|head) [ 29.417103] raw: 00fff00000008100 ffff88809a40a040 0000000000000000 0000000100000007 [ 29.424975] raw: ffffea000280c6a0 ffffea0002bafa20 ffff88813fe74ac0 0000000000000000 [ 29.432842] page dumped because: kasan: bad access detected [ 29.438521] [ 29.440121] Memory state around the buggy address: [ 29.445059] ffff88809a40b780: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 29.452394] ffff88809a40b800: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 29.459734] >ffff88809a40b880: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 29.467086] ^ [ 29.471212] ffff88809a40b900: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 29.478559] ffff88809a40b980: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 29.485890] ================================================================== [ 29.493226] Disabling lock debugging due to kernel taint [ 29.509869] Kernel panic - not syncing: panic_on_warn set ... [ 29.509869] [ 29.517239] CPU: 0 PID: 8182 Comm: syz-executor308 Tainted: G B 4.14.282-syzkaller #0 [ 29.526318] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 29.535658] Call Trace: [ 29.538221] dump_stack+0x1b2/0x281 [ 29.541849] panic+0x1f9/0x42d [ 29.545014] ? add_taint.cold+0x16/0x16 [ 29.548978] ? ___preempt_schedule+0x16/0x18 [ 29.553359] kasan_end_report+0x43/0x49 [ 29.557306] kasan_report_error.cold+0xa7/0x191 [ 29.561979] ? __list_add_valid+0x93/0xa0 [ 29.566107] __asan_report_load8_noabort+0x68/0x70 [ 29.571027] ? __list_add_valid+0x93/0xa0 [ 29.575151] __list_add_valid+0x93/0xa0 [ 29.579112] rdma_listen+0x656/0x9b0 [ 29.582808] ucma_listen+0x10b/0x170 [ 29.586499] ? ucma_bind_ip+0x150/0x150 [ 29.590457] ? _copy_from_user+0x96/0x100 [ 29.594583] ? ucma_bind_ip+0x150/0x150 [ 29.598532] ucma_write+0x206/0x2c0 [ 29.602133] ? ucma_set_ib_path+0x510/0x510 [ 29.606430] ? __switch_to_xtra+0x93/0x12f0 [ 29.610729] ? finish_task_switch+0x178/0x610 [ 29.615202] __vfs_write+0xe4/0x630 [ 29.618801] ? ucma_set_ib_path+0x510/0x510 [ 29.623097] ? lock_downgrade+0x740/0x740 [ 29.627218] ? kernel_read+0x110/0x110 [ 29.631082] ? common_file_perm+0x3ee/0x580 [ 29.635376] ? _raw_spin_unlock_irq+0x5a/0x80 [ 29.639847] ? security_file_permission+0x82/0x1e0 [ 29.644747] ? rw_verify_area+0xe1/0x2a0 [ 29.648799] vfs_write+0x17f/0x4d0 [ 29.652314] SyS_write+0xf2/0x210 [ 29.655754] ? SyS_read+0x210/0x210 [ 29.659356] ? do_syscall_64+0x4c/0x640 [ 29.663300] ? SyS_read+0x210/0x210 [ 29.666900] do_syscall_64+0x1d5/0x640 [ 29.670775] entry_SYSCALL_64_after_hwframe+0x46/0xbb [ 29.675950] RIP: 0033:0x7f6c23ab7e89 [ 29.679644] RSP: 002b:00007ffc78eddf18 EFLAGS: 00000246 ORIG_RAX: 0000000000000001 [ 29.687326] RAX: ffffffffffffffda RBX: 0000000000000003 RCX: 00007f6c23ab7e89 [ 29.694708] RDX: 0000000000000010 RSI: 0000000020000040 RDI: 0000000000000003 [ 29.701965] RBP: 0000000000000000 R08: 0000000000f0b5ff R09: 0000000000f0b5ff [ 29.709295] R10: 0000000000f0b5ff R11: 0000000000000246 R12: 000000000000719f [ 29.716560] R13: 00007ffc78eddf40 R14: 00007ffc78eddf30 R15: 00007ffc78eddf24 [ 29.724005] Kernel Offset: disabled [ 29.727610] Rebooting in 86400 seconds..