[....] Starting enhanced syslogd: rsyslogd[ 16.599551] audit: type=1400 audit(1521134068.487:5): avc: denied { syslog } for pid=3993 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.353415] audit: type=1400 audit(1521134074.241:6): avc: denied { map } for pid=4134 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.13' (ECDSA) to the list of known hosts. [ 28.688691] audit: type=1400 audit(1521134080.576:7): avc: denied { map } for pid=4148 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 17:14:40 parsed 1 programs 2018/03/15 17:14:40 executed programs: 0 [ 28.940287] audit: type=1400 audit(1521134080.828:8): avc: denied { map } for pid=4148 comm="syz-execprog" path="/root/syzkaller-shm157450185" 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.955616] IPVS: ftp: loaded support on port[0] = 21 2018/03/15 17:14:45 executed programs: 252 [ 35.622832] ================================================================== [ 35.630274] BUG: KASAN: use-after-free in __list_del_entry_valid+0x144/0x150 [ 35.637433] Read of size 8 at addr ffff8801cbeeeb20 by task syz-executor0/5858 [ 35.644757] [ 35.646359] CPU: 1 PID: 5858 Comm: syz-executor0 Not tainted 4.16.0-rc5+ #264 [ 35.653599] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 35.662932] Call Trace: [ 35.665493] dump_stack+0x194/0x24d [ 35.669101] ? arch_local_irq_restore+0x53/0x53 [ 35.673744] ? show_regs_print_info+0x18/0x18 [ 35.678209] ? rcu_note_context_switch+0x710/0x710 [ 35.683114] ? __list_del_entry_valid+0x144/0x150 [ 35.687945] print_address_description+0x73/0x250 [ 35.692760] ? __list_del_entry_valid+0x144/0x150 [ 35.697575] kasan_report+0x23c/0x360 [ 35.701353] __asan_report_load8_noabort+0x14/0x20 [ 35.706249] __list_del_entry_valid+0x144/0x150 [ 35.710890] cma_cancel_operation+0x455/0xd60 [ 35.715358] ? finish_task_switch+0x182/0x7e0 [ 35.719837] ? find_held_lock+0x35/0x1d0 [ 35.723866] ? rdma_destroy_id+0xda0/0xda0 [ 35.728073] ? rdma_destroy_id+0xf4/0xda0 [ 35.732189] ? lock_downgrade+0x980/0x980 [ 35.736310] ? lock_release+0xa40/0xa40 [ 35.740257] ? do_raw_spin_trylock+0x190/0x190 [ 35.744809] ? _raw_spin_unlock_irqrestore+0x31/0xc0 [ 35.749884] ? trace_hardirqs_on_caller+0x421/0x5c0 [ 35.754874] rdma_destroy_id+0xff/0xda0 [ 35.758817] ? lock_release+0xa40/0xa40 [ 35.762762] ? lock_downgrade+0x980/0x980 [ 35.766885] ? cma_release_dev+0x350/0x350 [ 35.771096] ? radix_tree_delete_item+0x146/0x280 [ 35.775933] ucma_close+0x100/0x2f0 [ 35.779533] ? ucma_free_ctx+0xd90/0xd90 [ 35.783563] __fput+0x327/0x7e0 [ 35.786818] ? fput+0x140/0x140 [ 35.790071] ? check_same_owner+0x320/0x320 [ 35.794359] ? _raw_spin_unlock_irq+0x27/0x70 [ 35.798830] ____fput+0x15/0x20 [ 35.802080] task_work_run+0x199/0x270 [ 35.805938] ? task_work_cancel+0x210/0x210 [ 35.810237] ? _raw_spin_unlock+0x22/0x30 [ 35.814364] ? switch_task_namespaces+0x87/0xc0 [ 35.819011] do_exit+0x9bb/0x1ad0 [ 35.822434] ? find_held_lock+0x35/0x1d0 [ 35.826467] ? mm_update_next_owner+0x930/0x930 [ 35.831107] ? debug_check_no_locks_freed+0x3c0/0x3c0 [ 35.836268] ? lock_downgrade+0x980/0x980 [ 35.840390] ? __unqueue_futex+0x1c0/0x290 [ 35.844593] ? lock_release+0xa40/0xa40 [ 35.848540] ? fault_in_user_writeable+0x90/0x90 [ 35.853265] ? do_raw_spin_trylock+0x190/0x190 [ 35.857815] ? futex_wake+0x680/0x680 [ 35.861594] ? drop_futex_key_refs.isra.13+0x63/0xb0 [ 35.866666] ? futex_wait+0x6a9/0x9a0 [ 35.870447] ? switched_to_fair+0xa0/0xa0 [ 35.874563] ? trace_hardirqs_off+0x10/0x10 [ 35.878855] ? __enqueue_entity+0x109/0x1e0 [ 35.883152] ? memset+0x31/0x40 [ 35.886405] ? find_held_lock+0x35/0x1d0 [ 35.890445] ? get_signal+0x7a9/0x16d0 [ 35.894302] ? lock_downgrade+0x980/0x980 [ 35.898426] do_group_exit+0x149/0x400 [ 35.902282] ? do_raw_spin_trylock+0x190/0x190 [ 35.906832] ? SyS_exit+0x30/0x30 [ 35.910257] ? _raw_spin_unlock_irq+0x27/0x70 [ 35.914722] ? trace_hardirqs_on_caller+0x421/0x5c0 [ 35.919712] get_signal+0x73a/0x16d0 [ 35.923403] ? ptrace_notify+0x130/0x130 [ 35.927437] ? __schedule+0x903/0x1ec0 [ 35.931303] ? __sched_text_start+0x8/0x8 [ 35.935423] ? ucma_write+0x11f/0x3d0 [ 35.939190] ? ucma_resolve_addr+0x330/0x330 [ 35.943571] ? ucma_resolve_route+0x1a0/0x1a0 [ 35.948041] do_signal+0x90/0x1e90 [ 35.951555] ? __vfs_write+0xf7/0x970 [ 35.955324] ? rcu_note_context_switch+0x710/0x710 [ 35.960221] ? setup_sigcontext+0x7d0/0x7d0 [ 35.964521] ? kernel_read+0x120/0x120 [ 35.968379] ? __might_sleep+0x95/0x190 [ 35.972325] ? schedule+0xf5/0x430 [ 35.975837] ? avc_policy_seqno+0x9/0x20 [ 35.979869] ? __schedule+0x1ec0/0x1ec0 [ 35.983829] ? exit_to_usermode_loop+0x8c/0x2f0 [ 35.988482] exit_to_usermode_loop+0x258/0x2f0 [ 35.993035] ? trace_event_raw_event_sys_exit+0x260/0x260 [ 35.998543] ? do_fast_syscall_32+0x156/0xf9f [ 36.003016] do_fast_syscall_32+0xbe6/0xf9f [ 36.007307] ? _raw_spin_unlock_irq+0x27/0x70 [ 36.011777] ? do_int80_syscall_32+0x9c0/0x9c0 [ 36.016325] ? _raw_spin_unlock_irq+0x27/0x70 [ 36.020792] ? finish_task_switch+0x1c1/0x7e0 [ 36.025260] ? syscall_return_slowpath+0x2ac/0x550 [ 36.030159] ? prepare_exit_to_usermode+0x350/0x350 [ 36.035145] ? sysret32_from_system_call+0x5/0x3c [ 36.039966] ? trace_hardirqs_off_thunk+0x1a/0x1c [ 36.044791] entry_SYSENTER_compat+0x70/0x7f [ 36.049171] RIP: 0023:0xf7f0ec99 [ 36.052504] RSP: 002b:00000000f7ee910c EFLAGS: 00000296 ORIG_RAX: 00000000000000f0 [ 36.060179] RAX: fffffffffffffe00 RBX: 000000000813af98 RCX: 0000000000000000 [ 36.067417] RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000000000000 [ 36.074654] RBP: 0000000000000000 R08: 0000000000000000 R09: 0000000000000000 [ 36.081892] R10: 0000000000000000 R11: 0000000000000000 R12: 0000000000000000 [ 36.089133] R13: 0000000000000000 R14: 0000000000000000 R15: 0000000000000000 [ 36.096387] [ 36.097989] Allocated by task 5858: [ 36.101584] save_stack+0x43/0xd0 [ 36.105003] kasan_kmalloc+0xad/0xe0 [ 36.108688] kmem_cache_alloc_trace+0x136/0x740 [ 36.113325] rdma_create_id+0xd0/0x630 [ 36.117182] ucma_create_id+0x31a/0x620 [ 36.121122] ucma_write+0x2d6/0x3d0 [ 36.124717] __vfs_write+0xef/0x970 [ 36.128311] vfs_write+0x189/0x510 [ 36.131829] SyS_write+0xef/0x220 [ 36.135257] do_fast_syscall_32+0x3ec/0xf9f [ 36.139548] entry_SYSENTER_compat+0x70/0x7f [ 36.143921] [ 36.145523] Freed by task 5858: [ 36.148770] save_stack+0x43/0xd0 [ 36.152189] __kasan_slab_free+0x11a/0x170 [ 36.156390] kasan_slab_free+0xe/0x10 [ 36.160159] kfree+0xd9/0x260 [ 36.163241] rdma_destroy_id+0x821/0xda0 [ 36.167268] ucma_close+0x100/0x2f0 [ 36.170863] __fput+0x327/0x7e0 [ 36.174111] ____fput+0x15/0x20 [ 36.177363] task_work_run+0x199/0x270 [ 36.181224] do_exit+0x9bb/0x1ad0 [ 36.184658] do_group_exit+0x149/0x400 [ 36.188515] get_signal+0x73a/0x16d0 [ 36.192201] do_signal+0x90/0x1e90 [ 36.195713] exit_to_usermode_loop+0x258/0x2f0 [ 36.200261] do_fast_syscall_32+0xbe6/0xf9f [ 36.204578] entry_SYSENTER_compat+0x70/0x7f [ 36.208952] [ 36.210555] The buggy address belongs to the object at ffff8801cbeee940 [ 36.210555] which belongs to the cache kmalloc-1024 of size 1024 [ 36.223350] The buggy address is located 480 bytes inside of [ 36.223350] 1024-byte region [ffff8801cbeee940, ffff8801cbeeed40) [ 36.235279] The buggy address belongs to the page: [ 36.240180] page:ffffea00072fbb80 count:1 mapcount:0 mapping:ffff8801cbeee040 index:0x0 compound_mapcount: 0 [ 36.250118] flags: 0x2fffc0000008100(slab|head) [ 36.254759] raw: 02fffc0000008100 ffff8801cbeee040 0000000000000000 0000000100000007 [ 36.262607] raw: ffffea00073c9aa0 ffffea0006eec420 ffff8801dac00ac0 0000000000000000 [ 36.270455] page dumped because: kasan: bad access detected [ 36.276128] [ 36.277723] Memory state around the buggy address: [ 36.282617] ffff8801cbeeea00: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 36.289942] ffff8801cbeeea80: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 36.297270] >ffff8801cbeeeb00: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 36.304594] ^ [ 36.308969] ffff8801cbeeeb80: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 36.316294] ffff8801cbeeec00: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 36.323618] ================================================================== [ 36.330943] Disabling lock debugging due to kernel taint [ 36.336465] Kernel panic - not syncing: panic_on_warn set ... [ 36.336465] [ 36.343803] CPU: 1 PID: 5858 Comm: syz-executor0 Tainted: G B 4.16.0-rc5+ #264 [ 36.352354] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 36.361679] Call Trace: [ 36.364242] dump_stack+0x194/0x24d [ 36.367841] ? arch_local_irq_restore+0x53/0x53 [ 36.372479] ? kasan_end_report+0x32/0x50 [ 36.376597] ? trace_hardirqs_on_thunk+0x1a/0x1c [ 36.381324] ? vsnprintf+0x1ed/0x1900 [ 36.385097] ? __list_del_entry_valid+0x120/0x150 [ 36.389907] panic+0x1e4/0x41c [ 36.393074] ? refcount_error_report+0x214/0x214 [ 36.397799] ? add_taint+0x1c/0x50 [ 36.401305] ? add_taint+0x1c/0x50 [ 36.404813] ? __list_del_entry_valid+0x144/0x150 [ 36.409622] kasan_end_report+0x50/0x50 [ 36.413562] kasan_report+0x149/0x360 [ 36.417330] __asan_report_load8_noabort+0x14/0x20 [ 36.422225] __list_del_entry_valid+0x144/0x150 [ 36.426862] cma_cancel_operation+0x455/0xd60 [ 36.431327] ? finish_task_switch+0x182/0x7e0 [ 36.435794] ? find_held_lock+0x35/0x1d0 [ 36.439825] ? rdma_destroy_id+0xda0/0xda0 [ 36.444027] ? rdma_destroy_id+0xf4/0xda0 [ 36.448140] ? lock_downgrade+0x980/0x980 [ 36.452258] ? lock_release+0xa40/0xa40 [ 36.456226] ? do_raw_spin_trylock+0x190/0x190 [ 36.460796] ? _raw_spin_unlock_irqrestore+0x31/0xc0 [ 36.465872] ? trace_hardirqs_on_caller+0x421/0x5c0 [ 36.470861] rdma_destroy_id+0xff/0xda0 [ 36.474805] ? lock_release+0xa40/0xa40 [ 36.478746] ? lock_downgrade+0x980/0x980 [ 36.482864] ? cma_release_dev+0x350/0x350 [ 36.487069] ? radix_tree_delete_item+0x146/0x280 [ 36.491891] ucma_close+0x100/0x2f0 [ 36.495489] ? ucma_free_ctx+0xd90/0xd90 [ 36.499522] __fput+0x327/0x7e0 [ 36.502771] ? fput+0x140/0x140 [ 36.506108] ? check_same_owner+0x320/0x320 [ 36.510397] ? _raw_spin_unlock_irq+0x27/0x70 [ 36.514863] ____fput+0x15/0x20 [ 36.518114] task_work_run+0x199/0x270 [ 36.521969] ? task_work_cancel+0x210/0x210 [ 36.526258] ? _raw_spin_unlock+0x22/0x30 [ 36.530374] ? switch_task_namespaces+0x87/0xc0 [ 36.535016] do_exit+0x9bb/0x1ad0 [ 36.538440] ? find_held_lock+0x35/0x1d0 [ 36.542474] ? mm_update_next_owner+0x930/0x930 [ 36.547112] ? debug_check_no_locks_freed+0x3c0/0x3c0 [ 36.552268] ? lock_downgrade+0x980/0x980 [ 36.556385] ? __unqueue_futex+0x1c0/0x290 [ 36.560586] ? lock_release+0xa40/0xa40 [ 36.564526] ? fault_in_user_writeable+0x90/0x90 [ 36.569249] ? do_raw_spin_trylock+0x190/0x190 [ 36.573797] ? futex_wake+0x680/0x680 [ 36.577571] ? drop_futex_key_refs.isra.13+0x63/0xb0 [ 36.582641] ? futex_wait+0x6a9/0x9a0 [ 36.586418] ? switched_to_fair+0xa0/0xa0 [ 36.590534] ? trace_hardirqs_off+0x10/0x10 [ 36.594825] ? __enqueue_entity+0x109/0x1e0 [ 36.599116] ? memset+0x31/0x40 [ 36.602364] ? find_held_lock+0x35/0x1d0 [ 36.606400] ? get_signal+0x7a9/0x16d0 [ 36.610257] ? lock_downgrade+0x980/0x980 [ 36.614375] do_group_exit+0x149/0x400 [ 36.618229] ? do_raw_spin_trylock+0x190/0x190 [ 36.622780] ? SyS_exit+0x30/0x30 [ 36.626200] ? _raw_spin_unlock_irq+0x27/0x70 [ 36.630662] ? trace_hardirqs_on_caller+0x421/0x5c0 [ 36.635648] get_signal+0x73a/0x16d0 [ 36.639334] ? ptrace_notify+0x130/0x130 [ 36.643366] ? __schedule+0x903/0x1ec0 [ 36.647224] ? __sched_text_start+0x8/0x8 [ 36.651342] ? ucma_write+0x11f/0x3d0 [ 36.655107] ? ucma_resolve_addr+0x330/0x330 [ 36.659482] ? ucma_resolve_route+0x1a0/0x1a0 [ 36.663947] do_signal+0x90/0x1e90 [ 36.667460] ? __vfs_write+0xf7/0x970 [ 36.671230] ? rcu_note_context_switch+0x710/0x710 [ 36.676129] ? setup_sigcontext+0x7d0/0x7d0 [ 36.680417] ? kernel_read+0x120/0x120 [ 36.684274] ? __might_sleep+0x95/0x190 [ 36.688218] ? schedule+0xf5/0x430 [ 36.691727] ? avc_policy_seqno+0x9/0x20 [ 36.695753] ? __schedule+0x1ec0/0x1ec0 [ 36.699704] ? exit_to_usermode_loop+0x8c/0x2f0 [ 36.704343] exit_to_usermode_loop+0x258/0x2f0 [ 36.708895] ? trace_event_raw_event_sys_exit+0x260/0x260 [ 36.714405] ? do_fast_syscall_32+0x156/0xf9f [ 36.718884] do_fast_syscall_32+0xbe6/0xf9f [ 36.723177] ? _raw_spin_unlock_irq+0x27/0x70 [ 36.727640] ? do_int80_syscall_32+0x9c0/0x9c0 [ 36.732187] ? _raw_spin_unlock_irq+0x27/0x70 [ 36.736650] ? finish_task_switch+0x1c1/0x7e0 [ 36.741114] ? syscall_return_slowpath+0x2ac/0x550 [ 36.746014] ? prepare_exit_to_usermode+0x350/0x350 [ 36.750999] ? sysret32_from_system_call+0x5/0x3c [ 36.755812] ? trace_hardirqs_off_thunk+0x1a/0x1c [ 36.760624] entry_SYSENTER_compat+0x70/0x7f [ 36.764998] RIP: 0023:0xf7f0ec99 [ 36.768343] RSP: 002b:00000000f7ee910c EFLAGS: 00000296 ORIG_RAX: 00000000000000f0 [ 36.776019] RAX: fffffffffffffe00 RBX: 000000000813af98 RCX: 0000000000000000 [ 36.783254] RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000000000000 [ 36.790506] RBP: 0000000000000000 R08: 0000000000000000 R09: 0000000000000000 [ 36.797744] R10: 0000000000000000 R11: 0000000000000000 R12: 0000000000000000 [ 36.804984] R13: 0000000000000000 R14: 0000000000000000 R15: 0000000000000000 [ 36.812626] Dumping ftrace buffer: [ 36.816133] (ftrace buffer empty) [ 36.819828] Kernel Offset: disabled [ 36.823432] Rebooting in 86400 seconds..