=========================================================== .___ __ __ _________________ __ __ __| _/|__|/ |_ / ___\_` __ \__ \ | | \/ __ | | \\_ __\ / /_/ > | \// __ \| | / /_/ | | || | \___ /|__| (____ /____/\____ | |__||__| /_____/ \/ \/ grep rough audit - static analysis tool v2.8 written by @Wireghoul =================================[justanotherhacker.com]=== kvmtool-0.20170904/x86/include/kvm/barrier.h-3- kvmtool-0.20170904/x86/include/kvm/barrier.h:4:#define barrier() asm volatile("": : :"memory") kvmtool-0.20170904/x86/include/kvm/barrier.h-5- kvmtool-0.20170904/x86/include/kvm/barrier.h:6:#define mb() asm volatile ("mfence": : :"memory") kvmtool-0.20170904/x86/include/kvm/barrier.h:7:#define rmb() asm volatile ("lfence": : :"memory") kvmtool-0.20170904/x86/include/kvm/barrier.h:8:#define wmb() asm volatile ("sfence": : :"memory") kvmtool-0.20170904/x86/include/kvm/barrier.h-9- ############################################## kvmtool-0.20170904/x86/include/kvm/cpufeature.h-32-{ kvmtool-0.20170904/x86/include/kvm/cpufeature.h:33: asm volatile("cpuid" kvmtool-0.20170904/x86/include/kvm/cpufeature.h-34- : "=a" (regs->eax), ############################################## kvmtool-0.20170904/x86/bios.c-17- kvmtool-0.20170904/x86/bios.c:18:#define BIOS_IRQ_PA_ADDR(name) (MB_BIOS_BEGIN + BIOS_OFFSET__##name) kvmtool-0.20170904/x86/bios.c-19-#define BIOS_IRQ_FUNC(name) ((char *)&bios_rom[BIOS_OFFSET__##name]) ############################################## kvmtool-0.20170904/x86/bios.c-24- .irq = _irq, \ kvmtool-0.20170904/x86/bios.c:25: .address = BIOS_IRQ_PA_ADDR(_handler), \ kvmtool-0.20170904/x86/bios.c-26- .handler = BIOS_IRQ_FUNC(_handler), \ ############################################## kvmtool-0.20170904/x86/bios.c-159- */ kvmtool-0.20170904/x86/bios.c:160: address = BIOS_IRQ_PA_ADDR(bios_intfake); kvmtool-0.20170904/x86/bios.c-161- intr_desc = (struct real_intr_desc) { ############################################## kvmtool-0.20170904/x86/bios/int10.c-19-{ kvmtool-0.20170904/x86/bios/int10.c:20: asm volatile("outb %0, %1" : : "a"(val), "Nd"(port)); kvmtool-0.20170904/x86/bios/int10.c-21-} ############################################## kvmtool-0.20170904/x86/bios/e820.c-19-{ kvmtool-0.20170904/x86/bios/e820.c:20: asm volatile("movw %0,%%fs" : : "rm" (seg)); kvmtool-0.20170904/x86/bios/e820.c-21-} ############################################## kvmtool-0.20170904/x86/bios/e820.c-26- kvmtool-0.20170904/x86/bios/e820.c:27: asm volatile("addr32 movb %%fs:%1,%0" : "=q" (v) : "m" (*(u8 *)addr)); kvmtool-0.20170904/x86/bios/e820.c-28- ############################################## kvmtool-0.20170904/x86/bios/e820.c-35- kvmtool-0.20170904/x86/bios/e820.c:36: asm volatile("addr32 movl %%fs:%1,%0" : "=q" (v) : "m" (*(u32 *)addr)); kvmtool-0.20170904/x86/bios/e820.c-37- ############################################## kvmtool-0.20170904/x86/mptable.c-110- mpc_table->spec = 4; kvmtool-0.20170904/x86/mptable.c:111: mpc_table->lapic = APIC_ADDR(0); kvmtool-0.20170904/x86/mptable.c-112- mpc_table->oemcount = ncpus; /* will be updated again at end */ ############################################## kvmtool-0.20170904/x86/mptable.c-167- mpc_ioapic->flags = MPC_APIC_USABLE; kvmtool-0.20170904/x86/mptable.c:168: mpc_ioapic->apicaddr = IOAPIC_ADDR(0); kvmtool-0.20170904/x86/mptable.c-169- ############################################## kvmtool-0.20170904/net/uip/tcp.c-76- if (ntohl(dip) == arg->info->host_ip) kvmtool-0.20170904/net/uip/tcp.c:77: sk->addr.sin_addr.s_addr = inet_addr("127.0.0.1"); kvmtool-0.20170904/net/uip/tcp.c-78- ############################################## kvmtool-0.20170904/include/kvm/apic.h-11- kvmtool-0.20170904/include/kvm/apic.h:12:#define APIC_ADDR(apic) (APIC_DEFAULT_PHYS_BASE + apic * APIC_BASE_ADDR_STEP) kvmtool-0.20170904/include/kvm/apic.h:13:#define IOAPIC_ADDR(ioapic) (IO_APIC_DEFAULT_PHYS_BASE + ioapic * IOAPIC_BASE_ADDR_STEP) kvmtool-0.20170904/include/kvm/apic.h-14- ############################################## kvmtool-0.20170904/include/kvm/pci-shmem.h-9-#define SHMEM_DEFAULT_SIZE (16 << MB_SHIFT) kvmtool-0.20170904/include/kvm/pci-shmem.h:10:#define SHMEM_DEFAULT_ADDR (0xc8000000) kvmtool-0.20170904/include/kvm/pci-shmem.h-11-#define SHMEM_DEFAULT_HANDLE "/kvm_shmem" ############################################## kvmtool-0.20170904/include/linux/kvm.h-1246-/* store status for s390 */ kvmtool-0.20170904/include/linux/kvm.h:1247:#define KVM_S390_STORE_STATUS_NOADDR (-1ul) kvmtool-0.20170904/include/linux/kvm.h-1248-#define KVM_S390_STORE_STATUS_PREFIXED (-2ul) ############################################## kvmtool-0.20170904/mips/include/kvm/barrier.h-3- kvmtool-0.20170904/mips/include/kvm/barrier.h:4:#define barrier() asm volatile("": : :"memory") kvmtool-0.20170904/mips/include/kvm/barrier.h-5- kvmtool-0.20170904/mips/include/kvm/barrier.h:6:#define mb() asm volatile (".set push\n\t.set mips2\n\tsync\n\t.set pop": : :"memory") kvmtool-0.20170904/mips/include/kvm/barrier.h-7-#define rmb() mb() ############################################## kvmtool-0.20170904/arm/aarch64/include/kvm/barrier.h-3- kvmtool-0.20170904/arm/aarch64/include/kvm/barrier.h:4:#define mb() asm volatile ("dmb ish" : : : "memory") kvmtool-0.20170904/arm/aarch64/include/kvm/barrier.h:5:#define rmb() asm volatile ("dmb ishld" : : : "memory") kvmtool-0.20170904/arm/aarch64/include/kvm/barrier.h:6:#define wmb() asm volatile ("dmb ishst" : : : "memory") kvmtool-0.20170904/arm/aarch64/include/kvm/barrier.h-7- ############################################## kvmtool-0.20170904/arm/aarch32/include/kvm/barrier.h-3- kvmtool-0.20170904/arm/aarch32/include/kvm/barrier.h:4:#define dmb() asm volatile ("dmb" : : : "memory") kvmtool-0.20170904/arm/aarch32/include/kvm/barrier.h-5- ############################################## kvmtool-0.20170904/Makefile-408-%.s: %.c kvmtool-0.20170904/Makefile:409: $(Q) $(CC) -o $@ -S $(CFLAGS) -fverbose-asm $< kvmtool-0.20170904/Makefile-410- ############################################## kvmtool-0.20170904/virtio/net.c-337- strncpy(ifr.ifr_name, ndev->tap_name, sizeof(ndev->tap_name)); kvmtool-0.20170904/virtio/net.c:338: sin.sin_addr.s_addr = inet_addr(params->host_ip); kvmtool-0.20170904/virtio/net.c-339- memcpy(&(ifr.ifr_addr), &sin, sizeof(ifr.ifr_addr)); ############################################## kvmtool-0.20170904/virtio/net.c-870- } else { kvmtool-0.20170904/virtio/net.c:871: ndev->info.host_ip = ntohl(inet_addr(params->host_ip)); kvmtool-0.20170904/virtio/net.c:872: ndev->info.guest_ip = ntohl(inet_addr(params->guest_ip)); kvmtool-0.20170904/virtio/net.c:873: ndev->info.guest_netmask = ntohl(inet_addr("255.255.255.0")); kvmtool-0.20170904/virtio/net.c-874- ndev->info.buf_nr = 20, ############################################## kvmtool-0.20170904/powerpc/kvm.c-53- uint32_t r; kvmtool-0.20170904/powerpc/kvm.c:54: asm volatile ("mfpvr %0" : "=r"(r)); kvmtool-0.20170904/powerpc/kvm.c-55- return r; ############################################## kvmtool-0.20170904/powerpc/spapr.h-111-#define SPAPR_PCI_BUID 0x800000020000001ULL kvmtool-0.20170904/powerpc/spapr.h:112:#define SPAPR_PCI_MEM_WIN_ADDR (KVM_MMIO_START + 0xA0000000) kvmtool-0.20170904/powerpc/spapr.h-113-#define SPAPR_PCI_MEM_WIN_SIZE 0x20000000 kvmtool-0.20170904/powerpc/spapr.h:114:#define SPAPR_PCI_IO_WIN_ADDR (SPAPR_PCI_MEM_WIN_ADDR + SPAPR_PCI_MEM_WIN_SIZE) kvmtool-0.20170904/powerpc/spapr.h-115-#define SPAPR_PCI_IO_WIN_SIZE 0x2000000 ############################################## kvmtool-0.20170904/powerpc/include/asm/kvm.h-516-/* For SLB & DTL, address in high (first) half, length in low half */ kvmtool-0.20170904/powerpc/include/asm/kvm.h:517:#define KVM_REG_PPC_VPA_ADDR (KVM_REG_PPC | KVM_REG_SIZE_U64 | 0x82) kvmtool-0.20170904/powerpc/include/asm/kvm.h-518-#define KVM_REG_PPC_VPA_SLB (KVM_REG_PPC | KVM_REG_SIZE_U128 | 0x83) ############################################## kvmtool-0.20170904/powerpc/include/kvm/barrier.h-3- kvmtool-0.20170904/powerpc/include/kvm/barrier.h:4:#define mb() asm volatile ("sync" : : : "memory") kvmtool-0.20170904/powerpc/include/kvm/barrier.h:5:#define rmb() asm volatile ("sync" : : : "memory") kvmtool-0.20170904/powerpc/include/kvm/barrier.h:6:#define wmb() asm volatile ("sync" : : : "memory") kvmtool-0.20170904/powerpc/include/kvm/barrier.h-7- ############################################## kvmtool-0.20170904/powerpc/spapr_pci.c-220- kvmtool-0.20170904/powerpc/spapr_pci.c:221:static unsigned long bar_to_addr(unsigned long bar) kvmtool-0.20170904/powerpc/spapr_pci.c-222-{ ############################################## kvmtool-0.20170904/powerpc/spapr_pci.c-388- */ kvmtool-0.20170904/powerpc/spapr_pci.c:389: assigned_addresses[n].addr = cpu_to_be64(bar_to_addr(le32_to_cpu(hdr->bar[i]))); kvmtool-0.20170904/powerpc/spapr_pci.c-390- assigned_addresses[n].size = reg[n+1].size; ############################################## kvmtool-0.20170904/.pc/0003-virtio-use-strlcpy.patch/virtio/net.c-336- strncpy(ifr.ifr_name, ndev->tap_name, sizeof(ndev->tap_name)); kvmtool-0.20170904/.pc/0003-virtio-use-strlcpy.patch/virtio/net.c:337: sin.sin_addr.s_addr = inet_addr(params->host_ip); kvmtool-0.20170904/.pc/0003-virtio-use-strlcpy.patch/virtio/net.c-338- memcpy(&(ifr.ifr_addr), &sin, sizeof(ifr.ifr_addr)); ############################################## kvmtool-0.20170904/.pc/0003-virtio-use-strlcpy.patch/virtio/net.c-869- } else { kvmtool-0.20170904/.pc/0003-virtio-use-strlcpy.patch/virtio/net.c:870: ndev->info.host_ip = ntohl(inet_addr(params->host_ip)); kvmtool-0.20170904/.pc/0003-virtio-use-strlcpy.patch/virtio/net.c:871: ndev->info.guest_ip = ntohl(inet_addr(params->guest_ip)); kvmtool-0.20170904/.pc/0003-virtio-use-strlcpy.patch/virtio/net.c:872: ndev->info.guest_netmask = ntohl(inet_addr("255.255.255.0")); kvmtool-0.20170904/.pc/0003-virtio-use-strlcpy.patch/virtio/net.c-873- ndev->info.buf_nr = 20,