[....] Starting enhanced syslogd: rsyslogd[ 16.890933] audit: type=1400 audit(1520677609.975:5): avc: denied { syslog } for pid=4090 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 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. Debian GNU/Linux 7 syzkaller ttyS0 syzkaller login: [ 22.330197] audit: type=1400 audit(1520677615.415:6): avc: denied { map } for pid=4230 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.27' (ECDSA) to the list of known hosts. [ 31.223614] audit: type=1400 audit(1520677624.308:7): avc: denied { map } for pid=4244 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/10 10:27:04 parsed 1 programs 2018/03/10 10:27:04 executed programs: 0 [ 31.473999] audit: type=1400 audit(1520677624.558:8): avc: denied { map } for pid=4244 comm="syz-execprog" path="/root/syzkaller-shm785876307" 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 [ 31.487142] IPVS: ftp: loaded support on port[0] = 21 [ 31.563356] ================================================================== [ 31.570787] BUG: KASAN: use-after-free in __list_del_entry_valid+0x144/0x150 [ 31.577949] Read of size 8 at addr ffff8801cde96ae0 by task syz-executor0/4261 [ 31.585275] [ 31.586883] CPU: 0 PID: 4261 Comm: syz-executor0 Not tainted 4.16.0-rc4+ #258 [ 31.594126] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 31.603451] Call Trace: [ 31.606020] dump_stack+0x194/0x24d [ 31.609624] ? arch_local_irq_restore+0x53/0x53 [ 31.614264] ? show_regs_print_info+0x18/0x18 [ 31.618746] ? rcu_note_context_switch+0x710/0x710 [ 31.623658] ? __list_del_entry_valid+0x144/0x150 [ 31.628477] print_address_description+0x73/0x250 [ 31.633301] ? __list_del_entry_valid+0x144/0x150 [ 31.638118] kasan_report+0x23c/0x360 [ 31.641897] __asan_report_load8_noabort+0x14/0x20 [ 31.646797] __list_del_entry_valid+0x144/0x150 [ 31.651439] cma_cancel_operation+0x455/0xd60 [ 31.655918] ? finish_task_switch+0x182/0x7e0 [ 31.660399] ? find_held_lock+0x35/0x1d0 [ 31.664435] ? rdma_destroy_id+0xda0/0xda0 [ 31.668650] ? rdma_destroy_id+0xf4/0xda0 [ 31.672773] ? lock_downgrade+0x980/0x980 [ 31.676897] ? lock_release+0xa40/0xa40 [ 31.680851] ? do_raw_spin_trylock+0x190/0x190 [ 31.685407] ? _raw_spin_unlock_irqrestore+0x31/0xc0 [ 31.690483] ? trace_hardirqs_on_caller+0x421/0x5c0 [ 31.695476] rdma_destroy_id+0xff/0xda0 [ 31.699421] ? lock_release+0xa40/0xa40 [ 31.703367] ? lock_downgrade+0x980/0x980 [ 31.707489] ? cma_release_dev+0x350/0x350 [ 31.711702] ? radix_tree_delete_item+0x146/0x280 [ 31.716538] ucma_close+0x100/0x2f0 [ 31.720140] ? ucma_free_ctx+0xd90/0xd90 [ 31.724172] __fput+0x327/0x7e0 [ 31.727429] ? fput+0x140/0x140 [ 31.730686] ? check_same_owner+0x320/0x320 [ 31.734980] ? _raw_spin_unlock_irq+0x27/0x70 [ 31.739468] ____fput+0x15/0x20 [ 31.742726] task_work_run+0x199/0x270 [ 31.746587] ? task_work_cancel+0x210/0x210 [ 31.750883] ? _raw_spin_unlock+0x22/0x30 [ 31.755004] ? switch_task_namespaces+0x87/0xc0 [ 31.759657] do_exit+0x9bb/0x1ad0 [ 31.763088] ? find_held_lock+0x35/0x1d0 [ 31.767125] ? mm_update_next_owner+0x930/0x930 [ 31.771772] ? debug_check_no_locks_freed+0x3c0/0x3c0 [ 31.776935] ? lock_downgrade+0x980/0x980 [ 31.781062] ? __unqueue_futex+0x1c0/0x290 [ 31.785270] ? lock_release+0xa40/0xa40 [ 31.789216] ? fault_in_user_writeable+0x90/0x90 [ 31.793944] ? do_raw_spin_trylock+0x190/0x190 [ 31.798499] ? futex_wake+0x680/0x680 [ 31.802292] ? drop_futex_key_refs.isra.13+0x63/0xb0 [ 31.807374] ? futex_wait+0x6a9/0x9a0 [ 31.811163] ? trace_hardirqs_off+0x10/0x10 [ 31.815456] ? drop_futex_key_refs.isra.13+0x63/0xb0 [ 31.820531] ? futex_wake+0x2ca/0x680 [ 31.824307] ? memset+0x31/0x40 [ 31.827562] ? find_held_lock+0x35/0x1d0 [ 31.831603] ? get_signal+0x7a9/0x16d0 [ 31.835465] ? lock_downgrade+0x980/0x980 [ 31.839594] do_group_exit+0x149/0x400 [ 31.843463] ? do_raw_spin_trylock+0x190/0x190 [ 31.848026] ? SyS_exit+0x30/0x30 [ 31.851458] ? _raw_spin_unlock_irq+0x27/0x70 [ 31.855928] ? trace_hardirqs_on_caller+0x421/0x5c0 [ 31.860920] get_signal+0x73a/0x16d0 [ 31.864614] ? ptrace_notify+0x130/0x130 [ 31.868647] ? ucma_put_ctx+0x26/0x30 [ 31.872430] ? ucma_bind_ip+0x11a/0x190 [ 31.876376] ? ucma_bind+0x260/0x260 [ 31.880069] ? kasan_check_write+0x14/0x20 [ 31.884280] ? ucma_write+0x11f/0x3d0 [ 31.888055] ? ucma_bind+0x260/0x260 [ 31.891755] ? ucma_resolve_route+0x1a0/0x1a0 [ 31.896225] do_signal+0x90/0x1e90 [ 31.899746] ? ucma_resolve_route+0x1a0/0x1a0 [ 31.904220] ? __vfs_write+0xf7/0x970 [ 31.907992] ? rcu_note_context_switch+0x710/0x710 [ 31.912898] ? setup_sigcontext+0x7d0/0x7d0 [ 31.917192] ? kernel_read+0x120/0x120 [ 31.921054] ? __might_sleep+0x95/0x190 [ 31.925003] ? _cond_resched+0x14/0x30 [ 31.928871] ? __inode_security_revalidate+0xd9/0x130 [ 31.934040] ? avc_policy_seqno+0x9/0x20 [ 31.938078] ? selinux_file_permission+0x82/0x460 [ 31.942911] ? exit_to_usermode_loop+0x8c/0x2f0 [ 31.947563] exit_to_usermode_loop+0x258/0x2f0 [ 31.952125] ? trace_event_raw_event_sys_exit+0x260/0x260 [ 31.957641] ? do_fast_syscall_32+0x156/0xf9f [ 31.962122] do_fast_syscall_32+0xbe6/0xf9f [ 31.966418] ? _raw_spin_unlock_irq+0x27/0x70 [ 31.970891] ? do_int80_syscall_32+0x9c0/0x9c0 [ 31.975442] ? _raw_spin_unlock_irq+0x27/0x70 [ 31.979912] ? finish_task_switch+0x1c1/0x7e0 [ 31.984387] ? syscall_return_slowpath+0x2ac/0x550 [ 31.989291] ? prepare_exit_to_usermode+0x350/0x350 [ 31.994283] ? sysret32_from_system_call+0x5/0x3c [ 31.999108] ? trace_hardirqs_off_thunk+0x1a/0x1c [ 32.003933] entry_SYSENTER_compat+0x70/0x7f [ 32.008317] RIP: 0023:0xf7f93c99 [ 32.011656] RSP: 002b:00000000f7f6e10c EFLAGS: 00000296 ORIG_RAX: 00000000000000f0 [ 32.019347] RAX: fffffffffffffe00 RBX: 000000000813af98 RCX: 0000000000000000 [ 32.026592] RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000000000000 [ 32.033835] RBP: 0000000000000000 R08: 0000000000000000 R09: 0000000000000000 [ 32.041076] R10: 0000000000000000 R11: 0000000000000000 R12: 0000000000000000 [ 32.048319] R13: 0000000000000000 R14: 0000000000000000 R15: 0000000000000000 [ 32.055576] [ 32.057176] Allocated by task 4258: [ 32.060778] save_stack+0x43/0xd0 [ 32.064212] kasan_kmalloc+0xad/0xe0 [ 32.067898] kmem_cache_alloc_trace+0x136/0x740 [ 32.072537] rdma_create_id+0xd0/0x630 [ 32.076396] ucma_create_id+0x31a/0x620 [ 32.080343] ucma_write+0x2d6/0x3d0 [ 32.083945] __vfs_write+0xef/0x970 [ 32.087553] vfs_write+0x189/0x510 [ 32.091072] SyS_write+0xef/0x220 [ 32.094506] do_fast_syscall_32+0x3ec/0xf9f [ 32.098801] entry_SYSENTER_compat+0x70/0x7f [ 32.103176] [ 32.104773] Freed by task 4261: [ 32.108027] save_stack+0x43/0xd0 [ 32.111454] __kasan_slab_free+0x11a/0x170 [ 32.115656] kasan_slab_free+0xe/0x10 [ 32.119425] kfree+0xd9/0x260 [ 32.122503] rdma_destroy_id+0x821/0xda0 [ 32.126533] ucma_close+0x100/0x2f0 [ 32.130130] __fput+0x327/0x7e0 [ 32.133380] ____fput+0x15/0x20 [ 32.136635] task_work_run+0x199/0x270 [ 32.140493] do_exit+0x9bb/0x1ad0 [ 32.143926] do_group_exit+0x149/0x400 [ 32.147790] get_signal+0x73a/0x16d0 [ 32.151474] do_signal+0x90/0x1e90 [ 32.154985] exit_to_usermode_loop+0x258/0x2f0 [ 32.159537] do_fast_syscall_32+0xbe6/0xf9f [ 32.163831] entry_SYSENTER_compat+0x70/0x7f [ 32.168207] [ 32.169808] The buggy address belongs to the object at ffff8801cde96900 [ 32.169808] which belongs to the cache kmalloc-1024 of size 1024 [ 32.182609] The buggy address is located 480 bytes inside of [ 32.182609] 1024-byte region [ffff8801cde96900, ffff8801cde96d00) [ 32.194542] The buggy address belongs to the page: [ 32.199446] page:ffffea000737a580 count:1 mapcount:0 mapping:ffff8801cde96000 index:0x0 compound_mapcount: 0 [ 32.209385] flags: 0x2fffc0000008100(slab|head) [ 32.214032] raw: 02fffc0000008100 ffff8801cde96000 0000000000000000 0000000100000007 [ 32.221892] raw: ffffea0006a8e720 ffff8801dac01848 ffff8801dac00ac0 0000000000000000 [ 32.229741] page dumped because: kasan: bad access detected [ 32.235419] [ 32.237020] Memory state around the buggy address: [ 32.241920] ffff8801cde96980: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 32.249247] ffff8801cde96a00: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 32.256682] >ffff8801cde96a80: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 32.264023] ^ [ 32.270485] ffff8801cde96b00: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 32.277815] ffff8801cde96b80: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 32.285144] ================================================================== [ 32.292473] Disabling lock debugging due to kernel taint [ 32.297982] Kernel panic - not syncing: panic_on_warn set ... [ 32.297982] [ 32.305338] CPU: 0 PID: 4261 Comm: syz-executor0 Tainted: G B 4.16.0-rc4+ #258 [ 32.313886] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 32.323219] Call Trace: [ 32.325781] dump_stack+0x194/0x24d [ 32.329378] ? arch_local_irq_restore+0x53/0x53 [ 32.334019] ? kasan_end_report+0x32/0x50 [ 32.338143] ? trace_hardirqs_on_thunk+0x1a/0x1c [ 32.342868] ? vsnprintf+0x1ed/0x1900 [ 32.346649] ? __list_del_entry_valid+0x90/0x150 [ 32.351375] panic+0x1e4/0x41c [ 32.354535] ? refcount_error_report+0x214/0x214 [ 32.359260] ? add_taint+0x1c/0x50 [ 32.362769] ? add_taint+0x1c/0x50 [ 32.366278] ? __list_del_entry_valid+0x144/0x150 [ 32.371088] kasan_end_report+0x50/0x50 [ 32.375032] kasan_report+0x149/0x360 [ 32.378803] __asan_report_load8_noabort+0x14/0x20 [ 32.383699] __list_del_entry_valid+0x144/0x150 [ 32.388350] cma_cancel_operation+0x455/0xd60 [ 32.392815] ? finish_task_switch+0x182/0x7e0 [ 32.397283] ? find_held_lock+0x35/0x1d0 [ 32.401325] ? rdma_destroy_id+0xda0/0xda0 [ 32.405529] ? rdma_destroy_id+0xf4/0xda0 [ 32.409647] ? lock_downgrade+0x980/0x980 [ 32.413768] ? lock_release+0xa40/0xa40 [ 32.417713] ? do_raw_spin_trylock+0x190/0x190 [ 32.422274] ? _raw_spin_unlock_irqrestore+0x31/0xc0 [ 32.427346] ? trace_hardirqs_on_caller+0x421/0x5c0 [ 32.432342] rdma_destroy_id+0xff/0xda0 [ 32.436286] ? lock_release+0xa40/0xa40 [ 32.440228] ? lock_downgrade+0x980/0x980 [ 32.444345] ? cma_release_dev+0x350/0x350 [ 32.448552] ? radix_tree_delete_item+0x146/0x280 [ 32.453374] ucma_close+0x100/0x2f0 [ 32.456971] ? ucma_free_ctx+0xd90/0xd90 [ 32.461004] __fput+0x327/0x7e0 [ 32.464261] ? fput+0x140/0x140 [ 32.467513] ? check_same_owner+0x320/0x320 [ 32.471803] ? _raw_spin_unlock_irq+0x27/0x70 [ 32.476270] ____fput+0x15/0x20 [ 32.479520] task_work_run+0x199/0x270 [ 32.483386] ? task_work_cancel+0x210/0x210 [ 32.487678] ? _raw_spin_unlock+0x22/0x30 [ 32.491798] ? switch_task_namespaces+0x87/0xc0 [ 32.496447] do_exit+0x9bb/0x1ad0 [ 32.499872] ? find_held_lock+0x35/0x1d0 [ 32.503903] ? mm_update_next_owner+0x930/0x930 [ 32.508542] ? debug_check_no_locks_freed+0x3c0/0x3c0 [ 32.513700] ? lock_downgrade+0x980/0x980 [ 32.517820] ? __unqueue_futex+0x1c0/0x290 [ 32.522026] ? lock_release+0xa40/0xa40 [ 32.525971] ? fault_in_user_writeable+0x90/0x90 [ 32.530697] ? do_raw_spin_trylock+0x190/0x190 [ 32.535246] ? futex_wake+0x680/0x680 [ 32.539027] ? drop_futex_key_refs.isra.13+0x63/0xb0 [ 32.544097] ? futex_wait+0x6a9/0x9a0 [ 32.547874] ? trace_hardirqs_off+0x10/0x10 [ 32.552163] ? drop_futex_key_refs.isra.13+0x63/0xb0 [ 32.557234] ? futex_wake+0x2ca/0x680 [ 32.561006] ? memset+0x31/0x40 [ 32.564296] ? find_held_lock+0x35/0x1d0 [ 32.568339] ? get_signal+0x7a9/0x16d0 [ 32.572198] ? lock_downgrade+0x980/0x980 [ 32.576321] do_group_exit+0x149/0x400 [ 32.580182] ? do_raw_spin_trylock+0x190/0x190 [ 32.584732] ? SyS_exit+0x30/0x30 [ 32.588154] ? _raw_spin_unlock_irq+0x27/0x70 [ 32.592621] ? trace_hardirqs_on_caller+0x421/0x5c0 [ 32.597610] get_signal+0x73a/0x16d0 [ 32.601299] ? ptrace_notify+0x130/0x130 [ 32.605332] ? ucma_put_ctx+0x26/0x30 [ 32.609105] ? ucma_bind_ip+0x11a/0x190 [ 32.613136] ? ucma_bind+0x260/0x260 [ 32.616820] ? kasan_check_write+0x14/0x20 [ 32.621029] ? ucma_write+0x11f/0x3d0 [ 32.624799] ? ucma_bind+0x260/0x260 [ 32.628485] ? ucma_resolve_route+0x1a0/0x1a0 [ 32.632949] do_signal+0x90/0x1e90 [ 32.636459] ? ucma_resolve_route+0x1a0/0x1a0 [ 32.640924] ? __vfs_write+0xf7/0x970 [ 32.644693] ? rcu_note_context_switch+0x710/0x710 [ 32.649599] ? setup_sigcontext+0x7d0/0x7d0 [ 32.653893] ? kernel_read+0x120/0x120 [ 32.657752] ? __might_sleep+0x95/0x190 [ 32.661707] ? _cond_resched+0x14/0x30 [ 32.665565] ? __inode_security_revalidate+0xd9/0x130 [ 32.670727] ? avc_policy_seqno+0x9/0x20 [ 32.674759] ? selinux_file_permission+0x82/0x460 [ 32.679581] ? exit_to_usermode_loop+0x8c/0x2f0 [ 32.684221] exit_to_usermode_loop+0x258/0x2f0 [ 32.688774] ? trace_event_raw_event_sys_exit+0x260/0x260 [ 32.694279] ? do_fast_syscall_32+0x156/0xf9f [ 32.698749] do_fast_syscall_32+0xbe6/0xf9f [ 32.703041] ? _raw_spin_unlock_irq+0x27/0x70 [ 32.707510] ? do_int80_syscall_32+0x9c0/0x9c0 [ 32.712061] ? _raw_spin_unlock_irq+0x27/0x70 [ 32.716528] ? finish_task_switch+0x1c1/0x7e0 [ 32.720995] ? syscall_return_slowpath+0x2ac/0x550 [ 32.725896] ? prepare_exit_to_usermode+0x350/0x350 [ 32.730884] ? sysret32_from_system_call+0x5/0x3c [ 32.736182] ? trace_hardirqs_off_thunk+0x1a/0x1c [ 32.740998] entry_SYSENTER_compat+0x70/0x7f [ 32.745380] RIP: 0023:0xf7f93c99 [ 32.748716] RSP: 002b:00000000f7f6e10c EFLAGS: 00000296 ORIG_RAX: 00000000000000f0 [ 32.756393] RAX: fffffffffffffe00 RBX: 000000000813af98 RCX: 0000000000000000 [ 32.763632] RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000000000000 [ 32.770871] RBP: 0000000000000000 R08: 0000000000000000 R09: 0000000000000000 [ 32.778108] R10: 0000000000000000 R11: 0000000000000000 R12: 0000000000000000 [ 32.785346] R13: 0000000000000000 R14: 0000000000000000 R15: 0000000000000000 [ 32.793032] Dumping ftrace buffer: [ 32.796543] (ftrace buffer empty) [ 32.800225] Kernel Offset: disabled [ 32.803820] Rebooting in 86400 seconds..