Files
kernel_google_wahoo/include/net
Randy Dunlap 8cb139c604 net: sched: prevent invalid Scell_log shift count
[ Upstream commit bd1248f1ddbc48b0c30565fce897a3b6423313b8 ]

Check Scell_log shift size in red_check_params() and modify all callers
of red_check_params() to pass Scell_log.

This prevents a shift out-of-bounds as detected by UBSAN:
  UBSAN: shift-out-of-bounds in ./include/net/red.h:252:22
  shift exponent 72 is too large for 32-bit type 'int'

Fixes: 8afa10cbe281 ("net_sched: red: Avoid illegal values")
Signed-off-by: Randy Dunlap <rdunlap@infradead.org>
Reported-by: syzbot+97c5bd9cc81eca63d36e@syzkaller.appspotmail.com
Cc: Nogah Frankel <nogahf@mellanox.com>
Cc: Jamal Hadi Salim <jhs@mojatatu.com>
Cc: Cong Wang <xiyou.wangcong@gmail.com>
Cc: Jiri Pirko <jiri@resnulli.us>
Cc: netdev@vger.kernel.org
Cc: "David S. Miller" <davem@davemloft.net>
Cc: Jakub Kicinski <kuba@kernel.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2021-01-12 19:47:55 +01:00
..
2018-09-29 03:08:51 -07:00
2019-03-23 08:44:34 +01:00
2014-09-18 10:54:36 +02:00
2019-02-23 09:05:14 +01:00
2015-03-06 21:50:02 -05:00
2015-09-17 17:18:37 -07:00
2018-02-25 11:03:34 +01:00
2014-09-30 01:02:26 -04:00
2020-07-22 09:10:03 +02:00
2019-03-23 08:44:23 +01:00
2019-11-25 15:53:57 +01:00
2015-10-08 04:27:03 -07:00
2015-10-23 06:26:42 -07:00
2018-05-16 10:06:50 +02:00
2020-05-10 10:26:22 +02:00
2015-03-12 22:58:12 -04:00
2020-05-02 17:20:33 +02:00
2015-10-26 22:24:22 -07:00