[....] Starting enhanced syslogd: rsyslogd[ 17.267579] audit: type=1400 audit(1521507238.195:5): avc: denied { syslog } for pid=4084 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: [ 22.267183] audit: type=1400 audit(1521507243.194:6): avc: denied { map } for pid=4224 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.49' (ECDSA) to the list of known hosts. [ 28.582693] audit: type=1400 audit(1521507249.510:7): avc: denied { map } for pid=4238 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/20 00:54:09 parsed 1 programs 2018/03/20 00:54:09 executed programs: 0 [ 28.841673] audit: type=1400 audit(1521507249.768:8): avc: denied { map } for pid=4238 comm="syz-execprog" path="/root/syzkaller-shm772815693" 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 [ 28.853895] IPVS: ftp: loaded support on port[0] = 21 [ 28.959525] ip (4261) used greatest stack depth: 16936 bytes left [ 29.143561] IPv6: ADDRCONF(NETDEV_UP): bridge0: link is not ready [ 29.530845] IPv6: ADDRCONF(NETDEV_UP): bond0: link is not ready [ 29.536952] 8021q: adding VLAN 0 to HW filter on device bond0 [ 29.578450] IPv6: ADDRCONF(NETDEV_UP): veth0: link is not ready [ 29.619508] IPv6: ADDRCONF(NETDEV_CHANGE): veth0: link becomes ready [ 31.004923] ================================================================== [ 31.012442] BUG: KASAN: use-after-free in __list_add_valid+0xc6/0xd0 [ 31.018933] Read of size 8 at addr ffff8801dafcf418 by task syz-executor0/4765 [ 31.026277] [ 31.027894] CPU: 1 PID: 4765 Comm: syz-executor0 Not tainted 4.16.0-rc6+ #270 [ 31.035151] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 31.044493] Call Trace: [ 31.047077] dump_stack+0x194/0x24d [ 31.050702] ? arch_local_irq_restore+0x53/0x53 [ 31.055361] ? show_regs_print_info+0x18/0x18 [ 31.059840] ? __list_add_valid+0xc6/0xd0 [ 31.063967] print_address_description+0x73/0x250 [ 31.068787] ? __list_add_valid+0xc6/0xd0 [ 31.072916] kasan_report+0x23c/0x360 [ 31.076696] __asan_report_load8_noabort+0x14/0x20 [ 31.081603] __list_add_valid+0xc6/0xd0 [ 31.085553] rdma_listen+0x581/0x8e0 [ 31.089244] ? rdma_resolve_addr+0x26c0/0x26c0 [ 31.093809] ucma_listen+0x172/0x1f0 [ 31.097501] ? ucma_accept+0x970/0x970 [ 31.101371] ? kasan_check_write+0x14/0x20 [ 31.105581] ? _copy_from_user+0x99/0x110 [ 31.109710] ucma_write+0x2d6/0x3d0 [ 31.113312] ? ucma_accept+0x970/0x970 [ 31.117179] ? ucma_resolve_route+0x1a0/0x1a0 [ 31.121660] ? ucma_resolve_route+0x1a0/0x1a0 [ 31.126133] __vfs_write+0xef/0x970 [ 31.129743] ? rcu_note_context_switch+0x710/0x710 [ 31.134651] ? kernel_read+0x120/0x120 [ 31.138522] ? __might_sleep+0x95/0x190 [ 31.142475] ? _cond_resched+0x14/0x30 [ 31.146338] ? __inode_security_revalidate+0xd9/0x130 [ 31.151506] ? avc_policy_seqno+0x9/0x20 [ 31.155543] ? selinux_file_permission+0x82/0x460 [ 31.160363] ? security_file_permission+0x89/0x1e0 [ 31.165270] ? rw_verify_area+0xe5/0x2b0 [ 31.169309] ? __fdget_raw+0x20/0x20 [ 31.173000] vfs_write+0x189/0x510 [ 31.176524] SyS_write+0xef/0x220 [ 31.179951] ? exit_to_usermode_loop+0x198/0x2f0 [ 31.184692] ? SyS_read+0x220/0x220 [ 31.188295] ? do_fast_syscall_32+0x156/0xf9f [ 31.192775] ? SyS_read+0x220/0x220 [ 31.196377] do_fast_syscall_32+0x3ec/0xf9f [ 31.200685] ? do_int80_syscall_32+0x9c0/0x9c0 [ 31.205243] ? trace_hardirqs_on_thunk+0x1a/0x1c [ 31.209977] ? syscall_return_slowpath+0x2ac/0x550 [ 31.214884] ? prepare_exit_to_usermode+0x350/0x350 [ 31.219877] ? sysret32_from_system_call+0x5/0x3c [ 31.224701] ? trace_hardirqs_off_thunk+0x1a/0x1c [ 31.229535] entry_SYSENTER_compat+0x70/0x7f [ 31.233916] RIP: 0023:0xf7f49c99 [ 31.237253] RSP: 002b:00000000ffb57f7c EFLAGS: 00000282 ORIG_RAX: 0000000000000004 [ 31.244941] RAX: ffffffffffffffda RBX: 0000000000000003 RCX: 0000000020000000 [ 31.252192] RDX: 0000000000000010 RSI: 0000000000000000 RDI: 0000000000000000 [ 31.259437] RBP: 0000000000000000 R08: 0000000000000000 R09: 0000000000000000 [ 31.266680] R10: 0000000000000000 R11: 0000000000000000 R12: 0000000000000000 [ 31.274013] R13: 0000000000000000 R14: 0000000000000000 R15: 0000000000000000 [ 31.281282] [ 31.282883] Allocated by task 4405: [ 31.286487] save_stack+0x43/0xd0 [ 31.289910] kasan_kmalloc+0xad/0xe0 [ 31.293596] kmem_cache_alloc_trace+0x136/0x740 [ 31.298241] rdma_create_id+0xd0/0x630 [ 31.302106] ucma_create_id+0x31a/0x620 [ 31.306056] ucma_write+0x2d6/0x3d0 [ 31.309658] __vfs_write+0xef/0x970 [ 31.313257] vfs_write+0x189/0x510 [ 31.316769] SyS_write+0xef/0x220 [ 31.320195] do_fast_syscall_32+0x3ec/0xf9f [ 31.324501] entry_SYSENTER_compat+0x70/0x7f [ 31.328879] [ 31.330480] Freed by task 4405: [ 31.333732] save_stack+0x43/0xd0 [ 31.337158] __kasan_slab_free+0x11a/0x170 [ 31.341364] kasan_slab_free+0xe/0x10 [ 31.345135] kfree+0xd9/0x260 [ 31.348212] rdma_destroy_id+0x821/0xda0 [ 31.352246] ucma_close+0x100/0x2f0 [ 31.355842] __fput+0x327/0x7e0 [ 31.359094] ____fput+0x15/0x20 [ 31.362350] task_work_run+0x199/0x270 [ 31.366218] do_exit+0x9bb/0x1ad0 [ 31.369641] do_group_exit+0x149/0x400 [ 31.373499] SyS_exit_group+0x1d/0x20 [ 31.377273] do_fast_syscall_32+0x3ec/0xf9f [ 31.381567] entry_SYSENTER_compat+0x70/0x7f [ 31.385944] [ 31.387543] The buggy address belongs to the object at ffff8801dafcf240 [ 31.387543] which belongs to the cache kmalloc-1024 of size 1024 [ 31.400351] The buggy address is located 472 bytes inside of [ 31.400351] 1024-byte region [ffff8801dafcf240, ffff8801dafcf640) [ 31.412282] The buggy address belongs to the page: [ 31.417186] page:ffffea00076bf380 count:1 mapcount:0 mapping:ffff8801dafce040 index:0x0 compound_mapcount: 0 [ 31.427128] flags: 0x2fffc0000008100(slab|head) [ 31.431769] raw: 02fffc0000008100 ffff8801dafce040 0000000000000000 0000000100000007 [ 31.439622] raw: ffffea00076bf320 ffffea0007693120 ffff8801dac00ac0 0000000000000000 [ 31.447475] page dumped because: kasan: bad access detected [ 31.453155] [ 31.454753] Memory state around the buggy address: [ 31.459653] ffff8801dafcf300: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 31.466984] ffff8801dafcf380: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 31.474320] >ffff8801dafcf400: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 31.481659] ^ [ 31.485779] ffff8801dafcf480: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 31.493119] ffff8801dafcf500: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 31.500452] ================================================================== [ 31.507783] Disabling lock debugging due to kernel taint [ 31.513458] Kernel panic - not syncing: panic_on_warn set ... [ 31.513458] [ 31.520821] CPU: 1 PID: 4765 Comm: syz-executor0 Tainted: G B 4.16.0-rc6+ #270 [ 31.529380] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 31.538709] Call Trace: [ 31.541272] dump_stack+0x194/0x24d [ 31.544879] ? arch_local_irq_restore+0x53/0x53 [ 31.549536] ? trace_hardirqs_on_thunk+0x1a/0x1c [ 31.554263] ? vsnprintf+0x1ed/0x1900 [ 31.558038] ? __list_add_valid+0x40/0xd0 [ 31.562160] panic+0x1e4/0x41c [ 31.565327] ? refcount_error_report+0x214/0x214 [ 31.570058] ? add_taint+0x1c/0x50 [ 31.573573] ? add_taint+0x1c/0x50 [ 31.577096] ? __list_add_valid+0xc6/0xd0 [ 31.581226] kasan_end_report+0x50/0x50 [ 31.585174] kasan_report+0x149/0x360 [ 31.588956] __asan_report_load8_noabort+0x14/0x20 [ 31.593864] __list_add_valid+0xc6/0xd0 [ 31.597811] rdma_listen+0x581/0x8e0 [ 31.601496] ? rdma_resolve_addr+0x26c0/0x26c0 [ 31.606073] ucma_listen+0x172/0x1f0 [ 31.609783] ? ucma_accept+0x970/0x970 [ 31.613654] ? kasan_check_write+0x14/0x20 [ 31.617871] ? _copy_from_user+0x99/0x110 [ 31.621996] ucma_write+0x2d6/0x3d0 [ 31.625600] ? ucma_accept+0x970/0x970 [ 31.629463] ? ucma_resolve_route+0x1a0/0x1a0 [ 31.633935] ? ucma_resolve_route+0x1a0/0x1a0 [ 31.638408] __vfs_write+0xef/0x970 [ 31.642017] ? rcu_note_context_switch+0x710/0x710 [ 31.646924] ? kernel_read+0x120/0x120 [ 31.650782] ? __might_sleep+0x95/0x190 [ 31.654732] ? _cond_resched+0x14/0x30 [ 31.658593] ? __inode_security_revalidate+0xd9/0x130 [ 31.663763] ? avc_policy_seqno+0x9/0x20 [ 31.667796] ? selinux_file_permission+0x82/0x460 [ 31.672616] ? security_file_permission+0x89/0x1e0 [ 31.677519] ? rw_verify_area+0xe5/0x2b0 [ 31.681558] ? __fdget_raw+0x20/0x20 [ 31.685246] vfs_write+0x189/0x510 [ 31.688762] SyS_write+0xef/0x220 [ 31.692195] ? exit_to_usermode_loop+0x198/0x2f0 [ 31.697791] ? SyS_read+0x220/0x220 [ 31.701389] ? do_fast_syscall_32+0x156/0xf9f [ 31.705858] ? SyS_read+0x220/0x220 [ 31.709457] do_fast_syscall_32+0x3ec/0xf9f [ 31.713755] ? do_int80_syscall_32+0x9c0/0x9c0 [ 31.718308] ? trace_hardirqs_on_thunk+0x1a/0x1c [ 31.723043] ? syscall_return_slowpath+0x2ac/0x550 [ 31.727950] ? prepare_exit_to_usermode+0x350/0x350 [ 31.732940] ? sysret32_from_system_call+0x5/0x3c [ 31.737755] ? trace_hardirqs_off_thunk+0x1a/0x1c [ 31.742574] entry_SYSENTER_compat+0x70/0x7f [ 31.746952] RIP: 0023:0xf7f49c99 [ 31.750286] RSP: 002b:00000000ffb57f7c EFLAGS: 00000282 ORIG_RAX: 0000000000000004 [ 31.757965] RAX: ffffffffffffffda RBX: 0000000000000003 RCX: 0000000020000000 [ 31.765219] RDX: 0000000000000010 RSI: 0000000000000000 RDI: 0000000000000000 [ 31.772466] RBP: 0000000000000000 R08: 0000000000000000 R09: 0000000000000000 [ 31.779711] R10: 0000000000000000 R11: 0000000000000000 R12: 0000000000000000 [ 31.786961] R13: 0000000000000000 R14: 0000000000000000 R15: 0000000000000000 [ 31.794668] Dumping ftrace buffer: [ 31.798200] (ftrace buffer empty) [ 31.801887] Kernel Offset: disabled [ 31.805485] Rebooting in 86400 seconds..