Revision 1feb40067cf04ae48d65f728d62ca255c9449178 authored by Mike Marciniszyn on 12 May 2017, 16:02:00 UTC, committed by Doug Ledford on 01 June 2017, 21:04:33 UTC
The handling of IB_RDMA_WRITE_ONLY_WITH_IMMEDIATE will leak a memory reference when a buffer cannot be allocated for returning the immediate data. The issue is that the rkey validation has already occurred and the RNR nak fails to release the reference that was fruitlessly gotten. The the peer will send the identical single packet request when its RNR timer pops. The fix is to release the held reference prior to the rnr nak exit. This is the only sequence the requires both rkey validation and the buffer allocation on the same packet. Cc: Stable <stable@vger.kernel.org> # 4.7+ Tested-by: Tadeusz Struk <tadeusz.struk@intel.com> Reviewed-by: Dennis Dalessandro <dennis.dalessandro@intel.com> Signed-off-by: Mike Marciniszyn <mike.marciniszyn@intel.com> Signed-off-by: Dennis Dalessandro <dennis.dalessandro@intel.com> Signed-off-by: Doug Ledford <dledford@redhat.com>
1 parent b3e6b4b
File | Mode | Size |
---|---|---|
.gitignore | -rw-r--r-- | 31 bytes |
BIG.FAT.WARNING | -rw-r--r-- | 234 bytes |
check-lxdialog.sh | -rwxr-xr-x | 2.0 KB |
checklist.c | -rw-r--r-- | 8.2 KB |
dialog.h | -rw-r--r-- | 7.5 KB |
inputbox.c | -rw-r--r-- | 7.0 KB |
menubox.c | -rw-r--r-- | 11.0 KB |
textbox.c | -rw-r--r-- | 9.0 KB |
util.c | -rw-r--r-- | 17.9 KB |
yesno.c | -rw-r--r-- | 2.9 KB |
![swh spinner](/static/img/swh-spinner.gif)
Computing file changes ...