Re: [PATCH v6 bpf-next 1/5] bpf: Add bloom filter map implementation

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Wed, Oct 27, 2021 at 4:45 PM Joanne Koong <joannekoong@xxxxxx> wrote:
> @@ -1080,6 +1089,14 @@ static int map_lookup_elem(union bpf_attr *attr)
>         if (!value)
>                 goto free_key;
>
> +       if (map->map_type == BPF_MAP_TYPE_BLOOM_FILTER) {
> +               if (copy_from_user(value, uvalue, value_size))
> +                       err = -EFAULT;
> +               else
> +                       err = bpf_map_copy_value(map, key, value, attr->flags);
> +               goto free_value;
> +       }
> +

Applied to bpf-next.
I couldn't find where lookup from user space is tested.
Please follow up with an extra test if that's the case.



[Index of Archives]     [Linux Samsung SoC]     [Linux Rockchip SoC]     [Linux Actions SoC]     [Linux for Synopsys ARC Processors]     [Linux NFS]     [Linux NILFS]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]


  Powered by Linux