* Sasha Levin <[email protected]> wrote:
> + kvm->bz_start = mmap(NULL, kvm->bz_len, PROT_READ | PROT_WRITE,
> + MAP_PRIVATE, kvm->bz_fd, setup_end);
>
> + /* NOP everything before the kernel start */
> + memset(kvm->bz_start, 0x90, setup_size - setup_end);
You should really, really think about the case where mmap()
fails.
Thanks,
Ingo
--
To unsubscribe from this list: send the line "unsubscribe kvm" in
the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html