Search Linux Wireless

Re: [PATCH resend] airo: return from set_wep_key() when key length is zero

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Fri, Feb 26, 2010 at 03:09:29PM -0800, Dan Williams wrote:
> On Fri, 2010-02-26 at 15:10 +0100, Stanislaw Gruszka wrote:
> > Even if keylen == 0 is a bug and should not really happen, better avoid
> > possibility of passing bad value to firmware.
> > 
> > Signed-off-by: Stanislaw Gruszka <sgruszka@xxxxxxxxxx>
> 
> I actually told John to just apply your first patch via IRC, but perhaps
> he hasn't done that yet.  I cannot reproduce the issue that Chris
> encountered with my PCMCIA 350 using 5.60 firmware, and I bricked my
> card loading 5.40 firmware (same as Chris) onto it.
> 
> I couldn't find any failures your original patch on my 5.60 device, my
> objections were simply code flow and semantics.  So I'll ack the
> original patch.

commit f09c256375c7cf1e112b8ef6306cdd313490d7c0
Author: Stanislaw Gruszka <sgruszka@xxxxxxxxxx>
Date:   Tue Feb 2 15:34:50 2010 +0100

    airo: fix setting zero length WEP key
    
    Patch prevents call set_wep_key() with zero key length. That fix long
    standing regression since commit c0380693520b1a1e4f756799a0edc379378b462a
    "airo: clean up WEP key operations". Additionally print call trace when
    someone will try to use improper parameters, and remove key.len = 0
    assignment, because it is in not possible code path.
    
    Reported-by: Chris Siebenmann <cks-rhbugzilla@xxxxxxxxxxxxxx>
    Bisected-by: Chris Siebenmann <cks-rhbugzilla@xxxxxxxxxxxxxx>
    Tested-by: Chris Siebenmann <cks@xxxxxxxxxxxxxx>
    Cc: Dan Williams <dcbw@xxxxxxxxxx>
    Cc: <stable@xxxxxxxxxx>
    Signed-off-by: Stanislaw Gruszka <sgruszka@xxxxxxxxxx>
    Signed-off-by: John W. Linville <linville@xxxxxxxxxxxxx>

Hth...

John
-- 
John W. Linville                Someday the world will need a hero, and you
linville@xxxxxxxxxxxxx                  might be all we have.  Be ready.
--
To unsubscribe from this list: send the line "unsubscribe linux-wireless" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Linux Host AP]     [ATH6KL]     [Linux Bluetooth]     [Linux Netdev]     [Kernel Newbies]     [Linux Kernel]     [IDE]     [Security]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux ATA RAID]     [Samba]     [Device Mapper]
  Powered by Linux