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: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Date:   Fri, 29 Nov 2019 06:59:12 +0100
From:   Jürgen Groß <jgross@...e.com>
To:     Boris Ostrovsky <boris.ostrovsky@...cle.com>,
        xen-devel@...ts.xenproject.org, linux-kernel@...r.kernel.org
Cc:     Stefano Stabellini <sstabellini@...nel.org>
Subject: Re: [PATCH v2] xen/events: remove event handling recursion detection

On 28.11.19 22:37, Boris Ostrovsky wrote:
> On 11/28/19 3:45 AM, Juergen Gross wrote:
>> -
>>   static void __xen_evtchn_do_upcall(void)
>>   {
>>   	struct vcpu_info *vcpu_info = __this_cpu_read(xen_vcpu);
>> -	int cpu = get_cpu();
>> -	unsigned count;
>> +	int cpu = smp_processor_id();
>>   
>>   	do {
>>   		vcpu_info->evtchn_upcall_pending = 0;
>>   
>> -		if (__this_cpu_inc_return(xed_nesting_count) - 1)
>> -			goto out;
>> -
>>   		xen_evtchn_handle_events(cpu);
>>   
>>   		BUG_ON(!irqs_disabled());
>>   
>> -		count = __this_cpu_read(xed_nesting_count);
>> -		__this_cpu_write(xed_nesting_count, 0);
>> -	} while (count != 1 || vcpu_info->evtchn_upcall_pending);
>> -
>> -out:
>> +		rmb(); /* Hypervisor can set upcall pending. */
> 
> virt_rmb() perhaps then?

Yes, that's better.


Juergen

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ