* [PATCH] ARM: vfp: Fix wrong assignement to ufp_exc
@ 2018-11-06 17:05 Julien Thierry
2018-11-08 15:46 ` Russell King - ARM Linux
0 siblings, 1 reply; 3+ messages in thread
From: Julien Thierry @ 2018-11-06 17:05 UTC (permalink / raw)
To: linux-arm-kernel
In vfp_preserve_user_clear_hwstate, ufp_exc->fpinst2 gets assigned to
itself. It should actually be hwstate->fpinst2 that gets assigned to the
ufp_exc field.
Fixes commit 3aa2df6ec2ca6bc143a65351cca4266d03a8bc41 ("ARM: 8791/1:
vfp: use __copy_to_user() when saving VFP state").
Reported-by: David Binderman <dcb314@hotmail.com>
Signed-off-by: Julien Thierry <julien.thierry@arm.com>
Cc: Russell King <linux@armlinux.org.uk>
---
arch/arm/vfp/vfpmodule.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/arch/arm/vfp/vfpmodule.c b/arch/arm/vfp/vfpmodule.c
index aff6e6e..ee7b079 100644
--- a/arch/arm/vfp/vfpmodule.c
+++ b/arch/arm/vfp/vfpmodule.c
@@ -573,7 +573,7 @@ int vfp_preserve_user_clear_hwstate(struct user_vfp *ufp,
*/
ufp_exc->fpexc = hwstate->fpexc;
ufp_exc->fpinst = hwstate->fpinst;
- ufp_exc->fpinst2 = ufp_exc->fpinst2;
+ ufp_exc->fpinst2 = hwstate->fpinst2;
/* Ensure that VFP is disabled. */
vfp_flush_hwstate(thread);
--
1.9.1
^ permalink raw reply related [flat|nested] 3+ messages in thread
* [PATCH] ARM: vfp: Fix wrong assignement to ufp_exc
2018-11-06 17:05 [PATCH] ARM: vfp: Fix wrong assignement to ufp_exc Julien Thierry
@ 2018-11-08 15:46 ` Russell King - ARM Linux
2018-11-08 16:27 ` Julien Thierry
0 siblings, 1 reply; 3+ messages in thread
From: Russell King - ARM Linux @ 2018-11-08 15:46 UTC (permalink / raw)
To: linux-arm-kernel
On Tue, Nov 06, 2018 at 05:05:38PM +0000, Julien Thierry wrote:
> In vfp_preserve_user_clear_hwstate, ufp_exc->fpinst2 gets assigned to
> itself. It should actually be hwstate->fpinst2 that gets assigned to the
> ufp_exc field.
>
> Fixes commit 3aa2df6ec2ca6bc143a65351cca4266d03a8bc41 ("ARM: 8791/1:
> vfp: use __copy_to_user() when saving VFP state").
>
> Reported-by: David Binderman <dcb314@hotmail.com>
> Signed-off-by: Julien Thierry <julien.thierry@arm.com>
> Cc: Russell King <linux@armlinux.org.uk>
Please put this in the patch system, thanks.
> ---
> arch/arm/vfp/vfpmodule.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/arch/arm/vfp/vfpmodule.c b/arch/arm/vfp/vfpmodule.c
> index aff6e6e..ee7b079 100644
> --- a/arch/arm/vfp/vfpmodule.c
> +++ b/arch/arm/vfp/vfpmodule.c
> @@ -573,7 +573,7 @@ int vfp_preserve_user_clear_hwstate(struct user_vfp *ufp,
> */
> ufp_exc->fpexc = hwstate->fpexc;
> ufp_exc->fpinst = hwstate->fpinst;
> - ufp_exc->fpinst2 = ufp_exc->fpinst2;
> + ufp_exc->fpinst2 = hwstate->fpinst2;
>
> /* Ensure that VFP is disabled. */
> vfp_flush_hwstate(thread);
> --
> 1.9.1
>
--
RMK's Patch system: http://www.armlinux.org.uk/developer/patches/
FTTC broadband for 0.8mile line in suburbia: sync at 12.1Mbps down 622kbps up
According to speedtest.net: 11.9Mbps down 500kbps up
^ permalink raw reply [flat|nested] 3+ messages in thread
* [PATCH] ARM: vfp: Fix wrong assignement to ufp_exc
2018-11-08 15:46 ` Russell King - ARM Linux
@ 2018-11-08 16:27 ` Julien Thierry
0 siblings, 0 replies; 3+ messages in thread
From: Julien Thierry @ 2018-11-08 16:27 UTC (permalink / raw)
To: linux-arm-kernel
Hi Russell,
On 08/11/18 15:46, Russell King - ARM Linux wrote:
> On Tue, Nov 06, 2018 at 05:05:38PM +0000, Julien Thierry wrote:
>> In vfp_preserve_user_clear_hwstate, ufp_exc->fpinst2 gets assigned to
>> itself. It should actually be hwstate->fpinst2 that gets assigned to the
>> ufp_exc field.
>>
>> Fixes commit 3aa2df6ec2ca6bc143a65351cca4266d03a8bc41 ("ARM: 8791/1:
>> vfp: use __copy_to_user() when saving VFP state").
>>
>> Reported-by: David Binderman <dcb314@hotmail.com>
>> Signed-off-by: Julien Thierry <julien.thierry@arm.com>
>> Cc: Russell King <linux@armlinux.org.uk>
>
> Please put this in the patch system, thanks.
It is done.
Thanks,
>
>> ---
>> arch/arm/vfp/vfpmodule.c | 2 +-
>> 1 file changed, 1 insertion(+), 1 deletion(-)
>>
>> diff --git a/arch/arm/vfp/vfpmodule.c b/arch/arm/vfp/vfpmodule.c
>> index aff6e6e..ee7b079 100644
>> --- a/arch/arm/vfp/vfpmodule.c
>> +++ b/arch/arm/vfp/vfpmodule.c
>> @@ -573,7 +573,7 @@ int vfp_preserve_user_clear_hwstate(struct user_vfp *ufp,
>> */
>> ufp_exc->fpexc = hwstate->fpexc;
>> ufp_exc->fpinst = hwstate->fpinst;
>> - ufp_exc->fpinst2 = ufp_exc->fpinst2;
>> + ufp_exc->fpinst2 = hwstate->fpinst2;
>>
>> /* Ensure that VFP is disabled. */
>> vfp_flush_hwstate(thread);
>> --
>> 1.9.1
>>
>
--
Julien Thierry
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2018-11-08 16:27 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2018-11-06 17:05 [PATCH] ARM: vfp: Fix wrong assignement to ufp_exc Julien Thierry
2018-11-08 15:46 ` Russell King - ARM Linux
2018-11-08 16:27 ` Julien Thierry
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).