[Torsten Duwe] > >>>>> "Francis" == Francis Galiegue <[EMAIL PROTECTED]> writes: > > >> + if ((*p & 0xdf) >= 'a' && (*p & 0xdf) <= 'z') continue; > > Francis> Just in case... Some modules have uppercase letters too :) > > That's what the &0xdf is intended for... It's wrong, then: you've converted to uppercase, not lowercase. request_module is not a fast path. Do it the obvious, unoptimized way: if ((*p < 'a' || *p > 'z') && (*p < 'A' || *p > 'Z') && (*p < '0' || *p > '9') && *p != '-' && *p != '_') return -EINVAL; Peter - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to [EMAIL PROTECTED] Please read the FAQ at http://www.tux.org/lkml/
- Re: Modprobe local root exploit Peter Samuelson
- Re: Modprobe local root exploit Keith Owens
- Re: Modprobe local root exploit Florian Weimer
- Re: Modprobe local root exploit Malcolm Beattie
- Re: Modprobe local root exploit Jakub Jelinek
- Re: Modprobe local root exploit Chris Evans
- Re: Modprobe local root exploit Keith Owens
- Re: Modprobe local root exploit Nick Holloway
- Re: Modprobe local root exploit David Woodhouse
- Re: Modprobe local root exploit Horst von Brand
- Re: Modprobe local root exploit Peter Samuelson
- Re: Modprobe local root exploit Daniel Phillips
- Re: Modprobe local root exploit Daniel Phillips
- Re: Modprobe local root exploit David Relson
- Re: Modprobe local root exploit Horst von Brand
- Re: Modprobe local root exploit Alan Cox
- Re: Modprobe local root exploit H. Peter Anvin
- Re: Modprobe local root exploit Keith Owens
- Re: Modprobe local root exploit H. Peter Anvin
- Re: Modprobe local root exploit Torsten Duwe
- Re: Modprobe local root exploit Alan Cox