------- Comment From wil...@us.ibm.com 2019-04-09 20:09 EDT------- -EOPNOTSUPP is returned from ib_uverbs kernel module.
Call stack: ib_uverbs_ex_create_rwq_ind_table() >> uverbs_request_finish() I found iter.cur may not be correct at the time uverbs_request_finish() is called. iter.cur was been computed in uverbs_request_next() prior to calling uverbs_request_finish(). Here is my kernel tracing showing the problem. uverbs_request_next.isra.7: Befor iter->cur=00000000e6061050 len=4 uverbs_request_next.isra.7: After iter->cur=00000000ced0d1bc len=4 The second value of iter->cur not correct, this is not making much sense, is a cast is needed? static int uverbs_request_next(struct uverbs_req_iter *iter, void *val, size_t len) { if (iter->cur + len > iter->end) return -ENOSPC; if (copy_from_user(val, iter->cur, len)) return -EFAULT; trace_printk("Befor iter->cur=%p len=%lu\n",iter->cur,len); iter->cur += len; trace_printk("After iter->cur=%p len=%lu\n",iter->cur,len); return 0; } -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1823836 Title: dpdk app is reporting: net_mlx5: probe of PCI device xxxx aborted after encountering an error: Unknown error -95 To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu-power-systems/+bug/1823836/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs