Subject: Re: Fw: [Bug 60669] Kernel panic when using negative priority for HTB class

From: Cong Wang <[email-masked]>
Date: Fri, 2 Aug 2013 04:50:16 +0000 (UTC)

On Fri, 02 Aug 2013 at 04:12 GMT, Stephen Hemminger <[email-masked]> wrote:
>
> --- Comment #2 from _Vi <[email-masked]> ---
> Reproducible on 3.11.0-rc3
>
> Looks like negative priority value is essential for the kernel panic.
>

There is a check for prio:

                if ((cl->prio = hopt->prio) >= TC_HTB_NUMPRIO)
		                        cl->prio = TC_HTB_NUMPRIO - 1;