Re: [PATCH] libata: remove WARN() for DMA or PIO command without data

2018-02-12 Thread Tejun Heo
On Sat, Feb 03, 2018 at 08:33:27PM -0800, Eric Biggers wrote: > From: Eric Biggers > > syzkaller hit a WARN() in ata_qc_issue() when writing to /dev/sg0. This > happened because it issued a READ_6 command with no data buffer. > > Just remove the WARN(), as it doesn't appear indicate a kernel bu

[PATCH] libata: remove WARN() for DMA or PIO command without data

2018-02-03 Thread Eric Biggers
From: Eric Biggers syzkaller hit a WARN() in ata_qc_issue() when writing to /dev/sg0. This happened because it issued a READ_6 command with no data buffer. Just remove the WARN(), as it doesn't appear indicate a kernel bug. The expected behavior is to fail the command, which the code does. He