lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite for Android: free password hash cracker in your pocket
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <0b8525d8-e26b-e4df-508d-b6a4d9c06a76@redhat.com>
Date:   Mon, 27 May 2019 13:53:58 +0200
From:   Paolo Bonzini <pbonzini@...hat.com>
To:     Wanpeng Li <kernellwp@...il.com>, linux-kernel@...r.kernel.org,
        kvm@...r.kernel.org
Cc:     Radim Krčmář <rkrcmar@...hat.com>
Subject: Re: [PATCH 2/3] KVM: X86: Implement PV sched yield hypercall

On 27/05/19 12:34, Wanpeng Li wrote:
> +	rcu_read_lock();
> +	map = rcu_dereference(kvm->arch.apic_map);
> +	target = map->phys_map[dest_id]->vcpu;
> +	rcu_read_unlock();
> +
> +	kvm_vcpu_yield_to(target);

This needs to check that map->phys_map[dest_id] is not NULL.

Paolo

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ