# Re: \[PATCH net v2\] net/sched: sch\_htb: limit htb\_classify inner-class filter hops

- From: Eric Dumazet \<hidden\>
- Date: 2026-08-26 15:32:36 
- List: netdev
- Page: https://ratatoskr.run/netdev/2026/08/17465414
- Thread: https://ratatoskr.run/netdev/2026/08/17465050/t.md

```text
On Wed, Aug 26, 2026 at 4:33 PM Victor Nogueira [ref] wrote:
>
> From: Jamal Hadi Salim <jhs@mojatatu.com>
>
> htb_classify() follows each filter-selected inner class by switching
> to cl->filter_list, but never bounds the number of hops. A filter on
> an inner class can point back to itself or to another inner class that
> points back, creating an infinite loop in the packet classification
> path with the qdisc lock held and BH disabled — a soft lockup / panic
> from a single packet.

Reviewed-by: Eric Dumazet <redacted>

Note that a one-time warning (in the spirit of commit e82181de5ef4648
"pkt_sched: sch_htb: Warn on too many events.") could have been chosen.

Thanks.
```
