RE: [PATCH mlx5-next] IB/mlx5: Prevent allocating UMEM and UCTX as some general object

2018-12-21 Thread Achiad Shochat
: Prevent allocating UMEM and UCTX as some general object On Wed, Dec 19, 2018 at 04:28:15PM +0200, Leon Romanovsky wrote: > From: Yishai Hadas > > The driver needs to prevent a user space application to create a UMEM > and UCTX via the general object command. > > The UMEM must go

Re: [PATCH mlx5-next] IB/mlx5: Prevent allocating UMEM and UCTX as some general object

2018-12-20 Thread Jason Gunthorpe
On Wed, Dec 19, 2018 at 04:28:15PM +0200, Leon Romanovsky wrote: > From: Yishai Hadas > > The driver needs to prevent a user space application to create a > UMEM and UCTX via the general object command. > > The UMEM must go through the kernel UMEM_REG method to prevent the user > from setting ph

Re: [PATCH mlx5-next] IB/mlx5: Prevent allocating UMEM and UCTX as some general object

2018-12-20 Thread Leon Romanovsky
On Thu, Dec 20, 2018 at 05:02:12PM +, Jason Gunthorpe wrote: > On Thu, Dec 20, 2018 at 08:21:33AM +0200, Leon Romanovsky wrote: > > On Wed, Dec 19, 2018 at 07:14:12PM +, Jason Gunthorpe wrote: > > > On Wed, Dec 19, 2018 at 04:28:15PM +0200, Leon Romanovsky wrote: > > > > From: Yishai Hadas

Re: [PATCH mlx5-next] IB/mlx5: Prevent allocating UMEM and UCTX as some general object

2018-12-20 Thread Jason Gunthorpe
On Thu, Dec 20, 2018 at 08:21:33AM +0200, Leon Romanovsky wrote: > On Wed, Dec 19, 2018 at 07:14:12PM +, Jason Gunthorpe wrote: > > On Wed, Dec 19, 2018 at 04:28:15PM +0200, Leon Romanovsky wrote: > > > From: Yishai Hadas > > > > > > The driver needs to prevent a user space application to crea

Re: [PATCH mlx5-next] IB/mlx5: Prevent allocating UMEM and UCTX as some general object

2018-12-19 Thread Leon Romanovsky
On Wed, Dec 19, 2018 at 07:14:12PM +, Jason Gunthorpe wrote: > On Wed, Dec 19, 2018 at 04:28:15PM +0200, Leon Romanovsky wrote: > > From: Yishai Hadas > > > > The driver needs to prevent a user space application to create a > > UMEM and UCTX via the general object command. > > > > The UMEM mus

Re: [PATCH mlx5-next] IB/mlx5: Prevent allocating UMEM and UCTX as some general object

2018-12-19 Thread Jason Gunthorpe
On Wed, Dec 19, 2018 at 04:28:15PM +0200, Leon Romanovsky wrote: > From: Yishai Hadas > > The driver needs to prevent a user space application to create a > UMEM and UCTX via the general object command. > > The UMEM must go through the kernel UMEM_REG method to prevent the user > from setting ph

[PATCH mlx5-next] IB/mlx5: Prevent allocating UMEM and UCTX as some general object

2018-12-19 Thread Leon Romanovsky
From: Yishai Hadas The driver needs to prevent a user space application to create a UMEM and UCTX via the general object command. The UMEM must go through the kernel UMEM_REG method to prevent the user from setting physical addresses by himself. The UCTX is some internal kernel object and shoul