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 176401 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.
new patch
linux-2.6.9-iptables-sockopt-deadlock.patch (text/x-patch), 1.62 KB, created by
Neil Horman
on 2007-08-28 13:22:23 UTC
(
hide
)
Description:
new patch
Filename:
MIME Type:
Creator:
Neil Horman
Created:
2007-08-28 13:22:23 UTC
Size:
1.62 KB
patch
obsolete
>--- linux-2.6.9/net/core/netfilter.c.orig 2004-10-18 17:54:07.000000000 -0400 >+++ linux-2.6.9/net/core/netfilter.c 2007-08-28 08:35:41.000000000 -0400 >@@ -48,6 +48,7 @@ > struct list_head nf_hooks[NPROTO][NF_MAX_HOOKS]; > static LIST_HEAD(nf_sockopts); > static spinlock_t nf_hook_lock = SPIN_LOCK_UNLOCKED; >+static DECLARE_RWSEM(nf_use_lock); > > /* > * A queue handler may be registered for each protocol. Each is protected by >@@ -126,11 +127,14 @@ > void nf_unregister_sockopt(struct nf_sockopt_ops *reg) > { > /* No point being interruptible: we're probably in cleanup_module() */ >+ down_write(&nf_use_lock); > restart: > down(&nf_sockopt_mutex); > if (reg->use != 0) { > /* To be woken by nf_sockopt call... */ > /* FIXME: Stuart Young's name appears gratuitously. */ >+ printk(KERN_CRIT "NETFILTER USE NONZERO ON UNREGISTER\n"); >+ BUG(); > set_current_state(TASK_UNINTERRUPTIBLE); > reg->cleanup_task = current; > up(&nf_sockopt_mutex); >@@ -139,6 +143,7 @@ > } > list_del(®->list); > up(&nf_sockopt_mutex); >+ up_write(&nf_use_lock); > } > > #ifdef CONFIG_NETFILTER_DEBUG >@@ -292,8 +297,12 @@ > struct nf_sockopt_ops *ops; > int ret; > >- if (down_interruptible(&nf_sockopt_mutex) != 0) >+ down_read(&nf_use_lock); >+ >+ if (down_interruptible(&nf_sockopt_mutex) != 0) { >+ up_read(&nf_use_lock); > return -EINTR; >+ } > > list_for_each(i, &nf_sockopts) { > ops = (struct nf_sockopt_ops *)i; >@@ -318,6 +327,7 @@ > } > } > up(&nf_sockopt_mutex); >+ up_read(&nf_use_lock); > return -ENOPROTOOPT; > > out: >@@ -326,6 +336,7 @@ > if (ops->cleanup_task) > wake_up_process(ops->cleanup_task); > up(&nf_sockopt_mutex); >+ up_read(&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 Raw
Actions:
View
Attachments on
bug 212922
:
159071
|
159072
|
159567
|
159568
|
159571
|
160770
|
160787
|
169395
|
174041
|
174261
|
176401
|
183901
|
183921
|
184891
|
186411
|
186601