Thread (2 messages) 2 messages, 2 authors, 2021-12-13

Re: [PATCH RESEND] libata: if T_LENGTH is zero, dma direction should be DMA_NONE

From: Greg KH <gregkh@linuxfoundation.org>
Date: 2021-12-13 15:19:47
Also in: lkml, stable

On Mon, Dec 13, 2021 at 10:09:24AM -0500, George Kennedy wrote:
Avoid data corruption by rejecting pass-through commands where
T_LENGTH is zero (No data is transferred) and the dma direction
is not DMA_NONE.

Reported-by: syzkaller <redacted>
Signed-off-by: George Kennedy <redacted>
---
 drivers/ata/libata-scsi.c | 6 ++++++
 1 file changed, 6 insertions(+)
<formletter>

This is not the correct way to submit patches for inclusion in the
stable kernel tree.  Please read:
    https://www.kernel.org/doc/html/latest/process/stable-kernel-rules.html
for how to do this properly.

</formletter>
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help