Subject: Re: atu(4) crashes on current
To: =?iso-8859-1?q?St=E9phane_Witzmann?= <stephane.witzmann@gmail.com>
From: Nick Hudson <nick.hudson@dsl.pipex.com>
List: current-users
Date: 12/20/2005 08:33:54
On Monday 19 December 2005 23:50, St=E9phane Witzmann wrote:
> See my previous post at:
> http://mail-index.netbsd.org/current-users/2005/11/29/0011.html
>
> Briefly, "ifconfig atu0 inet <whatever>" produces a kernel page fault (ev=
en
> with the latest binary kernel snapshot (200512180000Z)). It doesn't crash
> under NetBSD 3.0RC5.
>
> I took a closer look at it today, so here are the results. The fault occu=
rs
> in atu_initial_config(), at:
> switch (ic->ic_nw_keys[ic->ic_def_txkey].wk_keylen)
>
> At this time, ic->ic_def_txkey =3D 65535 (=3D IEEE80211_KEYIX_NONE, most
> probably initialized by ieee80211_crypto_attach()), which is far beyond t=
he
> end of the array (size: IEEE80211_WEP_NKID =3D 4).
>
> Should I send a PR or does somebody have a fix ?

Always send-pr.

Nick