================================================================== sctp: [Deprecated]: syz-executor3 (pid 5970) Use of struct sctp_assoc_value in delayed_ack socket option. Use struct sctp_sack_info instead BUG: KASAN: stack-out-of-bounds in xfrm_state_find+0x30de/0x3210 net/xfrm/xfrm_state.c:1051 Read of size 4 at addr ffff8801cb54faf8 by task syz-executor2/5956 syz-executor1: vmalloc: allocation failure: 17179382072 bytes, mode:0x14080c0(GFP_KERNEL|__GFP_ZERO), nodemask=(null) syz-executor1 cpuset=/ mems_allowed=0 CPU: 1 PID: 5979 Comm: syz-executor1 Not tainted 4.14.0-rc7+ #113 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 Call Trace: __dump_stack lib/dump_stack.c:17 [inline] dump_stack+0x194/0x257 lib/dump_stack.c:53 warn_alloc+0x1c2/0x2f0 mm/page_alloc.c:3254 __vmalloc_node_range+0x4f0/0x650 mm/vmalloc.c:1775 __vmalloc_node mm/vmalloc.c:1804 [inline] __vmalloc_node_flags_caller+0x50/0x60 mm/vmalloc.c:1826 kvmalloc_node+0x82/0xd0 mm/util.c:406 kvmalloc include/linux/mm.h:530 [inline] kvmalloc_array include/linux/mm.h:546 [inline] xt_alloc_entry_offsets+0x21/0x30 net/netfilter/x_tables.c:774 translate_table+0x235/0x1690 net/ipv6/netfilter/ip6_tables.c:705 do_replace net/ipv6/netfilter/ip6_tables.c:1168 [inline] do_ip6t_set_ctl+0x345/0x5c0 net/ipv6/netfilter/ip6_tables.c:1694 nf_sockopt net/netfilter/nf_sockopt.c:106 [inline] nf_setsockopt+0x67/0xc0 net/netfilter/nf_sockopt.c:115 ipv6_setsockopt+0x115/0x150 net/ipv6/ipv6_sockglue.c:927 tcp_setsockopt+0x82/0xd0 net/ipv4/tcp.c:2878 sock_common_setsockopt+0x95/0xd0 net/core/sock.c:2967 SYSC_setsockopt net/socket.c:1852 [inline] SyS_setsockopt+0x189/0x360 net/socket.c:1831 entry_SYSCALL_64_fastpath+0x1f/0xbe RIP: 0033:0x452869 RSP: 002b:00007f2fb483ebe8 EFLAGS: 00000212 ORIG_RAX: 0000000000000036 RAX: ffffffffffffffda RBX: 0000000000758020 RCX: 0000000000452869 RDX: 0000000000000040 RSI: 0000000000000029 RDI: 0000000000000013 RBP: 00000000000005a3 R08: 0000000000000004 R09: 0000000000000000 R10: 0000000020001fde R11: 0000000000000212 R12: 00000000006f67e8 R13: 00000000ffffffff R14: 00007f2fb483f6d4 R15: 0000000000000000 Mem-Info: active_anon:85909 inactive_anon:32 isolated_anon:0 active_file:5577 inactive_file:5589 isolated_file:0 unevictable:0 dirty:240 writeback:0 unstable:0 slab_reclaimable:7605 slab_unreclaimable:109415 mapped:21725 shmem:39 pagetables:806 bounce:0 free:1384134 free_pcp:610 free_cma:0 Node 0 active_anon:343636kB inactive_anon:128kB active_file:22308kB inactive_file:22356kB unevictable:0kB isolated(anon):0kB isolated(file):0kB mapped:86900kB dirty:960kB writeback:0kB shmem:156kB shmem_thp: 0kB shmem_pmdmapped: 0kB anon_thp: 59392kB writeback_tmp:0kB unstable:0kB all_unreclaimable? yes Node 0 DMA free:15908kB min:160kB low:200kB high:240kB active_anon:0kB inactive_anon:0kB active_file:0kB inactive_file:0kB unevictable:0kB writepending:0kB present:15992kB managed:15908kB mlocked:0kB kernel_stack:0kB pagetables:0kB bounce:0kB free_pcp:0kB local_pcp:0kB free_cma:0kB lowmem_reserve[]: 0 2884 6397 6397 Node 0 DMA32 free:2954744kB min:30396kB low:37992kB high:45588kB active_anon:0kB inactive_anon:0kB active_file:0kB inactive_file:0kB unevictable:0kB writepending:0kB present:3129332kB managed:2956164kB mlocked:0kB kernel_stack:0kB pagetables:0kB bounce:0kB free_pcp:1376kB local_pcp:668kB free_cma:0kB lowmem_reserve[]: 0 0 3513 3513 Node 0 Normal free:2565884kB min:37020kB low:46272kB high:55524kB active_anon:343636kB inactive_anon:128kB active_file:22308kB inactive_file:22356kB unevictable:0kB writepending:960kB present:4718592kB managed:3597452kB mlocked:0kB kernel_stack:4864kB pagetables:3224kB bounce:0kB free_pcp:1064kB local_pcp:556kB free_cma:0kB lowmem_reserve[]: 0 0 0 0 Node 0 DMA: 1*4kB (U) 0*8kB 0*16kB 1*32kB (U) 2*64kB (U) 1*128kB (U) 1*256kB (U) 0*512kB 1*1024kB (U) 1*2048kB (M) 3*4096kB (M) = 15908kB Node 0 DMA32: 10*4kB (UM) 8*8kB (UM) 11*16kB (UM) 7*32kB (U) 12*64kB (UM) 4*128kB (UM) 5*256kB (UM) 3*512kB (M) 3*1024kB (UM) 3*2048kB (UM) 718*4096kB (UM) = 2954744kB Node 0 Normal: 85*4kB (UM) 271*8kB (UME) 50*16kB (UME) 1765*32kB (UME) 1706*64kB (UM) 1228*128kB (UM) 365*256kB (UM) 156*512kB (UM) 78*1024kB (UM) 72*2048kB (UM) 449*4096kB (UM) = 2565900kB Node 0 hugepages_total=0 hugepages_free=0 hugepages_surp=0 hugepages_size=2048kB 11205 total pagecache pages 0 pages in swap cache Swap cache stats: add 0, delete 0, find 0/0 Free swap = 0kB Total swap = 0kB 1965979 pages RAM 0 pages HighMem/MovableOnly 323598 pages reserved syz-executor1: vmalloc: allocation failure: 17179382072 bytes, mode:0x14080c0(GFP_KERNEL|__GFP_ZERO), nodemask=(null) syz-executor1 cpuset=/ mems_allowed=0 CPU: 1 PID: 5979 Comm: syz-executor1 Not tainted 4.14.0-rc7+ #113 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 Call Trace: __dump_stack lib/dump_stack.c:17 [inline] dump_stack+0x194/0x257 lib/dump_stack.c:53 warn_alloc+0x1c2/0x2f0 mm/page_alloc.c:3254 __vmalloc_node_range+0x4f0/0x650 mm/vmalloc.c:1775 __vmalloc_node mm/vmalloc.c:1804 [inline] __vmalloc_node_flags_caller+0x50/0x60 mm/vmalloc.c:1826 kvmalloc_node+0x82/0xd0 mm/util.c:406 kvmalloc include/linux/mm.h:530 [inline] kvmalloc_array include/linux/mm.h:546 [inline] xt_alloc_entry_offsets+0x21/0x30 net/netfilter/x_tables.c:774 translate_table+0x235/0x1690 net/ipv6/netfilter/ip6_tables.c:705 do_replace net/ipv6/netfilter/ip6_tables.c:1168 [inline] do_ip6t_set_ctl+0x345/0x5c0 net/ipv6/netfilter/ip6_tables.c:1694 nf_sockopt net/netfilter/nf_sockopt.c:106 [inline] nf_setsockopt+0x67/0xc0 net/netfilter/nf_sockopt.c:115 ipv6_setsockopt+0x115/0x150 net/ipv6/ipv6_sockglue.c:927 tcp_setsockopt+0x82/0xd0 net/ipv4/tcp.c:2878 sock_common_setsockopt+0x95/0xd0 net/core/sock.c:2967 SYSC_setsockopt net/socket.c:1852 [inline] SyS_setsockopt+0x189/0x360 net/socket.c:1831 entry_SYSCALL_64_fastpath+0x1f/0xbe RIP: 0033:0x452869 RSP: 002b:00007f2fb483ebe8 EFLAGS: 00000212 ORIG_RAX: 0000000000000036 RAX: ffffffffffffffda RBX: 0000000000758020 RCX: 0000000000452869 RDX: 0000000000000040 RSI: 0000000000000029 RDI: 0000000000000014 RBP: 00000000000005a3 R08: 0000000000000004 R09: 0000000000000000 R10: 0000000020001fde R11: 0000000000000212 R12: 00000000006f67e8 R13: 00000000ffffffff R14: 00007f2fb483f6d4 R15: 0000000000000000 syz-executor1: vmalloc: allocation failure: 17179382072 bytes, mode:0x14080c0(GFP_KERNEL|__GFP_ZERO), nodemask=(null) syz-executor1 cpuset=/ mems_allowed=0 CPU: 1 PID: 5991 Comm: syz-executor1 Not tainted 4.14.0-rc7+ #113 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 Call Trace: __dump_stack lib/dump_stack.c:17 [inline] dump_stack+0x194/0x257 lib/dump_stack.c:53 warn_alloc+0x1c2/0x2f0 mm/page_alloc.c:3254 __vmalloc_node_range+0x4f0/0x650 mm/vmalloc.c:1775 __vmalloc_node mm/vmalloc.c:1804 [inline] __vmalloc_node_flags_caller+0x50/0x60 mm/vmalloc.c:1826 kvmalloc_node+0x82/0xd0 mm/util.c:406 kvmalloc include/linux/mm.h:530 [inline] kvmalloc_array include/linux/mm.h:546 [inline] xt_alloc_entry_offsets+0x21/0x30 net/netfilter/x_tables.c:774 translate_table+0x235/0x1690 net/ipv6/netfilter/ip6_tables.c:705 do_replace net/ipv6/netfilter/ip6_tables.c:1168 [inline] do_ip6t_set_ctl+0x345/0x5c0 net/ipv6/netfilter/ip6_tables.c:1694 nf_sockopt net/netfilter/nf_sockopt.c:106 [inline] nf_setsockopt+0x67/0xc0 net/netfilter/nf_sockopt.c:115 ipv6_setsockopt+0x115/0x150 net/ipv6/ipv6_sockglue.c:927 tcp_setsockopt+0x82/0xd0 net/ipv4/tcp.c:2878 sock_common_setsockopt+0x95/0xd0 net/core/sock.c:2967 SYSC_setsockopt net/socket.c:1852 [inline] SyS_setsockopt+0x189/0x360 net/socket.c:1831 entry_SYSCALL_64_fastpath+0x1f/0xbe RIP: 0033:0x452869 RSP: 002b:00007f2fb481dbe8 EFLAGS: 00000212 ORIG_RAX: 0000000000000036 RAX: ffffffffffffffda RBX: 00000000007580d8 RCX: 0000000000452869 RDX: 0000000000000040 RSI: 0000000000000029 RDI: 0000000000000013 RBP: 00000000000005b8 R08: 0000000000000004 R09: 0000000000000000 R10: 0000000020001fde R11: 0000000000000212 R12: 00000000006f69e0 R13: 00000000ffffffff R14: 00007f2fb481e6d4 R15: 0000000000000002 CPU: 0 PID: 5956 Comm: syz-executor2 Not tainted 4.14.0-rc7+ #113 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 Call Trace: __dump_stack lib/dump_stack.c:17 [inline] dump_stack+0x194/0x257 lib/dump_stack.c:53 print_address_description+0x73/0x250 mm/kasan/report.c:252 kasan_report_error mm/kasan/report.c:351 [inline] kasan_report+0x25b/0x340 mm/kasan/report.c:409 __asan_report_load4_noabort+0x14/0x20 mm/kasan/report.c:429 xfrm_state_find+0x30de/0x3210 net/xfrm/xfrm_state.c:1051 xfrm_tmpl_resolve_one net/xfrm/xfrm_policy.c:1387 [inline] xfrm_tmpl_resolve+0x309/0xc00 net/xfrm/xfrm_policy.c:1431 xfrm_resolve_and_create_bundle+0x186/0x24a0 net/xfrm/xfrm_policy.c:1829 xfrm_lookup+0x1574/0x23f0 net/xfrm/xfrm_policy.c:2139 xfrm_lookup_route+0x39/0x1a0 net/xfrm/xfrm_policy.c:2257 ip_route_output_flow+0x7c/0xa0 net/ipv4/route.c:2555 raw_sendmsg+0xc4f/0x3920 net/ipv4/raw.c:633 inet_sendmsg+0x11f/0x5e0 net/ipv4/af_inet.c:763 sock_sendmsg_nosec net/socket.c:633 [inline] sock_sendmsg+0xca/0x110 net/socket.c:643 SYSC_sendto+0x352/0x5a0 net/socket.c:1750 SyS_sendto+0x40/0x50 net/socket.c:1718 entry_SYSCALL_64_fastpath+0x1f/0xbe RIP: 0033:0x452869 RSP: 002b:00007fc501718be8 EFLAGS: 00000212 ORIG_RAX: 000000000000002c RAX: ffffffffffffffda RBX: 0000000000758020 RCX: 0000000000452869 RDX: 0000000000000000 RSI: 0000000020859000 RDI: 0000000000000017 RBP: 00000000000005a1 R08: 0000000020c24000 R09: 0000000000000010 R10: fffffffffffffffe R11: 0000000000000212 R12: 00000000006f67b8 R13: 00000000ffffffff R14: 00007fc5017196d4 R15: 0000000000000000 The buggy address belongs to the page: page:ffffea00072d53c0 count:0 mapcount:0 mapping: (null) index:0x0 flags: 0x2fffc0000000000() raw: 02fffc0000000000 0000000000000000 0000000000000000 00000000ffffffff raw: 0000000000000000 0000000100000001 0000000000000000 0000000000000000 page dumped because: kasan: bad access detected Memory state around the buggy address: ffff8801cb54f980: f2 f2 f2 f2 00 f2 f2 f2 f2 f2 f2 f2 00 00 00 f2 ffff8801cb54fa00: f2 f2 f2 f2 00 00 00 00 f2 f2 f2 f2 00 00 00 00 >ffff8801cb54fa80: 00 00 f2 f2 f2 f2 f2 f2 00 00 00 00 00 00 00 f2 ^ ffff8801cb54fb00: f2 f2 f2 f2 00 00 00 00 00 00 00 00 00 f2 f2 f2 ffff8801cb54fb80: f3 f3 f3 f3 00 00 00 00 00 00 00 00 00 00 f1 f1 ==================================================================