[dpdk-stable] [PATCH v2] mem: ease init in a docker container

Thomas Monjalon thomas at monjalon.net
Tue Jun 4 13:05:51 CEST 2019


23/05/2019 16:29, David Marchand:
> On Thu, May 23, 2019 at 11:53 AM Nicolas Dichtel <nicolas.dichtel at 6wind.com>
> wrote:
> 
> > move_pages() is only used to get the numa node id, but this function
> > is not allowed by default in docker (it needs CAP_SYS_NICE and an update of
> > the seccomp profile).
> > get_mempolicy() also requires CAP_SYS_NICE but doesn't need any change in
> > the default seccomp profile.
> >
> > Note that the returned value of move_pages() was not checked, thus some
> > errors could be hidden (if the requested id was 0).
> >
> > Cc: stable at dpdk.org
> > Fixes: 582bed1e1d1d ("mem: support mapping hugepages at runtime")
> > Signed-off-by: Nicolas Dichtel <nicolas.dichtel at 6wind.com>
> > Reviewed-by: Olivier Matz <olivier.matz at 6wind.com>
> > Reviewed-by: Didier Pallard <didier.pallard at 6wind.com>
> > Acked-by: Anatoly Burakov <anatoly.burakov at intel.com>
> Reviewed-by: David Marchand <david.marchand at redhat.com>

Applied, thanks Nico




More information about the stable mailing list