summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJosh Boyer <jwboyer@redhat.com>2012-11-23 07:58:05 -0500
committerJosh Boyer <jwboyer@redhat.com>2012-11-23 07:58:05 -0500
commit8ec3ca82494b5cf49b97717671c9c4d7e4e90d2b (patch)
tree3c29e083062b016c2a60542fa0d83a775e274cd3
parent89d7c1ef7327844f6b7eee4fb59123854b7e13b2 (diff)
downloadkernel-8ec3ca82494b5cf49b97717671c9c4d7e4e90d2b.tar.gz
kernel-8ec3ca82494b5cf49b97717671c9c4d7e4e90d2b.tar.xz
kernel-8ec3ca82494b5cf49b97717671c9c4d7e4e90d2b.zip
Linux v3.7-rc6-109-g26d29d0
-rw-r--r--kernel.spec11
-rw-r--r--selinux-Fix-sel_netnode_insert-suspicious-rcu-dereference.patch54
-rw-r--r--sources2
3 files changed, 5 insertions, 62 deletions
diff --git a/kernel.spec b/kernel.spec
index 841255f0e..6fe02a96f 100644
--- a/kernel.spec
+++ b/kernel.spec
@@ -95,7 +95,7 @@ Summary: The Linux kernel
# The rc snapshot level
%define rcrev 6
# The git snapshot level
-%define gitrev 2
+%define gitrev 3
# Set rpm version accordingly
%define rpmversion 3.%{upstream_sublevel}.0
%endif
@@ -761,9 +761,6 @@ Patch22000: weird-root-dentry-name-debug.patch
#selinux ptrace child permissions
Patch22001: selinux-apply-different-permission-to-ptrace-child.patch
-#rhbz 846037
-Patch22067: selinux-Fix-sel_netnode_insert-suspicious-rcu-dereference.patch
-
# Build patch, should go away
Patch22070: irqnr-build.patch
Patch22071: uapi-prefix-fix.patch
@@ -1477,9 +1474,6 @@ ApplyPatch weird-root-dentry-name-debug.patch
#selinux ptrace child permissions
ApplyPatch selinux-apply-different-permission-to-ptrace-child.patch
-#rhbz 846037
-ApplyPatch selinux-Fix-sel_netnode_insert-suspicious-rcu-dereference.patch
-
#Build patch, should go away
ApplyPatch irqnr-build.patch
ApplyPatch uapi-prefix-fix.patch
@@ -2359,6 +2353,9 @@ fi
# ||----w |
# || ||
%changelog
+* Fri Nov 23 2012 Josh Boyer <jwboyer@redhat.com> - 3.7.0-0.rc6.git3.1
+- Linux v3.7-rc6-109-g26d29d0
+
* Wed Nov 21 2012 Josh Boyer <jwboyer@redhat.com> - 3.7.0-0.rc6.git2.1
- Linux v3.7-rc6-41-g99b6e1e
diff --git a/selinux-Fix-sel_netnode_insert-suspicious-rcu-dereference.patch b/selinux-Fix-sel_netnode_insert-suspicious-rcu-dereference.patch
deleted file mode 100644
index 43fddf73d..000000000
--- a/selinux-Fix-sel_netnode_insert-suspicious-rcu-dereference.patch
+++ /dev/null
@@ -1,54 +0,0 @@
-From: Dave Jones <>
-Subject: Fix sel_netnode_insert suspicious rcu dereference.
-
-
-I reported this a year ago (https://lkml.org/lkml/2011/4/20/308).
-It's still a problem apparently ...
-
-===============================
-[ INFO: suspicious RCU usage. ]
-3.5.0-rc1+ #63 Not tainted
--------------------------------
-security/selinux/netnode.c:178 suspicious rcu_dereference_check() usage!
-other info that might help us debug this:
-
-
-rcu_scheduler_active = 1, debug_locks = 0
-1 lock held by trinity-child1/8750:
- #0: (sel_netnode_lock){+.....}, at: [<ffffffff812d8f8a>] sel_netnode_sid+0x16a/0x3e0
-stack backtrace:
-Pid: 8750, comm: trinity-child1 Not tainted 3.5.0-rc1+ #63
-Call Trace:
- [<ffffffff810cec2d>] lockdep_rcu_suspicious+0xfd/0x130
- [<ffffffff812d91d1>] sel_netnode_sid+0x3b1/0x3e0
- [<ffffffff812d8e20>] ? sel_netnode_find+0x1a0/0x1a0
- [<ffffffff812d24a6>] selinux_socket_bind+0xf6/0x2c0
- [<ffffffff810cd1dd>] ? trace_hardirqs_off+0xd/0x10
- [<ffffffff810cdb55>] ? lock_release_holdtime.part.9+0x15/0x1a0
- [<ffffffff81093841>] ? lock_hrtimer_base+0x31/0x60
- [<ffffffff812c9536>] security_socket_bind+0x16/0x20
- [<ffffffff815550ca>] sys_bind+0x7a/0x100
- [<ffffffff816c03d5>] ? sysret_check+0x22/0x5d
- [<ffffffff810d392d>] ? trace_hardirqs_on_caller+0x10d/0x1a0
- [<ffffffff8133b09e>] ? trace_hardirqs_on_thunk+0x3a/0x3f
- [<ffffffff816c03a9>] system_call_fastpath+0x16/0x1b
-This patch below does what Paul McKenney suggested in the previous thread.
-
-Signed-off-by: Dave Jones <davej@redhat.com>
-
-diff --git a/security/selinux/netnode.c b/security/selinux/netnode.c
-index 28f911c..c5454c0 100644
---- a/security/selinux/netnode.c
-+++ b/security/selinux/netnode.c
-@@ -174,7 +174,8 @@ static void sel_netnode_insert(struct sel_netnode *node)
- if (sel_netnode_hash[idx].size == SEL_NETNODE_HASH_BKT_LIMIT) {
- struct sel_netnode *tail;
- tail = list_entry(
-- rcu_dereference(sel_netnode_hash[idx].list.prev),
-+ rcu_dereference_protected(sel_netnode_hash[idx].list.prev,
-+ lockdep_is_held(&sel_netnode_lock)),
- struct sel_netnode, list);
- list_del_rcu(&tail->list);
- kfree_rcu(tail, rcu);
-
-
diff --git a/sources b/sources
index a3c8ae8ac..fc185a78d 100644
--- a/sources
+++ b/sources
@@ -1,3 +1,3 @@
1a1760420eac802c541a20ab51a093d1 linux-3.6.tar.xz
9043df5ead6560ed6f56a062ab9b1d23 patch-3.7-rc6.xz
-0ca134c13d960641addb61555cd13555 patch-3.7-rc6-git2.xz
+45df5ed00af4dbe1ab8493c3d2818c73 patch-3.7-rc6-git3.xz