[lkml]   [2017]   [Nov]   [21]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
SubjectRe: [ata_port_probe] BUG: unable to handle kernel NULL pointer dereference at 0000000000000350

On Tue, Nov 21, 2017 at 01:54:25PM +0100, Arnd Bergmann wrote:
> > [ 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?



 \ /
  Last update: 2017-11-21 15:58    [W:0.075 / U:1.260 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site