net: sched: sch_multiq: fix possible OOB write in multiq_tune()
q->bands will be assigned to qopt->bands to execute subsequent code logic after kmalloc. So the old q->bands should not be used in kmalloc. Otherwise, an out-of-bounds write will occur. Fixes: c2999f7f ("net: sched: multiq: don't call qdisc_put() while holding tree lock") Signed-off-by:Hangyu Hua <hbh25y@gmail.com> Acked-by:
Cong Wang <cong.wang@bytedance.com> Signed-off-by:
David S. Miller <davem@davemloft.net>
-
mentioned in commit e358535b
-
mentioned in commit 1ea07643
-
mentioned in commit 17e85e80
-
mentioned in commit 62d26972
-
mentioned in commit cfe3ac7a
-
mentioned in commit fac869d6
-
mentioned in commit c9d85e7b
-
mentioned in commit 3cecb9ed
-
mentioned in commit da218406
-
mentioned in commit 6a9afd77
-
mentioned in commit 591df1b0
-
mentioned in commit f19ec9cd
-
mentioned in commit 67d26438
-
mentioned in commit 522f8984
-
mentioned in commit 61e6e383
-
mentioned in commit b228a35a
-
mentioned in commit b5999fc5
-
mentioned in commit 2b2357f0
-
mentioned in commit b284a6ad
-
mentioned in commit 0b23b381
-
mentioned in commit ddc2f859
-
mentioned in commit 006db224
-
mentioned in commit 23603d32
-
mentioned in commit 2baf563f
-
mentioned in commit f219769b
-
mentioned in commit 007ad9da
-
mentioned in commit ebff118c
-
mentioned in commit c8e48549
-
mentioned in commit b459690a
-
mentioned in commit 0799c275
-
mentioned in commit e801009a
-
mentioned in commit c910e45d
-
mentioned in commit e7cb9ccc
-
mentioned in commit 9ef449b1
-
mentioned in commit 2479112e
-
mentioned in commit 164d6b17
-
mentioned in commit eaa02c3f
-
mentioned in commit 538aef10
-
mentioned in commit c4f1cf2d
-
mentioned in commit 3ba4fd19
-
mentioned in commit 0d892153
-
mentioned in commit 8ae1e129
-
mentioned in commit d1029967
-
mentioned in commit d649ec7f
-
mentioned in commit 2d2543be
-
mentioned in commit 47e1a61f
-
mentioned in commit fe1c3227
-
mentioned in commit f40f3762
-
mentioned in commit 5a51bd3d