[?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. [ 18.748528] audit: type=1400 audit(1517389778.619:6): avc: denied { map } for pid=4136 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.44' (ECDSA) to the list of known hosts. executing program syzkaller login: [ 32.654989] audit: type=1400 audit(1517389792.525:7): avc: denied { map } for pid=4153 comm="syzkaller910964" path="/root/syzkaller910964761" 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 [ 32.658176] ================================================================== [ 32.658212] BUG: KASAN: stack-out-of-bounds in xfrm_state_find+0x30de/0x3210 [ 32.658216] Read of size 4 at addr ffff8801b3427ad8 by task syzkaller910964/4153 [ 32.658217] [ 32.658222] CPU: 0 PID: 4153 Comm: syzkaller910964 Not tainted 4.15.0+ #287 [ 32.658225] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 32.658228] Call Trace: [ 32.658237] dump_stack+0x194/0x257 [ 32.658246] ? arch_local_irq_restore+0x53/0x53 [ 32.658254] ? show_regs_print_info+0x18/0x18 [ 32.658264] ? lock_release+0xa40/0xa40 [ 32.658270] ? xfrm_state_find+0x30de/0x3210 [ 32.658279] print_address_description+0x73/0x250 [ 32.658284] ? xfrm_state_find+0x30de/0x3210 [ 32.658290] kasan_report+0x25b/0x340 [ 32.658299] __asan_report_load4_noabort+0x14/0x20 [ 32.658303] xfrm_state_find+0x30de/0x3210 [ 32.658312] ? debug_check_no_locks_freed+0x3c0/0x3c0 [ 32.658332] ? xfrm_state_afinfo_get_rcu+0x160/0x160 [ 32.658337] ? __page_frag_cache_drain+0x1c0/0x1c0 [ 32.658344] ? print_irqtrace_events+0x270/0x270 [ 32.658348] ? lock_downgrade+0x980/0x980 [ 32.658356] ? find_held_lock+0x35/0x1d0 [ 32.658362] ? check_noncircular+0x20/0x20 [ 32.658389] ? debug_check_no_locks_freed+0x3c0/0x3c0 [ 32.658396] ? is_bpf_text_address+0x7b/0x120 [ 32.658406] ? print_irqtrace_events+0x270/0x270 [ 32.658418] ? depot_save_stack+0x3b5/0x490 [ 32.658424] ? lock_downgrade+0x980/0x980 [ 32.658441] ? __lock_acquire+0x664/0x3e00 [ 32.658448] ? _raw_spin_unlock_irqrestore+0x31/0xba [ 32.658455] ? trace_hardirqs_on_caller+0x421/0x5c0 [ 32.658464] xfrm_tmpl_resolve+0x2ee/0xc40 [ 32.658484] ? __xfrm_decode_session+0x110/0x110 [ 32.658497] ? rt_add_uncached_list+0x1b7/0x240 [ 32.658503] ? lock_downgrade+0x980/0x980 [ 32.658511] ? lock_release+0xa40/0xa40 [ 32.658516] ? check_noncircular+0x20/0x20 [ 32.658527] xfrm_resolve_and_create_bundle+0x172/0x2760 [ 32.658530] ? trace_hardirqs_on_caller+0x421/0x5c0 [ 32.658535] ? rt_add_uncached_list+0x1b7/0x240 [ 32.658546] ? _raw_spin_unlock_bh+0x30/0x40 [ 32.658559] ? xfrm_tmpl_resolve+0xc40/0xc40 [ 32.658565] ? find_held_lock+0x35/0x1d0 [ 32.658577] ? xfrm_sk_policy_lookup+0x34c/0x4e0 [ 32.658582] ? lock_downgrade+0x980/0x980 [ 32.658590] ? lock_release+0xa40/0xa40 [ 32.658598] ? refcount_inc_not_zero+0xfe/0x180 [ 32.658607] ? selinux_xfrm_policy_lookup+0xac/0xd0 [ 32.658615] ? security_xfrm_policy_lookup+0x92/0xc0 [ 32.658623] ? xfrm_sk_policy_lookup+0x375/0x4e0 [ 32.658633] ? xfrm_selector_match+0xe00/0xe00 [ 32.658646] xfrm_lookup+0xfcb/0x25d0 [ 32.658650] ? xfrm_lookup+0xfcb/0x25d0 [ 32.658654] ? __handle_mm_fault+0x1a0c/0x3ce0 [ 32.658660] ? check_noncircular+0x20/0x20 [ 32.658670] ? xfrm_policy_lookup+0x70/0x70 [ 32.658677] ? check_noncircular+0x20/0x20 [ 32.658686] ? find_held_lock+0x35/0x1d0 [ 32.658698] ? ip_route_output_key_hash+0x229/0x370 [ 32.658704] ? lock_downgrade+0x980/0x980 [ 32.658712] ? lock_release+0xa40/0xa40 [ 32.658721] ? find_held_lock+0x35/0x1d0 [ 32.658736] ? ip_route_output_key_hash+0x252/0x370 [ 32.658744] ? ip_route_output_key_hash_rcu+0x2f20/0x2f20 [ 32.658747] ? lock_release+0xa40/0xa40 [ 32.658759] xfrm_lookup_route+0x39/0x1a0 [ 32.658767] ip_route_output_flow+0x7c/0xa0 [ 32.658779] raw_sendmsg+0xcf2/0x3cf0 [ 32.658783] ? __lock_acquire+0x664/0x3e00 [ 32.658803] ? raw_setsockopt+0xd0/0xd0 [ 32.658807] ? avc_has_perm+0x35e/0x680 [ 32.658812] ? lock_downgrade+0x980/0x980 [ 32.658820] ? lock_release+0xa40/0xa40 [ 32.658832] ? trace_hardirqs_off+0xd/0x10 [ 32.658844] ? avc_has_perm+0x43e/0x680 [ 32.658853] ? avc_has_perm_noaudit+0x520/0x520 [ 32.658860] ? trace_hardirqs_on+0xd/0x10 [ 32.658865] ? _raw_spin_unlock_irq+0x27/0x70 [ 32.658871] ? finish_task_switch+0x1d3/0x740 [ 32.658886] ? find_held_lock+0x35/0x1d0 [ 32.658900] ? sock_has_perm+0x2a4/0x420 [ 32.658908] ? selinux_secmark_relabel_packet+0xc0/0xc0 [ 32.658912] ? lock_release+0x9a2/0xa40 [ 32.658917] ? trace_event_raw_event_sched_switch+0x800/0x800 [ 32.658924] ? __check_object_size+0x25d/0x4f0 [ 32.658928] ? find_held_lock+0x35/0x1d0 [ 32.658937] inet_sendmsg+0x11f/0x5e0 [ 32.658942] ? __might_sleep+0x95/0x190 [ 32.658947] ? inet_recvmsg+0x5f0/0x5f0 [ 32.658954] ? selinux_socket_sendmsg+0x36/0x40 [ 32.658959] ? security_socket_sendmsg+0x89/0xb0 [ 32.658964] ? inet_recvmsg+0x5f0/0x5f0 [ 32.658972] sock_sendmsg+0xca/0x110 [ 32.658979] SYSC_sendto+0x361/0x5c0 [ 32.658988] ? SYSC_connect+0x4a0/0x4a0 [ 32.658993] ? up_read+0x1a/0x40 [ 32.659004] ? __do_page_fault+0x3d6/0xc90 [ 32.659018] ? exit_to_usermode_loop+0x8c/0x310 [ 32.659034] ? trace_event_raw_event_sys_exit+0x260/0x260 [ 32.659040] ? __do_page_fault+0xc90/0xc90 [ 32.659052] ? syscall_return_slowpath+0x2ad/0x550 [ 32.659058] ? prepare_exit_to_usermode+0x340/0x340 [ 32.659064] ? entry_SYSCALL_64_fastpath+0x5/0xa0 [ 32.659076] SyS_sendto+0x40/0x50 [ 32.659085] entry_SYSCALL_64_fastpath+0x29/0xa0 [ 32.659089] RIP: 0033:0x43ff69 [ 32.659091] RSP: 002b:00007ffd86bd9d08 EFLAGS: 00000217 ORIG_RAX: 000000000000002c [ 32.659096] RAX: ffffffffffffffda RBX: ffffffffffffffff RCX: 000000000043ff69 [ 32.659099] RDX: 0000000000000000 RSI: 0000000020098000 RDI: 0000000000000003 [ 32.659102] RBP: 00000000006ca018 R08: 0000000020cf9000 R09: 0000000000000010 [ 32.659104] R10: 0000000000000000 R11: 0000000000000217 R12: 0000000000401890 [ 32.659107] R13: 0000000000401920 R14: 0000000000000000 R15: 0000000000000000 [ 32.659123] [ 32.659125] The buggy address belongs to the page: [ 32.659129] page:ffffea0006cd09c0 count:0 mapcount:0 mapping: (null) index:0x0 [ 32.659133] flags: 0x2fffc0000000000() [ 32.659139] raw: 02fffc0000000000 0000000000000000 0000000000000000 00000000ffffffff [ 32.659144] raw: 0000000000000000 0000000100000001 0000000000000000 0000000000000000 [ 32.659146] page dumped because: kasan: bad access detected [ 32.659147] [ 32.659148] Memory state around the buggy address: [ 32.659152] ffff8801b3427980: 00 f2 f2 f2 f2 f2 f2 f2 00 00 00 f2 f2 f2 f2 f2 [ 32.659155] ffff8801b3427a00: 00 00 00 00 f2 f2 f2 f2 00 00 00 00 00 00 f2 f2 [ 32.659158] >ffff8801b3427a80: f2 f2 f2 f2 00 00 00 00 00 00 00 f2 f2 f2 f2 f2 [ 32.659160] ^ [ 32.659163] ffff8801b3427b00: 00 00 00 00 00 00 00 00 00 f2 f2 f2 00 00 00 00 [ 32.659166] ffff8801b3427b80: 00 00 00 00 00 00 00 00 00 00 f1 f1 f1 f1 00 f2 [ 32.659167] ================================================================== [ 32.659169] Disabling lock debugging due to kernel taint [ 32.659181] Kernel panic - not syncing: panic_on_warn set ... [ 32.659181] [ 32.659185] CPU: 0 PID: 4153 Comm: syzkaller910964 Tainted: G B 4.15.0+ #287 [ 32.659187] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 32.659188] Call Trace: [ 32.659193] dump_stack+0x194/0x257 [ 32.659198] ? arch_local_irq_restore+0x53/0x53 [ 32.659202] ? kasan_end_report+0x32/0x50 [ 32.659207] ? trace_hardirqs_on_thunk+0x1a/0x1c [ 32.659211] ? vsnprintf+0x1ed/0x1900 [ 32.659216] ? xfrm_state_find+0x30a0/0x3210 [ 32.659221] panic+0x1e4/0x41c [ 32.659225] ? refcount_error_report+0x214/0x214 [ 32.659231] ? add_taint+0x1c/0x50 [ 32.659235] ? add_taint+0x1c/0x50 [ 32.659240] ? xfrm_state_find+0x30de/0x3210 [ 32.659244] kasan_end_report+0x50/0x50 [ 32.659248] kasan_report+0x144/0x340 [ 32.659255] __asan_report_load4_noabort+0x14/0x20 [ 32.659258] xfrm_state_find+0x30de/0x3210 [ 32.659264] ? debug_check_no_locks_freed+0x3c0/0x3c0 [ 32.659276] ? xfrm_state_afinfo_get_rcu+0x160/0x160 [ 32.659279] ? __page_frag_cache_drain+0x1c0/0x1c0 [ 32.659284] ? print_irqtrace_events+0x270/0x270 [ 32.659288] ? lock_downgrade+0x980/0x980 [ 32.659294] ? find_held_lock+0x35/0x1d0 [ 32.659298] ? check_noncircular+0x20/0x20 [ 32.659314] ? debug_check_no_locks_freed+0x3c0/0x3c0 [ 32.659318] ? is_bpf_text_address+0x7b/0x120 [ 32.659325] ? print_irqtrace_events+0x270/0x270 [ 32.659332] ? depot_save_stack+0x3b5/0x490 [ 32.659336] ? lock_downgrade+0x980/0x980 [ 32.659346] ? __lock_acquire+0x664/0x3e00 [ 32.659351] ? _raw_spin_unlock_irqrestore+0x31/0xba [ 32.659356] ? trace_hardirqs_on_caller+0x421/0x5c0 [ 32.659361] xfrm_tmpl_resolve+0x2ee/0xc40 [ 32.659373] ? __xfrm_decode_session+0x110/0x110 [ 32.659381] ? rt_add_uncached_list+0x1b7/0x240 [ 32.659385] ? lock_downgrade+0x980/0x980 [ 32.659391] ? lock_release+0xa40/0xa40 [ 32.659395] ? check_noncircular+0x20/0x20 [ 32.659402] xfrm_resolve_and_create_bundle+0x172/0x2760 [ 32.659405] ? trace_hardirqs_on_caller+0x421/0x5c0 [ 32.659409] ? rt_add_uncached_list+0x1b7/0x240 [ 32.659416] ? _raw_spin_unlock_bh+0x30/0x40 [ 32.659424] ? xfrm_tmpl_resolve+0xc40/0xc40 [ 32.659428] ? find_held_lock+0x35/0x1d0 [ 32.659436] ? xfrm_sk_policy_lookup+0x34c/0x4e0 [ 32.659440] ? lock_downgrade+0x980/0x980 [ 32.659446] ? lock_release+0xa40/0xa40 [ 32.659450] ? refcount_inc_not_zero+0xfe/0x180 [ 32.659456] ? selinux_xfrm_policy_lookup+0xac/0xd0 [ 32.659461] ? security_xfrm_policy_lookup+0x92/0xc0 [ 32.659467] ? xfrm_sk_policy_lookup+0x375/0x4e0 [ 32.659473] ? xfrm_selector_match+0xe00/0xe00 [ 32.659481] xfrm_lookup+0xfcb/0x25d0 [ 32.659484] ? xfrm_lookup+0xfcb/0x25d0 [ 32.659487] ? __handle_mm_fault+0x1a0c/0x3ce0 [ 32.659492] ? check_noncircular+0x20/0x20 [ 32.659498] ? xfrm_policy_lookup+0x70/0x70 [ 32.659503] ? check_noncircular+0x20/0x20 [ 32.659509] ? find_held_lock+0x35/0x1d0 [ 32.659517] ? ip_route_output_key_hash+0x229/0x370 [ 32.659522] ? lock_downgrade+0x980/0x980 [ 32.659527] ? lock_release+0xa40/0xa40 [ 32.659533] ? find_held_lock+0x35/0x1d0 [ 32.659543] ? ip_route_output_key_hash+0x252/0x370 [ 32.659548] ? ip_route_output_key_hash_rcu+0x2f20/0x2f20 [ 32.659551] ? lock_release+0xa40/0xa40 [ 32.659559] xfrm_lookup_route+0x39/0x1a0 [ 32.659564] ip_route_output_flow+0x7c/0xa0 [ 32.659570] raw_sendmsg+0xcf2/0x3cf0 [ 32.659573] ? __lock_acquire+0x664/0x3e00 [ 32.659585] ? raw_setsockopt+0xd0/0xd0 [ 32.659588] ? avc_has_perm+0x35e/0x680 [ 32.659592] ? lock_downgrade+0x980/0x980 [ 32.659598] ? lock_release+0xa40/0xa40 [ 32.659605] ? trace_hardirqs_off+0xd/0x10 [ 32.659613] ? avc_has_perm+0x43e/0x680 [ 32.659619] ? avc_has_perm_noaudit+0x520/0x520 [ 32.659624] ? trace_hardirqs_on+0xd/0x10 [ 32.659628] ? _raw_spin_unlock_irq+0x27/0x70 [ 32.659632] ? finish_task_switch+0x1d3/0x740 [ 32.659641] ? find_held_lock+0x35/0x1d0 [ 32.659650] ? sock_has_perm+0x2a4/0x420 [ 32.659655] ? selinux_secmark_relabel_packet+0xc0/0xc0 [ 32.659659] ? lock_release+0x9a2/0xa40 [ 32.659663] ? trace_event_raw_event_sched_switch+0x800/0x800 [ 32.659667] ? __check_object_size+0x25d/0x4f0 [ 32.659671] ? find_held_lock+0x35/0x1d0 [ 32.659677] inet_sendmsg+0x11f/0x5e0 [ 32.659680] ? __might_sleep+0x95/0x190 [ 32.659684] ? inet_recvmsg+0x5f0/0x5f0 [ 32.659689] ? selinux_socket_sendmsg+0x36/0x40 [ 32.659693] ? security_socket_sendmsg+0x89/0xb0 [ 32.659697] ? inet_recvmsg+0x5f0/0x5f0 [ 32.659702] sock_sendmsg+0xca/0x110 [ 32.659707] SYSC_sendto+0x361/0x5c0 [ 32.659712] ? SYSC_connect+0x4a0/0x4a0 [ 32.659716] ? up_read+0x1a/0x40 [ 32.659721] ? __do_page_fault+0x3d6/0xc90 [ 32.659729] ? exit_to_usermode_loop+0x8c/0x310 [ 32.659739] ? trace_event_raw_event_sys_exit+0x260/0x260 [ 32.659743] ? __do_page_fault+0xc90/0xc90 [ 32.659751] ? syscall_return_slowpath+0x2ad/0x550 [ 32.659756] ? prepare_exit_to_usermode+0x340/0x340 [ 32.659761] ? entry_SYSCALL_64_fastpath+0x5/0xa0 [ 32.659768] SyS_sendto+0x40/0x50 [ 32.659778] entry_SYSCALL_64_fastpath+0x29/0xa0 [ 32.659781] RIP: 0033:0x43ff69 [ 32.659783] RSP: 002b:00007ffd86bd9d08 EFLAGS: 00000217 ORIG_RAX: 000000000000002c [ 32.659786] RAX: ffffffffffffffda RBX: ffffffffffffffff RCX: 000000000043ff69 [ 32.659788] RDX: 0000000000000000 RSI: 0000000020098000 RDI: 0000000000000003 [ 32.659791] RBP: 00000000006ca018 R08: 0000000020cf9000 R09: 0000000000000010 [ 32.659793] R10: 0000000000000000 R11: 0000000000000217 R12: 0000000000401890 [ 32.659795] R13: 0000000000401920 R14: 0000000000000000 R15: 0000000000000000 [ 32.681196] Dumping ftrace buffer: [ 32.681199] (ftrace buffer empty) [ 32.681201] Kernel Offset: disabled [ 33.843411] Rebooting in 86400 seconds..