memory: fix flatview_access_valid RCU read lock/unlock imbalance
PATCH 1/1 memory: fix flatview_access_valid RCU read lock/unlock imbalance
Fixes 11e732a5ed46903f997985bed4c3767ca28a7eb6
Reported-by Cornelia Huck <[email protected]>
Reported-by luigi burdo <[email protected]>
Signed-off-by Paolo Bonzini <[email protected]>
--- exec.c | 1 - 1 file changed, 1 deletion(-)
exec.c +0 -1
@@ -3393,7 +3393,6 @@ static bool flatview_access_valid(FlatView *fv, hwaddr addr, int len,if (!memory_access_is_direct (mr, is_write)) { l =memory_access_size (mr, l, addr);if (!memory_region_access_valid (mr, xlat, l, is_write)) { -rcu_read_unlock ();return false; } }
Signature · 1 line
2.14.3
Quoted 13 lines · On Wed, 7 Mar 2018 14:02:38 +0100 Paolo Bonzini <[email protected]> wrote:
Fixes 11e732a5ed46903f997985bed4c3767ca28a7eb6Reported-by Cornelia Huck <[email protected]>Reported-by luigi burdo <[email protected]>Signed-off-by Paolo Bonzini <[email protected]>--- exec.c | 1 - 1 file changed, 1 deletion(-)exec.c +0
-0
exec.c static bool flatview_access_valid(FlatView *fv, hwaddr addr, int len, · line 3398
Quoted 7 lines
exec.c +0
-1@@ -3393,7 +3393,6 @@ static bool flatview_access_valid(FlatView *fv, hwaddr addr, int len,if (!memory_access_is_direct (mr, is_write)) { l =memory_access_size (mr, l, addr);if (!memory_region_access_valid (mr, xlat, l, is_write)) { -rcu_read_unlock ();return false; } }
Thanks, that fixes master for me.
Tested-by Cornelia Huck <[email protected]>
Quoted 14 lines · Paolo Bonzini
Fixes 11e732a5ed46903f997985bed4c3767ca28a7eb6Reported-by Cornelia Huck <[email protected]>Reported-by luigi burdo <[email protected]>Signed-off-by Paolo Bonzini <[email protected]>--- exec.c | 1 - 1 file changed, 1 deletion(-)exec.c +0
-0
exec.c static bool flatview_access_valid(FlatView *fv, hwaddr addr, int len, · line 3398
Quoted 7 lines
exec.c +0
-1@@ -3393,7 +3393,6 @@ static bool flatview_access_valid(FlatView *fv, hwaddr addr, int len,if (!memory_access_is_direct (mr, is_write)) { l =memory_access_size (mr, l, addr);if (!memory_region_access_valid (mr, xlat, l, is_write)) { -rcu_read_unlock ();return false; } }
Thanks, this seems to fix the problem with the sam640ex and 40p machines.
Tested-by Thomas Huth <[email protected]>
Peter Maydell
AppliedQuoted 25 lines · Thomas Huth
Quoted 14 lines · Paolo Bonzini
Fixes 11e732a5ed46903f997985bed4c3767ca28a7eb6Reported-by Cornelia Huck <[email protected]>Reported-by luigi burdo <[email protected]>Signed-off-by Paolo Bonzini <[email protected]>--- exec.c | 1 - 1 file changed, 1 deletion(-)exec.c +0
-0exec.c static bool flatview_access_valid(FlatView *fv, hwaddr addr, int len, · line 3398
Quoted 7 lines
exec.c +0
-1@@ -3393,7 +3393,6 @@ static bool flatview_access_valid(FlatView *fv, hwaddr addr, int len,if (!memory_access_is_direct (mr, is_write)) { l =memory_access_size (mr, l, addr);if (!memory_region_access_valid (mr, xlat, l, is_write)) { -rcu_read_unlock ();return false; } }Thanks, this seems to fix the problem with the sam640ex and 40p machines.
Quoted 1 line
Tested-by Thomas Huth <[email protected]>
Thanks, applied to master since I ran into this too.
-- PMM