All of lore.kernel.org
 help / color / mirror / Atom feed
From: Samuel Ortiz <samuel@sortiz.org>
To: Tomas Winkler <tomasw@gmail.com>
Cc: Jason Andryuk <jandryuk@gmail.com>,
	reinette chatre <reinette.chatre@intel.com>,
	"linux-wireless@vger.kernel.org" <linux-wireless@vger.kernel.org>
Subject: Re: kernel BUG at drivers/net/wireless/iwlwifi/iwl3945-base.c:3127!
Date: Wed, 28 Jan 2009 13:12:37 +0100	[thread overview]
Message-ID: <20090128121237.GB3197@sortiz.org> (raw)
In-Reply-To: <1ba2fa240901280352o56ccbc07h50c7a4bfcd0ac9ab@mail.gmail.com>

On Wed, Jan 28, 2009 at 01:52:17PM +0200, Tomas Winkler wrote:
> On Wed, Jan 28, 2009 at 1:37 PM, Samuel Ortiz <samuel@sortiz.org> wrote:
> > On Wed, Jan 28, 2009 at 09:12:48AM +0200, Tomas Winkler wrote:
> >> On Wed, Jan 28, 2009 at 1:31 AM, Jason Andryuk <jandryuk@gmail.com> wrote:
> >> >> No, that's just a consequence of the bug, not the bug itself.
> >> >> Would you mind applying this patch on top of your latest wireless-testing tree
> >> >> and testing 3945 with it ? Thanks for your patience.
> >> >
> >> > The patch did not cleanly apply, but I just removed the lines
> >> > indicated in the patch.  It crashed with a NULL pointer dereference.
> >>
> >> Samuel
> >> It was really wrong try, you cannot just leave place where firmware
> >> updated read pointer unallocated. I would rather focus on differences
> >> introduced by this patch.
> > Well, that's what I did. I neglected to check if rb_stts were actually used.
> >
> >
> >> commit 738910c064ff461051cd37e17199f270ff88a9a3 iwl3945: use rx queue
> >> management infrastructure from iwlcore is the first to trigger the
> >> BUG_ON. However, prior versions would dereference a NULL pointer
> >> before the driver could get far enough to trigger the BUG_ON.
> > I know, that's what Jason described.
> > I think I now understand why. Prior to
> > 738910c064ff461051cd37e17199f270ff88a9a3, you introduced
> > c2a0aa3cb733452e749727680e380dca6cc10a68 without actually allocating the
> > rb_stts pointer, which was really wrong too.
> 
> Yes I made mistake then I tought that 3945 take also init path of agn
> already... Now it's hard to besect :(.
> I suspect the rx queue managment infrastructure more because we brohgt
> iwlagn bug into 3945 I guess it wrong rx buffer index handling. It's
> really important we nail it now this will solve also our troubles in
> iwlagn, where it get lost upon tons of patches.
I agree. I also suspect that a lot more people will report the same problem
when this code leaves wireless-testing for upstream inclusion.

Cheers,
Samuel.
 
> Thanks
> Tomas

-- 
Intel Open Source Technology Centre
http://oss.intel.com/

  reply	other threads:[~2009-01-28 12:10 UTC|newest]

Thread overview: 56+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-01-18  0:06 kernel BUG at drivers/net/wireless/iwlwifi/iwl3945-base.c:3127! Deuce
2009-01-18 17:41 ` Deuce
2009-01-26 11:44 ` Samuel Ortiz
2009-01-27  3:13   ` Jason Andryuk
2009-01-27  3:35     ` Jason Andryuk
2009-01-27 16:24       ` Samuel Ortiz
2009-01-27 23:31         ` Jason Andryuk
2009-01-28  7:12           ` Tomas Winkler
2009-01-28 11:37             ` Samuel Ortiz
2009-01-28 11:52               ` Tomas Winkler
2009-01-28 12:12                 ` Samuel Ortiz [this message]
2009-02-20  4:17                   ` Jason Andryuk
2009-02-20 19:49                     ` reinette chatre
2009-02-23  0:10                       ` Jason Andryuk
2009-02-23  4:37                         ` Jason Andryuk
2009-02-23 19:21                           ` reinette chatre
2009-02-23 22:28                           ` reinette chatre
2009-02-24  3:02                             ` Jason Andryuk
2009-02-24  0:15                           ` reinette chatre
2009-02-24  2:47                             ` Jason Andryuk
2009-03-02  3:37               ` Jason Andryuk
2009-03-04  4:32                 ` Jason Andryuk
2009-03-04 19:19                   ` reinette chatre
2009-03-04 19:47                     ` Jason Andryuk
2009-03-05  0:04                       ` reinette chatre
2009-03-05 23:50                         ` Jason Andryuk
2009-03-06  0:24                           ` reinette chatre
2009-03-06  4:12                             ` Jason Andryuk
2009-03-06  5:39                               ` reinette chatre
2009-03-10  1:40                                 ` Jason Andryuk
2009-03-10  3:32                                   ` Jason Andryuk
2009-03-10  5:04                                   ` reinette chatre
2009-03-10 13:10                                     ` Jason Andryuk
2009-03-10 18:22                                       ` Abhijeet Kolekar
2009-03-11  3:11                                         ` Jason Andryuk
2009-03-11  2:57                                       ` Jason Andryuk
2009-03-11  3:40                                     ` Jason Andryuk
2009-03-13  3:31                                       ` Jason Andryuk
2009-03-16 12:10                                         ` Jason Andryuk
2009-03-17  1:44                                           ` Jason Andryuk
2009-03-19  1:52                                             ` Jason Andryuk
2009-03-20  1:22                                               ` Jason Andryuk
2009-03-20 20:39                                                 ` Abhijeet Kolekar
2009-03-22 17:29                                                   ` Jason Andryuk
2009-03-23  0:37                                                     ` Jason Andryuk
2009-03-27 16:28                                                       ` reinette chatre
2009-03-31 22:22                                                       ` reinette chatre
2009-04-01  1:28                                                         ` Jason Andryuk
2009-04-21  1:41                                                         ` Jason Andryuk
2009-04-21 15:42                                                           ` reinette chatre
  -- strict thread matches above, loose matches on Subject: below --
2009-01-09  3:28 Deuce
2009-01-09 19:12 ` reinette chatre
2009-01-09 23:07   ` Deuce
2009-01-12 18:38     ` Samuel Ortiz
2009-01-13  3:12       ` Deuce
2009-01-13  4:37         ` Deuce

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20090128121237.GB3197@sortiz.org \
    --to=samuel@sortiz.org \
    --cc=jandryuk@gmail.com \
    --cc=linux-wireless@vger.kernel.org \
    --cc=reinette.chatre@intel.com \
    --cc=tomasw@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.