Failed to create Receive Work Queue indirection table when the number of work handler equal 1
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
rdma-core (Ubuntu) |
New
|
Undecided
|
Unassigned |
Bug Description
Ib_uverbs failed to create Receive Work Queue indirection table due to unclean cmd buffer.
This issue reproduces when the requested table size is 1 wq handler and it's fixed in rdma-core v23
The following rdma-core patch fixes this issue:
commit 34225464c1d165f
Author: Mark Bloch <email address hidden>
Date: Wed Feb 20 20:00:45 2019 +0000
verbs: clear cmd buffer when creating indirection table
Make sure we clear the cmd buffer, not doing so will make the kernel to
fail the command.
Fixes: 75c65bbcadcd ("verbs: Consolidate duplicate code in create_
Signed-off-by: Mark Bloch <email address hidden>
Signed-off-by: Yishai Hadas <email address hidden>
diff --git a/libibverbs/cmd.c b/libibverbs/cmd.c
index 34c71e56..5817c598 100644
--- a/libibverbs/cmd.c
+++ b/libibverbs/cmd.c
@@ -1854,6 +1854,7 @@ int ibv_cmd_
cmd_size = sizeof(*cmd) + num_tbl_entries * sizeof(
cmd_size = (cmd_size + 7) / 8 * 8;
cmd = alloca(cmd_size);
+ memset(cmd, 0, cmd_size);
for (i = 0; i < num_tbl_entries; i++)
ProblemType: Bug
DistroRelease: Ubuntu 19.04
Package: libibverbs-dev 22.1-1
ProcVersionSign
Uname: Linux 5.0.0-13-generic x86_64
ApportVersion: 2.20.10-0ubuntu27
Architecture: amd64
Date: Mon May 6 10:44:06 2019
ProcEnviron:
LANGUAGE=en_US:
TERM=xterm
PATH=(custom, no user)
LANG=en_US
SHELL=/bin/bash
SourcePackage: rdma-core
UpgradeStatus: No upgrade log present (probably fresh install)
information type: | Public → Public Security |
Thanks for filing this bug in Ubuntu.
I believe this to be a duplicate of https:/ /bugs.launchpad .net/ubuntu/ +source/ dpdk/+bug/ 1823836, which was just fixed in eoan and is in progress for disco 19.04.