Skip to contentSkip to conversation

Patch "rapidio/tsi721: fix incorrect detection of address translation condition" has been added to the 4.7-stable tree

PATCH [email protected] 1 participant 1 message Sep 22, 2016

Subsystems (2)
lore
Share & tools
lore

[email protected]

author maintainer Applied
#0 lore raw

This is a note to let you know that I've just added the patch titled

rapidio/tsi721: fix incorrect detection of address translation condition

to the 4.7-stable tree which can be found at:
http://www.kernel.org/git/?p=linux/kernel/git/stable/stable-queue.git;a=summary

The filename of the patch is:
rapidio-tsi721-fix-incorrect-detection-of-address-translation-condition.patch
and it can be found in the queue-4.7 subdirectory.

If you, or anyone else, feels it should not be added to the stable tree, please let <[email protected]> know about it.

Quoted 1 line

From b30069291dc7f9b9a073c33d619818fe4a8e50de Mon Sep 17 00:00:00 2001

From: Alexandre Bounine <[email protected]>
Date: Thu, 1 Sep 2016 16:15:18 -0700
Subject: rapidio/tsi721: fix incorrect detection of address translation condition

From: Alexandre Bounine <[email protected]>

commit b30069291dc7f9b9a073c33d619818fe4a8e50de upstream.

Fix incorrect condition to identify involvment of a address translation mechanism.

This bug results in NULL pointer kernel crash dump in cases when mapping of inbound RapidIO address range is requested within existing aprture.

---
 drivers/rapidio/devices/tsi721.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/rapidio/devices/tsi721.c +1 -1
@@ -1148,7 +1148,7 @@ static int tsi721_rio_map_inb_mem(struct
 		} else if (ibw_start < (ib_win->rstart + ib_win->size) &&
 			   (ibw_start + ibw_size) > ib_win->rstart) {
 			/* Return error if address translation involved */
-			if (direct && ib_win->xlat) {
+			if (!direct || ib_win->xlat) {
 				ret = -EFAULT;
 				break;
 			}

Patches currently in stable-queue which might be from [email protected] are

queue-4.7/rapidio-tsi721-fix-incorrect-detection-of-address-translation-condition.patch