Re: [PATCH] IB/rxe: IB/core: IB/rdmavt: Fix kernel crash for reg MR

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 9/28/2016 4:25 PM, Parav Pandit wrote:
> This patch fixes below kernel crash on memory registration for rxe
> and other transport drivers which has dma_ops extension.
> 
> IB/core invokes ib_map_sg_attrs() in generic manner with dma attributes
> which is used by mlx5 and mthca adapters.
> However in doing so it ignored honoring dma_ops extension of software based
> transports for sg map/unmap operation.
> This results into calling dma_map_sg_attrs of hardware virtual device
> resulting in crash for null reference.
> 
> Fix: It extends core to support sg_map/unmap_attrs and transport drivers
> to implement those dma_ops callback functions.
> Verified usign perftest applications.

The commit message had to be largely rewritten, but the code was applied.


-- 
Doug Ledford <dledford@xxxxxxxxxx>
    GPG Key ID: 0E572FDD

Attachment: signature.asc
Description: OpenPGP digital signature


[Index of Archives]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Photo]     [Yosemite News]     [Yosemite Photos]     [Linux Kernel]     [Linux SCSI]     [XFree86]
  Powered by Linux