On Mon, Oct 28, 2019 at 11:21 PM Björn Töpel <bjorn.topel@xxxxxxxxx> wrote: > Changing bpf_map_charge_init()/bpf_map_area_alloc() size to u64 would > be the smallest change, together with a 64-to-32 overflow check in > those functions. +1. bpf_map_charge_init() already has such check. Changing them to u64 is probably good idea.