RE: [PATCH v5] cifs: Allocate validate negotiation request through kmalloc

2018-04-26 Thread Tom Talpey
@lists.samba.org; linux-kernel@vger.kernel.org; linux- > r...@vger.kernel.org > Cc: Long Li <lon...@microsoft.com> > Subject: [PATCH v5] cifs: Allocate validate negotiation request through > kmalloc > > From: Long Li <lon...@microsoft.com> > > The data buffer all

RE: [PATCH v5] cifs: Allocate validate negotiation request through kmalloc

2018-04-26 Thread Tom Talpey
nel.org > Cc: Long Li > Subject: [PATCH v5] cifs: Allocate validate negotiation request through > kmalloc > > From: Long Li > > The data buffer allocated on the stack can't be DMA'ed, ib_dma_map_page will > return an invalid DMA address for a buffer on stack. Even wors

[PATCH v5] cifs: Allocate validate negotiation request through kmalloc

2018-04-25 Thread Long Li
From: Long Li The data buffer allocated on the stack can't be DMA'ed, ib_dma_map_page will return an invalid DMA address for a buffer on stack. Even worse, this incorrect address can't be detected by ib_dma_mapping_error. Sending data from this address to hardware will not

[PATCH v5] cifs: Allocate validate negotiation request through kmalloc

2018-04-25 Thread Long Li
From: Long Li The data buffer allocated on the stack can't be DMA'ed, ib_dma_map_page will return an invalid DMA address for a buffer on stack. Even worse, this incorrect address can't be detected by ib_dma_mapping_error. Sending data from this address to hardware will not fail, but the remote