* Unable to register memory, ibv_reg_mr returning EACCESS
@ 2019-11-08 5:32 Vinit Agnihotri
0 siblings, 0 replies; only message in thread
From: Vinit Agnihotri @ 2019-11-08 5:32 UTC (permalink / raw)
we have a userspace server which would allow user to access files using
his/her own credentials via UID mapping.
while we are running server as root user, but to in order to honor posix
mappings, we use setfsgid()/setfssid() before
accessing any file and restore them back to user access. However when we
try to ibv_reg_mr() EACCESS is returned.
We are ensuring to be root before we call to ibv_reg_mr(), yet it keeps
While going through libibverbs sources we realize EACCESS might be
returned by this call:
if (write(pd->context->cmd_fd, cmd, cmd_size) != cmd_size)
As we are ensuring that setfsgid()/setfssid() are set to root before we
call to ibv_reg_mr(), why EACCESS is still returned?
Since these calls are thread specific only why it should affect entire
Can anyone provide any insight into this behavior?
Thanks & Regards,
^ permalink raw reply [flat|nested] only message in thread
only message in thread, back to index
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-11-08 5:32 Unable to register memory, ibv_reg_mr returning EACCESS Vinit Agnihotri
Linux-RDMA Archive on lore.kernel.org
Archives are clonable:
git clone --mirror https://lore.kernel.org/linux-rdma/0 linux-rdma/git/0.git
# If you have public-inbox 1.1+ installed, you may
# initialize and index your mirror using the following commands:
public-inbox-init -V2 linux-rdma linux-rdma/ https://lore.kernel.org/linux-rdma \
Example config snippet for mirrors
Newsgroup available over NNTP:
AGPL code for this site: git clone https://public-inbox.org/public-inbox.git