[?25l[?1c7[ ok 8[?25h[?0c. [....] Starting periodic command scheduler: cron[?25l[?1c7[ ok 8[?25h[?0c. Starting mcstransd: [....] Starting file context maintaining daemon: restorecond[?25l[?1c7[ ok 8[?25h[?0c. [....] Starting OpenBSD Secure Shell server: sshd[?25l[?1c7[ ok 8[?25h[?0c. [ 17.806274] audit: type=1400 audit(1521088870.137:6): avc: denied { map } for pid=4216 comm="bash" path="/bin/bash" dev="sda1" ino=1457 scontext=unconfined_u:system_r:insmod_t:s0-s0:c0.c1023 tcontext=system_u:object_r:file_t:s0 tclass=file permissive=1 Debian GNU/Linux 7 syzkaller ttyS0 Warning: Permanently added '10.128.0.20' (ECDSA) to the list of known hosts. syzkaller login: [ 29.569788] audit: type=1400 audit(1521088881.900:7): avc: denied { map } for pid=4232 comm="syz-execprog" path="/root/syz-execprog" dev="sda1" ino=16479 scontext=unconfined_u:system_r:insmod_t:s0-s0:c0.c1023 tcontext=unconfined_u:object_r:user_home_t:s0 tclass=file permissive=1 2018/03/15 04:41:22 parsed 1 programs 2018/03/15 04:41:22 executed programs: 0 [ 29.802606] audit: type=1400 audit(1521088882.133:8): avc: denied { map } for pid=4232 comm="syz-execprog" path="/root/syzkaller-shm793128920" dev="sda1" ino=16482 scontext=unconfined_u:system_r:insmod_t:s0-s0:c0.c1023 tcontext=unconfined_u:object_r:file_t:s0 tclass=file permissive=1 [ 29.812795] IPVS: ftp: loaded support on port[0] = 21 [ 30.072623] IPv6: ADDRCONF(NETDEV_UP): bridge0: link is not ready [ 30.422618] IPv6: ADDRCONF(NETDEV_UP): bond0: link is not ready [ 30.428705] 8021q: adding VLAN 0 to HW filter on device bond0 [ 30.465550] IPv6: ADDRCONF(NETDEV_UP): veth0: link is not ready [ 30.502129] IPv6: ADDRCONF(NETDEV_CHANGE): veth0: link becomes ready [ 30.927522] ================================================================== [ 30.934951] BUG: KASAN: use-after-free in __list_add_valid+0xc6/0xd0 [ 30.941422] Read of size 8 at addr ffff8801acd72ad8 by task syz-executor0/4524 [ 30.948751] [ 30.950354] CPU: 0 PID: 4524 Comm: syz-executor0 Not tainted 4.16.0-rc5+ #263 [ 30.957598] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 30.966926] Call Trace: [ 30.969490] dump_stack+0x194/0x24d [ 30.973092] ? arch_local_irq_restore+0x53/0x53 [ 30.977734] ? show_regs_print_info+0x18/0x18 [ 30.982207] ? __list_add_valid+0xc6/0xd0 [ 30.986330] print_address_description+0x73/0x250 [ 30.991162] ? __list_add_valid+0xc6/0xd0 [ 30.995288] kasan_report+0x23c/0x360 [ 30.999065] __asan_report_load8_noabort+0x14/0x20 [ 31.003966] __list_add_valid+0xc6/0xd0 [ 31.007920] rdma_listen+0x581/0x8e0 [ 31.011608] ? rdma_resolve_addr+0x26c0/0x26c0 [ 31.016173] ucma_listen+0x172/0x1f0 [ 31.019859] ? ucma_accept+0x970/0x970 [ 31.023721] ? kasan_check_write+0x14/0x20 [ 31.027927] ? _copy_from_user+0x99/0x110 [ 31.032066] ucma_write+0x2d6/0x3d0 [ 31.035663] ? ucma_accept+0x970/0x970 [ 31.039525] ? ucma_resolve_route+0x1a0/0x1a0 [ 31.044001] ? ucma_resolve_route+0x1a0/0x1a0 [ 31.048468] __vfs_write+0xef/0x970 [ 31.052070] ? rcu_note_context_switch+0x710/0x710 [ 31.056975] ? kernel_read+0x120/0x120 [ 31.060838] ? __might_sleep+0x95/0x190 [ 31.064789] ? _cond_resched+0x14/0x30 [ 31.068648] ? __inode_security_revalidate+0xd9/0x130 [ 31.073813] ? avc_policy_seqno+0x9/0x20 [ 31.077857] ? selinux_file_permission+0x82/0x460 [ 31.082681] ? security_file_permission+0x89/0x1e0 [ 31.087585] ? rw_verify_area+0xe5/0x2b0 [ 31.091617] ? __fdget_raw+0x20/0x20 [ 31.095308] vfs_write+0x189/0x510 [ 31.098824] SyS_write+0xef/0x220 [ 31.102246] ? __do_page_fault+0x3d6/0xc90 [ 31.106452] ? SyS_read+0x220/0x220 [ 31.110056] ? do_fast_syscall_32+0x156/0xf9f [ 31.114526] ? SyS_read+0x220/0x220 [ 31.118126] do_fast_syscall_32+0x3ec/0xf9f [ 31.122428] ? do_int80_syscall_32+0x9c0/0x9c0 [ 31.126982] ? trace_hardirqs_on_thunk+0x1a/0x1c [ 31.131746] ? syscall_return_slowpath+0x2ac/0x550 [ 31.136649] ? prepare_exit_to_usermode+0x350/0x350 [ 31.141643] ? sysret32_from_system_call+0x5/0x3c [ 31.146466] ? trace_hardirqs_off_thunk+0x1a/0x1c [ 31.151287] entry_SYSENTER_compat+0x70/0x7f [ 31.155667] RIP: 0023:0xf7fb8c99 [ 31.159003] RSP: 002b:00000000ffd289dc EFLAGS: 00000282 ORIG_RAX: 0000000000000004 [ 31.166684] RAX: ffffffffffffffda RBX: 0000000000000003 RCX: 0000000020000100 [ 31.173926] RDX: 000000000000003a RSI: 0000000000000000 RDI: 0000000000000000 [ 31.181168] RBP: 0000000000000000 R08: 0000000000000000 R09: 0000000000000000 [ 31.188410] R10: 0000000000000000 R11: 0000000000000000 R12: 0000000000000000 [ 31.195652] R13: 0000000000000000 R14: 0000000000000000 R15: 0000000000000000 [ 31.202909] [ 31.204509] Allocated by task 4474: [ 31.208109] save_stack+0x43/0xd0 [ 31.211531] kasan_kmalloc+0xad/0xe0 [ 31.215217] kmem_cache_alloc_trace+0x136/0x740 [ 31.219872] rdma_create_id+0xd0/0x630 [ 31.223733] ucma_create_id+0x31a/0x620 [ 31.227679] ucma_write+0x2d6/0x3d0 [ 31.231278] __vfs_write+0xef/0x970 [ 31.234873] vfs_write+0x189/0x510 [ 31.238383] SyS_write+0xef/0x220 [ 31.241808] do_fast_syscall_32+0x3ec/0xf9f [ 31.246103] entry_SYSENTER_compat+0x70/0x7f [ 31.250477] [ 31.252075] Freed by task 4474: [ 31.255326] save_stack+0x43/0xd0 [ 31.258746] __kasan_slab_free+0x11a/0x170 [ 31.262951] kasan_slab_free+0xe/0x10 [ 31.266720] kfree+0xd9/0x260 [ 31.269797] rdma_destroy_id+0x821/0xda0 [ 31.273829] ucma_close+0x100/0x2f0 [ 31.277426] __fput+0x327/0x7e0 [ 31.280674] ____fput+0x15/0x20 [ 31.283926] task_work_run+0x199/0x270 [ 31.287785] do_exit+0x9bb/0x1ad0 [ 31.291209] do_group_exit+0x149/0x400 [ 31.295066] SyS_exit_group+0x1d/0x20 [ 31.298836] do_fast_syscall_32+0x3ec/0xf9f [ 31.303129] entry_SYSENTER_compat+0x70/0x7f [ 31.307505] [ 31.309104] The buggy address belongs to the object at ffff8801acd72900 [ 31.309104] which belongs to the cache kmalloc-1024 of size 1024 [ 31.321913] The buggy address is located 472 bytes inside of [ 31.321913] 1024-byte region [ffff8801acd72900, ffff8801acd72d00) [ 31.333845] The buggy address belongs to the page: [ 31.338742] page:ffffea0006b35c80 count:1 mapcount:0 mapping:ffff8801acd72000 index:0x0 compound_mapcount: 0 [ 31.348685] flags: 0x2fffc0000008100(slab|head) [ 31.353326] raw: 02fffc0000008100 ffff8801acd72000 0000000000000000 0000000100000007 [ 31.361178] raw: ffffea0006b6a820 ffffea0006b3fb20 ffff8801dac00ac0 0000000000000000 [ 31.369027] page dumped because: kasan: bad access detected [ 31.374706] [ 31.376305] Memory state around the buggy address: [ 31.381203] ffff8801acd72980: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 31.388533] ffff8801acd72a00: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 31.395865] >ffff8801acd72a80: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 31.403194] ^ [ 31.409395] ffff8801acd72b00: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 31.416733] ffff8801acd72b80: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 31.424070] ================================================================== [ 31.431404] Disabling lock debugging due to kernel taint [ 31.437160] Kernel panic - not syncing: panic_on_warn set ... [ 31.437160] [ 31.444513] CPU: 0 PID: 4524 Comm: syz-executor0 Tainted: G B 4.16.0-rc5+ #263 [ 31.453060] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 31.462388] Call Trace: [ 31.464952] dump_stack+0x194/0x24d [ 31.468551] ? arch_local_irq_restore+0x53/0x53 [ 31.473193] ? trace_hardirqs_on_thunk+0x1a/0x1c [ 31.477925] ? vsnprintf+0x1ed/0x1900 [ 31.481699] ? assoc_array_gc+0x1390/0x13c0 [ 31.485993] panic+0x1e4/0x41c [ 31.489161] ? refcount_error_report+0x214/0x214 [ 31.493890] ? add_taint+0x1c/0x50 [ 31.497403] ? add_taint+0x1c/0x50 [ 31.500915] ? __list_add_valid+0xc6/0xd0 [ 31.505036] kasan_end_report+0x50/0x50 [ 31.508982] kasan_report+0x149/0x360 [ 31.512755] __asan_report_load8_noabort+0x14/0x20 [ 31.517665] __list_add_valid+0xc6/0xd0 [ 31.521612] rdma_listen+0x581/0x8e0 [ 31.525311] ? rdma_resolve_addr+0x26c0/0x26c0 [ 31.529868] ucma_listen+0x172/0x1f0 [ 31.533560] ? ucma_accept+0x970/0x970 [ 31.537445] ? kasan_check_write+0x14/0x20 [ 31.541654] ? _copy_from_user+0x99/0x110 [ 31.545775] ucma_write+0x2d6/0x3d0 [ 31.549372] ? ucma_accept+0x970/0x970 [ 31.553230] ? ucma_resolve_route+0x1a0/0x1a0 [ 31.557702] ? ucma_resolve_route+0x1a0/0x1a0 [ 31.562168] __vfs_write+0xef/0x970 [ 31.565770] ? rcu_note_context_switch+0x710/0x710 [ 31.570673] ? kernel_read+0x120/0x120 [ 31.574538] ? __might_sleep+0x95/0x190 [ 31.578488] ? _cond_resched+0x14/0x30 [ 31.582347] ? __inode_security_revalidate+0xd9/0x130 [ 31.587506] ? avc_policy_seqno+0x9/0x20 [ 31.591540] ? selinux_file_permission+0x82/0x460 [ 31.596356] ? security_file_permission+0x89/0x1e0 [ 31.601257] ? rw_verify_area+0xe5/0x2b0 [ 31.605304] ? __fdget_raw+0x20/0x20 [ 31.608989] vfs_write+0x189/0x510 [ 31.612502] SyS_write+0xef/0x220 [ 31.615927] ? __do_page_fault+0x3d6/0xc90 [ 31.620134] ? SyS_read+0x220/0x220 [ 31.623736] ? do_fast_syscall_32+0x156/0xf9f [ 31.628206] ? SyS_read+0x220/0x220 [ 31.631806] do_fast_syscall_32+0x3ec/0xf9f [ 31.636102] ? do_int80_syscall_32+0x9c0/0x9c0 [ 31.640661] ? trace_hardirqs_on_thunk+0x1a/0x1c [ 31.645389] ? syscall_return_slowpath+0x2ac/0x550 [ 31.650289] ? prepare_exit_to_usermode+0x350/0x350 [ 31.655279] ? sysret32_from_system_call+0x5/0x3c [ 31.660095] ? trace_hardirqs_off_thunk+0x1a/0x1c [ 31.664910] entry_SYSENTER_compat+0x70/0x7f [ 31.669293] RIP: 0023:0xf7fb8c99 [ 31.672631] RSP: 002b:00000000ffd289dc EFLAGS: 00000282 ORIG_RAX: 0000000000000004 [ 31.680307] RAX: ffffffffffffffda RBX: 0000000000000003 RCX: 0000000020000100 [ 31.687553] RDX: 000000000000003a RSI: 0000000000000000 RDI: 0000000000000000 [ 31.694801] RBP: 0000000000000000 R08: 0000000000000000 R09: 0000000000000000 [ 31.702046] R10: 0000000000000000 R11: 0000000000000000 R12: 0000000000000000 [ 31.709288] R13: 0000000000000000 R14: 0000000000000000 R15: 0000000000000000 [ 31.717032] Dumping ftrace buffer: [ 31.720545] (ftrace buffer empty) [ 31.724226] Kernel Offset: disabled [ 31.727822] Rebooting in 86400 seconds..