Thread (21 messages) 21 messages, 8 authors, 2017-12-31

Re: [v2,4/6] pktcdvd: Check queue type before attaching to a queue

From: Maciej S. Szmigiero <hidden>
Date: 2017-12-31 01:23:54

On 31.12.2017 01:53, Bart Van Assche wrote:
On Sat, 2017-12-30 at 22:41 +0100, Maciej S. Szmigiero wrote:
quoted
This commit causes a NULL pointer dereference when adding a pktcdvd
mapping.

Reproducing it is simple:
# pktsetup 1 /dev/cdrom 

Specifically, the NULL dereference happens inside bdev_get_queue(bdev),
which is supposed to return bdev->bd_disk->queue, but in this case
bdev->bd_disk is NULL.
Would it be possible to test the two attached patches?
I've tested 4.14.10 with both applied and can confirm that the NULL
pointer dereference when adding a pktcdvd mapping no longer happens
then.
Thanks,

Bart.
Thanks,
Maciej
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help