aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/amd/amdgpu/amdgpu_gfx.c
diff options
context:
space:
mode:
authorEric Dumazet <[email protected]>2025-06-11 08:35:01 +0000
committerJakub Kicinski <[email protected]>2025-06-12 15:03:08 +0000
commit7ca52541c05c832d32b112274f81a985101f9ba8 (patch)
tree35c607f64f4d8096cda7eec0a87ccd4f1ac92434 /drivers/gpu/drm/amd/amdgpu/amdgpu_gfx.c
parentnet: phy: phy_caps: Don't skip better duplex macth on non-exact match (diff)
downloadkernel-7ca52541c05c832d32b112274f81a985101f9ba8.tar.gz
kernel-7ca52541c05c832d32b112274f81a985101f9ba8.zip
net_sched: sch_sfq: reject invalid perturb period
Gerrard Tai reported that SFQ perturb_period has no range check yet, and this can be used to trigger a race condition fixed in a separate patch. We want to make sure ctl->perturb_period * HZ will not overflow and is positive. Tested: tc qd add dev lo root sfq perturb -10 # negative value : error Error: sch_sfq: invalid perturb period. tc qd add dev lo root sfq perturb 1000000000 # too big : error Error: sch_sfq: invalid perturb period. tc qd add dev lo root sfq perturb 2000000 # acceptable value tc -s -d qd sh dev lo qdisc sfq 8005: root refcnt 2 limit 127p quantum 64Kb depth 127 flows 128 divisor 1024 perturb 2000000sec Sent 0 bytes 0 pkt (dropped 0, overlimits 0 requeues 0) backlog 0b 0p requeues 0 Fixes: 1da177e4c3f4 ("Linux-2.6.12-rc2") Reported-by: Gerrard Tai <[email protected]> Signed-off-by: Eric Dumazet <[email protected]> Cc: [email protected] Link: https://patch.msgid.link/[email protected] Signed-off-by: Jakub Kicinski <[email protected]>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_gfx.c')
0 files changed, 0 insertions, 0 deletions