Skip to contentSkip to conversation

ipcshm-shorten-critical-region-for-shmat-fix.patch removed from -mm tree

folded-merged [email protected] 1 participant 1 message Sep 11, 2013

lore
Share & tools
lore
#0 lore raw

Subject: [folded-merged] ipcshm-shorten-critical-region-for-shmat-fix.patch removed from -mm tree
To: [email protected],[email protected],[email protected],[email protected],[email protected]
From: [email protected]
Date: Wed, 11 Sep 2013 14:07:52 -0700

The patch titled
Subject: ipc,shm: dont leave do_shmat with rcu lock held
has been removed from the -mm tree. Its filename was
ipcshm-shorten-critical-region-for-shmat-fix.patch

This patch was dropped because it was folded into ipcshm-shorten-critical-region-for-shmat.patch

------------------------------------------------------
From: Sasha Levin <[email protected]>
Subject: ipc,shm: dont leave do_shmat with rcu lock held

Commit "ipc,shm: shorten critical region for shmat" had an issue that allowed us to exit do_shmat() without releasing the rcu lock that was taken previously in the function.

Cc Sedat Dilek <[email protected]>
Cc Rik van Riel <[email protected]>
Cc Manfred Spraul <[email protected]>

---

 ipc/shm.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
ipc/shm.c renamed from ipc/shm.c~ipcshm-shorten-critical-region-for-shmat-fix +1 -1
diff -puN ipc/shm.c~ipcshm-shorten-critical-region-for-shmat-fix ipc/shm.c
@@ -1093,7 +1093,7 @@ long do_shmat(int shmid, char __user *sh
 	shp = shm_obtain_object_check(ns, shmid);
 	if (IS_ERR(shp)) {
 		err = PTR_ERR(shp);
-		goto out;
+		goto out_unlock;
 	}
 
 	err = -EACCES;

_

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

origin.patch
ipcshm-shorten-critical-region-for-shmat.patch