BUG: sleeping function called from invalid context at ./include/linux/uaccess.h:71 in_atomic(): 1, irqs_disabled(): 0, pid: 5772, name: syz-executor5 2 locks held by syz-executor5/5772: #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: 2 PID: 5772 Comm: syz-executor5 Not tainted 4.13.0-next-20170908+ #18 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:00007f388ee82c08 EFLAGS: 00000296 ORIG_RAX: 0000000000000010 RAX: ffffffffffffffda RBX: 0000000000000019 RCX: 0000000000447299 RDX: 0000000000000000 RSI: 000000000000ae80 RDI: 0000000000000019 RBP: 0000000000000082 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000296 R12: 00000000ffffffff R13: 0000000000005790 R14: 00000000006e8850 R15: 0000000000000019 net_ratelimit: 1 callbacks suppressed sock: sock_set_timeout: `syz-executor7' (pid 5833) tries to set negative timeout TCP: request_sock_TCPv6: Possible SYN flooding on port 20017. Sending cookies. Check SNMP counters. netlink: 6 bytes leftover after parsing attributes in process `syz-executor6'. netlink: 6 bytes leftover after parsing attributes in process `syz-executor6'. ata1.00: exception Emask 0x0 SAct 0x0 SErr 0x0 action 0x0 ata1.00: failed command: ZAC MANAGEMENT OUT ata1.00: cmd 9f/01:00:00:00:00/00:00:00:00:00/40 tag 0 nodata 0 out res 41/04:00:00:00:00/04:00:00:00:00/e0 Emask 0x1 (device error) ata1.00: status: { DRDY ERR } ata1.00: error: { ABRT } ata1.00: device reported invalid CHS sector 0 ata1.00: exception Emask 0x0 SAct 0x0 SErr 0x0 action 0x0 ata1.00: failed command: ZAC MANAGEMENT OUT ata1.00: cmd 9f/01:00:00:00:00/00:00:00:00:00/40 tag 0 nodata 0 out res 41/04:00:00:00:00/04:00:00:00:00/e0 Emask 0x1 (device error) ata1.00: status: { DRDY ERR } ata1.00: error: { ABRT } ata1.00: device reported invalid CHS sector 0 SELinux: unrecognized netlink message: protocol=0 nlmsg_type=65535 sclass=netlink_route_socket pig=6007 comm=syz-executor1 SELinux: unrecognized netlink message: protocol=0 nlmsg_type=65535 sclass=netlink_route_socket pig=6007 comm=syz-executor1 device lo entered promiscuous mode 8021q: VLANs not supported on lo netlink: 8 bytes leftover after parsing attributes in process `syz-executor2'. netlink: 8 bytes leftover after parsing attributes in process `syz-executor2'. SELinux: unrecognized netlink message: protocol=0 nlmsg_type=52941 sclass=netlink_route_socket pig=6137 comm=syz-executor4 netlink: 3 bytes leftover after parsing attributes in process `syz-executor6'. netlink: 3 bytes leftover after parsing attributes in process `syz-executor6'. SELinux: unrecognized netlink message: protocol=0 nlmsg_type=52941 sclass=netlink_route_socket pig=6173 comm=syz-executor4 APIC base relocation is unsupported by KVM kvm [6203]: vcpu0, guest rIP: 0x912e disabled perfctr wrmsr: 0xc1 data 0x4000 kvm [6203]: vcpu0, guest rIP: 0x912e disabled perfctr wrmsr: 0xc2 data 0x4000 kvm [6203]: vcpu0, guest rIP: 0x912e ignored wrmsr: 0x11e data 0xbe706111 kvm [6203]: vcpu0, guest rIP: 0x912e disabled perfctr wrmsr: 0x186 data 0x4000 kvm [6203]: vcpu0, guest rIP: 0x912e disabled perfctr wrmsr: 0x187 data 0x4000 irq bypass consumer (token ffff880068fd7300) registration fails: -16 rpcbind: RPC call returned error 22 irq bypass consumer (token ffff88003a3d7000) registration fails: -16 QAT: Invalid ioctl rpcbind: RPC call returned error 22 QAT: Invalid ioctl IPv6: NLM_F_REPLACE set, but no existing node found! IPv6: NLM_F_REPLACE set, but no existing node found! SELinux: unrecognized netlink message: protocol=0 nlmsg_type=0 sclass=netlink_route_socket pig=6474 comm=syz-executor5 SELinux: unrecognized netlink message: protocol=0 nlmsg_type=0 sclass=netlink_route_socket pig=6474 comm=syz-executor5 SELinux: unrecognized netlink message: protocol=0 nlmsg_type=0 sclass=netlink_route_socket pig=6474 comm=syz-executor5 SELinux: unrecognized netlink message: protocol=0 nlmsg_type=0 sclass=netlink_route_socket pig=6474 comm=syz-executor5 SELinux: unrecognized netlink message: protocol=0 nlmsg_type=0 sclass=netlink_route_socket pig=6510 comm=syz-executor5 SELinux: unrecognized netlink message: protocol=0 nlmsg_type=0 sclass=netlink_route_socket pig=6474 comm=syz-executor5 device gre0 entered promiscuous mode ata2.00: invalid multi_count 64 ignored ata2.00: exception Emask 0x0 SAct 0x1 SErr 0x0 action 0x0 ata2.00: failed command: WRITE MULTIPLE FUA EXT ata2.00: cmd ce/07:00:00:00:03/00:00:00:00:00/09 tag 0 ncq nodata 188 out res 50/00:03:00:00:00/00:03:00:00:00/a0 Emask 0x40 (internal error) ata2.00: status: { DRDY } ata2.00: configured for MWDMA2 ata2: EH complete ata2.00: invalid multi_count 64 ignored ata2.00: exception Emask 0x0 SAct 0x1 SErr 0x0 action 0x0 ata2.00: failed command: WRITE MULTIPLE FUA EXT ata2.00: cmd ce/07:00:00:00:03/00:00:00:00:00/09 tag 0 ncq nodata 188 out res 50/00:03:00:00:01/00:03:00:00:01/a0 Emask 0x40 (internal error) ata2.00: status: { DRDY } ata2.00: configured for MWDMA2 ata2: EH complete device sit0 entered promiscuous mode device lo entered promiscuous mode sctp: [Deprecated]: syz-executor3 (pid 6823) Use of int in max_burst socket option. Use struct sctp_assoc_value instead device lo left promiscuous mode QAT: Invalid ioctl QAT: Invalid ioctl QAT: Invalid ioctl QAT: Invalid ioctl sctp: [Deprecated]: syz-executor3 (pid 6872) Use of int in max_burst socket option. Use struct sctp_assoc_value instead kvm [6928]: vcpu0, guest rIP: 0x9135 Hyper-V unhandled rdmsr: 0x4000008f kvm [6928]: vcpu0, guest rIP: 0x9135 Hyper-V unhandled rdmsr: 0x4000008e kvm [6928]: vcpu0, guest rIP: 0x9135 Hyper-V unhandled rdmsr: 0x4000008d kvm [6928]: vcpu0, guest rIP: 0x9135 Hyper-V unhandled rdmsr: 0x4000008c kvm [6928]: vcpu0, guest rIP: 0x9135 Hyper-V unhandled rdmsr: 0x4000008b kvm [6928]: vcpu0, guest rIP: 0x9135 Hyper-V unhandled rdmsr: 0x4000008a kvm [6928]: vcpu0, guest rIP: 0x9135 Hyper-V unhandled rdmsr: 0x40000089 kvm [6928]: vcpu0, guest rIP: 0x9135 Hyper-V unhandled rdmsr: 0x40000088 kvm [6928]: vcpu0, guest rIP: 0x9135 Hyper-V unhandled rdmsr: 0x40000087 kvm [6928]: vcpu0, guest rIP: 0x9135 Hyper-V unhandled rdmsr: 0x40000086 kvm [6928]: vcpu0, guest rIP: 0x9112 disabled perfctr wrmsr: 0xc2 data 0x66c9000000001043 kvm [6928]: vcpu0, guest rIP: 0x9112 disabled perfctr wrmsr: 0xc1 data 0x66c9000000001043 kvm [6928]: vcpu0, guest rIP: 0x9112 disabled perfctr wrmsr: 0xc2 data 0x66c9000000001043 kvm [6928]: vcpu0, guest rIP: 0x9112 disabled perfctr wrmsr: 0xc1 data 0x66c9000000001043 QAT: Invalid ioctl QAT: Invalid ioctl QAT: Invalid ioctl kvm: MONITOR instruction emulated as NOP! 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 QAT: Invalid ioctl QAT: Invalid ioctl QAT: Invalid ioctl dccp_close: ABORT with 554 bytes unread kauditd_printk_skb: 3 callbacks suppressed audit: type=1326 audit(1505038813.026:15): auid=4294967295 uid=0 gid=0 ses=4294967295 subj=kernel pid=7233 comm="syz-executor4" exe="/syz-executor4" sig=31 arch=c000003e syscall=202 compat=0 ip=0x447299 code=0xffff0000 audit: type=1326 audit(1505038813.050:16): auid=4294967295 uid=0 gid=0 ses=4294967295 subj=kernel pid=7232 comm="syz-executor0" exe="/syz-executor0" sig=31 arch=c000003e syscall=202 compat=0 ip=0x447299 code=0x0 QAT: Invalid ioctl sctp: [Deprecated]: syz-executor1 (pid 7293) Use of struct sctp_assoc_value in delayed_ack socket option. Use struct sctp_sack_info instead audit: type=1326 audit(1505038813.095:17): auid=4294967295 uid=0 gid=0 ses=4294967295 subj=kernel pid=7233 comm="syz-executor4" exe="/syz-executor4" sig=31 arch=c000003e syscall=202 compat=0 ip=0x447299 code=0xffff0000 QAT: Invalid ioctl TCP: request_sock_TCP: Possible SYN flooding on port 20016. Sending cookies. Check SNMP counters. sctp: [Deprecated]: syz-executor1 (pid 7293) Use of struct sctp_assoc_value in delayed_ack socket option. Use struct sctp_sack_info instead Disabled LAPIC found during irq injection Disabled LAPIC found during irq injection nla_parse: 22 callbacks suppressed netlink: 1 bytes leftover after parsing attributes in process `syz-executor6'. TCP: request_sock_TCPv6: Possible SYN flooding on port 20021. Sending cookies. Check SNMP counters. netlink: 1 bytes leftover after parsing attributes in process `syz-executor6'. netlink: 64 bytes leftover after parsing attributes in process `syz-executor4'. netlink: 5 bytes leftover after parsing attributes in process `syz-executor2'. IPv6: NLM_F_REPLACE set, but no existing node found! netlink: 5 bytes leftover after parsing attributes in process `syz-executor2'. IPv6: NLM_F_REPLACE set, but no existing node found! netlink: 64 bytes leftover after parsing attributes in process `syz-executor4'. audit: type=1326 audit(1505038813.426:18): auid=4294967295 uid=0 gid=0 ses=4294967295 subj=kernel pid=7488 comm="syz-executor7" exe="/syz-executor7" sig=31 arch=c000003e syscall=202 compat=0 ip=0x447299 code=0xffff0000 audit: type=1326 audit(1505038813.512:19): auid=4294967295 uid=0 gid=0 ses=4294967295 subj=kernel pid=7488 comm="syz-executor7" exe="/syz-executor7" sig=31 arch=c000003e syscall=202 compat=0 ip=0x447299 code=0xffff0000 kvm: vcpu 4: requested 68374 ns lapic timer period limited to 500000 ns kvm: vcpu 4: requested 68374 ns lapic timer period limited to 500000 ns device lo entered promiscuous mode IPv6: ADDRCONF(NETDEV_CHANGE): lo: link becomes ready *** Guest State *** CR0: actual=0x0000000000000031, shadow=0x0000000060000011, gh_mask=fffffffffffffff7 CR4: actual=0x0000000000002050, shadow=0x0000000000000000, gh_mask=ffffffffffffe871 CR3 = 0x00000000fffbc000 RSP = 0x0000000000000f80 RIP = 0x0000000000000000 RFLAGS=0x00008002 DR7 = 0x0000000000000400 Sysenter RSP=0000000000000f80 CS:RIP=0030:0000000000002810 CS: sel=0x0030, attr=0x0409b, limit=0x000fffff, base=0x0000000000000000 DS: sel=0x0038, attr=0x04093, limit=0x000fffff, base=0x0000000000000000 SS: sel=0x0038, attr=0x04093, limit=0x000fffff, base=0x0000000000000000 ES: sel=0x0038, attr=0x04093, limit=0x000fffff, base=0x0000000000000000 FS: sel=0x0038, attr=0x04093, limit=0x000fffff, base=0x0000000000000000 GS: sel=0x0038, attr=0x04093, limit=0x000fffff, base=0x0000000000000000 GDTR: limit=0x000007ff, base=0x0000000000001000 LDTR: sel=0x0008, attr=0x04082, limit=0x000007ff, base=0x0000000000001800 IDTR: limit=0x000001ff, base=0x0000000000003800 TR: sel=0x0000, attr=0x0008b, limit=0x0000ffff, base=0x0000000000000000 EFER = 0x0000000000000001 PAT = 0x0007040600070406 DebugCtl = 0x0000000000000000 DebugExceptions = 0x0000000000000000 BndCfgS = 0x0000000000000000 Interruptibility = 00000002 ActivityState = 00000000 *** Host State *** RIP = 0xffffffff811b8bff RSP = 0xffff88003883f4c8 CS=0010 SS=0018 DS=0000 ES=0000 FS=0000 GS=0000 TR=0040 FSBase=00007f86973db700 GSBase=ffff88006de00000 TRBase=ffff88006de23100 GDTBase=ffffffffff575000 IDTBase=ffffffffff57b000 CR0=0000000080050033 CR3=000000003b7e2000 CR4=00000000000026e0 Sysenter RSP=0000000000000000 CS:RIP=0010:ffffffff84d41700 EFER = 0x0000000000000d01 PAT = 0x0007040600070406 *** Control State *** PinBased=0000003f CPUBased=b6a1edfa SecondaryExec=000000e3 EntryControls=0001d1ff ExitControls=00afefff ExceptionBitmap=00060042 PFECmask=00000000 PFECmatch=00000000 VMEntry: intr_info=00000000 errcode=00000000 ilen=00000000 VMExit: intr_info=00000000 errcode=00000000 ilen=00000000 reason=80000021 qualification=0000000000000000 IDTVectoring: info=00000000 errcode=00000000 TSC Offset = 0xffffffd4617b77d8 TPR Threshold = 0x00 EPT pointer = 0x000000003acb001e Virtual processor ID = 0x0001 netlink: 1 bytes leftover after parsing attributes in process `syz-executor7'. netlink: 1 bytes leftover after parsing attributes in process `syz-executor7'. kvm: vcpu 0: requested 68374 ns lapic timer period limited to 500000 ns QAT: Invalid ioctl *** Guest State *** CR0: actual=0x0000000000000030, shadow=0x0000000060000010, gh_mask=fffffffffffffff7 CR4: actual=0x0000000000002050, shadow=0x0000000000000000, gh_mask=ffffffffffffe871 CR3 = 0x00000000fffbc000 RSP = 0x0000000000000002 RIP = 0x0000000000006000 RFLAGS=0x00000300 DR7 = 0x0000000000000400 Sysenter RSP=0000000000000000 CS:RIP=0000:0000000000000000 CS: sel=0x0010, attr=0x0009b, limit=0x000fffff, base=0x0000000000000000 DS: sel=0x0018, attr=0x00093, limit=0x000fffff, base=0x0000000000000000 SS: sel=0x0018, attr=0x00093, limit=0x000fffff, base=0x0000000000000000 ES: sel=0x0018, attr=0x00093, limit=0x000fffff, base=0x0000000000000000 FS: sel=0x0018, attr=0x00093, limit=0x000fffff, base=0x0000000000000000 GS: sel=0x0018, attr=0x00093, limit=0x000fffff, base=0x0000000000000000 GDTR: limit=0x000007ff, base=0x0000000000001000 LDTR: sel=0x0008, attr=0x04082, limit=0x000007ff, base=0x0000000000001800 IDTR: limit=0x0000ffff, base=0x0000000000000000 TR: sel=0x0000, attr=0x0008b, limit=0x0000ffff, base=0x0000000000000000 EFER = 0x0000000000000000 PAT = 0x0007040600070406 DebugCtl = 0x0000000000000000 DebugExceptions = 0x0000000000000000 BndCfgS = 0x0000000000000000 Interruptibility = 00000000 ActivityState = 00000000 *** Host State *** RIP = 0xffffffff811b8bff RSP = 0xffff880068e4f4c8 CS=0010 SS=0018 DS=0000 ES=0000 FS=0000 GS=0000 TR=0040 FSBase=00007efd56b25700 GSBase=ffff88003ed00000 TRBase=ffff88006df23100 GDTBase=ffffffffff574000 IDTBase=ffffffffff57b000 CR0=0000000080050033 CR3=0000000054e62000 CR4=00000000000026e0 Sysenter RSP=0000000000000000 CS:RIP=0010:ffffffff84d41700 EFER = 0x0000000000000d01 PAT = 0x0007040600070406 *** Control State *** PinBased=0000003f CPUBased=b699edfa SecondaryExec=000000e2 EntryControls=0001d1ff ExitControls=00afefff ExceptionBitmap=00060042 PFECmask=00000000 PFECmatch=00000000 VMEntry: intr_info=00000000 errcode=00000000 ilen=00000000 VMExit: intr_info=00000000 errcode=00000000 ilen=00000000 reason=80000021 qualification=0000000000000000 IDTVectoring: info=00000000 errcode=00000000 TSC Offset = 0xffffffd42761c5c6 EPT pointer = 0x000000002fa9201e Virtual processor ID = 0x0001 sctp: [Deprecated]: syz-executor5 (pid 7823) Use of int in maxseg socket option. Use struct sctp_assoc_value instead sctp: [Deprecated]: syz-executor5 (pid 7823) Use of int in maxseg socket option. Use struct sctp_assoc_value instead sctp: [Deprecated]: syz-executor4 (pid 7836) Use of struct sctp_assoc_value in delayed_ack socket option. Use struct sctp_sack_info instead sctp: [Deprecated]: syz-executor4 (pid 7861) Use of struct sctp_assoc_value in delayed_ack socket option. Use struct sctp_sack_info instead device lo entered promiscuous mode netlink: 3 bytes leftover after parsing attributes in process `syz-executor0'. netlink: 3 bytes leftover after parsing attributes in process `syz-executor0'. device lo left promiscuous mode selinux_nlmsg_perm: 2 callbacks suppressed SELinux: unrecognized netlink message: protocol=0 nlmsg_type=52941 sclass=netlink_route_socket pig=7920 comm=syz-executor6 SELinux: unrecognized netlink message: protocol=0 nlmsg_type=52941 sclass=netlink_route_socket pig=7948 comm=syz-executor6 ================================================================== 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 ffff8800255d3a48 by task syz-executor0/7957 CPU: 1 PID: 7957 Comm: syz-executor0 Tainted: G W 4.13.0-next-20170908+ #18 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 syz-executor1: vmalloc: allocation failure: 4833356120 bytes, mode:0x14080c0(GFP_KERNEL|__GFP_ZERO), nodemask=(null) syz-executor1 cpuset=/ mems_allowed=0-1 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:arch_local_irq_restore arch/x86/include/asm/paravirt.h:814 [inline] RIP: 0010:lock_acquire+0x256/0x580 kernel/locking/lockdep.c:4005 RSP: 0018:ffff88003c3be7b8 EFLAGS: 00000282 ORIG_RAX: ffffffffffffff10 RAX: dffffc0000000000 RBX: ffff88003d8085c0 RCX: 0000000000000000 RDX: 1ffffffff0b59305 RSI: 000000008fe9141a RDI: 0000000000000282 RBP: ffff88003c3be8b0 R08: 0000000000000000 R09: 0000000000000001 R10: 0000000000000000 R11: ffffffff8705eca0 R12: 1ffff10007877cfd R13: 0000000000000000 R14: 0000000000000002 R15: 0000000000000000 rcu_lock_acquire include/linux/rcupdate.h:244 [inline] rcu_read_lock include/linux/rcupdate.h:630 [inline] lock_page_memcg+0x8f/0x3b0 mm/memcontrol.c:1650 page_remove_file_rmap mm/rmap.c:1210 [inline] page_remove_rmap+0x393/0xcb0 mm/rmap.c:1295 zap_pte_range mm/memory.c:1333 [inline] zap_pmd_range mm/memory.c:1437 [inline] zap_pud_range mm/memory.c:1466 [inline] zap_p4d_range mm/memory.c:1487 [inline] unmap_page_range+0xf8d/0x22f0 mm/memory.c:1508 unmap_single_vma+0x15f/0x2d0 mm/memory.c:1553 unmap_vmas+0xf1/0x1b0 mm/memory.c:1583 exit_mmap+0x232/0x530 mm/mmap.c:3003 __mmput kernel/fork.c:924 [inline] mmput+0x223/0x6d0 kernel/fork.c:945 exit_mm kernel/exit.c:544 [inline] do_exit+0x9a1/0x1b40 kernel/exit.c:852 do_group_exit+0x149/0x400 kernel/exit.c:968 get_signal+0x7e8/0x17e0 kernel/signal.c:2334 do_signal+0x94/0x1ee0 arch/x86/kernel/signal.c:808 exit_to_usermode_loop+0x224/0x300 arch/x86/entry/common.c:158 prepare_exit_to_usermode arch/x86/entry/common.c:197 [inline] syscall_return_slowpath+0x42f/0x500 arch/x86/entry/common.c:266 entry_SYSCALL_64_fastpath+0xbc/0xbe RIP: 0033:0x447299 RSP: 002b:00007f86973bbcf8 EFLAGS: 00000246 ORIG_RAX: 00000000000000ca RAX: fffffffffffffe00 RBX: 0000000000708188 RCX: 0000000000447299 RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000000708188 RBP: 0000000000708160 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 0000000000000000 R14: 00007f86973bc9c0 R15: 00007f86973bc700 CPU: 0 PID: 7961 Comm: syz-executor1 Tainted: G W 4.13.0-next-20170908+ #18 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:00007f0379cb7c08 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: 00007f0379cb89c0 R15: 00007f0379cb8700 Mem-Info: active_anon:94465 inactive_anon:52 isolated_anon:0 active_file:3508 inactive_file:4112 isolated_file:0 unevictable:0 dirty:154 writeback:0 unstable:0 slab_reclaimable:5390 slab_unreclaimable:33507 mapped:20620 shmem:58 pagetables:902 bounce:0 free:250370 free_pcp:1145 free_cma:0 Node 0 active_anon:119924kB inactive_anon:120kB active_file:5436kB inactive_file:12452kB unevictable:0kB isolated(anon):0kB isolated(file):0kB mapped:35316kB dirty:148kB writeback:0kB shmem:128kB shmem_thp: 0kB shmem_pmdmapped: 0kB anon_thp: 20480kB writeback_tmp:0kB unstable:0kB all_unreclaimable? no Node 1 active_anon:259988kB inactive_anon:88kB active_file:8596kB inactive_file:3996kB unevictable:0kB isolated(anon):0kB isolated(file):0kB mapped:47164kB dirty:468kB writeback:0kB shmem:104kB shmem_thp: 0kB shmem_pmdmapped: 0kB anon_thp: 32768kB writeback_tmp:0kB unstable:0kB all_unreclaimable? no 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:641840kB min:36536kB low:45668kB high:54800kB active_anon:119924kB inactive_anon:120kB active_file:5436kB inactive_file:17184kB unevictable:0kB writepending:148kB present:1032192kB managed:909848kB mlocked:0kB kernel_stack:2816kB pagetables:1896kB bounce:0kB free_pcp:2500kB local_pcp:384kB free_cma:0kB lowmem_reserve[]: 0 0 0 0 Node 1 DMA32 free:343732kB min:30404kB low:38004kB high:45604kB active_anon:259988kB inactive_anon:88kB active_file:8596kB inactive_file:8828kB unevictable:0kB writepending:468kB present:1048560kB managed:755216kB mlocked:0kB kernel_stack:2816kB pagetables:1712kB bounce:0kB free_pcp:2080kB local_pcp:620kB 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: 3068*4kB (UME) 2600*8kB (UM) 1558*16kB (UM) 1003*32kB (UM) 557*64kB (UM) 225*128kB (UM) 90*256kB (UME) 11*512kB (UME) 8*1024kB (UM) 2*2048kB (UM) 109*4096kB (M) = 641968kB Node 1 DMA32: 134*4kB (ME) 1168*8kB (UME) 646*16kB (UME) 365*32kB (UME) 169*64kB (UME) 49*128kB (M) 35*256kB (UM) 12*512kB (UME) 13*1024kB (UME) 2*2048kB (M) 64*4096kB (M) = 343640kB 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 7677 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 Allocated by task 7878: 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 kmem_cache_alloc_trace+0x136/0x750 mm/slab.c:3627 kmalloc include/linux/slab.h:493 [inline] kzalloc include/linux/slab.h:666 [inline] tipc_nametbl_init+0x241/0x5e0 net/tipc/name_table.c:810 tipc_init_net+0x347/0x570 net/tipc/core.c:69 ops_init+0x10a/0x570 net/core/net_namespace.c:118 setup_net+0x319/0x720 net/core/net_namespace.c:294 copy_net_ns+0x27c/0x580 net/core/net_namespace.c:418 create_new_namespaces+0x425/0x880 kernel/nsproxy.c:107 copy_namespaces+0x340/0x400 kernel/nsproxy.c:165 copy_process.part.36+0x22fd/0x4af0 kernel/fork.c:1738 copy_process kernel/fork.c:1548 [inline] _do_fork+0x1ef/0xfe0 kernel/fork.c:2027 SYSC_clone kernel/fork.c:2137 [inline] SyS_clone+0x37/0x50 kernel/fork.c:2131 do_syscall_64+0x26c/0x8c0 arch/x86/entry/common.c:287 return_from_SYSCALL_64+0x0/0x7a Freed by task 7098: 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 ffff8800255d0640 which belongs to the cache kmalloc-16384 of size 16384 The buggy address is located 13320 bytes inside of 16384-byte region [ffff8800255d0640, ffff8800255d4640) The buggy address belongs to the page: page:ffffea0000957400 count:1 mapcount:0 mapping:ffff8800255d0640 index:0x0 compound_mapcount: 0 flags: 0x100000000008100(slab|head) raw: 0100000000008100 ffff8800255d0640 0000000000000000 0000000100000001 raw: ffffea0000e1f820 ffffea0000e1c220 ffff88003e802200 0000000000000000 page dumped because: kasan: bad access detected Memory state around the buggy address: ffff8800255d3900: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc ffff8800255d3980: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc >ffff8800255d3a00: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc ^ ffff8800255d3a80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc ffff8800255d3b00: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc ==================================================================