Login
[x]
Log in using an account from:
Fedora Account System
Red Hat Associate
Red Hat Customer
Or login using a Red Hat Bugzilla account
Forgot Password
Login:
Hide Forgot
Create an Account
Red Hat Bugzilla – Attachment 160787 Details for
Bug 212922
/sbin/service iptables stop hangs on modprobe -r ipt_state
[?]
New
Simple Search
Advanced Search
My Links
Browse
Requests
Reports
Current State
Search
Tabular reports
Graphical reports
Duplicates
Other Reports
User Changes
Plotly Reports
Bug Status
Bug Severity
Non-Defaults
|
Product Dashboard
Help
Page Help!
Bug Writing Guidelines
What's new
Browser Support Policy
5.0.4.rh83 Release notes
FAQ
Guides index
User guide
Web Services
Contact
Legal
This site requires JavaScript to be enabled to function correctly, please enable it.
[patch]
new patch
linux-2.6.9-iptables-sockopt-deadlock.patch (text/plain), 1.58 KB, created by
Alex Tang
on 2007-08-07 01:07:44 UTC
(
hide
)
Description:
new patch
Filename:
MIME Type:
Creator:
Alex Tang
Created:
2007-08-07 01:07:44 UTC
Size:
1.58 KB
patch
obsolete
>--- linux-2.6.9/net/core/netfilter.c.orig 2007-08-06 14:04:42.000000000 -0400 >+++ linux-2.6.9/net/core/netfilter.c 2007-08-06 14:10:11.000000000 -0400 >@@ -48,6 +48,7 @@ static DECLARE_MUTEX(nf_sockopt_mutex); > struct list_head nf_hooks[NPROTO][NF_MAX_HOOKS]; > static LIST_HEAD(nf_sockopts); > static spinlock_t nf_hook_lock = SPIN_LOCK_UNLOCKED; >+static rwlock_t nf_use_lock = RW_LOCK_UNLOCKED; > > /* > * A queue handler may be registered for each protocol. Each is protected by >@@ -126,6 +127,7 @@ out: > void nf_unregister_sockopt(struct nf_sockopt_ops *reg) > { > /* No point being interruptible: we're probably in cleanup_module() */ >+ write_lock(&nf_use_lock); > restart: > down(&nf_sockopt_mutex); > if (reg->use != 0) { >@@ -139,6 +141,7 @@ void nf_unregister_sockopt(struct nf_soc > } > list_del(®->list); > up(&nf_sockopt_mutex); >+ write_unlock(&nf_use_lock); > } > > #ifdef CONFIG_NETFILTER_DEBUG >@@ -292,8 +295,12 @@ static int nf_sockopt(struct sock *sk, i > struct nf_sockopt_ops *ops; > int ret; > >- if (down_interruptible(&nf_sockopt_mutex) != 0) >+ read_lock(&nf_use_lock); >+ >+ if (down_interruptible(&nf_sockopt_mutex) != 0) { >+ read_unlock(&nf_use_lock); > return -EINTR; >+ } > > list_for_each(i, &nf_sockopts) { > ops = (struct nf_sockopt_ops *)i; >@@ -318,6 +325,7 @@ static int nf_sockopt(struct sock *sk, i > } > } > up(&nf_sockopt_mutex); >+ read_unlock(&nf_use_lock); > return -ENOPROTOOPT; > > out: >@@ -326,6 +334,7 @@ static int nf_sockopt(struct sock *sk, i > if (ops->cleanup_task) > wake_up_process(ops->cleanup_task); > up(&nf_sockopt_mutex); >+ read_unlock(&nf_use_lock); > return ret; > } >
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 212922
:
159071
|
159072
|
159567
|
159568
|
159571
|
160770
|
160787
|
169395
|
174041
|
174261
|
176401
|
183901
|
183921
|
184891
|
186411
|
186601