IB/core: Avoid leakage from kernel to user space