[....] 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: [ 23.829718] random: sshd: uninitialized urandom read (32 bytes read) [ 24.255604] audit: type=1400 audit(1538213913.648:6): avc: denied { map } for pid=1767 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 [ 24.307143] random: sshd: uninitialized urandom read (32 bytes read) [ 24.804431] random: sshd: uninitialized urandom read (32 bytes read) [ 24.961475] random: sshd: uninitialized urandom read (32 bytes read) Warning: Permanently added '10.128.0.57' (ECDSA) to the list of known hosts. [ 30.433766] random: sshd: uninitialized urandom read (32 bytes read) [ 30.519972] audit: type=1400 audit(1538213919.908:7): avc: denied { map } for pid=1779 comm="syz-executor425" path="/root/syz-executor425061861" 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 [ 30.532110] ================================================================== [ 30.532130] BUG: KASAN: stack-out-of-bounds in xfrm_state_find+0x27f9/0x2880 [ 30.532134] Read of size 4 at addr ffff8801d07e7680 by task syz-executor425/1779 [ 30.532135] [ 30.532152] CPU: 1 PID: 1779 Comm: syz-executor425 Not tainted 4.14.72+ #11 [ 30.532154] Call Trace: [ 30.532163] dump_stack+0xb9/0x11b [ 30.532173] print_address_description+0x60/0x22b [ 30.532180] kasan_report.cold.6+0x11b/0x2dd [ 30.532184] ? xfrm_state_find+0x27f9/0x2880 [ 30.532190] xfrm_state_find+0x27f9/0x2880 [ 30.532204] ? xfrm_state_afinfo_get_rcu+0xb0/0xb0 [ 30.532212] ? __lock_acquire+0x619/0x4320 [ 30.532216] ? trace_hardirqs_on+0x10/0x10 [ 30.532222] ? deref_stack_reg+0xa8/0xe0 [ 30.532226] ? __read_once_size_nocheck.constprop.4+0x10/0x10 [ 30.532235] ? trace_hardirqs_on+0x10/0x10 [ 30.532238] ? unwind_next_frame+0xea9/0x1930 [ 30.532246] xfrm_tmpl_resolve_one+0x1c6/0x7f0 [ 30.532257] ? xfrm_expand_policies.constprop.13+0x280/0x280 [ 30.532264] ? __lock_acquire+0x619/0x4320 [ 30.532267] ? lock_acquire+0x10f/0x380 [ 30.532274] ? depot_save_stack+0x17f/0x428 [ 30.532281] xfrm_resolve_and_create_bundle+0x21a/0x2550 [ 30.532288] ? trace_hardirqs_on+0x10/0x10 [ 30.532295] ? dst_alloc+0xb1/0x1a0 [ 30.532304] ? xfrm_tmpl_resolve_one+0x7f0/0x7f0 [ 30.532310] ? trace_hardirqs_on+0x10/0x10 [ 30.532314] ? do_syscall_64+0x19b/0x4b0 [ 30.532320] ? entry_SYSCALL_64_after_hwframe+0x42/0xb7 [ 30.532327] ? xfrm_sk_policy_lookup+0x2ae/0x3b0 [ 30.532331] ? lock_downgrade+0x560/0x560 [ 30.532335] ? lock_acquire+0x10f/0x380 [ 30.532341] ? check_preemption_disabled+0x34/0x160 [ 30.532345] ? check_preemption_disabled+0x34/0x160 [ 30.532352] ? xfrm_sk_policy_lookup+0x2d5/0x3b0 [ 30.532360] ? xfrm_lookup_with_ifid+0x246/0x1870 [ 30.532364] xfrm_lookup_with_ifid+0x246/0x1870 [ 30.532371] ? xfrm_policy_lookup_bytype.constprop.15+0x1250/0x1250 [ 30.532377] ? trace_hardirqs_on_caller+0x381/0x520 [ 30.532384] ? rt_set_nexthop.constprop.14+0x242/0xc30 [ 30.532391] ? ip_route_output_key_hash+0x1c3/0x2d0 [ 30.532396] ? lock_downgrade+0x560/0x560 [ 30.532399] ? lock_acquire+0x10f/0x380 [ 30.532404] ? check_preemption_disabled+0x34/0x160 [ 30.532412] ? ip_route_output_key_hash+0x1ea/0x2d0 [ 30.532417] ? ip_route_output_key_hash_rcu+0x21a0/0x21a0 [ 30.532425] xfrm_lookup_route+0x37/0x1b0 [ 30.532431] ip_route_output_flow+0x86/0xa0 [ 30.532438] udp_sendmsg+0x1377/0x1da0 [ 30.532445] ? ip_reply_glue_bits+0xa0/0xa0 [ 30.532453] ? udp_v4_get_port+0xf0/0xf0 [ 30.532457] ? trace_hardirqs_on+0x10/0x10 [ 30.532477] ? trace_hardirqs_on+0x10/0x10 [ 30.532493] udpv6_sendmsg+0x125f/0x2510 [ 30.532504] ? udp_v6_flush_pending_frames+0xd0/0xd0 [ 30.532508] ? udp_lib_get_port+0x6b1/0x15a0 [ 30.532517] ? reacquire_held_locks+0xb5/0x3e0 [ 30.532522] ? release_sock+0x1b/0x1b0 [ 30.532534] ? inet_autobind+0x121/0x180 [ 30.532539] ? lock_downgrade+0x560/0x560 [ 30.532547] ? __local_bh_enable_ip+0x65/0xb0 [ 30.532552] ? trace_hardirqs_on_caller+0x381/0x520 [ 30.532559] ? inet_sendmsg+0x168/0x540 [ 30.532562] inet_sendmsg+0x168/0x540 [ 30.532568] ? inet_recvmsg+0x560/0x560 [ 30.532573] sock_sendmsg+0xb5/0x100 [ 30.532579] ___sys_sendmsg+0x41d/0x890 [ 30.532586] ? copy_msghdr_from_user+0x3b0/0x3b0 [ 30.532592] ? trace_hardirqs_on+0x10/0x10 [ 30.532606] ? avc_has_perm+0x150/0x390 [ 30.532610] ? lock_downgrade+0x560/0x560 [ 30.532614] ? lock_acquire+0x10f/0x380 [ 30.532626] ? avc_has_perm_noaudit+0x300/0x300 [ 30.532633] ? __handle_mm_fault+0xd82/0x23a0 [ 30.532639] ? __fget_light+0x163/0x1f0 [ 30.532647] __sys_sendmmsg+0x13d/0x360 [ 30.532653] ? SyS_sendmsg+0x40/0x40 [ 30.532657] ? sock_has_perm+0x1cb/0x260 [ 30.532661] ? selinux_tun_dev_create+0xb0/0xb0 [ 30.532667] ? vm_insert_page+0x6d0/0x6d0 [ 30.532670] ? check_preemption_disabled+0x34/0x160 [ 30.532681] ? ipv6_setsockopt+0x60/0x130 [ 30.532687] ? udpv6_setsockopt+0x4c/0x90 [ 30.532692] ? SyS_setsockopt+0x152/0x220 [ 30.532697] ? SyS_recv+0x40/0x40 [ 30.532703] ? up_read+0x17/0x30 [ 30.532707] ? __do_page_fault+0x64c/0xb60 [ 30.532715] SyS_sendmmsg+0x2f/0x50 [ 30.532720] ? __sys_sendmmsg+0x360/0x360 [ 30.532724] do_syscall_64+0x19b/0x4b0 [ 30.532731] entry_SYSCALL_64_after_hwframe+0x42/0xb7 [ 30.532735] RIP: 0033:0x4403f9 [ 30.532737] RSP: 002b:00007ffce6930178 EFLAGS: 00000217 ORIG_RAX: 0000000000000133 [ 30.532742] RAX: ffffffffffffffda RBX: 00000000004002c8 RCX: 00000000004403f9 [ 30.532745] RDX: 0000000000000001 RSI: 0000000020000a80 RDI: 0000000000000003 [ 30.532748] RBP: 00000000006ca018 R08: 00000000004002c8 R09: 00000000004002c8 [ 30.532750] R10: 0000000000000000 R11: 0000000000000217 R12: 0000000000401c80 [ 30.532752] R13: 0000000000401d10 R14: 0000000000000000 R15: 0000000000000000 [ 30.532763] [ 30.532764] The buggy address belongs to the page: [ 30.532768] page:ffffea000741f9c0 count:0 mapcount:0 mapping: (null) index:0x0 [ 30.532772] flags: 0x4000000000000000() [ 30.532777] raw: 4000000000000000 0000000000000000 0000000000000000 00000000ffffffff [ 30.532782] raw: 0000000000000000 ffffea000741f9e0 0000000000000000 0000000000000000 [ 30.532784] page dumped because: kasan: bad access detected [ 30.532785] [ 30.532786] Memory state around the buggy address: [ 30.532789] ffff8801d07e7580: 00 00 00 00 00 f1 f1 f1 f1 00 f2 f2 f2 f2 f2 f2 [ 30.532792] ffff8801d07e7600: f2 00 00 00 00 f2 f2 f2 f2 00 00 00 00 00 00 00 [ 30.532795] >ffff8801d07e7680: f2 f2 f2 f2 f2 00 00 00 00 00 00 00 00 00 f2 f2 [ 30.532797] ^ [ 30.532800] ffff8801d07e7700: f2 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 30.532802] ffff8801d07e7780: 00 00 00 00 00 00 00 00 00 00 f1 f1 f1 f1 00 f2 [ 30.532804] ================================================================== [ 30.532805] Disabling lock debugging due to kernel taint [ 30.532808] Kernel panic - not syncing: panic_on_warn set ... [ 30.532808] [ 30.532811] CPU: 1 PID: 1779 Comm: syz-executor425 Tainted: G B 4.14.72+ #11 [ 30.532813] Call Trace: [ 30.532817] dump_stack+0xb9/0x11b [ 30.532821] panic+0x1bf/0x3a4 [ 30.532825] ? add_taint.cold.4+0x16/0x16 [ 30.532833] kasan_end_report+0x43/0x49 [ 30.532837] kasan_report.cold.6+0x77/0x2dd [ 30.532840] ? xfrm_state_find+0x27f9/0x2880 [ 30.532845] xfrm_state_find+0x27f9/0x2880 [ 30.532853] ? xfrm_state_afinfo_get_rcu+0xb0/0xb0 [ 30.532857] ? __lock_acquire+0x619/0x4320 [ 30.532860] ? trace_hardirqs_on+0x10/0x10 [ 30.532864] ? deref_stack_reg+0xa8/0xe0 [ 30.532868] ? __read_once_size_nocheck.constprop.4+0x10/0x10 [ 30.532873] ? trace_hardirqs_on+0x10/0x10 [ 30.532876] ? unwind_next_frame+0xea9/0x1930 [ 30.532881] xfrm_tmpl_resolve_one+0x1c6/0x7f0 [ 30.532888] ? xfrm_expand_policies.constprop.13+0x280/0x280 [ 30.532893] ? __lock_acquire+0x619/0x4320 [ 30.532896] ? lock_acquire+0x10f/0x380 [ 30.532900] ? depot_save_stack+0x17f/0x428 [ 30.532905] xfrm_resolve_and_create_bundle+0x21a/0x2550 [ 30.532910] ? trace_hardirqs_on+0x10/0x10 [ 30.532914] ? dst_alloc+0xb1/0x1a0 [ 30.532920] ? xfrm_tmpl_resolve_one+0x7f0/0x7f0 [ 30.532924] ? trace_hardirqs_on+0x10/0x10 [ 30.532927] ? do_syscall_64+0x19b/0x4b0 [ 30.532930] ? entry_SYSCALL_64_after_hwframe+0x42/0xb7 [ 30.532935] ? xfrm_sk_policy_lookup+0x2ae/0x3b0 [ 30.532939] ? lock_downgrade+0x560/0x560 [ 30.532942] ? lock_acquire+0x10f/0x380 [ 30.532946] ? check_preemption_disabled+0x34/0x160 [ 30.532950] ? check_preemption_disabled+0x34/0x160 [ 30.532955] ? xfrm_sk_policy_lookup+0x2d5/0x3b0 [ 30.532960] ? xfrm_lookup_with_ifid+0x246/0x1870 [ 30.532963] xfrm_lookup_with_ifid+0x246/0x1870 [ 30.532968] ? xfrm_policy_lookup_bytype.constprop.15+0x1250/0x1250 [ 30.532973] ? trace_hardirqs_on_caller+0x381/0x520 [ 30.532977] ? rt_set_nexthop.constprop.14+0x242/0xc30 [ 30.532982] ? ip_route_output_key_hash+0x1c3/0x2d0 [ 30.532987] ? lock_downgrade+0x560/0x560 [ 30.532990] ? lock_acquire+0x10f/0x380 [ 30.532995] ? check_preemption_disabled+0x34/0x160 [ 30.533000] ? ip_route_output_key_hash+0x1ea/0x2d0 [ 30.533004] ? ip_route_output_key_hash_rcu+0x21a0/0x21a0 [ 30.533009] xfrm_lookup_route+0x37/0x1b0 [ 30.533014] ip_route_output_flow+0x86/0xa0 [ 30.533018] udp_sendmsg+0x1377/0x1da0 [ 30.533023] ? ip_reply_glue_bits+0xa0/0xa0 [ 30.533029] ? udp_v4_get_port+0xf0/0xf0 [ 30.533032] ? trace_hardirqs_on+0x10/0x10 [ 30.533043] ? trace_hardirqs_on+0x10/0x10 [ 30.533048] udpv6_sendmsg+0x125f/0x2510 [ 30.533055] ? udp_v6_flush_pending_frames+0xd0/0xd0 [ 30.533059] ? udp_lib_get_port+0x6b1/0x15a0 [ 30.533065] ? reacquire_held_locks+0xb5/0x3e0 [ 30.533068] ? release_sock+0x1b/0x1b0 [ 30.533075] ? inet_autobind+0x121/0x180 [ 30.533079] ? lock_downgrade+0x560/0x560 [ 30.533084] ? __local_bh_enable_ip+0x65/0xb0 [ 30.533088] ? trace_hardirqs_on_caller+0x381/0x520 [ 30.533092] ? inet_sendmsg+0x168/0x540 [ 30.533096] inet_sendmsg+0x168/0x540 [ 30.533100] ? inet_recvmsg+0x560/0x560 [ 30.533103] sock_sendmsg+0xb5/0x100 [ 30.533107] ___sys_sendmsg+0x41d/0x890 [ 30.533113] ? copy_msghdr_from_user+0x3b0/0x3b0 [ 30.533117] ? trace_hardirqs_on+0x10/0x10 [ 30.533124] ? avc_has_perm+0x150/0x390 [ 30.533127] ? lock_downgrade+0x560/0x560 [ 30.533130] ? lock_acquire+0x10f/0x380 [ 30.533146] ? avc_has_perm_noaudit+0x300/0x300 [ 30.533150] ? __handle_mm_fault+0xd82/0x23a0 [ 30.533154] ? __fget_light+0x163/0x1f0 [ 30.533160] __sys_sendmmsg+0x13d/0x360 [ 30.533164] ? SyS_sendmsg+0x40/0x40 [ 30.533167] ? sock_has_perm+0x1cb/0x260 [ 30.533171] ? selinux_tun_dev_create+0xb0/0xb0 [ 30.533175] ? vm_insert_page+0x6d0/0x6d0 [ 30.533178] ? check_preemption_disabled+0x34/0x160 [ 30.533185] ? ipv6_setsockopt+0x60/0x130 [ 30.533190] ? udpv6_setsockopt+0x4c/0x90 [ 30.533194] ? SyS_setsockopt+0x152/0x220 [ 30.533198] ? SyS_recv+0x40/0x40 [ 30.533202] ? up_read+0x17/0x30 [ 30.533205] ? __do_page_fault+0x64c/0xb60 [ 30.533211] SyS_sendmmsg+0x2f/0x50 [ 30.533214] ? __sys_sendmmsg+0x360/0x360 [ 30.533218] do_syscall_64+0x19b/0x4b0 [ 30.533223] entry_SYSCALL_64_after_hwframe+0x42/0xb7 [ 30.533226] RIP: 0033:0x4403f9 [ 30.533228] RSP: 002b:00007ffce6930178 EFLAGS: 00000217 ORIG_RAX: 0000000000000133 [ 30.533231] RAX: ffffffffffffffda RBX: 00000000004002c8 RCX: 00000000004403f9 [ 30.533233] RDX: 0000000000000001 RSI: 0000000020000a80 RDI: 0000000000000003 [ 30.533236] RBP: 00000000006ca018 R08: 00000000004002c8 R09: 00000000004002c8 [ 30.533238] R10: 0000000000000000 R11: 0000000000000217 R12: 0000000000401c80 [ 30.533240] R13: 0000000000401d10 R14: 0000000000000000 R15: 0000000000000000 [ 30.546544] Kernel Offset: 0x31800000 from 0xffffffff81000000 (relocation range: 0xffffffff80000000-0xffffffffbfffffff) [ 31.562737] Rebooting in 86400 seconds..