[....] Starting enhanced syslogd: rsyslogd[ 15.420459] audit: type=1400 audit(1521507206.956:5): avc: denied { syslog } for pid=4020 comm="rsyslogd" capability=34 scontext=system_u:system_r:kernel_t:s0 tcontext=system_u:system_r:kernel_t:s0 tclass=capability2 permissive=1 [?25l[?1c7[ ok 8[?25h[?0c. Starting mcstransd: [....] Starting periodic command scheduler: cron[?25l[?1c7[ ok 8[?25h[?0c. [....] Starting file context maintaining daemon: restorecond[?25l[?1c7[ ok 8[?25h[?0c. [....] Starting OpenBSD Secure Shell server: sshd[?25l[?1c7[ ok 8[?25h[?0c. Debian GNU/Linux 7 syzkaller ttyS0 syzkaller login: [ 18.621213] audit: type=1400 audit(1521507210.157:6): avc: denied { map } for pid=4160 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 Warning: Permanently added '10.128.0.39' (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 [ 35.097390] audit: type=1400 audit(1521507226.633:7): avc: denied { map } for pid=4178 comm="syzkaller827066" path="/root/syzkaller827066234" dev="sda1" ino=16481 scontext=unconfined_u:system_r:insmod_t:s0-s0:c0.c1023 tcontext=unconfined_u:object_r:user_home_t:s0 tclass=file permissive=1 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 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 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 [ 36.128771] ================================================================== [ 36.136212] BUG: KASAN: use-after-free in __list_add_valid+0xc6/0xd0 [ 36.142683] Read of size 8 at addr ffff8801b0aad418 by task syzkaller827066/4597 [ 36.150184] [ 36.151784] CPU: 0 PID: 4597 Comm: syzkaller827066 Not tainted 4.16.0-rc6+ #360 [ 36.159200] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 36.168525] Call Trace: [ 36.171098] dump_stack+0x194/0x24d [ 36.174698] ? arch_local_irq_restore+0x53/0x53 [ 36.179336] ? show_regs_print_info+0x18/0x18 [ 36.183811] ? __list_add_valid+0xc6/0xd0 [ 36.187936] print_address_description+0x73/0x250 [ 36.192746] ? __list_add_valid+0xc6/0xd0 [ 36.196867] kasan_report+0x23c/0x360 [ 36.200644] __asan_report_load8_noabort+0x14/0x20 [ 36.205544] __list_add_valid+0xc6/0xd0 [ 36.209493] rdma_listen+0x581/0x8e0 [ 36.213182] ? rdma_resolve_addr+0x26c0/0x26c0 [ 36.217744] ucma_listen+0x172/0x1f0 [ 36.221428] ? ucma_accept+0x970/0x970 [ 36.225292] ? kasan_check_write+0x14/0x20 [ 36.229501] ? _copy_from_user+0x99/0x110 [ 36.233622] ucma_write+0x2d6/0x3d0 [ 36.237220] ? ucma_accept+0x970/0x970 [ 36.241079] ? ucma_resolve_route+0x1a0/0x1a0 [ 36.245551] ? handle_mm_fault+0x35b/0xb10 [ 36.249758] ? ucma_resolve_route+0x1a0/0x1a0 [ 36.254222] __vfs_write+0xef/0x970 [ 36.257821] ? rcu_note_context_switch+0x710/0x710 [ 36.262720] ? kernel_read+0x120/0x120 [ 36.266579] ? __might_sleep+0x95/0x190 [ 36.270528] ? _cond_resched+0x14/0x30 [ 36.274391] ? __inode_security_revalidate+0xd9/0x130 [ 36.279550] ? avc_policy_seqno+0x9/0x20 [ 36.283583] ? selinux_file_permission+0x82/0x460 [ 36.288401] ? security_file_permission+0x89/0x1e0 [ 36.293304] ? rw_verify_area+0xe5/0x2b0 [ 36.297334] ? __fdget_raw+0x20/0x20 [ 36.301027] vfs_write+0x189/0x510 [ 36.304544] SyS_write+0xef/0x220 [ 36.307969] ? exit_to_usermode_loop+0x198/0x2f0 [ 36.312698] ? SyS_read+0x220/0x220 [ 36.316294] ? do_syscall_64+0xb7/0x940 [ 36.320240] ? SyS_read+0x220/0x220 [ 36.323838] do_syscall_64+0x281/0x940 [ 36.327692] ? __do_page_fault+0xc90/0xc90 [ 36.331897] ? trace_hardirqs_on_thunk+0x1a/0x1c [ 36.336625] ? syscall_return_slowpath+0x550/0x550 [ 36.341529] ? syscall_return_slowpath+0x2ac/0x550 [ 36.346429] ? prepare_exit_to_usermode+0x350/0x350 [ 36.351419] ? entry_SYSCALL_64_after_hwframe+0x52/0xb7 [ 36.356757] ? trace_hardirqs_off_thunk+0x1a/0x1c [ 36.361579] entry_SYSCALL_64_after_hwframe+0x42/0xb7 [ 36.366736] RIP: 0033:0x4415e9 [ 36.369895] RSP: 002b:00007ffc1af73c48 EFLAGS: 00000207 ORIG_RAX: 0000000000000001 [ 36.377570] RAX: ffffffffffffffda RBX: 0000000000000000 RCX: 00000000004415e9 [ 36.384811] RDX: 0000000000000010 RSI: 0000000020000000 RDI: 0000000000000003 [ 36.392060] RBP: 0000000000008d1b R08: 0000000000000000 R09: 0000000000000000 [ 36.399299] R10: 0000000000000000 R11: 0000000000000207 R12: 0000000000000000 [ 36.406539] R13: 00000000006cd448 R14: 0000000000000000 R15: 0000000000000000 [ 36.413794] [ 36.415392] Allocated by task 4179: [ 36.418991] save_stack+0x43/0xd0 [ 36.422411] kasan_kmalloc+0xad/0xe0 [ 36.426096] kmem_cache_alloc_trace+0x136/0x740 [ 36.430738] rdma_create_id+0xd0/0x630 [ 36.434593] ucma_create_id+0x31a/0x620 [ 36.438535] ucma_write+0x2d6/0x3d0 [ 36.442130] __vfs_write+0xef/0x970 [ 36.445724] vfs_write+0x189/0x510 [ 36.449231] SyS_write+0xef/0x220 [ 36.452653] do_syscall_64+0x281/0x940 [ 36.456511] entry_SYSCALL_64_after_hwframe+0x42/0xb7 [ 36.461667] [ 36.463263] Freed by task 4179: [ 36.466509] save_stack+0x43/0xd0 [ 36.469931] __kasan_slab_free+0x11a/0x170 [ 36.474132] kasan_slab_free+0xe/0x10 [ 36.477902] kfree+0xd9/0x260 [ 36.480977] rdma_destroy_id+0x821/0xda0 [ 36.485006] ucma_close+0x100/0x2f0 [ 36.488599] __fput+0x327/0x7e0 [ 36.491845] ____fput+0x15/0x20 [ 36.495097] task_work_run+0x199/0x270 [ 36.498951] do_exit+0x9bb/0x1ad0 [ 36.502371] do_group_exit+0x149/0x400 [ 36.506225] SyS_exit_group+0x1d/0x20 [ 36.509994] do_syscall_64+0x281/0x940 [ 36.513849] entry_SYSCALL_64_after_hwframe+0x42/0xb7 [ 36.519004] [ 36.520604] The buggy address belongs to the object at ffff8801b0aad240 [ 36.520604] which belongs to the cache kmalloc-1024 of size 1024 [ 36.533404] The buggy address is located 472 bytes inside of [ 36.533404] 1024-byte region [ffff8801b0aad240, ffff8801b0aad640) [ 36.545331] The buggy address belongs to the page: [ 36.550228] page:ffffea0006c2ab00 count:1 mapcount:0 mapping:ffff8801b0aac040 index:0x0 compound_mapcount: 0 [ 36.560164] flags: 0x2fffc0000008100(slab|head) [ 36.564804] raw: 02fffc0000008100 ffff8801b0aac040 0000000000000000 0000000100000007 [ 36.572654] raw: ffffea0006f28620 ffffea0006f26920 ffff8801dac00ac0 0000000000000000 [ 36.580500] page dumped because: kasan: bad access detected [ 36.586176] [ 36.587772] Memory state around the buggy address: [ 36.592668] ffff8801b0aad300: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 36.599994] ffff8801b0aad380: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 36.607320] >ffff8801b0aad400: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 36.614644] ^ [ 36.618760] ffff8801b0aad480: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 36.626088] ffff8801b0aad500: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 36.633414] ================================================================== [ 36.640739] Disabling lock debugging due to kernel taint [ 36.646274] Kernel panic - not syncing: panic_on_warn set ... [ 36.646274] [ 36.653612] CPU: 0 PID: 4597 Comm: syzkaller827066 Tainted: G B 4.16.0-rc6+ #360 [ 36.662328] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 36.671649] Call Trace: [ 36.674213] dump_stack+0x194/0x24d [ 36.677811] ? arch_local_irq_restore+0x53/0x53 [ 36.682450] ? trace_hardirqs_on_thunk+0x1a/0x1c [ 36.687174] ? vsnprintf+0x1ed/0x1900 [ 36.690948] ? __list_add_valid+0x40/0xd0 [ 36.695066] panic+0x1e4/0x41c [ 36.698225] ? refcount_error_report+0x214/0x214 [ 36.702949] ? add_taint+0x1c/0x50 [ 36.706458] ? add_taint+0x1c/0x50 [ 36.709969] ? __list_add_valid+0xc6/0xd0 [ 36.714087] kasan_end_report+0x50/0x50 [ 36.718030] kasan_report+0x149/0x360 [ 36.721799] __asan_report_load8_noabort+0x14/0x20 [ 36.726695] __list_add_valid+0xc6/0xd0 [ 36.730637] rdma_listen+0x581/0x8e0 [ 36.734318] ? rdma_resolve_addr+0x26c0/0x26c0 [ 36.738873] ucma_listen+0x172/0x1f0 [ 36.742552] ? ucma_accept+0x970/0x970 [ 36.746407] ? kasan_check_write+0x14/0x20 [ 36.750610] ? _copy_from_user+0x99/0x110 [ 36.754725] ucma_write+0x2d6/0x3d0 [ 36.758320] ? ucma_accept+0x970/0x970 [ 36.762175] ? ucma_resolve_route+0x1a0/0x1a0 [ 36.766646] ? handle_mm_fault+0x35b/0xb10 [ 36.770850] ? ucma_resolve_route+0x1a0/0x1a0 [ 36.775319] __vfs_write+0xef/0x970 [ 36.778918] ? rcu_note_context_switch+0x710/0x710 [ 36.783817] ? kernel_read+0x120/0x120 [ 36.787673] ? __might_sleep+0x95/0x190 [ 36.791618] ? _cond_resched+0x14/0x30 [ 36.795475] ? __inode_security_revalidate+0xd9/0x130 [ 36.800634] ? avc_policy_seqno+0x9/0x20 [ 36.804666] ? selinux_file_permission+0x82/0x460 [ 36.809478] ? security_file_permission+0x89/0x1e0 [ 36.814381] ? rw_verify_area+0xe5/0x2b0 [ 36.818409] ? __fdget_raw+0x20/0x20 [ 36.822093] vfs_write+0x189/0x510 [ 36.825601] SyS_write+0xef/0x220 [ 36.829025] ? exit_to_usermode_loop+0x198/0x2f0 [ 36.833750] ? SyS_read+0x220/0x220 [ 36.837343] ? do_syscall_64+0xb7/0x940 [ 36.841284] ? SyS_read+0x220/0x220 [ 36.844881] do_syscall_64+0x281/0x940 [ 36.848738] ? __do_page_fault+0xc90/0xc90 [ 36.852954] ? trace_hardirqs_on_thunk+0x1a/0x1c [ 36.857680] ? syscall_return_slowpath+0x550/0x550 [ 36.862577] ? syscall_return_slowpath+0x2ac/0x550 [ 36.867474] ? prepare_exit_to_usermode+0x350/0x350 [ 36.872493] ? entry_SYSCALL_64_after_hwframe+0x52/0xb7 [ 36.877839] ? trace_hardirqs_off_thunk+0x1a/0x1c [ 36.882654] entry_SYSCALL_64_after_hwframe+0x42/0xb7 [ 36.887812] RIP: 0033:0x4415e9 [ 36.891008] RSP: 002b:00007ffc1af73c48 EFLAGS: 00000207 ORIG_RAX: 0000000000000001 [ 36.898683] RAX: ffffffffffffffda RBX: 0000000000000000 RCX: 00000000004415e9 [ 36.905931] RDX: 0000000000000010 RSI: 0000000020000000 RDI: 0000000000000003 [ 36.913175] RBP: 0000000000008d1b R08: 0000000000000000 R09: 0000000000000000 [ 36.920415] R10: 0000000000000000 R11: 0000000000000207 R12: 0000000000000000 [ 36.927655] R13: 00000000006cd448 R14: 0000000000000000 R15: 0000000000000000 [ 36.935255] Dumping ftrace buffer: [ 36.938765] (ftrace buffer empty) [ 36.942448] Kernel Offset: disabled [ 36.946046] Rebooting in 86400 seconds..