Date: Fri, 20 Mar 2009 14:59:44 +0900 From: Weongyo Jeong <weongyo.jeong@gmail.com> To: Ganbold <ganbold@micom.mng.net> Cc: "freebsd-current@freebsd.org" <freebsd-current@FreeBSD.org> Subject: Re: ndis related panic in CURRENT Message-ID: <20090320055944.GB22527@weongyo.cdnetworks.kr> In-Reply-To: <49C273C2.9000808@micom.mng.net> References: <49C273C2.9000808@micom.mng.net>
next in thread | previous in thread | raw e-mail | index | archive | help
--IrhDeMKUP4DT/M7F Content-Type: text/plain; charset=us-ascii Content-Disposition: inline On Fri, Mar 20, 2009 at 12:33:06AM +0800, Ganbold wrote: > Hi, > > When I tried to make wlan0 down (ndis driver for Intel 5100AGN) got > panic: > ... > Slab at 0x8cdd7cb8, freei 86 = 0. > panic: Duplicate free of item 0x8cdd7560 from zone 0x8148c380(16) > > cpuid = 0 > KDB: stack backtrace: > db_trace_self_wrapper(80a5d82b,84e06ba0,80729ff9,80a8d790,0,...) at > db_trace_self_wrapper+0x26 > kdb_backtrace(80a8d790,0,80a810e5,84e06bac,0,...) at kdb_backtrace+0x29 > panic(80a810e5,8cdd7560,8148c380,80a2c3b6,8,...) at panic+0x119 > uma_dbg_free(8148c380,8cdd7cb8,8cdd7560,9dc,8574286c,...) at > uma_dbg_free+0x17b > uma_zfree_arg(8148c380,8cdd7560,8cdd7cb8,24,85742800,...) at > uma_zfree_arg+0x6e > free(8cdd7560,80b2c4e0,88c3a1ec,cb3,854e8800,...) at free+0xca > ndis_stop(84e06c80,80cc13d8,85176964,80cc13d8,80b2e344,...) at > ndis_stop+0xe6 > ndis_ioctl_80211(854e8800,80206910,0,84e06cd4,807623cb,...) at > ndis_ioctl_80211+0x388 > parent_updown(854e8800,1,80a5ef36,54,85247b9c,...) at parent_updown+0x22 > taskqueue_run(85247b80,85247b9c,0,80a511b5,0,...) at taskqueue_run+0x10b > taskqueue_thread_loop(80b94068,84e06d38,80a56585,32d,80b7f400,...) at > taskqueue_thread_loop+0x68 > fork_exit(807624c0,80b94068,84e06d38) at fork_exit+0xb8 > fork_trampoline() at fork_trampoline+0x8 > --- trap 0, eip = 0, esp = 0x84e06d70, ebp = 0 --- > Uptime: 2h9m2s > Physical memory: 1979 MB > Dumping 400 MB: 385 369 353 337 321 305 289 273 257 241 225 209 193 177 > 161 145 129 113 97 81 65 49 33 17 1 > ... > > I'm running: > beastie# uname -an > FreeBSD beastie.micom.mng.net 8.0-CURRENT FreeBSD 8.0-CURRENT #5 > r190040M: Thu Mar 19 21:45:37 ULAT 2009 > tsgan@beastie.micom.mng.net:/usr/obj/usr/src/sys/DEVIL_WITNESS i386 > > Please let me know if you need more info. > > thanks, Just for preventing a panic could you please try to test attached patch though I'm not sure the patch is helpful? regards, Weongyo Jeong --IrhDeMKUP4DT/M7F Content-Type: text/x-diff; charset=us-ascii Content-Disposition: attachment; filename="patch_ndis_20090320_5100agn.diff" ==== //depot/user/weongyo/wireless/src/sys/dev/if_ndis/if_ndis.c#14 - /mnt/l223/sys/dev/if_ndis/if_ndis.c ==== @@ -3250,8 +3250,10 @@ NDIS_LOCK(sc); for (i = 0; i < NDIS_EVENTS; i++) { - if (sc->ndis_evt[i].ne_sts && sc->ndis_evt[i].ne_buf != NULL) + if (sc->ndis_evt[i].ne_sts && sc->ndis_evt[i].ne_buf != NULL) { free(sc->ndis_evt[i].ne_buf, M_TEMP); + sc->ndis_evt[i].ne_buf = NULL; + } sc->ndis_evt[i].ne_sts = 0; sc->ndis_evt[i].ne_len = 0; } --IrhDeMKUP4DT/M7F--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20090320055944.GB22527>