Thread (5 messages) 5 messages, 3 authors, 2017-11-21

Re: [ata_port_probe] BUG: unable to handle kernel NULL pointer dereference at 0000000000000350

From: Tejun Heo <tj@kernel.org>
Date: 2017-11-21 14:57:47
Also in: lkml, oe-lkp

Hello,

On Tue, Nov 21, 2017 at 01:54:25PM +0100, Arnd Bergmann wrote:
quoted
[   56.376960] ata2.00: ATAPI: QEMU DVD-ROM, 2.5+, max UDMA/100
[   56.379169] ata2.00: configured for MWDMA2
[   56.381518] ata2.00: disabled
[   56.385696] sd 1:0:0:0: [sda] Attached SCSI disk
[   56.395326] sd 1:0:0:0: [sda] Synchronizing SCSI cache
I guess both can be explained by the same race as the previous one, with
async probe racing against removal. The first one might be a use-after-free
problem, the second one could be the probing thread running after the
device got removed.
This is not a bug in libata.  This is caused by
CONFIG_DEBUG_TEST_DRIVER_REMOVE incorrectly detaching the driver
before probing is complete, which can't happen in normal operations
(we have async flush at the end of boot and around module operations).

Greg, this issue was identified way back.  It's a debug code which
causes failures which aren't possible.  Can we please either fix or
remove it?

Thanks.

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