INIT: Entering runlevel: 2 [info] Using makefile-style concurrent boot in runlevel 2. [....] Starting enhanced syslogd: rsyslogd[?25l[?1c7[ ok 8[?25h[?0c. [....] Starting periodic command scheduler: cron[?25l[?1c7[ ok 8[?25h[?0c. [....] Starting OpenBSD Secure Shell server: sshd[?25l[?1c7[ ok 8[?25h[?0c. Debian GNU/Linux 7 syzkaller ttyS0 Warning: Permanently added 'ci-upstream-kasan-gce-6,10.128.15.199' (ECDSA) to the list of known hosts. executing program syzkaller login: [ 51.866629] ================================================================== [ 51.867875] BUG: KASAN: stack-out-of-bounds in xfrm_state_find+0x303d/0x3170 [ 51.868948] Read of size 4 at addr ffff8801d133faf8 by task syzkaller771389/3003 [ 51.870063] [ 51.870316] CPU: 1 PID: 3003 Comm: syzkaller771389 Not tainted 4.13.0-rc6+ #52 [ 51.871342] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 51.872643] Call Trace: [ 51.873017] dump_stack+0x194/0x257 [ 51.873508] ? arch_local_irq_restore+0x53/0x53 [ 51.874130] ? show_regs_print_info+0x65/0x65 [ 51.874839] ? lock_release+0xa40/0xa40 [ 51.875375] ? xfrm_state_find+0x303d/0x3170 [ 51.876069] print_address_description+0x73/0x250 [ 51.876806] ? xfrm_state_find+0x303d/0x3170 [ 51.877395] kasan_report+0x24e/0x340 [ 51.877910] __asan_report_load4_noabort+0x14/0x20 [ 51.878598] xfrm_state_find+0x303d/0x3170 [ 51.879177] ? debug_check_no_locks_freed+0x3c0/0x3c0 [ 51.879892] ? xfrm_state_afinfo_get_rcu+0x160/0x160 [ 51.880626] ? find_held_lock+0x35/0x1d0 [ 51.881183] ? depot_save_stack+0x3b5/0x490 [ 51.881760] ? lock_downgrade+0x990/0x990 [ 51.882315] ? update_stack_state+0x700/0x700 [ 51.882940] ? do_raw_spin_trylock+0x190/0x190 [ 51.883566] ? __lock_acquire+0x6ef/0x3dc0 [ 51.884156] ? check_noncircular+0x20/0x20 [ 51.884764] ? trace_hardirqs_on+0xd/0x10 [ 51.885323] ? depot_save_stack+0x3b5/0x490 [ 51.885909] ? debug_check_no_locks_freed+0x3c0/0x3c0 [ 51.886633] ? kasan_kmalloc+0xad/0xe0 [ 51.889370] ? kasan_slab_alloc+0x12/0x20 [ 51.893491] ? find_held_lock+0x35/0x1d0 [ 51.897558] ? rt_add_uncached_list+0x1b7/0x240 [ 51.902208] ? lock_downgrade+0x990/0x990 [ 51.906341] xfrm_tmpl_resolve+0x309/0xbf0 [ 51.910569] ? __xfrm_dst_lookup+0x120/0x120 [ 51.914956] ? rt_add_uncached_list+0x1b7/0x240 [ 51.919614] ? ip_rt_bug+0x20/0x20 [ 51.923140] ? dst_init+0x4d9/0x6a0 [ 51.926756] ? check_noncircular+0x20/0x20 [ 51.930983] ? rt_set_nexthop.constprop.57+0x41d/0xfe0 [ 51.936243] ? get_page_from_freelist+0x2157/0x3430 [ 51.941258] xfrm_resolve_and_create_bundle+0x102/0x2080 [ 51.946714] ? rt_dst_alloc+0x40d/0x540 [ 51.950696] ? __xfrm_decode_session+0x100/0x100 [ 51.955435] ? xfrm_sk_policy_lookup+0x2a6/0x3d0 [ 51.960175] ? lock_downgrade+0x990/0x990 [ 51.964303] ? lock_release+0xa40/0xa40 [ 51.968261] ? refcount_inc_not_zero+0xfe/0x180 [ 51.972916] ? xfrm_selector_match+0x3b/0xe00 [ 51.977395] ? xfrm_sk_policy_lookup+0x2cf/0x3d0 [ 51.982127] ? xfrm_selector_match+0xe00/0xe00 [ 51.986690] xfrm_lookup+0xd39/0x11c0 [ 51.990467] ? xfrm_lookup+0xd39/0x11c0 [ 51.994421] ? xfrm_sk_policy_lookup+0x3d0/0x3d0 [ 51.999163] ? lock_release+0xa40/0xa40 [ 52.003123] ? find_held_lock+0x35/0x1d0 [ 52.007173] ? ip_route_output_key_hash+0x252/0x370 [ 52.012167] ? ip_route_output_key_hash_rcu+0x2bb0/0x2bb0 [ 52.017678] ? lock_release+0xa40/0xa40 [ 52.021639] xfrm_lookup_route+0x39/0x1a0 [ 52.025767] ip_route_output_flow+0x7c/0xa0 [ 52.030061] raw_sendmsg+0xc4b/0x38b0 [ 52.033858] ? pagevec_move_tail+0xb0/0x100 [ 52.038188] ? raw_setsockopt+0xd0/0xd0 [ 52.042155] ? mem_cgroup_charge_statistics+0x740/0x740 [ 52.047508] ? check_noncircular+0x20/0x20 [ 52.051719] ? lru_cache_add+0x1c7/0x3a0 [ 52.055754] ? lru_cache_add_file+0x20/0x20 [ 52.060056] ? check_noncircular+0x20/0x20 [ 52.064267] ? mark_held_locks+0xaf/0x100 [ 52.068392] ? find_held_lock+0x35/0x1d0 [ 52.072433] ? find_held_lock+0x35/0x1d0 [ 52.076473] ? __might_fault+0x110/0x1d0 [ 52.080520] ? sock_has_perm+0x29c/0x400 [ 52.084556] ? lock_downgrade+0x990/0x990 [ 52.088679] ? selinux_tun_dev_create+0xc0/0xc0 [ 52.093325] ? lock_release+0xa40/0xa40 [ 52.097280] ? check_same_owner+0x320/0x320 [ 52.101580] ? __check_object_size+0x25d/0x4f0 [ 52.106151] inet_sendmsg+0x11f/0x5e0 [ 52.109935] ? __might_sleep+0x95/0x190 [ 52.113887] ? inet_recvmsg+0x5f0/0x5f0 [ 52.117843] ? selinux_socket_sendmsg+0x36/0x40 [ 52.122492] ? security_socket_sendmsg+0x89/0xb0 [ 52.127227] ? inet_recvmsg+0x5f0/0x5f0 [ 52.131179] sock_sendmsg+0xca/0x110 [ 52.134874] SYSC_sendto+0x352/0x5a0 [ 52.138570] ? SYSC_connect+0x470/0x470 [ 52.142523] ? find_held_lock+0x35/0x1d0 [ 52.146572] ? lock_downgrade+0x990/0x990 [ 52.150709] ? handle_mm_fault+0x4a2/0x860 [ 52.154914] ? down_read_trylock+0xdb/0x170 [ 52.159227] ? entry_SYSCALL_64_fastpath+0x5/0xbe [ 52.164041] ? trace_hardirqs_on_caller+0x421/0x5c0 [ 52.169033] SyS_sendto+0x40/0x50 [ 52.172463] entry_SYSCALL_64_fastpath+0x1f/0xbe [ 52.177185] RIP: 0033:0x43ff79 [ 52.180342] RSP: 002b:00007ffd3fbf4388 EFLAGS: 00000217 ORIG_RAX: 000000000000002c [ 52.188034] RAX: ffffffffffffffda RBX: 00000000004002c8 RCX: 000000000043ff79 [ 52.195277] RDX: 0000000000000000 RSI: 0000000020fdbfc0 RDI: 0000000000000003 [ 52.202521] RBP: 0000000000000086 R08: 0000000020fdbff0 R09: 0000000000000010 [ 52.209764] R10: 0000000000000000 R11: 0000000000000217 R12: 00000000004018e0 [ 52.217001] R13: 0000000000401970 R14: 0000000000000000 R15: 0000000000000000 [ 52.224258] [ 52.225856] The buggy address belongs to the page: [ 52.230756] page:ffffea000744cfc0 count:0 mapcount:0 mapping: (null) index:0x0 [ 52.238871] flags: 0x200000000000000() [ 52.242730] raw: 0200000000000000 0000000000000000 0000000000000000 00000000ffffffff [ 52.250582] raw: 0000000000000000 0000000100000001 0000000000000000 0000000000000000 [ 52.258430] page dumped because: kasan: bad access detected [ 52.264108] [ 52.265706] Memory state around the buggy address: [ 52.270606] ffff8801d133f980: f2 f2 f2 f2 00 f2 f2 f2 f2 f2 f2 f2 00 00 00 f2 [ 52.277937] ffff8801d133fa00: f2 f2 f2 f2 00 00 00 00 f2 f2 f2 f2 00 00 00 00 [ 52.285265] >ffff8801d133fa80: 00 00 f2 f2 f2 f2 f2 f2 00 00 00 00 00 00 00 f2 [ 52.292593] ^ [ 52.299839] ffff8801d133fb00: f2 f2 f2 f2 00 00 00 00 00 00 00 00 00 f2 f2 f2 [ 52.307168] ffff8801d133fb80: f3 f3 f3 f3 00 00 00 00 00 00 00 00 00 00 f1 f1 [ 52.314495] ================================================================== [ 52.321825] Disabling lock debugging due to kernel taint [ 52.327344] Kernel panic - not syncing: panic_on_warn set ... [ 52.327344] [ 52.334708] CPU: 1 PID: 3003 Comm: syzkaller771389 Tainted: G B 4.13.0-rc6+ #52 [ 52.343256] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 52.352586] Call Trace: [ 52.355149] dump_stack+0x194/0x257 [ 52.358747] ? arch_local_irq_restore+0x53/0x53 [ 52.363390] ? trace_hardirqs_on_thunk+0x1a/0x1c [ 52.368124] ? xfrm_state_find+0x2fd0/0x3170 [ 52.372510] panic+0x1e4/0x417 [ 52.375679] ? __warn+0x1d9/0x1d9 [ 52.379108] ? xfrm_state_find+0x303d/0x3170 [ 52.383494] kasan_end_report+0x50/0x50 [ 52.387443] kasan_report+0x137/0x340 [ 52.391221] __asan_report_load4_noabort+0x14/0x20 [ 52.396136] xfrm_state_find+0x303d/0x3170 [ 52.400355] ? debug_check_no_locks_freed+0x3c0/0x3c0 [ 52.405530] ? xfrm_state_afinfo_get_rcu+0x160/0x160 [ 52.410614] ? find_held_lock+0x35/0x1d0 [ 52.414669] ? depot_save_stack+0x3b5/0x490 [ 52.418966] ? lock_downgrade+0x990/0x990 [ 52.423085] ? update_stack_state+0x700/0x700 [ 52.427556] ? do_raw_spin_trylock+0x190/0x190 [ 52.432117] ? __lock_acquire+0x6ef/0x3dc0 [ 52.436326] ? check_noncircular+0x20/0x20 [ 52.440536] ? trace_hardirqs_on+0xd/0x10 [ 52.444661] ? depot_save_stack+0x3b5/0x490 [ 52.448961] ? debug_check_no_locks_freed+0x3c0/0x3c0 [ 52.454131] ? kasan_kmalloc+0xad/0xe0 [ 52.457988] ? kasan_slab_alloc+0x12/0x20 [ 52.462110] ? find_held_lock+0x35/0x1d0 [ 52.466149] ? rt_add_uncached_list+0x1b7/0x240 [ 52.470788] ? lock_downgrade+0x990/0x990 [ 52.474907] xfrm_tmpl_resolve+0x309/0xbf0 [ 52.479122] ? __xfrm_dst_lookup+0x120/0x120 [ 52.483504] ? rt_add_uncached_list+0x1b7/0x240 [ 52.488146] ? ip_rt_bug+0x20/0x20 [ 52.491665] ? dst_init+0x4d9/0x6a0 [ 52.495259] ? check_noncircular+0x20/0x20 [ 52.499460] ? rt_set_nexthop.constprop.57+0x41d/0xfe0 [ 52.504711] ? get_page_from_freelist+0x2157/0x3430 [ 52.509711] xfrm_resolve_and_create_bundle+0x102/0x2080 [ 52.515145] ? rt_dst_alloc+0x40d/0x540 [ 52.519099] ? __xfrm_decode_session+0x100/0x100 [ 52.523822] ? xfrm_sk_policy_lookup+0x2a6/0x3d0 [ 52.528561] ? lock_downgrade+0x990/0x990 [ 52.532677] ? lock_release+0xa40/0xa40 [ 52.536620] ? refcount_inc_not_zero+0xfe/0x180 [ 52.541274] ? xfrm_selector_match+0x3b/0xe00 [ 52.545744] ? xfrm_sk_policy_lookup+0x2cf/0x3d0 [ 52.550471] ? xfrm_selector_match+0xe00/0xe00 [ 52.555039] xfrm_lookup+0xd39/0x11c0 [ 52.558813] ? xfrm_lookup+0xd39/0x11c0 [ 52.562758] ? xfrm_sk_policy_lookup+0x3d0/0x3d0 [ 52.567481] ? lock_release+0xa40/0xa40 [ 52.571423] ? find_held_lock+0x35/0x1d0 [ 52.575457] ? ip_route_output_key_hash+0x252/0x370 [ 52.580439] ? ip_route_output_key_hash_rcu+0x2bb0/0x2bb0 [ 52.585939] ? lock_release+0xa40/0xa40 [ 52.589882] xfrm_lookup_route+0x39/0x1a0 [ 52.593998] ip_route_output_flow+0x7c/0xa0 [ 52.598285] raw_sendmsg+0xc4b/0x38b0 [ 52.602054] ? pagevec_move_tail+0xb0/0x100 [ 52.606348] ? raw_setsockopt+0xd0/0xd0 [ 52.610294] ? mem_cgroup_charge_statistics+0x740/0x740 [ 52.615629] ? check_noncircular+0x20/0x20 [ 52.619832] ? lru_cache_add+0x1c7/0x3a0 [ 52.623857] ? lru_cache_add_file+0x20/0x20 [ 52.628148] ? check_noncircular+0x20/0x20 [ 52.632351] ? mark_held_locks+0xaf/0x100 [ 52.636468] ? find_held_lock+0x35/0x1d0 [ 52.640507] ? find_held_lock+0x35/0x1d0 [ 52.644535] ? __might_fault+0x110/0x1d0 [ 52.648562] ? sock_has_perm+0x29c/0x400 [ 52.652589] ? lock_downgrade+0x990/0x990 [ 52.656701] ? selinux_tun_dev_create+0xc0/0xc0 [ 52.661346] ? lock_release+0xa40/0xa40 [ 52.665286] ? check_same_owner+0x320/0x320 [ 52.669575] ? __check_object_size+0x25d/0x4f0 [ 52.674134] inet_sendmsg+0x11f/0x5e0 [ 52.677905] ? __might_sleep+0x95/0x190 [ 52.681846] ? inet_recvmsg+0x5f0/0x5f0 [ 52.685788] ? selinux_socket_sendmsg+0x36/0x40 [ 52.690425] ? security_socket_sendmsg+0x89/0xb0 [ 52.695147] ? inet_recvmsg+0x5f0/0x5f0 [ 52.699087] sock_sendmsg+0xca/0x110 [ 52.702766] SYSC_sendto+0x352/0x5a0 [ 52.706447] ? SYSC_connect+0x470/0x470 [ 52.710390] ? find_held_lock+0x35/0x1d0 [ 52.714426] ? lock_downgrade+0x990/0x990 [ 52.718544] ? handle_mm_fault+0x4a2/0x860 [ 52.722744] ? down_read_trylock+0xdb/0x170 [ 52.727041] ? entry_SYSCALL_64_fastpath+0x5/0xbe [ 52.731853] ? trace_hardirqs_on_caller+0x421/0x5c0 [ 52.736852] SyS_sendto+0x40/0x50 [ 52.740277] entry_SYSCALL_64_fastpath+0x1f/0xbe [ 52.745008] RIP: 0033:0x43ff79 [ 52.748164] RSP: 002b:00007ffd3fbf4388 EFLAGS: 00000217 ORIG_RAX: 000000000000002c [ 52.755838] RAX: ffffffffffffffda RBX: 00000000004002c8 RCX: 000000000043ff79 [ 52.763079] RDX: 0000000000000000 RSI: 0000000020fdbfc0 RDI: 0000000000000003 [ 52.770315] RBP: 0000000000000086 R08: 0000000020fdbff0 R09: 0000000000000010 [ 52.777551] R10: 0000000000000000 R11: 0000000000000217 R12: 00000000004018e0 [ 52.784801] R13: 0000000000401970 R14: 0000000000000000 R15: 0000000000000000 [ 52.792330] Dumping ftrace buffer: [ 52.795835] (ftrace buffer empty) [ 52.799511] Kernel Offset: disabled [ 52.803111] Rebooting in 86400 seconds..