[?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. [ 11.591990] audit: type=1400 audit(1514150967.543:6): avc: denied { map } for pid=3124 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 'ci-upstream-kasan-gce-2,10.128.15.228' (ECDSA) to the list of known hosts. executing program syzkaller login: [ 20.849175] audit: type=1400 audit(1514150976.800:7): avc: denied { map } for pid=3139 comm="syzkaller283615" path="/root/syzkaller283615371" 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 [ 20.853961] ================================================================== [ 20.853983] BUG: KASAN: stack-out-of-bounds in xfrm_state_find+0x30de/0x3210 [ 20.853989] Read of size 4 at addr ffff8801c862f740 by task syzkaller283615/3139 [ 20.853991] [ 20.853999] CPU: 1 PID: 3139 Comm: syzkaller283615 Not tainted 4.15.0-rc5+ #237 [ 20.854006] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 20.854009] Call Trace: [ 20.854020] dump_stack+0x194/0x257 [ 20.854034] ? arch_local_irq_restore+0x53/0x53 [ 20.854044] ? show_regs_print_info+0x18/0x18 [ 20.854057] ? lock_release+0xa40/0xa40 [ 20.854068] ? xfrm_state_find+0x30de/0x3210 [ 20.854079] print_address_description+0x73/0x250 [ 20.854088] ? xfrm_state_find+0x30de/0x3210 [ 20.854098] kasan_report+0x25b/0x340 [ 20.854112] __asan_report_load4_noabort+0x14/0x20 [ 20.854120] xfrm_state_find+0x30de/0x3210 [ 20.854132] ? debug_check_no_locks_freed+0x3c0/0x3c0 [ 20.854167] ? xfrm_state_afinfo_get_rcu+0x160/0x160 [ 20.854177] ? print_irqtrace_events+0x270/0x270 [ 20.854194] ? find_held_lock+0x35/0x1d0 [ 20.854248] ? debug_check_no_locks_freed+0x3c0/0x3c0 [ 20.854263] ? print_irqtrace_events+0x270/0x270 [ 20.854282] ? depot_save_stack+0x3b5/0x490 [ 20.854291] ? lock_downgrade+0x980/0x980 [ 20.854304] ? lock_release+0xa40/0xa40 [ 20.854322] ? __lock_acquire+0x664/0x3e00 [ 20.854332] ? _raw_spin_unlock_irqrestore+0x31/0xba [ 20.854343] ? trace_hardirqs_on_caller+0x421/0x5c0 [ 20.854359] xfrm_tmpl_resolve+0x30e/0xc10 [ 20.854393] ? __xfrm_decode_session+0x110/0x110 [ 20.854401] ? find_held_lock+0x35/0x1d0 [ 20.854421] ? rt_add_uncached_list+0x1b7/0x240 [ 20.854430] ? lock_downgrade+0x980/0x980 [ 20.854436] ? print_irqtrace_events+0x270/0x270 [ 20.854448] ? lock_release+0xa40/0xa40 [ 20.854466] xfrm_resolve_and_create_bundle+0x123/0x25f0 [ 20.854478] ? rt_add_uncached_list+0x1b7/0x240 [ 20.854485] ? trace_hardirqs_on+0xd/0x10 [ 20.854494] ? __local_bh_enable_ip+0x121/0x230 [ 20.854504] ? _raw_spin_unlock_bh+0x30/0x40 [ 20.854517] ? ip_rt_bug+0x20/0x20 [ 20.854527] ? xfrm_tmpl_resolve+0xc10/0xc10 [ 20.854537] ? find_held_lock+0x35/0x1d0 [ 20.854557] ? xfrm_sk_policy_lookup+0x30b/0x490 [ 20.854566] ? lock_downgrade+0x980/0x980 [ 20.854579] ? lock_release+0xa40/0xa40 [ 20.854592] ? refcount_inc_not_zero+0xfe/0x180 [ 20.854607] ? selinux_xfrm_policy_lookup+0xac/0xd0 [ 20.854619] ? security_xfrm_policy_lookup+0x92/0xc0 [ 20.854634] ? xfrm_sk_policy_lookup+0x334/0x490 [ 20.854651] ? xfrm_selector_match+0xe00/0xe00 [ 20.854657] ? print_irqtrace_events+0x270/0x270 [ 20.854679] xfrm_lookup+0x1574/0x23f0 [ 20.854685] ? xfrm_lookup+0x1574/0x23f0 [ 20.854709] ? xfrm_policy_lookup_bytype.constprop.46+0x960/0x960 [ 20.854719] ? _raw_spin_unlock_irqrestore+0x31/0xba [ 20.854736] ? find_held_lock+0x35/0x1d0 [ 20.854755] ? ip_route_output_key_hash+0x229/0x370 [ 20.854765] ? lock_downgrade+0x980/0x980 [ 20.854778] ? __lru_cache_add+0x2a4/0x410 [ 20.854789] ? lock_release+0xa40/0xa40 [ 20.854803] ? find_held_lock+0x35/0x1d0 [ 20.854829] ? ip_route_output_key_hash+0x252/0x370 [ 20.854840] ? ip_route_output_key_hash_rcu+0x2c20/0x2c20 [ 20.854846] ? lock_release+0xa40/0xa40 [ 20.854865] xfrm_lookup_route+0x39/0x1a0 [ 20.854878] ip_route_output_flow+0x7c/0xa0 [ 20.854892] udp_sendmsg+0x19d3/0x2cf0 [ 20.854907] ? ip_reply_glue_bits+0xb0/0xb0 [ 20.854930] ? udp_lib_get_port+0x1b30/0x1b30 [ 20.854938] ? debug_check_no_locks_freed+0x3c0/0x3c0 [ 20.854946] ? debug_check_no_locks_freed+0x3c0/0x3c0 [ 20.854984] ? lock_downgrade+0x980/0x980 [ 20.855003] ? mark_held_locks+0xaf/0x100 [ 20.855009] ? refcount_inc_not_zero+0xfe/0x180 [ 20.855018] ? __local_bh_enable_ip+0x121/0x230 [ 20.855029] ? trace_hardirqs_on_caller+0x421/0x5c0 [ 20.855036] ? udp_lib_get_port+0x785/0x1b30 [ 20.855045] ? check_noncircular+0x20/0x20 [ 20.855051] ? __local_bh_enable_ip+0x121/0x230 [ 20.855068] udpv6_sendmsg+0x762/0x33a0 [ 20.855080] ? check_noncircular+0x20/0x20 [ 20.855103] ? udpv6_setsockopt+0x80/0x80 [ 20.855116] ? reacquire_held_locks+0x1f9/0x3e0 [ 20.855123] ? reacquire_held_locks+0x1f9/0x3e0 [ 20.855137] ? find_held_lock+0x35/0x1d0 [ 20.855158] ? release_sock+0x1d4/0x2a0 [ 20.855168] ? lock_downgrade+0x980/0x980 [ 20.855176] ? lock_downgrade+0x980/0x980 [ 20.855197] ? __local_bh_enable_ip+0x121/0x230 [ 20.855208] ? trace_hardirqs_on_caller+0x421/0x5c0 [ 20.855215] ? release_sock+0x1d4/0x2a0 [ 20.855222] ? trace_hardirqs_on+0xd/0x10 [ 20.855229] ? __local_bh_enable_ip+0x121/0x230 [ 20.855240] ? _raw_spin_unlock_bh+0x30/0x40 [ 20.855248] ? release_sock+0x1d4/0x2a0 [ 20.855259] ? __release_sock+0x360/0x360 [ 20.855264] ? udp6_portaddr_hash+0x146/0x2f0 [ 20.855278] ? udp_v6_get_port+0x9c/0xc0 [ 20.855296] inet_sendmsg+0x11f/0x5e0 [ 20.855302] ? inet_sendmsg+0x11f/0x5e0 [ 20.855309] ? __might_sleep+0x95/0x190 [ 20.855318] ? inet_recvmsg+0x5f0/0x5f0 [ 20.855330] ? selinux_socket_sendmsg+0x36/0x40 [ 20.855338] ? security_socket_sendmsg+0x89/0xb0 [ 20.855346] ? inet_recvmsg+0x5f0/0x5f0 [ 20.855357] sock_sendmsg+0xca/0x110 [ 20.855369] SYSC_sendto+0x361/0x5c0 [ 20.855382] ? SYSC_connect+0x4a0/0x4a0 [ 20.855392] ? up_read+0x1a/0x40 [ 20.855401] ? __do_page_fault+0x3d6/0xc90 [ 20.855446] ? __do_page_fault+0xc90/0xc90 [ 20.855460] ? SyS_setsockopt+0x215/0x360 [ 20.855474] ? SyS_recv+0x40/0x40 [ 20.855484] ? entry_SYSCALL_64_fastpath+0x5/0x96 [ 20.855502] SyS_sendto+0x40/0x50 [ 20.855517] entry_SYSCALL_64_fastpath+0x1f/0x96 [ 20.855523] RIP: 0033:0x43ff29 [ 20.855527] RSP: 002b:00007ffedf6b1308 EFLAGS: 00000217 ORIG_RAX: 000000000000002c [ 20.855535] RAX: ffffffffffffffda RBX: 0100000000000000 RCX: 000000000043ff29 [ 20.855539] RDX: 0000000000000000 RSI: 000000002028a000 RDI: 0000000000000003 [ 20.855543] RBP: 00000000006ca018 R08: 0000000020999000 R09: 000000000000001c [ 20.855547] R10: 0000000000000000 R11: 0000000000000217 R12: 0000000000401890 [ 20.855551] R13: 0000000000401920 R14: 0000000000000000 R15: 0000000000000000 [ 20.855579] [ 20.855581] The buggy address belongs to the page: [ 20.855588] page:0000000076c3f3ba count:0 mapcount:0 mapping: (null) index:0x0 [ 20.855593] flags: 0x2fffc0000000000() [ 20.855603] raw: 02fffc0000000000 0000000000000000 0000000000000000 00000000ffffffff [ 20.855610] raw: 0000000000000000 0000000100000001 0000000000000000 0000000000000000 [ 20.855613] page dumped because: kasan: bad access detected [ 20.855614] [ 20.855616] Memory state around the buggy address: [ 20.855622] ffff8801c862f600: f1 04 f2 f2 f2 f2 f2 f2 f2 00 f2 f2 f2 f2 f2 f2 [ 20.855627] ffff8801c862f680: f2 f8 f2 f2 f2 f2 f2 f2 f2 00 00 00 00 f2 f2 f2 [ 20.855632] >ffff8801c862f700: f2 00 00 00 00 00 00 00 f2 f2 f2 f2 f2 00 00 00 [ 20.855635] ^ [ 20.855640] ffff8801c862f780: 00 00 00 00 00 00 f2 f2 f2 00 00 00 00 00 00 00 [ 20.855645] ffff8801c862f800: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 20.855648] ================================================================== [ 20.855650] Disabling lock debugging due to kernel taint [ 20.855666] Kernel panic - not syncing: panic_on_warn set ... [ 20.855666] [ 20.855672] CPU: 1 PID: 3139 Comm: syzkaller283615 Tainted: G B 4.15.0-rc5+ #237 [ 20.855675] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 20.855677] Call Trace: [ 20.855683] dump_stack+0x194/0x257 [ 20.855692] ? arch_local_irq_restore+0x53/0x53 [ 20.855701] ? trace_hardirqs_on_thunk+0x1a/0x1c [ 20.855709] ? vsnprintf+0x1ed/0x1900 [ 20.855716] ? xfrm_state_find+0x3070/0x3210 [ 20.855723] panic+0x1e4/0x41c [ 20.855730] ? refcount_error_report+0x214/0x214 [ 20.855738] ? add_taint+0x1c/0x50 [ 20.855745] ? add_taint+0x1c/0x50 [ 20.855754] ? xfrm_state_find+0x30de/0x3210 [ 20.855761] kasan_end_report+0x50/0x50 [ 20.855767] kasan_report+0x144/0x340 [ 20.855781] __asan_report_load4_noabort+0x14/0x20 [ 20.855787] xfrm_state_find+0x30de/0x3210 [ 20.855796] ? debug_check_no_locks_freed+0x3c0/0x3c0 [ 20.855816] ? xfrm_state_afinfo_get_rcu+0x160/0x160 [ 20.855823] ? print_irqtrace_events+0x270/0x270 [ 20.855833] ? find_held_lock+0x35/0x1d0 [ 20.855862] ? debug_check_no_locks_freed+0x3c0/0x3c0 [ 20.855873] ? print_irqtrace_events+0x270/0x270 [ 20.855883] ? depot_save_stack+0x3b5/0x490 [ 20.855891] ? lock_downgrade+0x980/0x980 [ 20.855900] ? lock_release+0xa40/0xa40 [ 20.855911] ? __lock_acquire+0x664/0x3e00 [ 20.855918] ? _raw_spin_unlock_irqrestore+0x31/0xba [ 20.855926] ? trace_hardirqs_on_caller+0x421/0x5c0 [ 20.855937] xfrm_tmpl_resolve+0x30e/0xc10 [ 20.855956] ? __xfrm_decode_session+0x110/0x110 [ 20.855962] ? find_held_lock+0x35/0x1d0 [ 20.855974] ? rt_add_uncached_list+0x1b7/0x240 [ 20.855981] ? lock_downgrade+0x980/0x980 [ 20.855986] ? print_irqtrace_events+0x270/0x270 [ 20.855995] ? lock_release+0xa40/0xa40 [ 20.856009] xfrm_resolve_and_create_bundle+0x123/0x25f0 [ 20.856017] ? rt_add_uncached_list+0x1b7/0x240 [ 20.856023] ? trace_hardirqs_on+0xd/0x10 [ 20.856030] ? __local_bh_enable_ip+0x121/0x230 [ 20.856038] ? _raw_spin_unlock_bh+0x30/0x40 [ 20.856046] ? ip_rt_bug+0x20/0x20 [ 20.856054] ? xfrm_tmpl_resolve+0xc10/0xc10 [ 20.856061] ? find_held_lock+0x35/0x1d0 [ 20.856073] ? xfrm_sk_policy_lookup+0x30b/0x490 [ 20.856080] ? lock_downgrade+0x980/0x980 [ 20.856089] ? lock_release+0xa40/0xa40 [ 20.856098] ? refcount_inc_not_zero+0xfe/0x180 [ 20.856108] ? selinux_xfrm_policy_lookup+0xac/0xd0 [ 20.856116] ? security_xfrm_policy_lookup+0x92/0xc0 [ 20.856126] ? xfrm_sk_policy_lookup+0x334/0x490 [ 20.856137] ? xfrm_selector_match+0xe00/0xe00 [ 20.856143] ? print_irqtrace_events+0x270/0x270 [ 20.856156] xfrm_lookup+0x1574/0x23f0 [ 20.856162] ? xfrm_lookup+0x1574/0x23f0 [ 20.856177] ? xfrm_policy_lookup_bytype.constprop.46+0x960/0x960 [ 20.856185] ? _raw_spin_unlock_irqrestore+0x31/0xba [ 20.856195] ? find_held_lock+0x35/0x1d0 [ 20.856208] ? ip_route_output_key_hash+0x229/0x370 [ 20.856215] ? lock_downgrade+0x980/0x980 [ 20.856221] ? __lru_cache_add+0x2a4/0x410 [ 20.856229] ? lock_release+0xa40/0xa40 [ 20.856238] ? find_held_lock+0x35/0x1d0 [ 20.856253] ? ip_route_output_key_hash+0x252/0x370 [ 20.856262] ? ip_route_output_key_hash_rcu+0x2c20/0x2c20 [ 20.856267] ? lock_release+0xa40/0xa40 [ 20.856279] xfrm_lookup_route+0x39/0x1a0 [ 20.856288] ip_route_output_flow+0x7c/0xa0 [ 20.856297] udp_sendmsg+0x19d3/0x2cf0 [ 20.856307] ? ip_reply_glue_bits+0xb0/0xb0 [ 20.856321] ? udp_lib_get_port+0x1b30/0x1b30 [ 20.856328] ? debug_check_no_locks_freed+0x3c0/0x3c0 [ 20.856334] ? debug_check_no_locks_freed+0x3c0/0x3c0 [ 20.856355] ? lock_downgrade+0x980/0x980 [ 20.856367] ? mark_held_locks+0xaf/0x100 [ 20.856373] ? refcount_inc_not_zero+0xfe/0x180 [ 20.856380] ? __local_bh_enable_ip+0x121/0x230 [ 20.856389] ? trace_hardirqs_on_caller+0x421/0x5c0 [ 20.856395] ? udp_lib_get_port+0x785/0x1b30 [ 20.856401] ? check_noncircular+0x20/0x20 [ 20.856407] ? __local_bh_enable_ip+0x121/0x230 [ 20.856417] udpv6_sendmsg+0x762/0x33a0 [ 20.856426] ? check_noncircular+0x20/0x20 [ 20.856439] ? udpv6_setsockopt+0x80/0x80 [ 20.856449] ? reacquire_held_locks+0x1f9/0x3e0 [ 20.856455] ? reacquire_held_locks+0x1f9/0x3e0 [ 20.856464] ? find_held_lock+0x35/0x1d0 [ 20.856476] ? release_sock+0x1d4/0x2a0 [ 20.856483] ? lock_downgrade+0x980/0x980 [ 20.856490] ? lock_downgrade+0x980/0x980 [ 20.856503] ? __local_bh_enable_ip+0x121/0x230 [ 20.856511] ? trace_hardirqs_on_caller+0x421/0x5c0 [ 20.856517] ? release_sock+0x1d4/0x2a0 [ 20.856523] ? trace_hardirqs_on+0xd/0x10 [ 20.856530] ? __local_bh_enable_ip+0x121/0x230 [ 20.856537] ? _raw_spin_unlock_bh+0x30/0x40 [ 20.856544] ? release_sock+0x1d4/0x2a0 [ 20.856552] ? __release_sock+0x360/0x360 [ 20.856557] ? udp6_portaddr_hash+0x146/0x2f0 [ 20.856566] ? udp_v6_get_port+0x9c/0xc0 [ 20.856577] inet_sendmsg+0x11f/0x5e0 [ 20.856582] ? inet_sendmsg+0x11f/0x5e0 [ 20.856587] ? __might_sleep+0x95/0x190 [ 20.856594] ? inet_recvmsg+0x5f0/0x5f0 [ 20.856602] ? selinux_socket_sendmsg+0x36/0x40 [ 20.856609] ? security_socket_sendmsg+0x89/0xb0 [ 20.856615] ? inet_recvmsg+0x5f0/0x5f0 [ 20.856624] sock_sendmsg+0xca/0x110 [ 20.856632] SYSC_sendto+0x361/0x5c0 [ 20.856641] ? SYSC_connect+0x4a0/0x4a0 [ 20.856647] ? up_read+0x1a/0x40 [ 20.856654] ? __do_page_fault+0x3d6/0xc90 [ 20.856679] ? __do_page_fault+0xc90/0xc90 [ 20.856688] ? SyS_setsockopt+0x215/0x360 [ 20.856697] ? SyS_recv+0x40/0x40 [ 20.856705] ? entry_SYSCALL_64_fastpath+0x5/0x96 [ 20.856716] SyS_sendto+0x40/0x50 [ 20.856726] entry_SYSCALL_64_fastpath+0x1f/0x96 [ 20.856730] RIP: 0033:0x43ff29 [ 20.856733] RSP: 002b:00007ffedf6b1308 EFLAGS: 00000217 ORIG_RAX: 000000000000002c [ 20.856739] RAX: ffffffffffffffda RBX: 0100000000000000 RCX: 000000000043ff29 [ 20.856743] RDX: 0000000000000000 RSI: 000000002028a000 RDI: 0000000000000003 [ 20.856746] RBP: 00000000006ca018 R08: 0000000020999000 R09: 000000000000001c [ 20.856750] R10: 0000000000000000 R11: 0000000000000217 R12: 0000000000401890 [ 20.856753] R13: 0000000000401920 R14: 0000000000000000 R15: 0000000000000000 [ 20.875431] Dumping ftrace buffer: [ 20.875435] (ftrace buffer empty) [ 20.875438] Kernel Offset: disabled [ 22.133519] Rebooting in 86400 seconds..