diff options
| author | Toke Høiland-Jørgensen <toke@redhat.com> | 2019-10-17 12:57:02 +0200 | 
|---|---|---|
| committer | Alexei Starovoitov <ast@kernel.org> | 2019-10-18 16:18:42 -0700 | 
| commit | 05679ca6feebc1ef3bf743563315d9975adcf6fb (patch) | |
| tree | 9c8479b01ec1f2baee2dc45a7cf278fe4320de13 /kernel/trace/trace_stack.c | |
| parent | 11875ba7f251c52effb2b924e04c2ddefa9856ef (diff) | |
| download | blackbird-op-linux-05679ca6feebc1ef3bf743563315d9975adcf6fb.tar.gz blackbird-op-linux-05679ca6feebc1ef3bf743563315d9975adcf6fb.zip | |
xdp: Prevent overflow in devmap_hash cost calculation for 32-bit builds
Tetsuo pointed out that without an explicit cast, the cost calculation for
devmap_hash type maps could overflow on 32-bit builds. This adds the
missing cast.
Fixes: 6f9d451ab1a3 ("xdp: Add devmap_hash map type for looking up devices by hashed index")
Reported-by: Tetsuo Handa <penguin-kernel@i-love.sakura.ne.jp>
Signed-off-by: Toke Høiland-Jørgensen <toke@redhat.com>
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
Acked-by: Yonghong Song <yhs@fb.com>
Link: https://lore.kernel.org/bpf/20191017105702.2807093-1-toke@redhat.com
Diffstat (limited to 'kernel/trace/trace_stack.c')
0 files changed, 0 insertions, 0 deletions

