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:	Thu, 26 Sep 2013 14:33:00 +0000
From:	Vineet Gupta <Vineet.Gupta1@...opsys.com>
To:	Mischa Jonker <Mischa.Jonker@...opsys.com>,
	"arnd@...db.de" <arnd@...db.de>,
	"linux-kernel@...r.kernel.org" <linux-kernel@...r.kernel.org>,
	"arc-linux-dev@...opsys.com" <arc-linux-dev@...opsys.com>
Subject: Re: [PATCH 1/2] ARC: Handle zero-overhead-loop in unaligned access
 handler

On 09/26/2013 07:34 PM, Mischa Jonker wrote:
> If a load or store is the last instruction in a zero-overhead-loop, and
> it's misaligned, the loop would execute only once.
>
> This fixes that problem.
>
> Signed-off-by: Mischa Jonker <mjonker@...opsys.com>

Applied to for-curr for 3.12-rcX

Thx,
-Vineet

> ---
>  arch/arc/kernel/unaligned.c |    6 ++++++
>  1 file changed, 6 insertions(+)
>
> diff --git a/arch/arc/kernel/unaligned.c b/arch/arc/kernel/unaligned.c
> index c0f832f..00ad070 100644
> --- a/arch/arc/kernel/unaligned.c
> +++ b/arch/arc/kernel/unaligned.c
> @@ -233,6 +233,12 @@ int misaligned_fixup(unsigned long address, struct pt_regs *regs,
>  		regs->status32 &= ~STATUS_DE_MASK;
>  	} else {
>  		regs->ret += state.instr_len;
> +
> +		/* handle zero-overhead-loop */
> +		if ((regs->ret == regs->lp_end) && (regs->lp_count)) {
> +			regs->ret = regs->lp_start;
> +			regs->lp_count--;
> +		}
>  	}
>  
>  	return 0;

--
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