|
Davidlohr Bueso |
7f80d2 |
From 5ccc8fb54f1c083f1dc7e073150ec18d43457872 Mon Sep 17 00:00:00 2001
|
|
Davidlohr Bueso |
7f80d2 |
From: Kees Cook <keescook@chromium.org>
|
|
Davidlohr Bueso |
7f80d2 |
Date: Wed, 12 Jul 2017 14:34:59 -0700
|
|
Davidlohr Bueso |
7f80d2 |
Subject: [PATCH 08/20] ipc/util: drop ipc_rcu_free()
|
|
Davidlohr Bueso |
7f80d2 |
Git-commit: 5ccc8fb54f1c083f1dc7e073150ec18d43457872
|
|
Davidlohr Bueso |
7f80d2 |
Patch-mainline: v4.13-rc1
|
|
Davidlohr Bueso |
7f80d2 |
References: bsc#1050323
|
|
Davidlohr Bueso |
7f80d2 |
|
|
Davidlohr Bueso |
7f80d2 |
There are no more callers of ipc_rcu_free(), so remove it.
|
|
Davidlohr Bueso |
7f80d2 |
|
|
Davidlohr Bueso |
7f80d2 |
Link: http://lkml.kernel.org/r/20170525185107.12869-9-manfred@colorfullife.com
|
|
Davidlohr Bueso |
7f80d2 |
Signed-off-by: Kees Cook <keescook@chromium.org>
|
|
Davidlohr Bueso |
7f80d2 |
Signed-off-by: Manfred Spraul <manfred@colorfullife.com>
|
|
Davidlohr Bueso |
7f80d2 |
Cc: Davidlohr Bueso <dave@stgolabs.net>
|
|
Davidlohr Bueso |
7f80d2 |
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
|
|
Davidlohr Bueso |
7f80d2 |
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
|
|
Davidlohr Bueso |
7f80d2 |
Signed-off-by: Davidlohr Bueso <dbueso@suse.de>
|
|
Davidlohr Bueso |
7f80d2 |
|
|
Davidlohr Bueso |
7f80d2 |
---
|
|
Davidlohr Bueso |
7f80d2 |
ipc/util.c | 7 -------
|
|
Davidlohr Bueso |
7f80d2 |
ipc/util.h | 1 -
|
|
Davidlohr Bueso |
7f80d2 |
2 files changed, 8 deletions(-)
|
|
Davidlohr Bueso |
7f80d2 |
|
|
Davidlohr Bueso |
7f80d2 |
diff --git a/ipc/util.c b/ipc/util.c
|
|
Davidlohr Bueso |
7f80d2 |
index dd73feb1569a..556884bab698 100644
|
|
Davidlohr Bueso |
7f80d2 |
--- a/ipc/util.c
|
|
Davidlohr Bueso |
7f80d2 |
+++ b/ipc/util.c
|
|
Davidlohr Bueso |
7f80d2 |
@@ -429,13 +429,6 @@ void ipc_rcu_putref(struct kern_ipc_perm *ptr,
|
|
Davidlohr Bueso |
7f80d2 |
call_rcu(&ptr->rcu, func);
|
|
Davidlohr Bueso |
7f80d2 |
}
|
|
Davidlohr Bueso |
7f80d2 |
|
|
Davidlohr Bueso |
7f80d2 |
-void ipc_rcu_free(struct rcu_head *h)
|
|
Davidlohr Bueso |
7f80d2 |
-{
|
|
Davidlohr Bueso |
7f80d2 |
- struct kern_ipc_perm *ptr = container_of(h, struct kern_ipc_perm, rcu);
|
|
Davidlohr Bueso |
7f80d2 |
-
|
|
Davidlohr Bueso |
7f80d2 |
- kvfree(ptr);
|
|
Davidlohr Bueso |
7f80d2 |
-}
|
|
Davidlohr Bueso |
7f80d2 |
-
|
|
Davidlohr Bueso |
7f80d2 |
/**
|
|
Davidlohr Bueso |
7f80d2 |
* ipcperms - check ipc permissions
|
|
Davidlohr Bueso |
7f80d2 |
* @ns: ipc namespace
|
|
Davidlohr Bueso |
7f80d2 |
diff --git a/ipc/util.h b/ipc/util.h
|
|
Davidlohr Bueso |
7f80d2 |
index 2578fd9be835..44efbc0b635b 100644
|
|
Davidlohr Bueso |
7f80d2 |
--- a/ipc/util.h
|
|
Davidlohr Bueso |
7f80d2 |
+++ b/ipc/util.h
|
|
Davidlohr Bueso |
7f80d2 |
@@ -119,7 +119,6 @@ struct kern_ipc_perm *ipc_rcu_alloc(int size);
|
|
Davidlohr Bueso |
7f80d2 |
int ipc_rcu_getref(struct kern_ipc_perm *ptr);
|
|
Davidlohr Bueso |
7f80d2 |
void ipc_rcu_putref(struct kern_ipc_perm *ptr,
|
|
Davidlohr Bueso |
7f80d2 |
void (*func)(struct rcu_head *head));
|
|
Davidlohr Bueso |
7f80d2 |
-void ipc_rcu_free(struct rcu_head *h);
|
|
Davidlohr Bueso |
7f80d2 |
|
|
Davidlohr Bueso |
7f80d2 |
struct kern_ipc_perm *ipc_lock(struct ipc_ids *, int);
|
|
Davidlohr Bueso |
7f80d2 |
struct kern_ipc_perm *ipc_obtain_object_idr(struct ipc_ids *ids, int id);
|
|
Davidlohr Bueso |
7f80d2 |
--
|
|
Davidlohr Bueso |
7f80d2 |
2.12.0
|
|
Davidlohr Bueso |
7f80d2 |
|