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] [thread-next>] [day] [month] [year] [list]
Message-Id: <5037A8E7020000780008A78B@nat28.tlf.novell.com>
Date:	Fri, 24 Aug 2012 16:16:39 +0100
From:	"Jan Beulich" <JBeulich@...e.com>
To:	"Alex Shi" <alex.shi@...el.com>, <tglx@...utronix.de>,
	<mingo@...hat.com>, <hpa@...or.com>
Cc:	<konrad.wilk@...cle.com>, <linux-kernel@...r.kernel.org>
Subject: Re: [PATCH] xen: fix logical error in tlb flushing

>>> On 24.08.12 at 10:55, Alex Shi <alex.shi@...el.com> wrote:
> While TLB_FLUSH_ALL gets passed as 'end' argument to
> flush_tlb_others(), the Xen code was made to check its 'start'
> parameter. That may give a incorrect op.cmd to MMUEXT_INVLPG_MULTI
> instead of MMUEXT_TLB_FLUSH_MULTI. Then it causes some page can not
> be flushed from TLB.
> 
> This patch fixed this issue.
> 
> Reported-by: Jan Beulich <jbeulich@...e.com>
> Signed-off-by: Alex Shi <alex.shi@...el.com>

Acked-by: Jan Beulich <jbeulich@...e.com>

> ---
>  arch/x86/xen/mmu.c |    2 +-
>  1 files changed, 1 insertions(+), 1 deletions(-)
> 
> diff --git a/arch/x86/xen/mmu.c b/arch/x86/xen/mmu.c
> index b65a761..5141d80 100644
> --- a/arch/x86/xen/mmu.c
> +++ b/arch/x86/xen/mmu.c
> @@ -1283,7 +1283,7 @@ static void xen_flush_tlb_others(const struct cpumask 
> *cpus,
>  	cpumask_clear_cpu(smp_processor_id(), to_cpumask(args->mask));
>  
>  	args->op.cmd = MMUEXT_TLB_FLUSH_MULTI;
> -	if (start != TLB_FLUSH_ALL && (end - start) <= PAGE_SIZE) {
> +	if (end != TLB_FLUSH_ALL && (end - start) <= PAGE_SIZE) {
>  		args->op.cmd = MMUEXT_INVLPG_MULTI;
>  		args->op.arg1.linear_addr = start;
>  	}
> -- 
> 1.7.5.4
> 
> .



--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ