Login
Log in using an SSO provider:
Fedora Account System
Red Hat Associate
Red Hat Customer
Login using a Red Hat Bugzilla account
Forgot Password
Create an Account
Red Hat Bugzilla – Attachment 144042 Details for
Bug 212839
"service iptables stop" fails because ip_conntrack cannot be unloaded.
Home
New
Search
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.rh92 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]
Updated proposed patch
linux-kernel-test.patch (text/plain), 2.53 KB, created by
Brad Hinson
on 2006-12-19 20:54:37 UTC
(
hide
)
Description:
Updated proposed patch
Filename:
MIME Type:
Creator:
Brad Hinson
Created:
2006-12-19 20:54:37 UTC
Size:
2.53 KB
patch
obsolete
>Index: linux-2.6.18.i386/net/ipv4/netfilter/ip_conntrack_core.c >=================================================================== >--- linux-2.6.18.i386.orig/net/ipv4/netfilter/ip_conntrack_core.c 2006-10-30 15:46:10.000000000 +0100 >+++ linux-2.6.18.i386/net/ipv4/netfilter/ip_conntrack_core.c 2006-12-08 16:05:40.000000000 +0100 >@@ -640,11 +640,15 @@ > ip_conntrack_hash_rnd_initted = 1; > } > >+ /* We don't want any race condition at early drop stage */ >+ atomic_inc(&ip_conntrack_count); >+ > if (ip_conntrack_max >- && atomic_read(&ip_conntrack_count) >= ip_conntrack_max) { >+ && atomic_read(&ip_conntrack_count) > ip_conntrack_max) { > unsigned int hash = hash_conntrack(orig); > /* Try dropping from this hash chain. */ > if (!early_drop(&ip_conntrack_hash[hash])) { >+ atomic_dec(&ip_conntrack_count); > if (net_ratelimit()) > printk(KERN_WARNING > "ip_conntrack: table full, dropping" >@@ -656,6 +660,7 @@ > conntrack = kmem_cache_alloc(ip_conntrack_cachep, GFP_ATOMIC); > if (!conntrack) { > DEBUGP("Can't allocate conntrack.\n"); >+ atomic_dec(&ip_conntrack_count); > return ERR_PTR(-ENOMEM); > } > >@@ -669,8 +674,6 @@ > conntrack->timeout.data = (unsigned long)conntrack; > conntrack->timeout.function = death_by_timeout; > >- atomic_inc(&ip_conntrack_count); >- > return conntrack; > } > >Index: linux-2.6.18.i386/net/netfilter/nf_conntrack_core.c >=================================================================== >--- linux-2.6.18.i386.orig/net/netfilter/nf_conntrack_core.c 2006-10-30 15:46:10.000000000 +0100 >+++ linux-2.6.18.i386/net/netfilter/nf_conntrack_core.c 2006-12-08 16:05:40.000000000 +0100 >@@ -866,11 +866,15 @@ > nf_conntrack_hash_rnd_initted = 1; > } > >+ /* We don't want any race condition at early drop stage */ >+ atomic_inc(&nf_conntrack_count); >+ > if (nf_conntrack_max >- && atomic_read(&nf_conntrack_count) >= nf_conntrack_max) { >+ && atomic_read(&nf_conntrack_count) > nf_conntrack_max) { > unsigned int hash = hash_conntrack(orig); > /* Try dropping from this hash chain. */ > if (!early_drop(&nf_conntrack_hash[hash])) { >+ atomic_dec(&nf_conntrack_count); > if (net_ratelimit()) > printk(KERN_WARNING > "nf_conntrack: table full, dropping" >@@ -921,10 +925,12 @@ > init_timer(&conntrack->timeout); > conntrack->timeout.data = (unsigned long)conntrack; > conntrack->timeout.function = death_by_timeout; >+ read_unlock_bh(&nf_ct_cache_lock); > >- atomic_inc(&nf_conntrack_count); >+ return conntrack; > out: > read_unlock_bh(&nf_ct_cache_lock); >+ atomic_dec(&nf_conntrack_count); > return conntrack; > } >
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 212839
:
143074
|
143160
| 144042 |
144747
|
144749
|
144824
|
145475
|
145476
|
145477
|
145509
|
145810
|
145811