BUG: sleeping function called from invalid context at ./include/linux/uaccess.h:71 in_atomic(): 1, irqs_disabled(): 0, pid: 6842, name: syz-executor3 2 locks held by syz-executor3/6842: #0: (&vcpu->mutex){+.+.}, at: [] vcpu_load+0x1c/0x70 arch/x86/kvm/../../../virt/kvm/kvm_main.c:154 #1: (&kvm->srcu){....}, at: [] vcpu_enter_guest arch/x86/kvm/x86.c:7021 [inline] #1: (&kvm->srcu){....}, at: [] vcpu_run arch/x86/kvm/x86.c:7100 [inline] #1: (&kvm->srcu){....}, at: [] kvm_arch_vcpu_ioctl_run+0x1bdd/0x5a30 arch/x86/kvm/x86.c:7261 CPU: 0 PID: 6842 Comm: syz-executor3 Not tainted 4.13.0-next-20170906+ #16 Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS Bochs 01/01/2011 Call Trace: __dump_stack lib/dump_stack.c:16 [inline] dump_stack+0x194/0x257 lib/dump_stack.c:52 ___might_sleep+0x2b2/0x470 kernel/sched/core.c:6012 __might_sleep+0x95/0x190 kernel/sched/core.c:5965 __might_fault+0xab/0x1d0 mm/memory.c:4499 __copy_from_user include/linux/uaccess.h:71 [inline] paging32_walk_addr_generic+0x427/0x1d80 arch/x86/kvm/paging_tmpl.h:369 paging32_walk_addr arch/x86/kvm/paging_tmpl.h:475 [inline] paging32_gva_to_gpa+0xa5/0x230 arch/x86/kvm/paging_tmpl.h:913 kvm_read_guest_virt_helper+0xd8/0x140 arch/x86/kvm/x86.c:4436 kvm_read_guest_virt_system+0x3c/0x50 arch/x86/kvm/x86.c:4503 segmented_read_std+0x10c/0x180 arch/x86/kvm/emulate.c:822 em_fxrstor+0x27b/0x410 arch/x86/kvm/emulate.c:4025 x86_emulate_insn+0x55d/0x3cf0 arch/x86/kvm/emulate.c:5483 x86_emulate_instruction+0x411/0x1ca0 arch/x86/kvm/x86.c:5735 kvm_mmu_page_fault+0x1b0/0x2f0 arch/x86/kvm/mmu.c:4956 handle_ept_violation+0x194/0x540 arch/x86/kvm/vmx.c:6502 vmx_handle_exit+0x24b/0x1a60 arch/x86/kvm/vmx.c:8823 vcpu_enter_guest arch/x86/kvm/x86.c:7038 [inline] vcpu_run arch/x86/kvm/x86.c:7100 [inline] kvm_arch_vcpu_ioctl_run+0x1d36/0x5a30 arch/x86/kvm/x86.c:7261 kvm_vcpu_ioctl+0x64c/0x1010 arch/x86/kvm/../../../virt/kvm/kvm_main.c:2550 vfs_ioctl fs/ioctl.c:45 [inline] do_vfs_ioctl+0x1b1/0x1530 fs/ioctl.c:685 SYSC_ioctl fs/ioctl.c:700 [inline] SyS_ioctl+0x8f/0xc0 fs/ioctl.c:691 entry_SYSCALL_64_fastpath+0x1f/0xbe RIP: 0033:0x447299 RSP: 002b:00007f27a2df6c08 EFLAGS: 00000296 ORIG_RAX: 0000000000000010 RAX: ffffffffffffffda RBX: 0000000000000018 RCX: 0000000000447299 RDX: 0000000000000000 RSI: 000000000000ae80 RDI: 0000000000000018 RBP: 0000000000000082 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000296 R12: 0000000000000019 R13: 0000000000005790 R14: 00000000006e8850 R15: 0000000000000018 QAT: Invalid ioctl QAT: Invalid ioctl syz-executor1: vmalloc: allocation failure: 4833356120 bytes, mode:0x14080c0(GFP_KERNEL|__GFP_ZERO), nodemask=(null) syz-executor1 cpuset=/ mems_allowed=0-1 CPU: 3 PID: 6989 Comm: syz-executor1 Tainted: G W 4.13.0-next-20170906+ #16 Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS Bochs 01/01/2011 Call Trace: __dump_stack lib/dump_stack.c:16 [inline] dump_stack+0x194/0x257 lib/dump_stack.c:52 warn_alloc+0x1c2/0x2f0 mm/page_alloc.c:3257 __vmalloc_node_range+0x599/0x730 mm/vmalloc.c:1781 __vmalloc_node mm/vmalloc.c:1810 [inline] __vmalloc_node_flags_caller+0x50/0x60 mm/vmalloc.c:1832 kvmalloc_node+0x82/0xd0 mm/util.c:406 kvmalloc include/linux/mm.h:529 [inline] kvmalloc_array include/linux/mm.h:545 [inline] xt_alloc_entry_offsets+0x21/0x30 net/netfilter/x_tables.c:774 translate_table+0x235/0x1610 net/ipv4/netfilter/ip_tables.c:686 do_replace net/ipv4/netfilter/ip_tables.c:1129 [inline] do_ipt_set_ctl+0x34b/0x5c0 net/ipv4/netfilter/ip_tables.c:1663 nf_sockopt net/netfilter/nf_sockopt.c:105 [inline] nf_setsockopt+0x67/0xc0 net/netfilter/nf_sockopt.c:114 ip_setsockopt+0xa1/0xb0 net/ipv4/ip_sockglue.c:1251 tcp_setsockopt+0x82/0xd0 net/ipv4/tcp.c:2799 sock_common_setsockopt+0x95/0xd0 net/core/sock.c:2960 SYSC_setsockopt net/socket.c:1852 [inline] SyS_setsockopt+0x189/0x360 net/socket.c:1831 entry_SYSCALL_64_fastpath+0x1f/0xbe RIP: 0033:0x447299 RSP: 002b:00007f1c62840c08 EFLAGS: 00000292 ORIG_RAX: 0000000000000036 RAX: ffffffffffffffda RBX: 0000000000000016 RCX: 0000000000447299 RDX: 0000000000000040 RSI: 0000000000000000 RDI: 0000000000000016 RBP: 0000000000000082 R08: 0000000000000056 R09: 0000000000000000 R10: 0000000020006000 R11: 0000000000000292 R12: 0000000000000000 R13: 0000000000000000 R14: 00007f1c628419c0 R15: 00007f1c62841700 warn_alloc_show_mem: 1 callbacks suppressed Mem-Info: active_anon:102486 inactive_anon:43 isolated_anon:0 active_file:3481 inactive_file:4248 isolated_file:0 unevictable:0 dirty:177 writeback:0 unstable:0 slab_reclaimable:6269 slab_unreclaimable:37119 mapped:20615 shmem:58 pagetables:835 bounce:0 free:238680 free_pcp:1089 free_cma:0 Node 0 active_anon:122208kB inactive_anon:88kB active_file:6904kB inactive_file:11864kB unevictable:0kB isolated(anon):0kB isolated(file):0kB mapped:44260kB dirty:140kB writeback:0kB shmem:128kB shmem_thp: 0kB shmem_pmdmapped: 0kB anon_thp: 24576kB writeback_tmp:0kB unstable:0kB all_unreclaimable? no Node 1 active_anon:294136kB inactive_anon:84kB active_file:7020kB inactive_file:5128kB unevictable:0kB isolated(anon):0kB isolated(file):0kB mapped:38160kB dirty:568kB writeback:0kB shmem:104kB shmem_thp: 0kB shmem_pmdmapped: 0kB anon_thp: 14336kB writeback_tmp:0kB unstable:0kB all_unreclaimable? no sctp: [Deprecated]: syz-executor0 (pid 7009) Use of int in maxseg socket option. Use struct sctp_assoc_value instead Node 0 DMA free:15908kB min:640kB low:800kB high:960kB 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 886 886 886 Node 0 DMA32 free:590408kB min:36536kB low:45668kB high:54800kB active_anon:132532kB inactive_anon:88kB active_file:6904kB inactive_file:16332kB unevictable:0kB writepending:140kB present:1032192kB managed:909848kB mlocked:0kB kernel_stack:3264kB pagetables:1824kB bounce:0kB free_pcp:2128kB local_pcp:220kB free_cma:0kB lowmem_reserve[]: 0 0 0 0 Node 1 DMA32 free:321788kB min:30404kB low:38004kB high:45604kB active_anon:304344kB inactive_anon:84kB active_file:7020kB inactive_file:9600kB unevictable:0kB writepending:588kB present:1048560kB managed:755216kB mlocked:0kB kernel_stack:2112kB pagetables:1548kB bounce:0kB free_pcp:2136kB local_pcp:724kB 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: 213*4kB (UME) 44*8kB (UME) 15*16kB (UME) 771*32kB (UME) 486*64kB (UM) 148*128kB (UME) 22*256kB (UME) 4*512kB (UME) 9*1024kB (UM) 5*2048kB (M) 121*4096kB (UM) = 598916kB Node 1 DMA32: 87*4kB (UME) 332*8kB (UME) 349*16kB (UME) 231*32kB (UME) 243*64kB (UM) 136*128kB (UME) 55*256kB (UM) 10*512kB (UME) 9*1024kB (UME) 2*2048kB (UM) 61*4096kB (UM) = 331308kB Node 0 hugepages_total=0 hugepages_free=0 hugepages_surp=0 hugepages_size=2048kB Node 1 hugepages_total=0 hugepages_free=0 hugepages_surp=0 hugepages_size=2048kB 7660 total pagecache pages 0 pages in swap cache Swap cache stats: add 0, delete 0, find 0/0 Free swap = 0kB Total swap = 0kB 524186 pages RAM 0 pages HighMem/MovableOnly 103943 pages reserved syz-executor1: vmalloc: allocation failure: 4833356120 bytes, mode:0x14080c0(GFP_KERNEL|__GFP_ZERO), nodemask=(null) syz-executor1 cpuset=/ mems_allowed=0-1 CPU: 0 PID: 6989 Comm: syz-executor1 Tainted: G W 4.13.0-next-20170906+ #16 Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS Bochs 01/01/2011 Call Trace: __dump_stack lib/dump_stack.c:16 [inline] dump_stack+0x194/0x257 lib/dump_stack.c:52 warn_alloc+0x1c2/0x2f0 mm/page_alloc.c:3257 __vmalloc_node_range+0x599/0x730 mm/vmalloc.c:1781 __vmalloc_node mm/vmalloc.c:1810 [inline] __vmalloc_node_flags_caller+0x50/0x60 mm/vmalloc.c:1832 kvmalloc_node+0x82/0xd0 mm/util.c:406 kvmalloc include/linux/mm.h:529 [inline] kvmalloc_array include/linux/mm.h:545 [inline] xt_alloc_entry_offsets+0x21/0x30 net/netfilter/x_tables.c:774 translate_table+0x235/0x1610 net/ipv4/netfilter/ip_tables.c:686 do_replace net/ipv4/netfilter/ip_tables.c:1129 [inline] do_ipt_set_ctl+0x34b/0x5c0 net/ipv4/netfilter/ip_tables.c:1663 nf_sockopt net/netfilter/nf_sockopt.c:105 [inline] nf_setsockopt+0x67/0xc0 net/netfilter/nf_sockopt.c:114 ip_setsockopt+0xa1/0xb0 net/ipv4/ip_sockglue.c:1251 tcp_setsockopt+0x82/0xd0 net/ipv4/tcp.c:2799 sock_common_setsockopt+0x95/0xd0 net/core/sock.c:2960 SYSC_setsockopt net/socket.c:1852 [inline] SyS_setsockopt+0x189/0x360 net/socket.c:1831 entry_SYSCALL_64_fastpath+0x1f/0xbe RIP: 0033:0x447299 RSP: 002b:00007f1c62840c08 EFLAGS: 00000292 ORIG_RAX: 0000000000000036 RAX: ffffffffffffffda RBX: 0000000000000016 RCX: 0000000000447299 RDX: 0000000000000040 RSI: 0000000000000000 RDI: 0000000000000016 RBP: 0000000000000082 R08: 0000000000000056 R09: 0000000000000000 R10: 0000000020006000 R11: 0000000000000292 R12: 0000000000000000 R13: 0000000000000000 R14: 00007f1c628419c0 R15: 00007f1c62841700 sctp: [Deprecated]: syz-executor0 (pid 7032) Use of int in maxseg socket option. Use struct sctp_assoc_value instead device gre0 entered promiscuous mode IPv6: NLM_F_REPLACE set, but no existing node found! sctp: [Deprecated]: syz-executor3 (pid 7105) Use of int in max_burst socket option. Use struct sctp_assoc_value instead IPv6: NLM_F_REPLACE set, but no existing node found! sctp: [Deprecated]: syz-executor3 (pid 7111) Use of int in max_burst socket option. Use struct sctp_assoc_value instead Can not set IPV6_FL_F_REFLECT if flowlabel_consistency sysctl is enable Can not set IPV6_FL_F_REFLECT if flowlabel_consistency sysctl is enable Can not set IPV6_FL_F_REFLECT if flowlabel_consistency sysctl is enable Can not set IPV6_FL_F_REFLECT if flowlabel_consistency sysctl is enable QAT: Invalid ioctl QAT: Invalid ioctl QAT: Invalid ioctl QAT: Invalid ioctl QAT: Invalid ioctl QAT: Invalid ioctl QAT: Invalid ioctl QAT: Invalid ioctl QAT: Invalid ioctl device lo left promiscuous mode TCP: request_sock_TCP: Possible SYN flooding on port 20024. Sending cookies. Check SNMP counters. TCP: request_sock_TCPv6: Possible SYN flooding on port 20017. Sending cookies. Check SNMP counters. sctp: [Deprecated]: syz-executor1 (pid 7518) Use of int in max_burst socket option deprecated. Use struct sctp_assoc_value instead sctp: [Deprecated]: syz-executor1 (pid 7518) Use of int in max_burst socket option deprecated. Use struct sctp_assoc_value instead audit: type=1326 audit(1504707594.222:1410): auid=4294967295 uid=0 gid=0 ses=4294967295 subj=kernel pid=7583 comm="syz-executor3" exe="/syz-executor3" sig=31 arch=c000003e syscall=202 compat=0 ip=0x447299 code=0xffff0000 SELinux: unrecognized netlink message: protocol=9 nlmsg_type=24 sclass=netlink_audit_socket pig=7610 comm=syz-executor3 nla_parse: 20 callbacks suppressed netlink: 13 bytes leftover after parsing attributes in process `syz-executor5'. SELinux: unrecognized netlink message: protocol=9 nlmsg_type=24 sclass=netlink_audit_socket pig=7610 comm=syz-executor3 ================================================================== BUG: KASAN: slab-out-of-bounds in __collect_expired_timers include/linux/list.h:729 [inline] BUG: KASAN: slab-out-of-bounds in collect_expired_timers kernel/time/timer.c:1569 [inline] BUG: KASAN: slab-out-of-bounds in __run_timers+0xa2e/0xb90 kernel/time/timer.c:1616 Write of size 8 at addr ffff880054063b88 by task swapper/3/0 CPU: 3 PID: 0 Comm: swapper/3 Tainted: G W 4.13.0-next-20170906+ #16 Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS Bochs 01/01/2011 Call Trace: __dump_stack lib/dump_stack.c:16 [inline] dump_stack+0x194/0x257 lib/dump_stack.c:52 print_address_description+0x73/0x250 mm/kasan/report.c:252 kasan_report_error mm/kasan/report.c:351 [inline] kasan_report+0x24e/0x340 mm/kasan/report.c:409 __asan_report_store8_noabort+0x17/0x20 mm/kasan/report.c:435 __collect_expired_timers include/linux/list.h:729 [inline] collect_expired_timers kernel/time/timer.c:1569 [inline] __run_timers+0xa2e/0xb90 kernel/time/timer.c:1616 run_timer_softirq+0x4c/0xb0 kernel/time/timer.c:1646 __do_softirq+0x2bb/0xbd0 kernel/softirq.c:284 invoke_softirq kernel/softirq.c:364 [inline] irq_exit+0x1d3/0x210 kernel/softirq.c:405 exiting_irq arch/x86/include/asm/apic.h:638 [inline] smp_apic_timer_interrupt+0x177/0x710 arch/x86/kernel/apic/apic.c:1048 apic_timer_interrupt+0x9d/0xb0 arch/x86/entry/entry_64.S:577 RIP: 0010:native_safe_halt+0x6/0x10 arch/x86/include/asm/irqflags.h:53 RSP: 0018:ffff88006dadfdb0 EFLAGS: 00000286 ORIG_RAX: ffffffffffffff10 RAX: dffffc0000000000 RBX: 1ffff1000db5bfb9 RCX: 0000000000000000 RDX: 1ffffffff0b59308 RSI: 0000000000000001 RDI: ffffffff85ac9840 RBP: ffff88006dadfdb0 R08: ffffffff8161b829 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000000 R12: ffffffff85ac9830 R13: ffff88006dadfe68 R14: 0000000000000000 R15: ffff88006dad4080 arch_safe_halt arch/x86/include/asm/paravirt.h:98 [inline] default_idle+0xbf/0x460 arch/x86/kernel/process.c:341 arch_cpu_idle+0xa/0x10 arch/x86/kernel/process.c:332 default_idle_call+0x36/0x90 kernel/sched/idle.c:98 cpuidle_idle_call kernel/sched/idle.c:156 [inline] do_idle+0x256/0x3b0 kernel/sched/idle.c:246 cpu_startup_entry+0x18/0x20 kernel/sched/idle.c:351 start_secondary+0x277/0x310 arch/x86/kernel/smpboot.c:275 secondary_startup_64+0xa5/0xa5 arch/x86/kernel/head_64.S:235 Allocated by task 7398: save_stack_trace+0x16/0x20 arch/x86/kernel/stacktrace.c:59 save_stack+0x43/0xd0 mm/kasan/kasan.c:447 set_track mm/kasan/kasan.c:459 [inline] kasan_kmalloc+0xad/0xe0 mm/kasan/kasan.c:551 __do_kmalloc mm/slab.c:3725 [inline] __kmalloc+0x162/0x760 mm/slab.c:3734 kmalloc_array include/linux/slab.h:612 [inline] kcalloc include/linux/slab.h:623 [inline] __rds_conn_create+0x4cc/0x1870 net/rds/connection.c:176 rds_conn_create_outgoing+0x3f/0x50 net/rds/connection.c:303 rds_sendmsg+0xd6c/0x1f90 net/rds/send.c:1108 sock_sendmsg_nosec net/socket.c:633 [inline] sock_sendmsg+0xca/0x110 net/socket.c:643 SYSC_sendto+0x358/0x5a0 net/socket.c:1750 SyS_sendto+0x40/0x50 net/socket.c:1718 entry_SYSCALL_64_fastpath+0x1f/0xbe Freed by task 6586: save_stack_trace+0x16/0x20 arch/x86/kernel/stacktrace.c:59 save_stack+0x43/0xd0 mm/kasan/kasan.c:447 set_track mm/kasan/kasan.c:459 [inline] kasan_slab_free+0x71/0xc0 mm/kasan/kasan.c:524 __cache_free mm/slab.c:3503 [inline] kfree+0xca/0x250 mm/slab.c:3820 kvfree+0x36/0x60 mm/util.c:416 netdev_freemem net/core/dev.c:7963 [inline] free_netdev+0x2cf/0x360 net/core/dev.c:8125 tun_set_iff drivers/net/tun.c:2105 [inline] __tun_chr_ioctl+0x2cf6/0x3d20 drivers/net/tun.c:2276 tun_chr_ioctl+0x2a/0x40 drivers/net/tun.c:2521 vfs_ioctl fs/ioctl.c:45 [inline] do_vfs_ioctl+0x1b1/0x1530 fs/ioctl.c:685 SYSC_ioctl fs/ioctl.c:700 [inline] SyS_ioctl+0x8f/0xc0 fs/ioctl.c:691 entry_SYSCALL_64_fastpath+0x1f/0xbe The buggy address belongs to the object at ffff880054060780 which belongs to the cache kmalloc-16384 of size 16384 The buggy address is located 13320 bytes inside of 16384-byte region [ffff880054060780, ffff880054064780) The buggy address belongs to the page: page:ffffea0001501800 count:1 mapcount:0 mapping:ffff880054060780 index:0x0 compound_mapcount: 0 flags: 0x500000000008100(slab|head) raw: 0500000000008100 ffff880054060780 0000000000000000 0000000100000001 raw: ffffea00014d3220 ffffea00014e6420 ffff88003e802200 0000000000000000 page dumped because: kasan: bad access detected Memory state around the buggy address: ffff880054063a80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc ffff880054063b00: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc >ffff880054063b80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc ^ ffff880054063c00: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc ffff880054063c80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc ==================================================================