lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Date:	Fri, 02 Aug 2013 14:52:59 -0700 (PDT)
From:	David Miller <davem@...emloft.net>
To:	eric.dumazet@...il.com
Cc:	stephen@...workplumber.org, xiyou.wangcong@...il.com,
	netdev@...r.kernel.org
Subject: Re: [PATCH net-next] htb: fix sign extension bug

From: Eric Dumazet <eric.dumazet@...il.com>
Date: Fri, 02 Aug 2013 06:36:20 -0700

> On Thu, 2013-08-01 at 22:32 -0700, Stephen Hemminger wrote:
>> When userspace passes a large priority value 
>> the assignment of the unsigned value hopt->prio
>> to  signed int cl->prio causes cl->prio to become negative and the
>> comparison is with TC_HTB_NUMPRIO is always false.
>> 
>> The result is that HTB crashes by referencing outside
>> the array when processing packets. With this patch the large value
>> wraps around like other values outside the normal range.
>> 
>> See: https://bugzilla.kernel.org/show_bug.cgi?id=60669
>> 
>> Signed-off-by: Stephen Hemminger <stephen@...workplumber.org>
>> 
>> --- a/net/sched/sch_htb.c	2013-06-20 09:22:46.489542435 -0700
>> +++ b/net/sched/sch_htb.c	2013-08-01 22:12:43.736307055 -0700
>> @@ -100,7 +100,7 @@ struct htb_class {
>>  	struct psched_ratecfg	ceil;
>>  	s64			buffer, cbuffer;/* token bucket depth/rate */
>>  	s64			mbuffer;	/* max wait time */
>> -	int			prio;		/* these two are used only by leaves... */
>> +	u32			prio;		/* these two are used only by leaves... */
>>  	int			quantum;	/* but stored for parent-to-leaf return */
>>  
>>  	struct tcf_proto	*filter_list;	/* class attached filters */
>> --
> 
> Thanks Stephen.
> 
> Acked-by: Eric Dumazet <edumazet@...gle.com>
> 
> It seems appropriate for net tree (and stable)

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@...r.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ