All of lore.kernel.org
 help / color / mirror / Atom feed
* [BUG] crypto: qat: accessing the data mapped to streaming DMA
@ 2020-08-02 14:35 Jia-Ju Bai
  0 siblings, 0 replies; only message in thread
From: Jia-Ju Bai @ 2020-08-02 14:35 UTC (permalink / raw)
  To: giovanni.cabiddu, herbert, davem, ardb, horia.geanta,
	geert+renesas, ebiggers
  Cc: qat-linux, linux-crypto, linux-kernel

In qat_alg_sgl_to_bufl(), "bufl" and "buflout" are mapped to streaming DMA:
   blp = dma_map_single(dev, bufl, sz, DMA_TO_DEVICE);
   bloutp = dma_map_single(dev, buflout, sz_out, DMA_TO_DEVICE);

Then "bufl" and "buflout" are accessed at some places, such as:
   bufl->bufers[y].len = sg->length;
   bufl->num_bufs = sg_nctr;
   bufers = buflout->bufers;
   buflout->num_bufs = sg_nctr;

These accesses may cause data inconsistency between CPU cache and hardware.

I am not sure how to properly fix this problem, and thus I only report it.


Best wishes,
Jia-Ju Bai


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2020-08-02 14:44 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-08-02 14:35 [BUG] crypto: qat: accessing the data mapped to streaming DMA Jia-Ju Bai

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.