Re: [PATCH v1 2/2] IB/core: don't disallow registering region starting at 0x0

2015-04-14 Thread Haggai Eran
On 14/04/2015 15:50, Sagi Grimberg wrote: > On 4/14/2015 3:00 PM, Yann Droneaud wrote: >> Le mardi 14 avril 2015 à 12:20 +0300, Sagi Grimberg a écrit : >>> On 4/13/2015 3:56 PM, Yann Droneaud wrote: ... diff --git a/drivers/infiniband/core/umem.c b/drivers/infiniband/core/umem.c inde

Re: [PATCH v1 2/2] IB/core: don't disallow registering region starting at 0x0

2015-04-14 Thread Sagi Grimberg
On 4/14/2015 3:00 PM, Yann Droneaud wrote: Hi, Le mardi 14 avril 2015 à 12:20 +0300, Sagi Grimberg a écrit : On 4/13/2015 3:56 PM, Yann Droneaud wrote: In a call to ib_umem_get(), if address is 0x0 and size is already page aligned, check added in commit 8494057ab5e4 ("IB/uverbs: Prevent intege

Re: [PATCH v1 2/2] IB/core: don't disallow registering region starting at 0x0

2015-04-14 Thread Yann Droneaud
Hi, Le mardi 14 avril 2015 à 12:20 +0300, Sagi Grimberg a écrit : > On 4/13/2015 3:56 PM, Yann Droneaud wrote: > > In a call to ib_umem_get(), if address is 0x0 and size is > > already page aligned, check added in commit 8494057ab5e4 > > ("IB/uverbs: Prevent integer overflow in ib_umem_get address

Re: [PATCH v1 2/2] IB/core: don't disallow registering region starting at 0x0

2015-04-14 Thread Sagi Grimberg
On 4/13/2015 3:56 PM, Yann Droneaud wrote: In a call to ib_umem_get(), if address is 0x0 and size is already page aligned, check added in commit 8494057ab5e4 ("IB/uverbs: Prevent integer overflow in ib_umem_get address arithmetic") will refuse to register a memory region that could otherwise be v

[PATCH v1 2/2] IB/core: don't disallow registering region starting at 0x0

2015-04-13 Thread Yann Droneaud
In a call to ib_umem_get(), if address is 0x0 and size is already page aligned, check added in commit 8494057ab5e4 ("IB/uverbs: Prevent integer overflow in ib_umem_get address arithmetic") will refuse to register a memory region that could otherwise be valid (provided vm.mmap_min_addr sysctl and mm