From: Patrick McHardy Subject: Re: 2.6.13-rc5-mm1: BUG: rwlock recursion on CPU#0 Date: Sun, 14 Aug 2005 15:18:48 +0200 Message-ID: <42FF44B8.9000007@trash.net> References: <200508141448.36562.rjw@sisk.pl> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Cc: Andrew Morton , Harald Welte , netfilter Development Mailinglist , LKML Return-path: To: "Rafael J. Wysocki" In-Reply-To: <200508141448.36562.rjw@sisk.pl> List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: netfilter-devel-bounces@lists.netfilter.org Errors-To: netfilter-devel-bounces@lists.netfilter.org List-Id: netfilter-devel.vger.kernel.org Rafael J. Wysocki wrote: > I've got the following BUG on Asus L5D (x86-64) with the 2.6.13-rc5-mm1 kernel: > > BUG: rwlock recursion on CPU#0, nscd/3668, ffffffff8817d4a0 > > Call Trace:{add_preempt_count+105} {rwlock_bug+114} > {_raw_write_lock+62} {_write_lock_bh+40} > {:ip_conntrack:destroy_conntrack+196} > {:ip_conntrack:__ip_ct_event_cache_init+165} > {:ip_conntrack:ip_ct_refresh_acct+249} > {:ip_conntrack:udp_packet+47} {:ip_conntrack:ip_conntrack_in+1059} > {:ip_conntrack:ip_conntrack_local+76} > {nf_iterate+92} {dst_output+0} > {nf_hook_slow+142} {dst_output+0} > {ip_push_pending_frames+895} {lock_sock+201} > {udp_push_pending_frames+574} {udp_sendmsg+1703} > {current_fs_time+78} {file_read_actor+60} > {update_atime+76} {do_generic_mapping_read+1194} > {inet_sendmsg+86} {sock_sendmsg+271} > {add_preempt_count+105} {free_hot_cold_page+270} > {free_hot_page+11} {add_preempt_count+105} > {autoremove_wake_function+0} {sockfd_lookup+28} > {sys_sendto+260} {do_sys_poll+851} > {__pollwait+0} {system_call+126} I fear my event cache fixes are responsible for this, we must not cache events while holding a lock anymore because we might need to deliver old cached events. I'll try to come up with a fix later.