Re: [PATCH net] net_sched: gact: Fix potential panic in tcf_gact().

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

From: Hiroaki SHIMODA <shimoda.hiroaki@xxxxxxxxx>
Date: Fri, 3 Aug 2012 19:57:52 +0900

> gact_rand array is accessed by gact->tcfg_ptype whose value
> is assumed to less than MAX_RAND, but any range checks are
> not performed.
> 
> So add a check in tcf_gact_init(). And in tcf_gact(), we can
> reduce a branch.
> 
> Signed-off-by: Hiroaki SHIMODA <shimoda.hiroaki@xxxxxxxxx>

Applied and queued up for -stable, thanks.
--
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Linux Kernel Discussion]     [Ethernet Bridging]     [Linux Wireless Networking]     [Linux Bluetooth Networking]     [Linux Networking Users]     [VLAN]     [Git]     [IETF Annouce]     [Linux Assembly]     [Security]     [Bugtraq]     [Photo]     [Singles Social Networking]     [Yosemite Information]     [MIPS Linux]     [ARM Linux Kernel]     [ARM Linux]     [Linux Virtualization]     [Linux Security]     [Linux IDE]     [Linux RAID]     [Linux SCSI]     [Free Dating]

Add to Google Powered by Linux